var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,n,i)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,s=(e,t)=>{for(var n in t||(t={}))r.call(t,n)&&a(e,n,t[n]);if(i)for(var n of i(t))o.call(t,n)&&a(e,n,t[n]);return e},c=(e,i)=>t(e,n(i)),l=e=>"symbol"==typeof e?e:e+"";const u={};var d,h,p,m,f,g={},_=[],b=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,n){var i,r,o,a=arguments,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o0?x(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[u])||h&&p.key==h.key&&p.type===h.type)v[u]=void 0;else for(d=0;d3)for(n=[n],o=3;ot.rank?-1:e.index-t.index}function J(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,Y(t).map(Z).join(""));var t}(e),e.props}function Y(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function Z(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}var Q=null,ee=[],te=[],ne={};function ie(){var e;return""+((e=Q&&Q.location?Q.location:Q&&Q.getCurrentLocation?Q.getCurrentLocation():"undefined"!=typeof location?location:ne).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=ee.length;t--;)if(ee[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),Q&&Q[t]?Q[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),oe(e)}function oe(e){for(var t=!1,n=0;n0},t.prototype.routeTo=function(e){this.setState({url:e});var t=this.canRoute(e);return this.updating||this.forceUpdate(),t},t.prototype.componentWillMount=function(){ee.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;Q&&(this.unlisten=Q.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),ee.splice(ee.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,n){return e.filter(J).sort(X).map((function(e){var i=K(t,e.props.path,e.props);if(i){if(!1!==n){var r={url:t,matches:i};return q(r,i),delete r.ref,delete r.key,H(e,r)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var n=e.children,i=e.onChange,r=t.url,o=this.getMatchingChildren(D(n),r,!0),a=o[0]||null,s=this.previousUrl;return r!==s&&(this.previousUrl=r,"function"==typeof i&&i({router:this,url:r,previous:s,active:o,current:a})),a},t}(N),he=function(e){return w("a",q({onClick:se},e))};de.subscribers=te,de.getCurrentUrl=ie,de.route=re,de.Router=de,de.Route=function(e){return w(e.component,e)},de.Link=he,de.exec=K;var pe,me,fe,ge=0,_e=[],be=d.__b,ve=d.__r,ye=d.diffed,we=d.__c,xe=d.unmount;function Ae(e,t){d.__h&&d.__h(me,e,ge||t),ge=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ne(e){return ge=1,ke(Ie,e)}function ke(e,t,n){var i=Ae(pe++,2);return i.t=e,i.__c||(i.__=[n?n(t):Ie(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=me),i.__}function Ce(e,t){var n=Ae(pe++,3);!d.__s&&$e(n.__H,t)&&(n.__=e,n.__H=t,me.__H.__h.push(n))}function Ee(e,t){var n=Ae(pe++,4);!d.__s&&$e(n.__H,t)&&(n.__=e,n.__H=t,me.__h.push(n))}function Se(e){return ge=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ae(pe++,7);return $e(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Fe(e,t){return ge=8,Oe((function(){return e}),t)}function De(e){var t=me.context[e.__c],n=Ae(pe++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function Be(e){var t=Ae(pe++,10),n=Ne();return t.__=e,me.componentDidCatch||(me.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Le(){_e.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Te),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}})),_e=[]}d.__b=function(e){me=null,be&&be(e)},d.__r=function(e){ve&&ve(e),pe=0;var t=(me=e.__c).__H;t&&(t.__h.forEach(Te),t.__h.forEach(Re),t.__h=[])},d.diffed=function(e){ye&&ye(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==_e.push(t)&&fe===d.requestAnimationFrame||((fe=d.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),Me&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Me&&(t=requestAnimationFrame(n))})(Le)),me=void 0},d.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Te),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],d.__e(n,e.__v)}})),we&&we(e,t)},d.unmount=function(e){xe&&xe(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Te)}catch(n){d.__e(n,t.__v)}};var Me="function"==typeof requestAnimationFrame;function Te(e){var t=me;"function"==typeof e.__c&&e.__c(),me=t}function Re(e){var t=me;e.__c=e.__(),me=t}function $e(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ie(e,t){return"function"==typeof t?t(e):t}var je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Pe={},ze={},Ue={};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.ModelPath=Ue.Path=Ue.relativePath=void 0,Ue.relativePath=function(e,t){return t.reduce(((e,t)=>"pop"===t?e.pop():e.push(t.push)),e)};class We{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 We(this.modelArr.slice(e,t),this.contextArr)}shift(){return new We(this.modelArr.slice(1),this.contextArr)}pop(){return new We(this.modelArr.slice(0,-1),this.contextArr)}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new We([...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 We([...this.modelArr],[...this.contextArr,t])}copy(){return new We([...this.modelArr],[...this.contextArr])}getArray(){return this.modelArr}withModel(e){return new He(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.lengthe===this.modelArr[t]))}endsWith(e){const t=this.modelArr.length-e.modelArr.length;return!(t<0)&&e.modelArr.every(((e,n)=>e===this.modelArr[t+n]))}toString(){return this.modelArr.map((e=>"string"==typeof e?`.${e}`:`[${e}]`)).join("").replace(/^\./,"")}forEach(e,t){return this.modelArr.forEach(e,t)}}Ue.Path=We;class He extends We{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 He(this.model,super.slice(e,t))}shift(){return new He(this.model,super.shift())}pop(){return new He(this.model,super.pop())}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new He(this.model,super.modelPush(e))}contextPush(e){return new He(this.model,super.contextPush(e))}copy(){return new He(this.model,super.copy())}}Ue.ModelPath=He;var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.Errors=void 0;class Ge{constructor(){this.errors=[]}add(e,t,...n){return this.errors.push({path:e,error:t,params:n}),!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}}Ve.Errors=Ge;var qe={};function Ke(e){return e.replace(/(\\|")/g,"\\$1")}Object.defineProperty(qe,"__esModule",{value:!0}),qe.hexId=qe.quoteString=qe.escapeString=void 0,qe.escapeString=Ke,qe.quoteString=function(e){return`"${Ke(e)}"`};const Xe=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,Xe).join("")},Object.defineProperty(ze,"__esModule",{value:!0}),ze.DataModel=void 0;const Je=Ue,Ye=Ve,Ze=qe;class Qe{constructor(e,t){var n,i,r,o;this.historyMax=null!==(n=null==t?void 0:t.historyMax)&&void 0!==n?n:50,this.verbose=null!==(i=null==t?void 0:t.verbose)&&void 0!==i&&i,this.wrapLists=null!==(r=null==t?void 0:t.wrapLists)&&void 0!==r&&r,this.schema=e;const a=null!==(o=null==t?void 0:t.initialData)&&void 0!==o?o:e.default();this.data=this.wrapLists?Qe.wrapLists(a):a,this.listeners=[],this.errors=new Ye.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,n){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:Ze.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:Ze.hexId()}:i[e.last()]=t,n||(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{e.errors&&e.errors(i)}))}static wrapLists(e){if(Array.isArray(e)){const t=e.map((e=>({node:this.wrapLists(e),id:Ze.hexId()})));for(const n of Object.getOwnPropertySymbols(e))t[n]=e[n];return t}if("object"==typeof e&&null!==e){const t={};Object.entries(e).map((([e,n])=>{t[e]=this.wrapLists(n)}));for(const n of Object.getOwnPropertySymbols(e))t[n]=e[n];return t}return e}static unwrapLists(e){if(Array.isArray(e)){const t=e.map((e=>this.unwrapLists(e.node)));for(const n of Object.getOwnPropertySymbols(e))t[n]=e[n];return t}if("object"==typeof e&&null!==e){const t={};Object.entries(e).map((([e,n])=>{t[e]=this.unwrapLists(n)}));for(const n of Object.getOwnPropertySymbols(e))t[n]=e[n];return t}return e}}ze.DataModel=Qe;var et,tt={};et=tt,Object.defineProperty(et,"__esModule",{value:!0}),et.Keep=et.Opt=et.Has=et.Mod=et.Base=void 0,et.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,...n){return e.base({node:this},t,...n)},canUpdate:()=>!1,update:()=>[]},et.Mod=(e,t)=>s(s({},e),"function"==typeof t?t(e):t),et.Has=(e,t)=>et.Mod(t,{enabled:t=>void 0!==t.push(e).get()}),et.Opt=function(e){return c(s({},e),{optional:()=>!0})},et.Keep=function(e){return c(s({},e),{keep:()=>!0})};var nt={};Object.defineProperty(nt,"__esModule",{value:!0}),nt.BooleanNode=void 0;const it=ze,rt=tt;nt.BooleanNode=()=>c(s({},rt.Base),{type:()=>"boolean",default:()=>!1,suggest:()=>["false","true"],validate(e,t,n,i){return i.loose&&"boolean"!=typeof t&&(t=i.wrapLists?it.DataModel.wrapLists(this.default()):this.default()),"boolean"==typeof t&&void 0!==t||n.add(e,"error.expected_boolean"),t},hook(e,t,...n){var i;return(null!==(i=e.boolean)&&void 0!==i?i:e.base).call(e,{node:this},t,...n)}});var ot={},at={};Object.defineProperty(at,"__esModule",{value:!0}),at.ListNode=void 0;const st=ze,ct=tt;at.ListNode=(e,t)=>{var n,i;const r=null!==(n=null==t?void 0:t.minLength)&&void 0!==n?n: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({},ct.Base),{type:()=>"list",default:()=>(null==t?void 0:t.minLength)?[...Array(r)].map((t=>e.default())):[],navigate(t,n){const i=n+1;return t.getArray().length<=i?this:e.navigate(t,i)},pathPush:(e,t)=>e.push(parseInt(t.toString())).contextPush("entry"),validate(t,n,i,s){if(s.loose&&!Array.isArray(n)&&(n=s.wrapLists?st.DataModel.wrapLists(this.default()):this.default()),!Array.isArray(n))return i.add(t,"error.expected_list"),n;a&&(n.lengtho)?r===o?i.add(t,"error.invalid_list_range.exact",n.length,r):i.add(t,"error.invalid_list_range.between",n.length,r,o):n.lengtho&&i.add(t,"error.invalid_list_range.larger",n.length,o);const c=n.map(((n,r)=>{const o=e.validate(t.push(r),s.wrapLists?n.node:n,i,s);return s.wrapLists?{node:o,id:n.id}:o}));for(const e of Object.getOwnPropertySymbols(n))c[e]=n[e];return c},hook(n,i,...r){var o;return(null!==(o=n.list)&&void 0!==o?o:n.base).call(n,{node:this,children:e,config:null!=t?t:{}},i,...r)}})};var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.SwitchNode=void 0;const ut=tt;lt.SwitchNode=e=>c(s({},ut.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 n;const i=t+1;return null===(n=this.activeCase(e.slice(0,i)))||void 0===n?void 0:n.node.navigate(e,t)},pathPush(e,t){var n,i;return null!==(i=null===(n=this.activeCase(e))||void 0===n?void 0:n.node.pathPush(e,t))&&void 0!==i?i:e},suggest(t,n){var i,r;return null!==(r=null===(i=this.activeCase(t))||void 0===i?void 0:i.node.suggest(t,n))&&void 0!==r?r:e.filter((e=>e.match(t))).map((e=>e.node.suggest(t,n))).reduce(((e,t)=>e.concat(t)))},validate(e,t,n,i){let r=this.activeCase(e);return void 0===r?t:r.node.validate(e,t,n,i)},validationOption(e){var t;return null===(t=this.activeCase(e))||void 0===t?void 0:t.node.validationOption(e)},activeCase(t,n){const i=(e,t)=>{var n,i;return(null!==(n=t.priority)&&void 0!==n?n:0)-(null!==(i=e.priority)&&void 0!==i?i:0)},r=e.filter((e=>e.match(t))).sort(i);return n&&0===r.length?e.sort(i)[0]:r.length>0?r[0]:void 0},hook(e,t,...n){return this.activeCase(t,!0).node.hook(e,t,...n)}}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectOrPreset=e.StringOrList=e.ObjectOrList=e.ChoiceNode=void 0;const t=at,n=lt;e.ChoiceNode=(e,t)=>{const i=n.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,n,r){let o=i.activeCase(e,!0);return o.node.optional()?t:o.node.validate(e,t,n,r)},hook(n,r,...o){var a;return(null!==(a=n.choice)&&void 0!==a?a:n.base).call(n,{node:this,choices:e,config:null!=t?t:{},switchNode:i},r,...o)}})};const i=n=>(i,r)=>e.ChoiceNode([{type:n,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]:[]}],r);e.ObjectOrList=i("object"),e.StringOrList=i("string"),e.ObjectOrPreset=(t,n,i)=>e.ChoiceNode([{type:"string",priority:1,node:t,change:e=>Object.keys(i)[0]},{type:"object",node:n,change:e=>{var t;return null!==(t=i[e])&&void 0!==t?t:i[Object.keys(i)[0]]}}])}(ot);var dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.MapNode=void 0;const ht=tt,pt=ze;dt.MapNode=(e,t,n)=>c(s({},ht.Base),{type:()=>"map",default:()=>({}),navigate(e,n){const i=n+1;return e.getArray().length<=i?this:t.navigate(e,i)},pathPush:(e,t)=>e.modelPush(t),suggest:t=>e.suggest(t,""),validate(n,i,r,o){if(o.loose&&"object"!=typeof i&&(i=o.wrapLists?pt.DataModel.wrapLists(this.default()):this.default()),null===i||"object"!=typeof i)return r.add(n,"error.expected_object"),i;const a={};Object.keys(i).forEach((s=>{e.validate(n,s,r,o),a[s]=t.validate(n.push(s),i[s],r,o)}));for(const e of Object.getOwnPropertySymbols(i))a[e]=i[e];return a},validationOption(t){var i;return null!==(i=null==n?void 0:n.validation)&&void 0!==i?i:e.validationOption(t.push(""))},hook(i,r,...o){var a;return(null!==(a=i.map)&&void 0!==a?a:i.base).call(i,{node:this,keys:e,children:t,config:null!=n?n:{}},r,...o)}});var mt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberEnum=e.NumberNode=void 0;const t=Pe,n=ze,i=tt;e.NumberNode=e=>{var t,r,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!==(r=null==e?void 0:e.min)&&void 0!==r?r:-1/0,u=(null==e?void 0:e.color)?16777215:null!==(o=null==e?void 0:e.max)&&void 0!==o?o:1/0,d=void 0!==(null==e?void 0:e.min)&&void 0!==(null==e?void 0:e.max);return c(s({},i.Base),{type:()=>"number",default:()=>l>0?l:0,validate(e,t,i,r){return r.loose&&"number"!=typeof t&&(t=r.wrapLists?n.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"):d&&(tu)?i.add(e,"error.invalid_number_range.between",t,l,u):tu&&i.add(e,"error.invalid_number_range.larger",t,u),t},hook(t,n,...i){var r;return(null!==(r=t.number)&&void 0!==r?r:t.base).call(t,{node:this,integer:a,min:l,max:u,between:d,config:null!=e?e:{}},n,...i)}})},e.NumberEnum=({integer:n,values:i})=>t.Mod(e.NumberNode({integer:n}),(e=>({validate:(t,n,r,o)=>(n=e.validate(t,n,r,o),i.includes(n)||r.add(t,"error.invalid_number_enum",i.join(", ")),n)})))}(mt);var ft={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.Case=e.Switch=void 0;const t=tt,n=Ue,a=Ve,u=qe,d=ze;e.Switch=Symbol("switch"),e.Case=Symbol("case"),e.ObjectNode=(h,p)=>{var m,f;const g=h,{[m=e.Switch]:_,[f=e.Case]:b}=g,v=((e,t)=>{var n={};for(var a in e)r.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&i)for(var a of i(e))t.indexOf(a)<0&&o.call(e,a)&&(n[a]=e[a]);return n})(g,[l(m),l(f)]),y=e=>{if(void 0===_)return v;const t=n.relativePath(e,_).get(),i=b[t];return s(s({},v),i)},w=(e,t)=>{var i;const r=_?n.relativePath(e,_).get():void 0,o=_&&null!==(i=b[r])&&void 0!==i?i:{},a=Object.keys(o),s=(null==p?void 0:p.context)?new n.ModelPath(e.getModel(),new n.Path(e.getArray(),[p.context])):e;return(!(null==p?void 0:p.disableSwitchContext)&&r&&a.includes(t)?s.contextPush(r):s).push(t)};return c(s({},t.Base),{type:()=>"object",category:()=>null==p?void 0:p.category,default:()=>({}),keep(){return this.optional()},navigate(e,t){const n=t+1,i=e.getArray();if(i.length<=n)return this;const r=y(e.slice(0,n))[i[n]];return null==r?void 0:r.navigate(e,n)},pathPush:(e,t)=>w(e,t.toString()),suggest(e,t){const n=y(e),i=Object.keys("object"==typeof t?t:{});return Object.keys(n).filter((t=>n[t].enabled(e))).filter((e=>!i.includes(e))).map(u.quoteString)},validate(e,t,i,r){if(r.loose&&"object"!=typeof t&&(t=r.wrapLists?d.DataModel.wrapLists(this.default()):this.default()),"object"!=typeof t||null===t)return i.add(e,"error.expected_object"),t;let o=v;if(_){const i=n.relativePath(e,_);let c=i.get();if(e.equals(i.pop())){const n=i.last();c=v[n].validate(e.push(n),t[n],new a.Errors,r)}o=s(s({},o),b[c])}const c=Object.keys(o),l=c.filter((e=>!o[e].optional())),u=new Set([...l,...Object.keys(t)]),h={};u.forEach((n=>{if(c.includes(n)){if(!o[n].enabled(e))return;const a=o[n].validate(e.push(n),t[n],i,r);!o[n].keep()&&o[n].optional()&&(void 0===a||Array.isArray(a)&&0===a.length||a.constructor===Object&&0===Object.keys(a).length)?delete h[n]:(h[n]=a,e.getModel().set(e.push(n),a,!0))}else h[n]=t[n]}));for(const n of Object.getOwnPropertySymbols(t))h[n]=t[n];return h},hook(e,t,...n){var i;return(null!==(i=e.object)&&void 0!==i?i:e.base).call(e,{node:this,fields:v,config:null!=p?p:{},filter:_,cases:b,getActiveFields:y,getChildModelPath:w},t,...n)}})}}(ft);var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.Reference=void 0,gt.Reference=(e,t)=>({type(n){return e.get(t).type.bind(this)(n)},category(n){return e.get(t).category.bind(this)(n)},default(){return e.get(t).default.bind(this)()},transform:(n,i)=>e.get(t).transform(n,i),enabled(n){return e.get(t).enabled.bind(this)(n)},keep(){return e.get(t).keep.bind(this)()},optional(){return e.get(t).optional.bind(this)()},navigate(n,i){return e.get(t).navigate.bind(this)(n,i)},pathPush(n,i){return e.get(t).pathPush.bind(this)(n,i)},suggest(n,i){return e.get(t).suggest.bind(this)(n,i)},validate(n,i,r,o){return e.get(t).validate.bind(this)(n,i,r,o)},validationOption(n){return e.get(t).validationOption.bind(this)(n)},hook(n,i,...r){return e.get(t).hook.bind(this)(n,i,...r)},activeCase(n,i){return e.get(t).activeCase.bind(this)(n,i)},canUpdate(n,i){return e.get(t).canUpdate.bind(this)(n,i)},update(n,i){return e.get(t).update.bind(this)(n,i)}});var _t={};Object.defineProperty(_t,"__esModule",{value:!0}),_t.StringNode=void 0;const bt=tt,vt=qe,yt=ze,wt=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.enum)},xt=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.validator)};_t.StringNode=(e,t)=>{const n=()=>{var n,i,r,o;if(wt(t))return"string"==typeof t.enum?null!==(n=null==e?void 0:e.get(t.enum))&&void 0!==n?n:[]: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 n=t.params.pool.replace(/^\$/,"");return[...t.params.allowTag&&null!==(r=null==e?void 0:e.get(`tag/${n}`).map((e=>`#${e}`)))&&void 0!==r?r:[],...null!==(o=null==e?void 0:e.get(n))&&void 0!==o?o:[]]}return t.params.pool}return[]};return c(s({},bt.Base),{type:()=>"string",default:()=>"",validate(e,i,r,o){if(o.loose&&"string"!=typeof i&&(i=(o.wrapLists?yt.DataModel.wrapLists(this.default()):this.default())||void 0),"string"!=typeof i)return r.add(e,"error.expected_string"),i;if(xt(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 n=i;if(i.startsWith("#")){if("string"==typeof t.params.pool&&t.params.pool.startsWith("$tag/"))return r.add(e,"error.disallowed_tag_prefix"),i;if(!t.params.allowTag&&!t.params.requireTag)return r.add(e,"error.disallowed_tag"),i;n=n.slice(1)}else if(t.params.requireTag)return r.add(e,"error.expected_tag"),i;if(!n.match(/^(?:[_\-a-z0-9.]*:)?[_\-a-z0-9/.]*$/g))return r.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(wt(t)&&t.additional)return i;const a=n();return a.length>0&&!a.includes(i)&&r.add(e,"error.invalid_enum_option",i),i},suggest:()=>n().map(vt.quoteString),validationOption:()=>xt(t)?t:void 0,hook(e,i,...r){var o;return(null!==(o=e.string)&&void 0!==o?o:e.base).call(e,{node:this,getValues:n,config:t},i,...r)}})};var At={};Object.defineProperty(At,"__esModule",{value:!0});var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.CollectionRegistry=Nt.SchemaRegistry=void 0;Nt.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}};Nt.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 kt={};Object.defineProperty(kt,"__esModule",{value:!0}),function(e){var t=je&&je.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),n=je&&je.__exportStar||function(e,n){for(var i in e)"default"===i||n.hasOwnProperty(i)||t(n,e,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(ze,e),n(Ue,e),n(Ve,e),n(tt,e),n(nt,e),n(ot,e),n(at,e),n(dt,e),n(mt,e),n(ft,e),n(gt,e),n(_t,e),n(lt,e),n(At,e),n(Nt,e),n(kt,e)}(Pe);var Ct=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return 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 i(r,e);if(r instanceof Map)return new Map(i(Array.from(r),e));if(r instanceof Set)return new Set(i(Array.from(r),e));var o={};for(var a in t.push(r),n.push(o),r){var s=r[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]=Et(s);else{var c=t.indexOf(s);o[a]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return i(r,e);if(r instanceof Map)return new Map(i(Array.from(r),e));if(r instanceof Set)return new Set(i(Array.from(r),e));var o={};for(var a in t.push(r),n.push(o),r)if(!1!==Object.hasOwnProperty.call(r,a)){var s=r[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]=Et(s);else{var c=t.indexOf(s);o[a]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function i(e,i){for(var r=Object.keys(e),o=new Array(r.length),a=0;a-1},i=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},r=function(){return navigator.userAgent.toLowerCase().indexOf("safari")>-1},o=function(){return document.documentMode&&document.documentMode>=11},a=function(){this.count=0,this.pending=[]};a.prototype.incr=function(){this.count++},a.prototype.decr=function(){this.count--,this.flush()},a.prototype.whenReady=function(e){this.pending.push(e),this.flush()},a.prototype.flush=function(){0===this.count&&(this.pending.forEach((function(e){e()})),this.pending=[])};var s=function(e){this.sem=new a,this.sync=e&&e.sync,this.mapForUri=e&&e.cacheGlobally?t:{}};s.prototype.ajax=function(e,t){var n=function(){for(var e=!1,t=0;t/)||_.fetchScript(h));_.sem.whenReady((function(){var e=l(c,g,_.mapForUri,b);t(e)}))}}}.apply(t,i))||(e.exports=r)},function(e,t,n){var i=n(2),r=n(3),o=n(4).ArraySet,a=n(5),s=n(7).quickSort;function c(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new d(t):new l(t)}function l(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=i.getArg(t,"version"),r=i.getArg(t,"sources"),a=i.getArg(t,"names",[]),s=i.getArg(t,"sourceRoot",null),c=i.getArg(t,"sourcesContent",null),l=i.getArg(t,"mappings"),u=i.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(String).map(i.normalize).map((function(e){return s&&i.isAbsolute(s)&&i.isAbsolute(e)?i.relative(s,e):e})),this._names=o.fromArray(a.map(String),!0),this._sources=o.fromArray(r,!0),this.sourceRoot=s,this.sourcesContent=c,this._mappings=l,this.file=u}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=i.getArg(t,"version"),r=i.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new o,this._names=new o;var a={line:-1,column:0};this._sections=r.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=i.getArg(e,"offset"),n=i.getArg(t,"line"),r=i.getArg(t,"column");if(n=0){var s=this._originalMappings[a];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)o.push({line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)o.push({line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return o},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.fromSourceMap=function(e){var t=Object.create(l.prototype),n=t._names=o.fromArray(e._names.toArray(),!0),r=t._sources=o.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),c=t.__generatedMappings=[],d=t.__originalMappings=[],h=0,p=a.length;h1&&(n.source=f+o[1],f+=o[1],n.originalLine=p+o[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=m+o[3],m=n.originalColumn,o.length>4&&(n.name=g+o[4],g+=o[4])),x.push(n),"number"==typeof n.originalLine&&w.push(n)}s(x,i.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,s(w,i.compareByOriginalPositions),this.__originalMappings=w},l.prototype._findMapping=function(e,t,n,i,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return r.search(e,t,o,a)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var o=i.getArg(r,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=i.join(this.sourceRoot,o)));var a=i.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:o,line:i.getArg(r,"originalLine",null),column:i.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=i.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=i.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=i.getArg(e,"source");if(null!=this.sourceRoot&&(t=i.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var o=this._originalMappings[r];if(o.source===n.source)return{line:i.getArg(o,"generatedLine",null),column:i.getArg(o,"generatedColumn",null),lastColumn:i.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t=0;u--)"."===(a=c[u])?c.splice(u,1):".."===a?l++:l>0&&(""===a?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(n=c.join("/"))&&(n=s?"/":"."),i?(i.path=n,o(i)):n}t.urlParse=r,t.urlGenerate=o,t.normalize=a,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(i))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var c="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,o(s)):c},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?c:function(e){return l(e)?"$"+e:e},t.fromSetString=s?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var i=e.source-t.source;return 0!==i||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)||n||0!=(i=e.generatedColumn-t.generatedColumn)||0!=(i=e.generatedLine-t.generatedLine)?i:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var i=e.generatedLine-t.generatedLine;return 0!==i||0!=(i=e.generatedColumn-t.generatedColumn)||n||0!=(i=e.source-t.source)||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)?i:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)}},function(e,t){function n(e,i,r,o,a,s){var c=Math.floor((i-e)/2)+e,l=a(r,o[c],!0);return 0===l?c:l>0?i-c>1?n(c,i,r,o,a,s):s==t.LEAST_UPPER_BOUND?i1?n(e,c,r,o,a,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,i,r,o){if(0===i.length)return-1;var a=n(-1,i.length,e,i,r,o||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===r(i[a],i[a-1],!0);)--a;return a}},function(e,t,n){var i=n(2),r=Object.prototype.hasOwnProperty;function o(){this._array=[],this._set=Object.create(null)}o.fromArray=function(e,t){for(var n=new o,i=0,r=e.length;i=0&&e>>=5)>0&&(t|=32),n+=i.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,o,a,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&o),l+=(o&=31)<>1,1==(1&a)?-s:s),n.rest=t}},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e({Name:"minecraft:stone"})})),n.register("fluid_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(r(),r()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),n.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,n,i;return void 0===e?0:null!==(i=null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n: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:r({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,n;return{type:"minecraft:binomial",n:"number"==typeof e?e:void 0===e?1:null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n:1,p:.5}}}]:[]],{choiceContext:"range"}),e.ConditionCases={"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:r({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(r(),r(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:r({enum:"entity_source"}),predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:r({enum:"entity_source"}),scores:t.MapNode(r({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:r({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:r({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())}}}}(Lt);var Mt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initPredicatesSchemas=e.LocationFields=void 0;const t=Pe,n=Lt;e.initPredicatesSchemas=function(i,r){const o=t.Reference.bind(void 0,i),a=t.StringNode.bind(void 0,r),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(n.Range()),durability:t.Opt(n.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(n.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(n.Range()),y:t.Opt(n.Range()),z:t.Opt(n.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(n.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:n.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(n.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(n.Range()),duration:t.Opt(n.Range()),ambient:t.Opt(t.BooleanNode()),visible:t.Opt(t.BooleanNode())},{context:"status_effect"})),i.register("distance_predicate",t.ObjectNode({x:t.Opt(n.Range()),y:t.Opt(n.Range()),z:t.Opt(n.Range()),absolute:t.Opt(n.Range()),horizontal:t.Opt(n.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(n.Range()),taken:t.Opt(n.Range()),blocked:t.Opt(t.BooleanNode()),source_entity:t.Opt(o("entity_predicate")),type:t.Opt(o("damage_source_predicate"))},{context:"damage"}))}}(Mt),Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.initAdvancementSchemas=void 0;const Tt=Pe,Rt=Lt,$t=Mt;Bt.initAdvancementSchemas=function(e,t){const n=Tt.Reference.bind(void 0,e),i=Tt.StringNode.bind(void 0,t);e.register("advancement",Tt.Mod(Tt.ObjectNode({display:Tt.Opt(Tt.Mod(Tt.ObjectNode({icon:Tt.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:Tt.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:n("text_component"),description:n("text_component"),background:Tt.Opt(i()),frame:Tt.Opt(i({enum:["task","challenge","goal"]})),show_toast:Tt.Opt(Tt.BooleanNode()),announce_to_chat:Tt.Opt(Tt.BooleanNode()),hidden:Tt.Opt(Tt.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Tt.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:Tt.MapNode(i(),n("advancement_criteria")),requirements:Tt.Opt(Tt.ListNode(Tt.ListNode(i()))),rewards:Tt.Opt(Tt.ObjectNode({function:Tt.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:Tt.Opt(Tt.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Tt.Opt(Tt.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:Tt.Opt(Tt.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Tt.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Tt.Opt(Tt.ObjectNode({[Tt.Switch]:["pop",{push:"trigger"}],[Tt.Case]:{"minecraft:bee_nest_destroyed":{block:Tt.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:Tt.Opt(Tt.NumberNode({integer:!0})),item:Tt.Opt(n("item_predicate"))},"minecraft:bred_animals":{parent:Tt.Opt(n("entity_predicate")),partner:Tt.Opt(n("entity_predicate")),child:Tt.Opt(n("entity_predicate"))},"minecraft:brewed_potion":{potion:Tt.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Tt.Opt(i({enum:"dimension"})),to:Tt.Opt(i({enum:"dimension"}))},"minecraft:channeled_lightning":{victims:Tt.Opt(Tt.ListNode(Tt.Opt(n("entity_predicate"))))},"minecraft:construct_beacon":{level:Tt.Opt(Rt.Range())},"minecraft:consume_item":{item:Tt.Opt(n("item_predicate"))},"minecraft:cured_zombie_villager":{villager:Tt.Opt(n("entity_predicate")),zombie:Tt.Opt(n("entity_predicate"))},"minecraft:effects_changed":{effects:Tt.Opt(Tt.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),n("status_effect_predicate")))},"minecraft:enter_block":{block:Tt.Opt(i({validator:"resource",params:{pool:"block"}})),state:Tt.Opt(Tt.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:Tt.Opt(Rt.Range()),item:Tt.Opt(n("item_predicate"))},"minecraft:entity_hurt_player":{damage:Tt.Opt(n("damage_predicate"))},"minecraft:entity_killed_player":{entity:Tt.Opt(n("entity_predicate")),killing_blow:Tt.Opt(n("damage_source_predicate"))},"minecraft:filled_bucket":{item:Tt.Opt(n("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:Tt.Opt(n("entity_predicate")),item:Tt.Opt(n("item_predicate"))},"minecraft:hero_of_the_village":$t.LocationFields,"minecraft:inventory_changed":{slots:Tt.Opt(Tt.ObjectNode({empty:Tt.Opt(Rt.Range()),occupied:Tt.Opt(Rt.Range()),full:Tt.Opt(Rt.Range())})),items:Tt.Opt(Tt.ListNode(n("item_predicate")))},"minecraft:item_durability_changed":{delta:Tt.Opt(Rt.Range()),durability:Tt.Opt(Rt.Range()),item:Tt.Opt(n("item_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:Tt.Opt(Rt.Range()),victims:Tt.Opt(Tt.ListNode(Tt.Opt(n("entity_predicate"))))},"minecraft:levitation":{distance:Tt.Opt(Rt.Range()),duration:Tt.Opt(Rt.Range())},"minecraft:location":$t.LocationFields,"minecraft:nether_travel":{distance:Tt.Opt(Rt.Range()),entered:Tt.Opt(n("location_predicate")),exited:Tt.Opt(n("location_predicate"))},"minecraft:placed_block":{block:Tt.Opt(i({validator:"resource",params:{pool:"block"}})),state:Tt.Opt(Tt.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Tt.Opt(n("item_predicate")),location:Tt.Opt(n("location_predicate"))},"minecraft:player_hurt_entity":{damage:Tt.Opt(n("damage_predicate")),entity:Tt.Opt(n("entity_predicate"))},"minecraft:player_killed_entity":{entity:Tt.Opt(n("entity_predicate")),killing_blow:Tt.Opt(n("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:safely_harvest_honey":{block:Tt.Opt(Tt.ObjectNode({block:Tt.Opt(i({validator:"resource",params:{pool:"block"}})),tag:Tt.Opt(i({validator:"resource",params:{pool:"$tag/block"}}))})),item:Tt.Opt(n("item_predicate"))},"minecraft:slept_in_bed":$t.LocationFields,"minecraft:slide_down_block":{block:Tt.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Tt.Opt(n("item_predicate"))},"minecraft:summoned_entity":{entity:Tt.Opt(n("entity_predicate"))},"minecraft:tame_animal":{entity:Tt.Opt(n("entity_predicate"))},"minecraft:used_ender_eye":{distance:Tt.Opt(Rt.Range())},"minecraft:used_totem":{item:Tt.Opt(n("item_predicate"))},"minecraft:villager_trade":{villager:Tt.Opt(n("entity_predicate")),item:Tt.Opt(n("item_predicate"))},"minecraft:voluntary_exile":$t.LocationFields}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var It={},jt={};Object.defineProperty(jt,"__esModule",{value:!0}),jt.initModelSchemas=void 0;const Pt=Pe;jt.initModelSchemas=function(e,t){Pt.Reference.bind(void 0,e);const n=Pt.StringNode.bind(void 0,t),i=(e,t,n)=>Pt.ListNode(Pt.NumberNode({min:t,max:n}),{minLength:e,maxLength:e}),r=Pt.ChoiceNode([{type:"alias",match:e=>"string"==typeof e&&e.startsWith("#"),node:n(),change:e=>"string"==typeof e?`#${e}`:"#0"},{type:"reference",match:e=>"string"==typeof e,node:n({validator:"resource",params:{pool:"$texture"}}),change:e=>"string"==typeof e?e.replace(/^#/,""):""}],{choiceContext:"texture"});e.register("model",Pt.Mod(Pt.ObjectNode({parent:Pt.Opt(n({validator:"resource",params:{pool:"$model"}})),ambientocclusion:Pt.Opt(Pt.BooleanNode()),gui_light:Pt.Opt(n({enum:"gui_light"})),textures:Pt.Opt(Pt.MapNode(n(),r)),elements:Pt.Opt(Pt.ListNode(Pt.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:Pt.Opt(Pt.ObjectNode({origin:i(3),axis:n({enum:"axis"}),angle:Pt.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:Pt.Opt(Pt.BooleanNode())})),shade:Pt.Opt(Pt.BooleanNode()),faces:Pt.MapNode(n({enum:"direction"}),Pt.ObjectNode({texture:r,uv:Pt.Opt(i(4)),cullface:Pt.Opt(n({enum:"direction"})),rotation:Pt.Opt(Pt.NumberNode({integer:!0})),tintindex:Pt.Opt(Pt.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:Pt.Opt(Pt.MapNode(n({enum:"display_position"}),Pt.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:Pt.Opt(Pt.ListNode(Pt.ObjectNode({predicate:Pt.MapNode(n({enum:"item_model_predicates"}),Pt.NumberNode()),model:n({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.initBlockDefinitionSchemas=void 0;const Ut=Pe;zt.initBlockDefinitionSchemas=function(e,t){const n=Ut.Reference.bind(void 0,e),i=Ut.StringNode.bind(void 0,t);e.register("block_definition",Ut.Mod(Ut.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:Ut.ObjectNode({variants:Ut.MapNode(i(),n("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:Ut.ObjectNode({multipart:Ut.ListNode(Ut.ObjectNode({when:Ut.Opt(n("multipart_condition")),apply:n("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const r={model:i({validator:"resource",params:{pool:"$model"}}),x:Ut.Opt(Ut.NumberEnum({integer:!0,values:[0,90,180,270]})),y:Ut.Opt(Ut.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:Ut.Opt(Ut.BooleanNode())};e.register("model_variant",Ut.ChoiceNode([{type:"object",node:Ut.ObjectNode(r),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:Ut.ListNode(Ut.ObjectNode(c(s({},r),{weight:Ut.Opt(Ut.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",Ut.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:Ut.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:Ut.ObjectNode({OR:Ut.ListNode(n("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(It,"__esModule",{value:!0}),It.initAssetsSchemas=void 0;const Wt=jt,Ht=zt;It.initAssetsSchemas=function(e,t){Ht.initBlockDefinitionSchemas(e,t),Wt.initModelSchemas(e,t)};var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.initConditionSchemas=void 0;const Gt=Pe,qt=Lt;Vt.initConditionSchemas=function(e,t){const n=Gt.Reference.bind(void 0,e),i=Gt.StringNode.bind(void 0,t);e.register("predicate",Gt.ObjectOrList(n("condition"),{choiceContext:"condition"})),e.register("condition",Gt.Mod(Gt.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[Gt.Switch]:[{push:"condition"}],[Gt.Case]:qt.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Kt={},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(Kt,"__esModule",{value:!0}),Kt.initLootTableSchemas=void 0;const Jt=Pe,Yt=Xt,Zt=Lt;Kt.initLootTableSchemas=function(e,t){const n=Jt.Reference.bind(void 0,e),i=Jt.StringNode.bind(void 0,t),r={conditions:Jt.Opt(Jt.ListNode(n("loot_condition")))},o=s({functions:Jt.Opt(Jt.ListNode(n("loot_function")))},r);function a(e,n,i){const r=[],o=i=>t.get(n).filter((t=>{var n;return(null!==(n=e.get(t))&&void 0!==n?n:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Yt.LootTableTypes){const e=[...a,...s];r.push({match:e=>e.getModel().get(new Jt.Path(["type"]))===t,node:i(o(e))})}return r.push({match:e=>!0,node:i(n)}),Jt.SwitchNode(r)}const l=a(Yt.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),u=a(Yt.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(Yt.LootEntitySources,"entity_source",(e=>i({enum:e}))),h=a(Yt.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:Zt.Range({allowBinomial:!0,integer:!0}),bonus_rolls:Jt.Opt(Zt.Range({integer:!0})),entries:Jt.ListNode(n("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Jt.Opt(Jt.ListNode(n("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",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}),p)),quality:Jt.Opt(Jt.Mod(Jt.NumberNode({integer:!0}),p)),[Jt.Switch]:[{push:"type"}],[Jt.Case]:{"minecraft:alternatives":s({children:Jt.ListNode(n("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Jt.ListNode(n("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(n("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:u,[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:h},"minecraft:copy_nbt":{source:h,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:Zt.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:d},"minecraft:limit_count":{limit:Zt.Range({bounds:!0})},"minecraft:looting_enchant":{count:Zt.Range({bounds:!0}),limit:Jt.Opt(Jt.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:Jt.ListNode(n("attribute_modifier"))},"minecraft:set_contents":{entries:Jt.ListNode(n("loot_entry"))},"minecraft:set_count":{count:Zt.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:Zt.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(d),lore:Jt.ListNode(n("text_component")),replace:Jt.Opt(Jt.BooleanNode())},"minecraft:set_name":{entity:Jt.Opt(d),name:Jt.Opt(n("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:Zt.Range()})))}},o={};return t.get("loot_function_type").forEach((t=>{o[t]=s(s({},e[t]),r)})),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({},Zt.ConditionCases),{"minecraft:entity_properties":{entity:d,predicate:n("entity_predicate")},"minecraft:entity_scores":{entity:d,scores:Jt.MapNode(i({validator:"objective"}),Zt.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:Zt.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 Qt={};Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.initPackMcmetaSchemas=void 0;const en=Pe;Qt.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",en.Mod(en.ObjectNode({pack:en.Mod(en.ObjectNode({pack_format:en.Mod(en.NumberNode({integer:!0,min:5,max:5}),{default:()=>5}),description:en.Reference(e,"text_component")}),{default:()=>({pack_format:5,description:""})})}),{default:()=>({pack:{pack_format:5,description:""}})}))};var tn={};Object.defineProperty(tn,"__esModule",{value:!0}),tn.initRecipeSchemas=void 0;const nn=Pe;tn.initRecipeSchemas=function(e,t){const n=nn.Reference.bind(void 0,e),i=nn.StringNode.bind(void 0,t);e.register("recipe",nn.Mod(nn.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[nn.Switch]:[{push:"type"}],[nn.Case]:{"minecraft:crafting_shaped":{group:nn.Opt(i({enum:"recipe_group",additional:!0})),pattern:nn.ListNode(i()),key:nn.MapNode(i(),n("recipe_ingredient")),result:n("recipe_result")},"minecraft:crafting_shapeless":{group:nn.Opt(i()),ingredients:nn.ListNode(n("recipe_ingredient")),result:n("recipe_result")},"minecraft:smelting":{group:nn.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:nn.Opt(nn.NumberNode()),cookingtime:nn.Opt(nn.Mod(nn.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:nn.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:nn.Opt(nn.NumberNode()),cookingtime:nn.Opt(nn.Mod(nn.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:nn.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:nn.Opt(nn.NumberNode()),cookingtime:nn.Opt(nn.Mod(nn.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:nn.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:nn.Opt(nn.NumberNode()),cookingtime:nn.Opt(nn.Mod(nn.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:nn.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:nn.NumberNode({integer:!0})},"minecraft:smithing":{group:nn.Opt(i()),base:n("recipe_ingredient_object"),addition:n("recipe_ingredient_object"),result:n("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",nn.Mod(nn.ChoiceNode([{type:"object",node:n("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:nn.ListNode(n("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",nn.Mod(nn.ObjectNode({item:nn.Opt(i({validator:"resource",params:{pool:"item"}})),tag:nn.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",nn.Mod(nn.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:nn.Opt(nn.Mod(nn.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var rn={};Object.defineProperty(rn,"__esModule",{value:!0}),rn.initTagsSchemas=void 0;const on=Pe;rn.initTagsSchemas=function(e,t){const n=on.StringNode.bind(void 0,t),i=e=>on.Mod(on.ObjectNode({replace:on.Opt(on.BooleanNode()),values:on.ListNode(on.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:on.ObjectNode({id:n({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:on.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 an={};Object.defineProperty(an,"__esModule",{value:!0}),an.initTextComponentSchemas=void 0;const sn=Pe;an.initTextComponentSchemas=function(e,t){const n=sn.Reference.bind(void 0,e),i=sn.StringNode.bind(void 0,t),r=e=>{var t;return e instanceof Array?r(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",sn.Mod(sn.ChoiceNode([{type:"object",node:n("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:r(e[0])}:"object"==typeof e?e:{text:r(e)}},{type:"list",node:n("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:r},{type:"number",node:sn.NumberNode(),change:e=>{const t=parseFloat(r(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:sn.BooleanNode(),change:e=>{const t=r(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={bold:sn.Opt(sn.BooleanNode()),italic:sn.Opt(sn.BooleanNode()),underlined:sn.Opt(sn.BooleanNode()),strikethrough:sn.Opt(sn.BooleanNode()),obfuscated:sn.Opt(sn.BooleanNode()),insertion:sn.Opt(i()),clickEvent:sn.Opt(sn.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[sn.Switch]:[{push:"action"}],[sn.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:sn.Opt(sn.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[sn.Switch]:[{push:"action"}],[sn.Case]:{show_text:{value:sn.Opt(n("text_component"))},show_item:{value:sn.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}}))},show_entity:{value:sn.Opt(sn.ObjectNode({name:sn.Opt(i()),type:sn.Opt(i()),id:sn.Opt(i())}))}}})),extra:sn.Opt(n("text_component_list"))};e.register("text_component_object",sn.Mod(sn.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:sn.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:sn.ObjectNode(s({translate:i(),with:sn.Opt(n("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:sn.ObjectNode(s({score:sn.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:sn.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:sn.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:sn.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:sn.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:sn.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:sn.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:sn.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:sn.Opt(sn.BooleanNode())},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",sn.Mod(sn.ListNode(n("text_component")),{default:()=>[{text:""}]}))},Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.initSchemas=void 0;const cn=Bt,ln=It,un=Lt,dn=Vt,hn=Kt,pn=Qt,mn=Mt,fn=tn,gn=rn,_n=an;Dt.initSchemas=function(e,t){un.initCommonSchemas(e,t),mn.initPredicatesSchemas(e,t),cn.initAdvancementSchemas(e,t),ln.initAssetsSchemas(e,t),dn.initConditionSchemas(e,t),hn.initLootTableSchemas(e,t),pn.initPackMcmetaSchemas(e,t),fn.initRecipeSchemas(e,t),gn.initTagsSchemas(e,t),_n.initTextComponentSchemas(e,t)};var bn=je&&je.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),vn=je&&je.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),yn=je&&je.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&bn(t,e,n);return vn(t,e),t};Object.defineProperty(Ot,"__esModule",{value:!0});var wn=Ot.getSchemas=Ot.getCollections=void 0;const xn=Pe,An=Ft,Nn=Dt;var kn=Ot.lootContext=yn(Xt);var Cn=Ot.getCollections=function(){const e=new xn.CollectionRegistry;return An.initCollections(e),e};wn=Ot.getSchemas=function(e){const t=new xn.SchemaRegistry;return Nn.initSchemas(t,e),t};var En=Object.freeze(Object.assign(Object.create(null),Ot,{[Symbol.toStringTag]:"Module",get getSchemas(){return wn},get getCollections(){return Cn},lootContext:kn,default:Ot})),Sn={},On={};Object.defineProperty(On,"__esModule",{value:!0}),On.initCollections=void 0,On.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 Fn={},Dn={},Bn={};!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=Pe;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(n,i){const r=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,n);n.register("block_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(r(),r(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),n.register("fluid_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(r(),r()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),n.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]})),e.Range=e=>t.ChoiceNode([...(null==e?void 0:e.forceRange)?[]:[{type:"number",node:t.NumberNode(e),change:e=>{var t,n,i;return void 0===e?0:null!==(i=null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n: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:r({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,n;return{type:"minecraft:binomial",n:"number"==typeof e?e:void 0===e?1:null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n: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:r({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(r(),r(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:r({enum:"entity_source"}),predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:r({enum:"entity_source"}),scores:t.MapNode(r({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:r({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:r({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=n=>t.ObjectOrPreset(r({validator:"resource",params:{pool:"$dimension_type"}}),n,{"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=n=>t.ObjectOrPreset(r({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),n,{"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"}}}})}}(Bn),Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.initAdvancementSchemas=void 0;const Ln=Pe,Mn=Bn;Dn.initAdvancementSchemas=function(e,t){const n=Ln.Reference.bind(void 0,e),i=Ln.StringNode.bind(void 0,t),r=Ln.ChoiceNode([{type:"object",node:Ln.Opt(n("entity_predicate")),change:e=>{var t,n;return null!==(n=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==n?n:{}}},{type:"list",node:Ln.ListNode(n("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",Ln.Mod(Ln.ObjectNode({display:Ln.Opt(Ln.Mod(Ln.ObjectNode({icon:Ln.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:Ln.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:n("text_component"),description:n("text_component"),background:Ln.Opt(i()),frame:Ln.Opt(i({enum:["task","challenge","goal"]})),show_toast:Ln.Opt(Ln.BooleanNode()),announce_to_chat:Ln.Opt(Ln.BooleanNode()),hidden:Ln.Opt(Ln.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Ln.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:Ln.MapNode(i(),n("advancement_criteria")),requirements:Ln.Opt(Ln.ListNode(Ln.ListNode(i()))),rewards:Ln.Opt(Ln.ObjectNode({function:Ln.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:Ln.Opt(Ln.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Ln.Opt(Ln.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:Ln.Opt(Ln.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Ln.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Ln.Opt(Ln.ObjectNode({player:Ln.Mod(r,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[Ln.Switch]:["pop",{push:"trigger"}],[Ln.Case]:{"minecraft:bee_nest_destroyed":{block:Ln.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:Ln.Opt(Ln.NumberNode({integer:!0})),item:Ln.Opt(n("item_predicate"))},"minecraft:bred_animals":{parent:r,partner:r,child:r},"minecraft:brewed_potion":{potion:Ln.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Ln.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:Ln.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:Ln.Opt(Ln.ListNode(r))},"minecraft:construct_beacon":{level:Ln.Opt(Mn.Range())},"minecraft:consume_item":{item:Ln.Opt(n("item_predicate"))},"minecraft:cured_zombie_villager":{villager:r,zombie:r},"minecraft:effects_changed":{effects:Ln.Opt(Ln.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),n("status_effect_predicate")))},"minecraft:enter_block":{block:Ln.Opt(i({validator:"resource",params:{pool:"block"}})),state:Ln.Opt(Ln.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:Ln.Opt(Mn.Range()),item:Ln.Opt(n("item_predicate"))},"minecraft:entity_hurt_player":{damage:Ln.Opt(n("damage_predicate"))},"minecraft:entity_killed_player":{entity:r,killing_blow:Ln.Opt(n("damage_source_predicate"))},"minecraft:filled_bucket":{item:Ln.Opt(n("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:r,item:Ln.Opt(n("item_predicate"))},"minecraft:hero_of_the_village":{location:Ln.Opt(n("location_predicate"))},"minecraft:inventory_changed":{slots:Ln.Opt(Ln.ObjectNode({empty:Ln.Opt(Mn.Range()),occupied:Ln.Opt(Mn.Range()),full:Ln.Opt(Mn.Range())})),items:Ln.Opt(Ln.ListNode(n("item_predicate")))},"minecraft:item_durability_changed":{delta:Ln.Opt(Mn.Range()),durability:Ln.Opt(Mn.Range()),item:Ln.Opt(n("item_predicate"))},"minecraft:item_used_on_block":{item:Ln.Opt(n("item_predicate")),location:Ln.Opt(n("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:Ln.Opt(Mn.Range()),victims:Ln.Opt(Ln.ListNode(r))},"minecraft:levitation":{distance:Ln.Opt(Mn.Range()),duration:Ln.Opt(Mn.Range())},"minecraft:location":{location:Ln.Opt(n("location_predicate"))},"minecraft:nether_travel":{distance:Ln.Opt(Mn.Range()),entered:Ln.Opt(n("location_predicate")),exited:Ln.Opt(n("location_predicate"))},"minecraft:placed_block":{block:Ln.Opt(i({validator:"resource",params:{pool:"block"}})),state:Ln.Opt(Ln.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Ln.Opt(n("item_predicate")),location:Ln.Opt(n("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:Ln.Opt(n("damage_predicate")),entity:r},"minecraft:player_interacted_with_entity":{item:Ln.Opt(n("item_predicate")),entity:r},"minecraft:player_killed_entity":{entity:r,killing_blow:Ln.Opt(n("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:Ln.Opt(n("location_predicate"))},"minecraft:slide_down_block":{block:Ln.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Ln.Opt(n("item_predicate"))},"minecraft:summoned_entity":{entity:r},"minecraft:tame_animal":{entity:r},"minecraft:target_hit":{projectile:r,shooter:r,signal_strength:Ln.Opt(Mn.Range({integer:!0}))},"minecraft:thrown_item_picked_up_by_entity":{entity:Ln.Opt(n("entity_predicate")),item:Ln.Opt(n("item_predicate"))},"minecraft:used_ender_eye":{distance:Ln.Opt(Mn.Range())},"minecraft:used_totem":{item:Ln.Opt(n("item_predicate"))},"minecraft:villager_trade":{villager:Ln.Opt(n("entity_predicate")),item:Ln.Opt(n("item_predicate"))},"minecraft:voluntary_exile":{location:n("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Tn={},Rn={};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.initModelSchemas=void 0;const $n=Pe;Rn.initModelSchemas=function(e,t){$n.Reference.bind(void 0,e);const n=$n.StringNode.bind(void 0,t),i=(e,t,n)=>$n.ListNode($n.NumberNode({min:t,max:n}),{minLength:e,maxLength:e}),r=$n.ChoiceNode([{type:"alias",match:e=>"string"==typeof e&&e.startsWith("#"),node:n(),change:e=>"string"==typeof e?`#${e}`:"#0"},{type:"reference",match:e=>"string"==typeof e,node:n({validator:"resource",params:{pool:"$texture"}}),change:e=>"string"==typeof e?e.replace(/^#/,""):""}],{choiceContext:"texture"});e.register("model",$n.Mod($n.ObjectNode({parent:$n.Opt(n({validator:"resource",params:{pool:"$model"}})),ambientocclusion:$n.Opt($n.BooleanNode()),gui_light:$n.Opt(n({enum:"gui_light"})),textures:$n.Opt($n.MapNode(n(),r)),elements:$n.Opt($n.ListNode($n.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:$n.Opt($n.ObjectNode({origin:i(3),axis:n({enum:"axis"}),angle:$n.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:$n.Opt($n.BooleanNode())})),shade:$n.Opt($n.BooleanNode()),faces:$n.MapNode(n({enum:"direction"}),$n.ObjectNode({texture:r,uv:$n.Opt(i(4)),cullface:$n.Opt(n({enum:"direction"})),rotation:$n.Opt($n.NumberNode({integer:!0})),tintindex:$n.Opt($n.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:$n.Opt($n.MapNode(n({enum:"display_position"}),$n.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:$n.Opt($n.ListNode($n.ObjectNode({predicate:$n.MapNode(n({enum:"item_model_predicates"}),$n.NumberNode()),model:n({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var In={};Object.defineProperty(In,"__esModule",{value:!0}),In.initBlockDefinitionSchemas=void 0;const jn=Pe;In.initBlockDefinitionSchemas=function(e,t){const n=jn.Reference.bind(void 0,e),i=jn.StringNode.bind(void 0,t);e.register("block_definition",jn.Mod(jn.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:jn.ObjectNode({variants:jn.MapNode(i(),n("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:jn.ObjectNode({multipart:jn.ListNode(jn.ObjectNode({when:jn.Opt(n("multipart_condition")),apply:n("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const r={model:i({validator:"resource",params:{pool:"$model"}}),x:jn.Opt(jn.NumberEnum({integer:!0,values:[0,90,180,270]})),y:jn.Opt(jn.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:jn.Opt(jn.BooleanNode())};e.register("model_variant",jn.ChoiceNode([{type:"object",node:jn.ObjectNode(r),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:jn.ListNode(jn.ObjectNode(c(s({},r),{weight:jn.Opt(jn.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",jn.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:jn.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:jn.ObjectNode({OR:jn.ListNode(n("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.initAssetsSchemas=void 0;const Pn=Rn,zn=In;Tn.initAssetsSchemas=function(e,t){zn.initBlockDefinitionSchemas(e,t),Pn.initModelSchemas(e,t)};var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.initConditionSchemas=void 0;const Wn=Pe,Hn=Bn;Un.initConditionSchemas=function(e,t){const n=Wn.Reference.bind(void 0,e),i=Wn.StringNode.bind(void 0,t);e.register("predicate",Wn.ObjectOrList(n("condition"),{choiceContext:"condition"})),e.register("condition",Wn.Mod(Wn.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[Wn.Switch]:[{push:"condition"}],[Wn.Case]:Hn.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.initDimensionSchemas=void 0;const Gn=Pe,qn=Bn;Vn.initDimensionSchemas=function(e,t){const n=Gn.Reference.bind(void 0,e),i=Gn.StringNode.bind(void 0,t),r=e=>Gn.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",Gn.Mod(Gn.ObjectNode({type:qn.DimensionTypePresets(n("dimension_type")),generator:Gn.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Gn.Switch]:[{push:"type"}],[Gn.Case]:{"minecraft:noise":{seed:Gn.NumberNode({integer:!0}),settings:qn.NoiseSettingsPresets(n("noise_settings")),biome_source:Gn.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Gn.Switch]:[{push:"type"}],[Gn.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:Gn.NumberNode({integer:!0}),preset:Gn.Opt(i({enum:["nether"]})),altitude_noise:r(n("generator_biome_noise")),temperature_noise:r(n("generator_biome_noise")),humidity_noise:r(n("generator_biome_noise")),weirdness_noise:r(n("generator_biome_noise")),biomes:r(Gn.Mod(Gn.ListNode(n("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:Gn.Opt(Gn.NumberNode({integer:!0,min:0,max:62})),biomes:Gn.ListNode(i({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Gn.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:Gn.NumberNode({integer:!0}),large_biomes:Gn.Opt(Gn.BooleanNode()),legacy_biome_init_layer:Gn.Opt(Gn.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Gn.ObjectNode({biome:Gn.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Gn.Opt(Gn.BooleanNode()),features:Gn.Opt(Gn.BooleanNode()),layers:Gn.ListNode(n("generator_layer")),structures:n("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",Gn.Mod(Gn.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Gn.ObjectNode({altitude:Gn.NumberNode(),temperature:Gn.NumberNode(),humidity:Gn.NumberNode(),weirdness:Gn.NumberNode(),offset:Gn.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",Gn.Mod(Gn.ObjectNode({firstOctave:Gn.NumberNode({integer:!0}),amplitudes:Gn.ListNode(Gn.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.initDimensionTypeSchemas=void 0;const Xn=Pe,Jn=Bn;Kn.initDimensionTypeSchemas=function(e,t){const n=Xn.StringNode.bind(void 0,t);e.register("dimension_type",Xn.Mod(Xn.ObjectNode({name:Xn.Mod(n({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:Xn.BooleanNode(),natural:Xn.BooleanNode(),piglin_safe:Xn.BooleanNode(),respawn_anchor_works:Xn.BooleanNode(),bed_works:Xn.BooleanNode(),has_raids:Xn.BooleanNode(),has_skylight:Xn.BooleanNode(),has_ceiling:Xn.BooleanNode(),coordinate_scale:Xn.NumberNode({min:1e-5,max:3e7}),ambient_light:Xn.NumberNode(),fixed_time:Xn.Opt(Xn.NumberNode({integer:!0})),logical_height:Xn.NumberNode({integer:!0,min:0,max:256}),effects:Xn.Opt(n({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:n({validator:"resource",params:{pool:"$tag/block"}})},{context:"dimension_type"}),{default:()=>Jn.DefaultDimensionType}))};var Yn={},Zn={};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.LootFunctions=Zn.LootConditions=Zn.LootCopySources=Zn.LootEntitySources=Zn.LootTableTypes=void 0,Zn.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]}]]),Zn.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Zn.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Zn.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",[]]]),Zn.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(Yn,"__esModule",{value:!0}),Yn.initLootTableSchemas=void 0;const Qn=Pe,ei=Zn,ti=Bn;Yn.initLootTableSchemas=function(e,t){const n=Qn.Reference.bind(void 0,e),i=Qn.StringNode.bind(void 0,t),r={conditions:Qn.Opt(Qn.ListNode(n("loot_condition")))},o=s({functions:Qn.Opt(Qn.ListNode(n("loot_function")))},r);function a(e,n,i){const r=[],o=i=>t.get(n).filter((t=>{var n;return(null!==(n=e.get(t))&&void 0!==n?n:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of ei.LootTableTypes){const e=[...a,...s];r.push({match:e=>e.getModel().get(new Qn.Path(["type"]))===t,node:i(o(e))})}return r.push({match:e=>!0,node:i(n)}),Qn.SwitchNode(r)}const l=a(ei.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),u=a(ei.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(ei.LootEntitySources,"entity_source",(e=>i({enum:e}))),h=a(ei.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",Qn.Mod(Qn.ObjectNode({type:Qn.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Qn.Opt(Qn.ListNode(Qn.Mod(Qn.ObjectNode(s({rolls:ti.Range({allowBinomial:!0,integer:!0}),bonus_rolls:Qn.Opt(ti.Range({integer:!0})),entries:Qn.ListNode(n("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Qn.Opt(Qn.ListNode(n("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",Qn.Mod(Qn.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Qn.Opt(Qn.Mod(Qn.NumberNode({integer:!0,min:1}),p)),quality:Qn.Opt(Qn.Mod(Qn.NumberNode({integer:!0}),p)),[Qn.Switch]:[{push:"type"}],[Qn.Case]:{"minecraft:alternatives":s({children:Qn.ListNode(n("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Qn.ListNode(n("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:Qn.ListNode(n("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:Qn.Opt(Qn.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Qn.Mod(Qn.ObjectNode({function:u,[Qn.Switch]:[{push:"function"}],[Qn.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:Qn.Mod(Qn.ObjectNode({bonusMultiplier:Qn.Mod(Qn.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:Qn.Mod(Qn.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:Qn.Mod(Qn.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:h},"minecraft:copy_nbt":{source:h,ops:Qn.ListNode(Qn.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:Qn.ListNode(i({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:Qn.Opt(Qn.ListNode(i({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:ti.Range({allowBinomial:!0}),treasure:Qn.Opt(Qn.BooleanNode())},"minecraft:exploration_map":{destination:Qn.Opt(i({enum:"map_feature"})),decoration:Qn.Opt(i({enum:"map_decoration"})),zoom:Qn.Opt(Qn.NumberNode({integer:!0})),search_radius:Qn.Opt(Qn.NumberNode({integer:!0})),skip_existing_chunks:Qn.Opt(Qn.BooleanNode())},"minecraft:fill_player_head":{entity:d},"minecraft:limit_count":{limit:ti.Range({bounds:!0})},"minecraft:looting_enchant":{count:ti.Range({bounds:!0}),limit:Qn.Opt(Qn.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:Qn.ListNode(n("attribute_modifier"))},"minecraft:set_contents":{entries:Qn.ListNode(n("loot_entry"))},"minecraft:set_count":{count:ti.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:ti.Range({forceRange:!0})},"minecraft:set_loot_table":{name:i({validator:"resource",params:{pool:"$loot_table"}}),seed:Qn.Opt(Qn.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:Qn.Opt(d),lore:Qn.ListNode(n("text_component")),replace:Qn.Opt(Qn.BooleanNode())},"minecraft:set_name":{entity:Qn.Opt(d),name:Qn.Opt(n("text_component"))},"minecraft:set_nbt":{tag:i({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:Qn.Opt(Qn.ListNode(Qn.ObjectNode({type:i({validator:"resource",params:{pool:"mob_effect"}}),duration:ti.Range()})))}},o={};return t.get("loot_function_type").forEach((t=>{o[t]=s(s({},e[t]),r)})),o})()},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Qn.Mod(Qn.ObjectNode({condition:l,[Qn.Switch]:[{push:"condition"}],[Qn.Case]:c(s({},ti.ConditionCases),{"minecraft:entity_properties":{entity:d,predicate:n("entity_predicate")},"minecraft:entity_scores":{entity:d,scores:Qn.MapNode(i({validator:"objective"}),ti.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Qn.Mod(Qn.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:ti.Range({bounds:!0}),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:Qn.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.initPackMcmetaSchemas=void 0;const ii=Pe;ni.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",ii.Mod(ii.ObjectNode({pack:ii.Mod(ii.ObjectNode({pack_format:ii.Mod(ii.NumberNode({integer:!0,min:6,max:6}),{default:()=>6}),description:ii.Reference(e,"text_component")}),{default:()=>({pack_format:6,description:""})})}),{default:()=>({pack:{pack_format:6,description:""}})}))};var ri={};Object.defineProperty(ri,"__esModule",{value:!0}),ri.initPredicatesSchemas=void 0;const oi=Pe,ai=Bn;ri.initPredicatesSchemas=function(e,t){const n=oi.Reference.bind(void 0,e),i=oi.StringNode.bind(void 0,t),r=oi.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:oi.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:oi.ObjectNode({min:oi.Opt(oi.NumberNode({integer:!0})),max:oi.Opt(oi.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:oi.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",oi.ObjectNode({item:oi.Opt(i({validator:"resource",params:{pool:"item"}})),tag:oi.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:oi.Opt(ai.Range()),durability:oi.Opt(ai.Range()),potion:oi.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:oi.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:oi.Opt(oi.ListNode(n("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",oi.ObjectNode({enchantment:oi.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:oi.Opt(ai.Range())},{context:"enchantment"})),e.register("block_predicate",oi.ObjectNode({block:oi.Opt(i({validator:"resource",params:{pool:"block"}})),tag:oi.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:oi.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:oi.Opt(oi.MapNode(i(),r,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",oi.ObjectNode({fluid:oi.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:oi.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:oi.Opt(oi.MapNode(i(),r))},{context:"fluid"})),e.register("location_predicate",oi.ObjectNode({position:oi.Opt(oi.ObjectNode({x:oi.Opt(ai.Range()),y:oi.Opt(ai.Range()),z:oi.Opt(ai.Range())})),biome:oi.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:oi.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:oi.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:oi.Opt(oi.ObjectNode({light:oi.Opt(ai.Range({integer:!0,min:0,max:15}))})),smokey:oi.Opt(oi.BooleanNode()),block:oi.Opt(n("block_predicate")),fluid:oi.Opt(n("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",oi.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:ai.Range(),[oi.Switch]:[{push:"type"}],[oi.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",oi.ObjectNode({gamemode:oi.Opt(i({enum:"gamemode"})),level:oi.Opt(ai.Range()),advancements:oi.Opt(oi.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),oi.ChoiceNode([{type:"boolean",node:oi.BooleanNode(),change:e=>!0},{type:"object",node:oi.MapNode(i(),oi.BooleanNode())}]))),recipes:oi.Opt(oi.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),oi.BooleanNode())),stats:oi.Opt(oi.ListNode(n("statistic_predicate")))},{context:"player"})),e.register("status_effect_predicate",oi.ObjectNode({amplifier:oi.Opt(ai.Range()),duration:oi.Opt(ai.Range()),ambient:oi.Opt(oi.BooleanNode()),visible:oi.Opt(oi.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",oi.ObjectNode({x:oi.Opt(ai.Range()),y:oi.Opt(ai.Range()),z:oi.Opt(ai.Range()),absolute:oi.Opt(ai.Range()),horizontal:oi.Opt(ai.Range())},{context:"distance"})),e.register("entity_predicate",oi.ObjectNode({type:oi.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:oi.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:oi.Opt(i({validator:"team"})),location:oi.Opt(n("location_predicate")),distance:oi.Opt(n("distance_predicate")),flags:oi.Opt(oi.ObjectNode({is_on_fire:oi.Opt(oi.BooleanNode()),is_sneaking:oi.Opt(oi.BooleanNode()),is_sprinting:oi.Opt(oi.BooleanNode()),is_swimming:oi.Opt(oi.BooleanNode()),is_baby:oi.Opt(oi.BooleanNode())})),equipment:oi.Opt(oi.MapNode(i({enum:"slot"}),n("item_predicate"))),vehicle:oi.Opt(n("entity_predicate")),targeted_entity:oi.Opt(n("entity_predicate")),player:oi.Opt(n("player_predicate")),fishing_hook:oi.Opt(oi.ObjectNode({in_open_water:oi.Opt(oi.BooleanNode())})),effects:oi.Opt(oi.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),n("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",oi.ObjectNode({is_explosion:oi.Opt(oi.BooleanNode()),is_fire:oi.Opt(oi.BooleanNode()),is_magic:oi.Opt(oi.BooleanNode()),is_projectile:oi.Opt(oi.BooleanNode()),is_lightning:oi.Opt(oi.BooleanNode()),bypasses_armor:oi.Opt(oi.BooleanNode()),bypasses_invulnerability:oi.Opt(oi.BooleanNode()),bypasses_magic:oi.Opt(oi.BooleanNode()),source_entity:oi.Opt(n("entity_predicate")),direct_entity:oi.Opt(n("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",oi.ObjectNode({dealt:oi.Opt(ai.Range()),taken:oi.Opt(ai.Range()),blocked:oi.Opt(oi.BooleanNode()),source_entity:oi.Opt(n("entity_predicate")),type:oi.Opt(n("damage_source_predicate"))},{context:"damage"}))};var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.initRecipeSchemas=void 0;const ci=Pe;si.initRecipeSchemas=function(e,t){const n=ci.Reference.bind(void 0,e),i=ci.StringNode.bind(void 0,t);e.register("recipe",ci.Mod(ci.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[ci.Switch]:[{push:"type"}],[ci.Case]:{"minecraft:crafting_shaped":{group:ci.Opt(i({enum:"recipe_group",additional:!0})),pattern:ci.ListNode(i()),key:ci.MapNode(i(),n("recipe_ingredient")),result:n("recipe_result")},"minecraft:crafting_shapeless":{group:ci.Opt(i()),ingredients:ci.ListNode(n("recipe_ingredient")),result:n("recipe_result")},"minecraft:smelting":{group:ci.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ci.Opt(ci.NumberNode()),cookingtime:ci.Opt(ci.Mod(ci.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:ci.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ci.Opt(ci.NumberNode()),cookingtime:ci.Opt(ci.Mod(ci.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:ci.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ci.Opt(ci.NumberNode()),cookingtime:ci.Opt(ci.Mod(ci.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:ci.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ci.Opt(ci.NumberNode()),cookingtime:ci.Opt(ci.Mod(ci.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:ci.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:ci.NumberNode({integer:!0})},"minecraft:smithing":{group:ci.Opt(i()),base:n("recipe_ingredient_object"),addition:n("recipe_ingredient_object"),result:n("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",ci.Mod(ci.ChoiceNode([{type:"object",node:n("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:ci.ListNode(n("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",ci.Mod(ci.ObjectNode({item:ci.Opt(i({validator:"resource",params:{pool:"item"}})),tag:ci.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",ci.Mod(ci.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:ci.Opt(ci.Mod(ci.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var li={};Object.defineProperty(li,"__esModule",{value:!0}),li.initTagsSchemas=void 0;const ui=Pe;li.initTagsSchemas=function(e,t){const n=ui.StringNode.bind(void 0,t),i=e=>ui.Mod(ui.ObjectNode({replace:ui.Opt(ui.BooleanNode()),values:ui.ListNode(ui.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:ui.ObjectNode({id:n({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:ui.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 di={};Object.defineProperty(di,"__esModule",{value:!0}),di.initTextComponentSchemas=void 0;const hi=Pe;di.initTextComponentSchemas=function(e,t){const n=hi.Reference.bind(void 0,e),i=hi.StringNode.bind(void 0,t),r=e=>{var t;return e instanceof Array?r(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",hi.Mod(hi.ChoiceNode([{type:"object",node:n("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:r(e[0])}:"object"==typeof e?e:{text:r(e)}},{type:"list",node:n("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:r},{type:"number",node:hi.NumberNode(),change:e=>{const t=parseFloat(r(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:hi.BooleanNode(),change:e=>{const t=r(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:hi.Opt(i()),font:hi.Opt(i()),bold:hi.Opt(hi.BooleanNode()),italic:hi.Opt(hi.BooleanNode()),underlined:hi.Opt(hi.BooleanNode()),strikethrough:hi.Opt(hi.BooleanNode()),obfuscated:hi.Opt(hi.BooleanNode()),insertion:hi.Opt(i()),clickEvent:hi.Opt(hi.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[hi.Switch]:[{push:"action"}],[hi.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:hi.Opt(hi.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[hi.Switch]:[{push:"action"}],[hi.Case]:{show_text:{value:hi.Opt(n("text_component")),contents:hi.Opt(n("text_component"))},show_item:{value:hi.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:hi.Opt(hi.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:hi.Opt(hi.NumberNode({integer:!0})),tag:hi.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:hi.Opt(hi.ObjectNode({name:hi.Opt(i()),type:hi.Opt(i()),id:hi.Opt(i())})),contents:hi.Opt(hi.Mod(hi.ObjectNode({name:hi.Opt(n("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:hi.Opt(n("text_component_list"))};e.register("text_component_object",hi.Mod(hi.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:hi.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:hi.ObjectNode(s({translate:i(),with:hi.Opt(n("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:hi.ObjectNode(s({score:hi.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:hi.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:hi.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:hi.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:hi.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:hi.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:hi.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:hi.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:hi.Opt(hi.BooleanNode())},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",hi.Mod(hi.ListNode(n("text_component")),{default:()=>[{text:""}]}))};var pi={},mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.initBiomeSchemas=void 0;const fi=Pe;mi.initBiomeSchemas=function(e,t){const n=fi.StringNode.bind(void 0,t);e.register("biome",fi.Mod(fi.ObjectNode({surface_builder:n({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:fi.NumberNode(),scale:fi.NumberNode(),temperature:fi.NumberNode(),downfall:fi.NumberNode(),precipitation:n({enum:["none","rain","snow"]}),temperature_modifier:fi.Opt(n({enum:["none","frozen"]})),category:n({enum:"biome_category"}),player_spawn_friendly:fi.Opt(fi.BooleanNode()),creature_spawn_probability:fi.Opt(fi.NumberNode({min:0,max:1})),effects:fi.ObjectNode({sky_color:fi.NumberNode({color:!0}),fog_color:fi.NumberNode({color:!0}),water_color:fi.NumberNode({color:!0}),water_fog_color:fi.NumberNode({color:!0}),grass_color:fi.Opt(fi.NumberNode({color:!0})),foliage_color:fi.Opt(fi.NumberNode({color:!0})),grass_color_modifier:fi.Opt(n({enum:["none","dark_forest","swamp"]})),ambient_sound:fi.Opt(n()),mood_sound:fi.Opt(fi.ObjectNode({sound:n(),tick_delay:fi.NumberNode({integer:!0}),block_search_extent:fi.NumberNode({integer:!0}),offset:fi.NumberNode()})),additions_sound:fi.Opt(fi.ObjectNode({sound:n(),tick_chance:fi.NumberNode({min:0,max:1})})),music:fi.Opt(fi.ObjectNode({sound:n(),min_delay:fi.NumberNode({integer:!0,min:0}),max_delay:fi.NumberNode({integer:!0,min:0}),replace_current_music:fi.BooleanNode()})),particle:fi.Opt(fi.ObjectNode({options:fi.ObjectNode({type:n()}),probability:fi.NumberNode({min:0,max:1})}))}),starts:fi.ListNode(n({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:fi.MapNode(n({enum:["water_ambient","ambient","misc","water_creature","creature","monster"]}),fi.Mod(fi.ListNode(fi.ObjectNode({type:n({validator:"resource",params:{pool:"entity_type"}}),weight:fi.NumberNode({integer:!0}),minCount:fi.NumberNode({integer:!0}),maxCount:fi.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:fi.MapNode(n({validator:"resource",params:{pool:"entity_type"}}),fi.Mod(fi.ObjectNode({energy_budget:fi.NumberNode(),charge:fi.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:fi.MapNode(n({enum:["air","liquid"]}),fi.Mod(fi.ListNode(n({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:fi.ListNode(fi.Mod(fi.ListNode(n({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 gi={};Object.defineProperty(gi,"__esModule",{value:!0}),gi.initCarverSchemas=void 0;const _i=Pe;gi.initCarverSchemas=function(e,t){const n=_i.StringNode.bind(void 0,t);e.register("configured_carver",_i.Mod(_i.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/carver"}}),config:_i.ObjectNode({probability:_i.NumberNode({min:0,max:1})})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var bi={};Object.defineProperty(bi,"__esModule",{value:!0}),bi.initDecoratorSchemas=void 0;const vi=Pe,yi=Bn;bi.initDecoratorSchemas=function(e,t){const n=vi.Reference.bind(void 0,e),i=vi.StringNode.bind(void 0,t),r={maximum:vi.NumberNode({integer:!0}),bottom_offset:vi.NumberNode({integer:!0}),top_offset:vi.NumberNode({integer:!0})},o={chance:vi.NumberNode({integer:!0,min:0})},a={count:yi.UniformInt({min:-10,max:128,maxSpread:128})};e.register("configured_decorator",vi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/decorator"}}),config:vi.ObjectNode({[vi.Switch]:["pop",{push:"type"}],[vi.Case]:{"minecraft:carving_mask":{step:i({enum:"generation_step"}),probability:vi.NumberNode({min:0,max:1})},"minecraft:chance":o,"minecraft:count":a,"minecraft:count_extra":{count:vi.NumberNode({integer:!0}),extra_count:vi.NumberNode({integer:!0}),extra_chance:vi.NumberNode({min:0,max:1})},"minecraft:count_multilayer":a,"minecraft:count_noise":{noise_level:vi.NumberNode(),below_noise:vi.NumberNode({integer:!0}),above_noise:vi.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:vi.NumberNode({integer:!0}),noise_factor:vi.NumberNode(),noise_offset:vi.Opt(vi.NumberNode())},"minecraft:decorated":{outer:n("configured_decorator"),inner:n("configured_decorator")},"minecraft:depth_average":{baseline:vi.NumberNode({integer:!0}),spread:vi.NumberNode({integer:!0})},"minecraft:fire":a,"minecraft:glowstone":a,"minecraft:lava_lake":o,"minecraft:range":r,"minecraft:range_biased":r,"minecraft:range_very_biased":r,"minecraft:water_lake":o}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var wi={},xi={};Object.defineProperty(xi,"__esModule",{value:!0}),xi.initProcessorListSchemas=void 0;const Ai=Pe;xi.initProcessorListSchemas=function(e,t){const n=Ai.Reference.bind(void 0,e),i=Ai.StringNode.bind(void 0,t);e.register("processor_list",Ai.Mod(Ai.ObjectNode({processors:Ai.ListNode(n("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",Ai.Mod(Ai.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[Ai.Switch]:[{push:"processor_type"}],[Ai.Case]:{"minecraft:block_age":{mossiness:Ai.NumberNode()},"minecraft:block_ignore":{blocks:Ai.ListNode(n("block_state"))},"minecraft:block_rot":{integrity:Ai.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:Ai.NumberNode({integer:!0})},"minecraft:rule":{rules:Ai.ListNode(n("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",Ai.Mod(Ai.ObjectNode({position_predicate:Ai.Opt(n("pos_rule_test")),location_predicate:n("rule_test"),input_predicate:n("rule_test"),output_state:n("block_state"),output_nbt:Ai.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 r={min_dist:Ai.NumberNode({min:0,max:255,integer:!0}),max_dist:Ai.NumberNode({min:0,max:255,integer:!0}),min_chance:Ai.NumberNode({min:0,max:1}),max_chance:Ai.NumberNode({min:0,max:1})};e.register("pos_rule_test",Ai.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[Ai.Switch]:[{push:"predicate_type"}],[Ai.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},r),"minecraft:linear_pos":r}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",Ai.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[Ai.Switch]:[{push:"predicate_type"}],[Ai.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:n("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:Ai.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:n("block_state"),probability:Ai.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(wi,"__esModule",{value:!0}),wi.initFeatureSchemas=void 0;const Ni=Pe,ki=Bn;wi.initFeatureSchemas=function(e,t){const n=Ni.Reference.bind(void 0,e),i=Ni.StringNode.bind(void 0,t),r={can_replace:Ni.BooleanNode(),project:Ni.BooleanNode(),need_water:Ni.BooleanNode(),xspread:Ni.NumberNode({integer:!0}),yspread:Ni.NumberNode({integer:!0}),zspread:Ni.NumberNode({integer:!0}),tries:Ni.NumberNode({integer:!0}),state_provider:n("block_state_provider"),block_placer:n("block_placer"),whitelist:Ni.ListNode(n("block_state")),blacklist:Ni.ListNode(n("block_state"))},o={state:n("block_state"),radius:ki.UniformInt({min:0,max:4,maxSpread:4}),half_height:Ni.NumberNode({integer:!0,min:0,max:4}),targets:Ni.ListNode(n("block_state"))},a={cap_provider:n("block_state_provider"),stem_provider:n("block_state_provider"),foliage_radius:Ni.Opt(Ni.NumberNode({integer:!0}))},s={state:n("block_state"),size:Ni.NumberNode({integer:!0,min:0,max:64}),target:n("rule_test")},c={count:ki.UniformInt({min:-10,max:128,maxSpread:128})},l=Ni.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:n("configured_feature")}],{choiceContext:"feature"});e.register("configured_feature",Ni.Mod(Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:Ni.ObjectNode({[Ni.Switch]:["pop",{push:"type"}],[Ni.Case]:{"minecraft:bamboo":{probability:Ni.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:ki.UniformInt({min:0,max:2,maxSpread:1}),height:ki.UniformInt({min:1,max:5,maxSpread:5})},"minecraft:block_pile":{state_provider:n("block_state_provider")},"minecraft:decorated":{decorator:n("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:n("block_state"),rim:n("block_state"),size:ki.UniformInt({min:0,max:8,maxSpread:8}),rim_size:ki.UniformInt({min:0,max:8,maxSpread:8})},"minecraft:disk":o,"minecraft:emerald_ore":{state:n("block_state"),target:n("block_state")},"minecraft:end_gateway":{exact:Ni.BooleanNode(),exit:Ni.Opt(n("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:Ni.Opt(Ni.BooleanNode()),crystal_beam_target:Ni.Opt(n("block_pos")),spikes:Ni.ListNode(Ni.ObjectNode({centerX:Ni.Opt(Ni.NumberNode({integer:!0})),centerZ:Ni.Opt(Ni.NumberNode({integer:!0})),radius:Ni.Opt(Ni.NumberNode({integer:!0})),height:Ni.Opt(Ni.NumberNode({integer:!0})),guarded:Ni.Opt(Ni.BooleanNode())}))},"minecraft:fill_layer":{state:n("block_state"),height:Ni.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":r,"minecraft:forest_rock":{state:n("block_state")},"minecraft:huge_brown_mushroom":a,"minecraft:huge_fungus":{hat_state:n("block_state"),decor_state:n("block_state"),stem_state:n("block_state"),valid_base_block:n("block_state"),planted:Ni.Opt(Ni.BooleanNode())},"minecraft:huge_red_mushroom":a,"minecraft:ice_patch":o,"minecraft:iceberg":{state:n("block_state")},"minecraft:lake":{state:n("block_state")},"minecraft:nether_forest_vegetation":{state_provider:n("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:n("block_state"),target:n("block_state"),radius:ki.UniformInt()},"minecraft:no_bonemeal_flower":r,"minecraft:no_surface_ore":s,"minecraft:ore":s,"minecraft:random_patch":r,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:Ni.ListNode(Ni.ObjectNode({chance:Ni.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:sea_pickle":c,"minecraft:seagrass":{probability:Ni.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:n("block_state"),place_on:Ni.ListNode(n("block_state")),place_in:Ni.ListNode(n("block_state")),place_under:Ni.ListNode(n("block_state"))},"minecraft:simple_random_selector":{features:Ni.ListNode(l)},"minecraft:spring_feature":{state:n("fluid_state"),rock_count:Ni.NumberNode({integer:!0}),hole_count:Ni.NumberNode({integer:!0}),requires_block_below:Ni.BooleanNode(),valid_blocks:Ni.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{max_water_depth:Ni.NumberNode({integer:!0}),ignore_vines:Ni.BooleanNode(),heightmap:i({enum:"heightmap_type"}),minimum_size:n("feature_size"),trunk_provider:n("block_state_provider"),leaves_provider:n("block_state_provider"),trunk_placer:Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:Ni.NumberNode({integer:!0,min:0,max:32}),height_rand_a:Ni.NumberNode({integer:!0,min:0,max:24}),height_rand_b:Ni.NumberNode({integer:!0,min:0,max:24})},{context:"trunk_placer"}),foliage_placer:Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:ki.UniformInt({min:0,max:8,maxSpread:8}),offset:ki.UniformInt({min:0,max:8,maxSpread:8}),[Ni.Switch]:[{push:"type"}],[Ni.Case]:{"minecraft:blob_foliage_placer":{height:Ni.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:Ni.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:Ni.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:Ni.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:ki.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:pine_foliage_placer":{height:ki.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:spruce_foliage_placer":{trunk_height:ki.UniformInt({min:0,max:16,maxSpread:8})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:Ni.ListNode(Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[Ni.Switch]:[{push:"type"}],[Ni.Case]:{"minecraft:alter_ground":{provider:n("block_state_provider")},"minecraft:beehive":{probability:Ni.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:Ni.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",Ni.Mod(Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:Ni.Opt(Ni.NumberNode({min:0,max:80})),[Ni.Switch]:[{push:"type"}],[Ni.Case]:{"minecraft:two_layers_feature_size":{limit:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:81})),lower_size:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:16})),upper_size:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:80})),upper_limit:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:80})),lower_size:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:16})),middle_size:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:16})),upper_size:Ni.Opt(Ni.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",Ni.Mod(Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[Ni.Switch]:[{push:"type"}],[Ni.Case]:{"minecraft:rotated_block_provider":{state:n("block_state")},"minecraft:simple_state_provider":{state:n("block_state")},"minecraft:weighted_state_provider":{entries:Ni.ListNode(Ni.Mod(Ni.ObjectNode({weight:Ni.NumberNode({integer:!0,min:1}),data:n("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",Ni.Mod(Ni.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[Ni.Switch]:[{push:"type"}],[Ni.Case]:{"minecraft:column_placer":{min_size:Ni.NumberNode({integer:!0}),extra_size:Ni.NumberNode({integer:!0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.initNoiseSettingsSchemas=void 0;const Ei=Pe,Si=Bn;Ci.initNoiseSettingsSchemas=function(e,t){const n=Ei.Reference.bind(void 0,e),i=Ei.StringNode.bind(void 0,t);e.register("noise_settings",Ei.Mod(Ei.ObjectNode({name:Ei.Mod(i({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:Ei.NumberNode({integer:!0}),bedrock_floor_position:Ei.NumberNode({integer:!0}),sea_level:Ei.NumberNode({integer:!0}),disable_mob_generation:Ei.BooleanNode(),default_block:n("block_state"),default_fluid:n("block_state"),noise:Ei.ObjectNode({height:Ei.NumberNode({integer:!0}),density_factor:Ei.NumberNode(),density_offset:Ei.NumberNode(),size_horizontal:Ei.NumberNode({integer:!0}),size_vertical:Ei.NumberNode({integer:!0}),simplex_surface_noise:Ei.BooleanNode(),random_density_offset:Ei.Opt(Ei.BooleanNode()),island_noise_override:Ei.Opt(Ei.BooleanNode()),amplified:Ei.Opt(Ei.BooleanNode()),sampling:Ei.ObjectNode({xz_scale:Ei.NumberNode(),y_scale:Ei.NumberNode(),xz_factor:Ei.NumberNode(),y_factor:Ei.NumberNode()}),bottom_slide:Ei.ObjectNode({target:Ei.NumberNode({integer:!0}),size:Ei.NumberNode({integer:!0}),offset:Ei.NumberNode({integer:!0})}),top_slide:Ei.ObjectNode({target:Ei.NumberNode({integer:!0}),size:Ei.NumberNode({integer:!0}),offset:Ei.NumberNode({integer:!0})})}),structures:n("generator_structures")},{context:"noise_settings"}),{default:()=>Si.DefaultNoiseSettings})),e.register("generator_structures",Ei.ObjectNode({stronghold:Ei.Opt(Ei.ObjectNode({distance:Ei.NumberNode({integer:!0,min:0,max:1023}),spread:Ei.NumberNode({integer:!0,min:0,max:1023}),count:Ei.NumberNode({integer:!0,min:1,max:4095})})),structures:Ei.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),Ei.Mod(Ei.ObjectNode({spacing:Ei.NumberNode({integer:!0,min:0,max:4096}),separation:Ei.Mod(Ei.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,n,i,r)=>(t.pop().push("spacing").get()<=n&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,n,i,r))}))),salt:Ei.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",Ei.Mod(Ei.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:Ei.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.initStructureFeatureSchemas=void 0;const Fi=Pe;Oi.initStructureFeatureSchemas=function(e,t){const n=Fi.StringNode.bind(void 0,t),i={start_pool:n({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:Fi.NumberNode({integer:!0})};e.register("configured_structure_feature",Fi.Mod(Fi.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:Fi.ObjectNode({[Fi.Switch]:["pop",{push:"type"}],[Fi.Case]:{"minecraft:bastion_remnant":i,"minecraft:buried_treasure":{probability:Fi.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:n({enum:["normal","mesa"]}),probability:Fi.NumberNode({min:0,max:1})},"minecraft:ocean_ruin":{biome_temp:n({enum:["cold","warm"]}),large_probability:Fi.NumberNode({min:0,max:1}),cluster_probability:Fi.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":i,"minecraft:ruined_portal":{portal_type:n({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:Fi.Opt(Fi.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 Di={};Object.defineProperty(Di,"__esModule",{value:!0}),Di.initSurfaceBuilderSchemas=void 0;const Bi=Pe;Di.initSurfaceBuilderSchemas=function(e,t){const n=Bi.StringNode.bind(void 0,t),i=Bi.Reference.bind(void 0,e);e.register("configured_surface_builder",Bi.Mod(Bi.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:Bi.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 Li={};Object.defineProperty(Li,"__esModule",{value:!0}),Li.initTemplatePoolSchemas=void 0;const Mi=Pe;Li.initTemplatePoolSchemas=function(e,t){const n=Mi.Reference.bind(void 0,e),i=Mi.StringNode.bind(void 0,t),r=Mi.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:n("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]);e.register("template_pool",Mi.Mod(Mi.ObjectNode({name:i(),fallback:i(),elements:Mi.ListNode(n("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",Mi.Mod(Mi.ObjectNode({weight:Mi.NumberNode({integer:!0,min:1}),element:n("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",Mi.Mod(Mi.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[Mi.Switch]:[{push:"element_type"}],[Mi.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:r},"minecraft:list_pool_element":{elements:Mi.ListNode(n("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:r}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(pi,"__esModule",{value:!0}),pi.initWorldgenSchemas=void 0;const Ti=mi,Ri=gi,$i=bi,Ii=wi,ji=Ci,Pi=xi,zi=Oi,Ui=Di,Wi=Li;pi.initWorldgenSchemas=function(e,t){Ti.initBiomeSchemas(e,t),Ri.initCarverSchemas(e,t),$i.initDecoratorSchemas(e,t),Ii.initFeatureSchemas(e,t),ji.initNoiseSettingsSchemas(e,t),Pi.initProcessorListSchemas(e,t),zi.initStructureFeatureSchemas(e,t),Ui.initSurfaceBuilderSchemas(e,t),Wi.initTemplatePoolSchemas(e,t)};var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.initWorldSettingsSchemas=void 0;const Vi=Pe;Hi.initWorldSettingsSchemas=function(e,t){const n=Vi.Reference.bind(void 0,e),i=Vi.StringNode.bind(void 0,t);e.register("world_settings",Vi.Mod(Vi.ObjectNode({generate_features:Vi.BooleanNode(),bonus_chest:Vi.BooleanNode(),seed:Vi.NumberNode({integer:!0}),dimensions:Vi.MapNode(i({validator:"resource",params:{pool:"$dimension"}}),n("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(Fn,"__esModule",{value:!0}),Fn.initSchemas=void 0;const Gi=Dn,qi=Tn,Ki=Bn,Xi=Un,Ji=Vn,Yi=Kn,Zi=Yn,Qi=ni,er=ri,tr=si,nr=li,ir=di,rr=pi,or=Hi;Fn.initSchemas=function(e,t){Ki.initCommonSchemas(e,t),Gi.initAdvancementSchemas(e,t),qi.initAssetsSchemas(e,t),Xi.initConditionSchemas(e,t),Yi.initDimensionTypeSchemas(e,t),Ji.initDimensionSchemas(e,t),Zi.initLootTableSchemas(e,t),Qi.initPackMcmetaSchemas(e,t),er.initPredicatesSchemas(e,t),tr.initRecipeSchemas(e,t),nr.initTagsSchemas(e,t),ir.initTextComponentSchemas(e,t),rr.initWorldgenSchemas(e,t),or.initWorldSettingsSchemas(e,t)};var ar=je&&je.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),sr=je&&je.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cr=je&&je.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&ar(t,e,n);return sr(t,e),t};Object.defineProperty(Sn,"__esModule",{value:!0});var lr=Sn.getSchemas=Sn.getCollections=void 0;const ur=Pe,dr=On,hr=Fn;var pr=Sn.lootContext=cr(Zn);var mr=Sn.getCollections=function(){const e=new ur.CollectionRegistry;return dr.initCollections(e),e};lr=Sn.getSchemas=function(e){const t=new ur.SchemaRegistry;return hr.initSchemas(t,e),t};var fr=Object.freeze(Object.assign(Object.create(null),Sn,{[Symbol.toStringTag]:"Module",get getSchemas(){return lr},get getCollections(){return mr},lootContext:pr,default:Sn})),gr={},_r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.initCollections=void 0,_r.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 br={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.initAdvancementSchemas=void 0;const yr=Pe;vr.initAdvancementSchemas=function(e,t){const n=yr.Reference.bind(void 0,e),i=yr.StringNode.bind(void 0,t),r=yr.ChoiceNode([{type:"object",node:yr.Opt(n("entity_predicate")),change:e=>{var t,n;return null!==(n=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==n?n:{}}},{type:"list",node:yr.ListNode(n("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",yr.Mod(yr.ObjectNode({display:yr.Opt(yr.Mod(yr.ObjectNode({icon:yr.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:yr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:n("text_component"),description:n("text_component"),background:yr.Opt(i()),frame:yr.Opt(i({enum:["task","challenge","goal"]})),show_toast:yr.Opt(yr.BooleanNode()),announce_to_chat:yr.Opt(yr.BooleanNode()),hidden:yr.Opt(yr.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:yr.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:yr.MapNode(i(),n("advancement_criteria")),requirements:yr.Opt(yr.ListNode(yr.ListNode(i()))),rewards:yr.Opt(yr.ObjectNode({function:yr.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:yr.Opt(yr.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:yr.Opt(yr.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:yr.Opt(yr.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",yr.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:yr.Opt(yr.ObjectNode({player:yr.Mod(r,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[yr.Switch]:["pop",{push:"trigger"}],[yr.Case]:{"minecraft:bee_nest_destroyed":{block:yr.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:yr.Opt(yr.NumberNode({integer:!0})),item:yr.Opt(n("item_predicate"))},"minecraft:bred_animals":{parent:r,partner:r,child:r},"minecraft:brewed_potion":{potion:yr.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:yr.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:yr.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:yr.Opt(yr.ListNode(r))},"minecraft:construct_beacon":{level:n("int_bounds")},"minecraft:consume_item":{item:yr.Opt(n("item_predicate"))},"minecraft:cured_zombie_villager":{villager:r,zombie:r},"minecraft:effects_changed":{effects:yr.Opt(yr.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),yr.ObjectNode({amplifier:n("int_bounds"),duration:n("int_bounds")}))),source:yr.Opt(r)},"minecraft:enter_block":{block:yr.Opt(i({validator:"resource",params:{pool:"block"}})),state:yr.Opt(yr.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:n("int_bounds"),item:yr.Opt(n("item_predicate"))},"minecraft:entity_hurt_player":{damage:yr.Opt(n("damage_predicate"))},"minecraft:entity_killed_player":{entity:r,killing_blow:yr.Opt(n("damage_source_predicate"))},"minecraft:filled_bucket":{item:yr.Opt(n("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:r,item:yr.Opt(n("item_predicate"))},"minecraft:hero_of_the_village":{location:yr.Opt(n("location_predicate"))},"minecraft:inventory_changed":{slots:yr.Opt(yr.ObjectNode({empty:n("int_bounds"),occupied:n("int_bounds"),full:n("int_bounds")})),items:yr.Opt(yr.ListNode(n("item_predicate")))},"minecraft:item_durability_changed":{delta:n("int_bounds"),durability:n("int_bounds"),item:yr.Opt(n("item_predicate"))},"minecraft:item_used_on_block":{item:yr.Opt(n("item_predicate")),location:yr.Opt(n("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:n("int_bounds"),victims:yr.Opt(yr.ListNode(r))},"minecraft:levitation":{distance:n("distance_predicate"),duration:n("int_bounds")},"minecraft:lightning_strike":{lightning:r,bystander:r},"minecraft:location":{location:yr.Opt(n("location_predicate"))},"minecraft:nether_travel":{distance:n("distance_predicate"),entered:yr.Opt(n("location_predicate")),exited:yr.Opt(n("location_predicate"))},"minecraft:placed_block":{block:yr.Opt(i({validator:"resource",params:{pool:"block"}})),state:yr.Opt(yr.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:yr.Opt(n("item_predicate")),location:yr.Opt(n("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:yr.Opt(n("damage_predicate")),entity:r},"minecraft:player_interacted_with_entity":{item:yr.Opt(n("item_predicate")),entity:r},"minecraft:player_killed_entity":{entity:r,killing_blow:yr.Opt(n("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:yr.Opt(n("location_predicate"))},"minecraft:slide_down_block":{block:yr.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:yr.Opt(n("item_predicate"))},"minecraft:summoned_entity":{entity:r},"minecraft:tame_animal":{entity:r},"minecraft:target_hit":{projectile:r,shooter:r,signal_strength:n("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:yr.Opt(n("entity_predicate")),item:yr.Opt(n("item_predicate"))},"minecraft:used_ender_eye":{distance:n("float_bounds")},"minecraft:used_totem":{item:yr.Opt(n("item_predicate"))},"minecraft:using_item":{item:yr.Opt(n("item_predicate"))},"minecraft:villager_trade":{villager:yr.Opt(n("entity_predicate")),item:yr.Opt(n("item_predicate"))},"minecraft:voluntary_exile":{location:n("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var wr={},xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.initModelSchemas=void 0;const Ar=Pe;xr.initModelSchemas=function(e,t){Ar.Reference.bind(void 0,e);const n=Ar.StringNode.bind(void 0,t),i=(e,t,n)=>Ar.ListNode(Ar.NumberNode({min:t,max:n}),{minLength:e,maxLength:e}),r=Ar.ChoiceNode([{type:"alias",match:e=>"string"==typeof e&&e.startsWith("#"),node:n(),change:e=>"string"==typeof e?`#${e}`:"#0"},{type:"reference",match:e=>"string"==typeof e,node:n({validator:"resource",params:{pool:"$texture"}}),change:e=>"string"==typeof e?e.replace(/^#/,""):""}],{choiceContext:"texture"});e.register("model",Ar.Mod(Ar.ObjectNode({parent:Ar.Opt(n({validator:"resource",params:{pool:"$model"}})),ambientocclusion:Ar.Opt(Ar.BooleanNode()),gui_light:Ar.Opt(n({enum:"gui_light"})),textures:Ar.Opt(Ar.MapNode(n(),r)),elements:Ar.Opt(Ar.ListNode(Ar.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:Ar.Opt(Ar.ObjectNode({origin:i(3),axis:n({enum:"axis"}),angle:Ar.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:Ar.Opt(Ar.BooleanNode())})),shade:Ar.Opt(Ar.BooleanNode()),faces:Ar.MapNode(n({enum:"direction"}),Ar.ObjectNode({texture:r,uv:Ar.Opt(i(4)),cullface:Ar.Opt(n({enum:"direction"})),rotation:Ar.Opt(Ar.NumberNode({integer:!0})),tintindex:Ar.Opt(Ar.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:Ar.Opt(Ar.MapNode(n({enum:"display_position"}),Ar.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:Ar.Opt(Ar.ListNode(Ar.ObjectNode({predicate:Ar.MapNode(n({enum:"item_model_predicates"}),Ar.NumberNode()),model:n({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.initBlockDefinitionSchemas=void 0;const kr=Pe;Nr.initBlockDefinitionSchemas=function(e,t){const n=kr.Reference.bind(void 0,e),i=kr.StringNode.bind(void 0,t);e.register("block_definition",kr.Mod(kr.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:kr.ObjectNode({variants:kr.MapNode(i(),n("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:kr.ObjectNode({multipart:kr.ListNode(kr.ObjectNode({when:kr.Opt(n("multipart_condition")),apply:n("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const r={model:i({validator:"resource",params:{pool:"$model"}}),x:kr.Opt(kr.NumberEnum({integer:!0,values:[0,90,180,270]})),y:kr.Opt(kr.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:kr.Opt(kr.BooleanNode())};e.register("model_variant",kr.ChoiceNode([{type:"object",node:kr.ObjectNode(r),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:kr.ListNode(kr.ObjectNode(c(s({},r),{weight:kr.Opt(kr.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",kr.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:kr.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:kr.ObjectNode({OR:kr.ListNode(n("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(wr,"__esModule",{value:!0}),wr.initAssetsSchemas=void 0;const Cr=xr,Er=Nr;wr.initAssetsSchemas=function(e,t){Er.initBlockDefinitionSchemas(e,t),Cr.initModelSchemas(e,t)};var Sr={};!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=Pe;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(n,i){const r=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,n);n.register("block_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(r(),r(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),n.register("fluid_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(r(),r()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),n.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const a=e=>t.Opt(t.ChoiceNode([{type:"number",node:t.NumberNode({integer:e}),change:e=>{var t,n;return void 0===e?0:null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n:0}},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:e})),max:t.Opt(t.NumberNode({integer:e}))},{context:"range"}),change:e=>({min:null!=e?e:0,max:null!=e?e:0})}]));n.register("int_bounds",a(!0)),n.register("float_bounds",a()),n.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,n,i,o,a,c,l)=>{let u={};a&&Object.keys(l[a]).forEach((e=>{u[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(s({type:t.Mod(t.Opt(r({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},u),{context:c,disableSwitchContext:!0}),h=[{type:n,node:l[o][i]}];return a&&h.push({type:"object",priority:-1,node:d}),Object.keys(l).forEach((e=>{h.push({type:e,match:t=>{var n;if("minecraft:"+(null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.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:d,change:t=>({type:e})})})),t.ChoiceNode(h,{context:c,choiceContext:`${c}.type`})};n.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:r({validator:"objective"}),scale:t.Opt(t.NumberNode())}})),n.register("scoreboard_name_provider",c("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:r({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(r({enum:"entity_source"}),{default:()=>"this"})}})),n.register("nbt_provider",c("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:r({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(r({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()})}}),n.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")})}}),n.register("int_provider",e.IntProvider()),n.register("vertical_anchor",t.ChoiceNode(["absolute","above_bottom","below_top"].map((e=>({type:e,match:t=>void 0!==(null==t?void 0:t[e]),change:t=>{var n,i,r;return{[e]:null!==(r=null!==(i=null!==(n=t.absolute)&&void 0!==n?n:t.above_bottom)&&void 0!==i?i:t.below_top)&&void 0!==r?r:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),n.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=r({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:r({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(r(),r(),{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(r({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:r({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:r({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,n=r({enum:"copy_source"}),a=r({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:r({validator:"resource",params:{pool:"enchantment"}}),formula:r({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:n},"minecraft:copy_nbt":{source:o("nbt_provider"),ops:t.ListNode(t.ObjectNode({source:r({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:r({validator:"nbt_path",params:{category:"minecraft:item"}}),op:r({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:r({validator:"resource",params:{pool:"block"}}),properties:t.ListNode(r({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(r({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:o("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(r({enum:"map_feature"})),decoration:t.Opt(r({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:r({enum:"banner_pattern"}),color:r({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(r({validator:"resource",params:{pool:"enchantment"}}),o("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{name:r({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:r({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:r({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=n=>t.ObjectOrPreset(r({validator:"resource",params:{pool:"$dimension_type"}}),n,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether",min_y:0,height:256},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end",min_y:0,height:256}}),e.NoiseSettingsPresets=n=>t.ObjectOrPreset(r({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),n,{"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"}}}})}}(Sr);var Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.initConditionSchemas=void 0;const Fr=Pe,Dr=Sr;Or.initConditionSchemas=function(e,t){const n=Fr.Reference.bind(void 0,e),i=Fr.StringNode.bind(void 0,t);e.register("predicate",Fr.ObjectOrList(n("condition"),{choiceContext:"condition"})),e.register("condition",Fr.Mod(Fr.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[Fr.Switch]:[{push:"condition"}],[Fr.Case]:Dr.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Br={};Object.defineProperty(Br,"__esModule",{value:!0}),Br.initDimensionSchemas=void 0;const Lr=Pe,Mr=Sr;Br.initDimensionSchemas=function(e,t){const n=Lr.Reference.bind(void 0,e),i=Lr.StringNode.bind(void 0,t),r=e=>Lr.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",Lr.Mod(Lr.ObjectNode({type:Mr.DimensionTypePresets(n("dimension_type")),generator:Lr.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Lr.Switch]:[{push:"type"}],[Lr.Case]:{"minecraft:noise":{seed:Lr.NumberNode({integer:!0}),settings:Mr.NoiseSettingsPresets(n("noise_settings")),biome_source:Lr.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Lr.Switch]:[{push:"type"}],[Lr.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:Lr.NumberNode({integer:!0}),preset:Lr.Opt(i({enum:["nether"]})),altitude_noise:r(n("generator_biome_noise")),temperature_noise:r(n("generator_biome_noise")),humidity_noise:r(n("generator_biome_noise")),weirdness_noise:r(n("generator_biome_noise")),biomes:r(Lr.Mod(Lr.ListNode(n("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:Lr.Opt(Lr.NumberNode({integer:!0,min:0,max:62})),biomes:Lr.ListNode(i({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Lr.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:Lr.NumberNode({integer:!0}),large_biomes:Lr.Opt(Lr.BooleanNode()),legacy_biome_init_layer:Lr.Opt(Lr.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Lr.ObjectNode({biome:Lr.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Lr.Opt(Lr.BooleanNode()),features:Lr.Opt(Lr.BooleanNode()),layers:Lr.ListNode(n("generator_layer")),structures:n("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",Lr.Mod(Lr.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Lr.ObjectNode({altitude:Lr.NumberNode(),temperature:Lr.NumberNode(),humidity:Lr.NumberNode(),weirdness:Lr.NumberNode(),offset:Lr.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",Lr.Mod(Lr.ObjectNode({firstOctave:Lr.NumberNode({integer:!0}),amplitudes:Lr.ListNode(Lr.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.initDimensionTypeSchemas=void 0;const Rr=Pe,$r=Sr;Tr.initDimensionTypeSchemas=function(e,t){const n=Rr.StringNode.bind(void 0,t);e.register("dimension_type",Rr.Mod(Rr.ObjectNode({name:Rr.Mod(n({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:Rr.BooleanNode(),natural:Rr.BooleanNode(),piglin_safe:Rr.BooleanNode(),respawn_anchor_works:Rr.BooleanNode(),bed_works:Rr.BooleanNode(),has_raids:Rr.BooleanNode(),has_skylight:Rr.BooleanNode(),has_ceiling:Rr.BooleanNode(),coordinate_scale:Rr.NumberNode({min:1e-5,max:3e7}),ambient_light:Rr.NumberNode(),fixed_time:Rr.Opt(Rr.NumberNode({integer:!0})),logical_height:Rr.NumberNode({integer:!0,min:0,max:4096}),effects:Rr.Opt(n({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:n({validator:"resource",params:{pool:"$tag/block"}}),min_y:Rr.NumberNode({integer:!0,min:-2048,max:2047}),height:Rr.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>$r.DefaultDimensionType,validate:(t,n,i,r)=>((null==(n=e.validate(t,n,i,r))?void 0:n.min_y)+(null==n?void 0:n.height)>2047&&i.add(t.push("height"),"error.min_y_plus_height",2047),(null==n?void 0:n.logical_height)>(null==n?void 0:n.height)&&i.add(t.push("logical_height"),"error.logical_height"),(null==n?void 0:n.height)%16!=0&&i.add(t.push("height"),"error.height_multiple",16),(null==n?void 0:n.min_y)%16!=0&&i.add(t.push("min_y"),"error.min_y_multiple",16),n)}))))};var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.initItemModifierSchemas=void 0;const jr=Pe,Pr=Sr;Ir.initItemModifierSchemas=function(e,t){const n=jr.Reference.bind(void 0,e),i=jr.StringNode.bind(void 0,t);e.register("item_modifier",jr.ObjectOrList(n("function"),{choiceContext:"function"}));const r={conditions:jr.Opt(jr.ListNode(n("condition")))};e.register("function",jr.Mod(jr.ObjectNode({function:i({validator:"resource",params:{pool:"loot_function_type"}}),[jr.Switch]:[{push:"function"}],[jr.Case]:Pr.FunctionCases(r)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var zr={},Ur={};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.LootFunctions=Ur.LootConditions=Ur.LootCopySources=Ur.LootEntitySources=Ur.LootTableTypes=void 0,Ur.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]}]]),Ur.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Ur.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Ur.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",[]]]),Ur.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(zr,"__esModule",{value:!0}),zr.initLootTableSchemas=void 0;const Wr=Pe,Hr=Ur,Vr=Sr;zr.initLootTableSchemas=function(e,t){const n=Wr.Reference.bind(void 0,e),i=Wr.StringNode.bind(void 0,t),r={conditions:Wr.Opt(Wr.ListNode(n("loot_condition")))},o=s({functions:Wr.Opt(Wr.ListNode(n("loot_function")))},r);function a(e,n,i){const r=[],o=i=>t.get(n).filter((t=>{var n;return(null!==(n=e.get(t))&&void 0!==n?n:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Hr.LootTableTypes){const e=[...a,...s];r.push({match:e=>e.getModel().get(new Wr.Path(["type"]))===t,node:i(o(e))})}return r.push({match:e=>!0,node:i(n)}),Wr.SwitchNode(r)}const c=a(Hr.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(Hr.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(Hr.LootEntitySources,"entity_source",(e=>i({enum:e}))),d=a(Hr.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",Wr.Mod(Wr.ObjectNode({type:Wr.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Wr.Opt(Wr.ListNode(Wr.Mod(Wr.ObjectNode(s({rolls:n("number_provider"),bonus_rolls:Wr.Opt(n("number_provider")),entries:Wr.ListNode(n("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Wr.Opt(Wr.ListNode(n("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const h={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",Wr.Mod(Wr.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Wr.Opt(Wr.Mod(Wr.NumberNode({integer:!0,min:1}),h)),quality:Wr.Opt(Wr.Mod(Wr.NumberNode({integer:!0}),h)),[Wr.Switch]:[{push:"type"}],[Wr.Case]:{"minecraft:alternatives":s({children:Wr.ListNode(n("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Wr.ListNode(n("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:Wr.ListNode(n("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:Wr.Opt(Wr.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Wr.Mod(Wr.ObjectNode({function:l,[Wr.Switch]:[{push:"function"}],[Wr.Case]:Vr.FunctionCases(r,d,u)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Wr.Mod(Wr.ObjectNode({condition:c,[Wr.Switch]:[{push:"condition"}],[Wr.Case]:Vr.ConditionCases(u)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Wr.Mod(Wr.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:n("number_provider"),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:Wr.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.initPackMcmetaSchemas=void 0;const qr=Pe;Gr.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",qr.Mod(qr.ObjectNode({pack:qr.Mod(qr.ObjectNode({pack_format:qr.Mod(qr.NumberNode({integer:!0,min:7,max:7}),{default:()=>7,canUpdate:(e,t)=>7!==t,update:()=>[{name:"pack_format",params:[7],newValue:7}]}),description:qr.Reference(e,"text_component")}),{default:()=>({pack_format:7,description:""})})}),{default:()=>({pack:{pack_format:7,description:""}})}))};var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.initPredicatesSchemas=void 0;const Xr=Pe;Kr.initPredicatesSchemas=function(e,t){const n=Xr.Reference.bind(void 0,e),i=Xr.StringNode.bind(void 0,t),r=Xr.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Xr.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Xr.ObjectNode({min:Xr.Opt(Xr.NumberNode({integer:!0})),max:Xr.Opt(Xr.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Xr.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Xr.ObjectNode({items:Xr.Opt(Xr.ListNode(i({validator:"resource",params:{pool:"item"}}))),tag:Xr.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:n("int_bounds"),durability:n("int_bounds"),potion:Xr.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Xr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Xr.Opt(Xr.ListNode(n("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Xr.ObjectNode({enchantment:Xr.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:n("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Xr.ObjectNode({blocks:Xr.Opt(Xr.ListNode(i({validator:"resource",params:{pool:"block"}}))),tag:Xr.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Xr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Xr.Opt(Xr.MapNode(i(),r,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Xr.ObjectNode({fluid:Xr.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Xr.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Xr.Opt(Xr.MapNode(i(),r))},{context:"fluid"})),e.register("location_predicate",Xr.ObjectNode({position:Xr.Opt(Xr.ObjectNode({x:n("float_bounds"),y:n("float_bounds"),z:n("float_bounds")})),biome:Xr.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Xr.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Xr.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Xr.Opt(Xr.ObjectNode({light:n("int_bounds")})),smokey:Xr.Opt(Xr.BooleanNode()),block:Xr.Opt(n("block_predicate")),fluid:Xr.Opt(n("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Xr.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:n("int_bounds"),[Xr.Switch]:[{push:"type"}],[Xr.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",Xr.ObjectNode({gamemode:Xr.Opt(i({enum:"gamemode"})),level:n("int_bounds"),advancements:Xr.Opt(Xr.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Xr.ChoiceNode([{type:"boolean",node:Xr.BooleanNode(),change:e=>!0},{type:"object",node:Xr.MapNode(i(),Xr.BooleanNode())}]))),recipes:Xr.Opt(Xr.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Xr.BooleanNode())),stats:Xr.Opt(Xr.ListNode(n("statistic_predicate"))),looking_at:Xr.Opt(n("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Xr.ObjectNode({amplifier:n("int_bounds"),duration:n("int_bounds"),ambient:Xr.Opt(Xr.BooleanNode()),visible:Xr.Opt(Xr.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Xr.ObjectNode({x:n("float_bounds"),y:n("float_bounds"),z:n("float_bounds"),absolute:n("float_bounds"),horizontal:n("float_bounds")},{context:"distance"})),e.register("entity_predicate",Xr.ObjectNode({type:Xr.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Xr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Xr.Opt(i({validator:"team"})),location:Xr.Opt(n("location_predicate")),stepping_on:Xr.Opt(n("location_predicate")),distance:Xr.Opt(n("distance_predicate")),flags:Xr.Opt(Xr.ObjectNode({is_on_fire:Xr.Opt(Xr.BooleanNode()),is_sneaking:Xr.Opt(Xr.BooleanNode()),is_sprinting:Xr.Opt(Xr.BooleanNode()),is_swimming:Xr.Opt(Xr.BooleanNode()),is_baby:Xr.Opt(Xr.BooleanNode())})),equipment:Xr.Opt(Xr.MapNode(i({enum:"slot"}),n("item_predicate"))),player:Xr.Opt(n("player_predicate")),vehicle:Xr.Opt(n("entity_predicate")),passenger:Xr.Opt(n("entity_predicate")),targeted_entity:Xr.Opt(n("entity_predicate")),lightning_bolt:Xr.Opt(Xr.ObjectNode({blocks_set_on_fire:Xr.Opt(n("int_bounds")),entity_struck:Xr.Opt(n("entity_predicate"))})),fishing_hook:Xr.Opt(Xr.ObjectNode({in_open_water:Xr.Opt(Xr.BooleanNode())})),effects:Xr.Opt(Xr.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),n("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Xr.ObjectNode({is_explosion:Xr.Opt(Xr.BooleanNode()),is_fire:Xr.Opt(Xr.BooleanNode()),is_magic:Xr.Opt(Xr.BooleanNode()),is_projectile:Xr.Opt(Xr.BooleanNode()),is_lightning:Xr.Opt(Xr.BooleanNode()),bypasses_armor:Xr.Opt(Xr.BooleanNode()),bypasses_invulnerability:Xr.Opt(Xr.BooleanNode()),bypasses_magic:Xr.Opt(Xr.BooleanNode()),source_entity:Xr.Opt(n("entity_predicate")),direct_entity:Xr.Opt(n("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Xr.ObjectNode({dealt:n("float_bounds"),taken:n("float_bounds"),blocked:Xr.Opt(Xr.BooleanNode()),source_entity:Xr.Opt(n("entity_predicate")),type:Xr.Opt(n("damage_source_predicate"))},{context:"damage"}))};var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.initRecipeSchemas=void 0;const Yr=Pe;Jr.initRecipeSchemas=function(e,t){const n=Yr.Reference.bind(void 0,e),i=Yr.StringNode.bind(void 0,t);e.register("recipe",Yr.Mod(Yr.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[Yr.Switch]:[{push:"type"}],[Yr.Case]:{"minecraft:crafting_shaped":{group:Yr.Opt(i({enum:"recipe_group",additional:!0})),pattern:Yr.ListNode(i()),key:Yr.MapNode(i(),n("recipe_ingredient")),result:n("recipe_result")},"minecraft:crafting_shapeless":{group:Yr.Opt(i()),ingredients:Yr.ListNode(n("recipe_ingredient")),result:n("recipe_result")},"minecraft:smelting":{group:Yr.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Yr.Opt(Yr.NumberNode()),cookingtime:Yr.Opt(Yr.Mod(Yr.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Yr.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Yr.Opt(Yr.NumberNode()),cookingtime:Yr.Opt(Yr.Mod(Yr.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Yr.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Yr.Opt(Yr.NumberNode()),cookingtime:Yr.Opt(Yr.Mod(Yr.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Yr.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Yr.Opt(Yr.NumberNode()),cookingtime:Yr.Opt(Yr.Mod(Yr.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Yr.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:Yr.NumberNode({integer:!0})},"minecraft:smithing":{group:Yr.Opt(i()),base:n("recipe_ingredient_object"),addition:n("recipe_ingredient_object"),result:n("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Yr.Mod(Yr.ChoiceNode([{type:"object",node:n("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Yr.ListNode(n("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Yr.Mod(Yr.ObjectNode({item:Yr.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Yr.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Yr.Mod(Yr.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:Yr.Opt(Yr.Mod(Yr.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.initTagsSchemas=void 0;const Qr=Pe;Zr.initTagsSchemas=function(e,t){const n=Qr.StringNode.bind(void 0,t),i=e=>Qr.Mod(Qr.ObjectNode({replace:Qr.Opt(Qr.BooleanNode()),values:Qr.ListNode(Qr.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Qr.ObjectNode({id:n({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Qr.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 eo={};Object.defineProperty(eo,"__esModule",{value:!0}),eo.initTextComponentSchemas=void 0;const to=Pe;eo.initTextComponentSchemas=function(e,t){const n=to.Reference.bind(void 0,e),i=to.StringNode.bind(void 0,t),r=e=>{var t;return e instanceof Array?r(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",to.Mod(to.ChoiceNode([{type:"object",node:n("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:r(e[0])}:"object"==typeof e?e:{text:r(e)}},{type:"list",node:n("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:r},{type:"number",node:to.NumberNode(),change:e=>{const t=parseFloat(r(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:to.BooleanNode(),change:e=>{const t=r(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:to.Opt(i()),font:to.Opt(i()),bold:to.Opt(to.BooleanNode()),italic:to.Opt(to.BooleanNode()),underlined:to.Opt(to.BooleanNode()),strikethrough:to.Opt(to.BooleanNode()),obfuscated:to.Opt(to.BooleanNode()),insertion:to.Opt(i()),clickEvent:to.Opt(to.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[to.Switch]:[{push:"action"}],[to.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:to.Opt(to.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[to.Switch]:[{push:"action"}],[to.Case]:{show_text:{value:to.Opt(n("text_component")),contents:to.Opt(n("text_component"))},show_item:{value:to.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:to.Opt(to.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:to.Opt(to.NumberNode({integer:!0})),tag:to.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:to.Opt(to.ObjectNode({name:to.Opt(i()),type:to.Opt(i()),id:to.Opt(i())})),contents:to.Opt(to.Mod(to.ObjectNode({name:to.Opt(n("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:to.Opt(n("text_component_list"))};e.register("text_component_object",to.Mod(to.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:to.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:to.ObjectNode(s({translate:i(),with:to.Opt(n("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:to.ObjectNode(s({score:to.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:to.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:to.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:to.Opt(n("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:to.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:to.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:to.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:to.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:to.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:to.Opt(to.BooleanNode()),separator:to.Opt(n("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",to.Mod(to.ListNode(n("text_component")),{default:()=>[{text:""}]}))};var no={},io={};Object.defineProperty(io,"__esModule",{value:!0}),io.initBiomeSchemas=void 0;const ro=Pe;io.initBiomeSchemas=function(e,t){const n=ro.StringNode.bind(void 0,t);e.register("biome",ro.Mod(ro.ObjectNode({surface_builder:n({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:ro.NumberNode(),scale:ro.NumberNode(),temperature:ro.NumberNode(),downfall:ro.NumberNode(),precipitation:n({enum:["none","rain","snow"]}),temperature_modifier:ro.Opt(n({enum:["none","frozen"]})),category:n({enum:"biome_category"}),player_spawn_friendly:ro.Opt(ro.BooleanNode()),creature_spawn_probability:ro.Opt(ro.NumberNode({min:0,max:1})),effects:ro.ObjectNode({sky_color:ro.NumberNode({color:!0}),fog_color:ro.NumberNode({color:!0}),water_color:ro.NumberNode({color:!0}),water_fog_color:ro.NumberNode({color:!0}),grass_color:ro.Opt(ro.NumberNode({color:!0})),foliage_color:ro.Opt(ro.NumberNode({color:!0})),grass_color_modifier:ro.Opt(n({enum:["none","dark_forest","swamp"]})),ambient_sound:ro.Opt(n()),mood_sound:ro.Opt(ro.ObjectNode({sound:n(),tick_delay:ro.NumberNode({integer:!0}),block_search_extent:ro.NumberNode({integer:!0}),offset:ro.NumberNode()})),additions_sound:ro.Opt(ro.ObjectNode({sound:n(),tick_chance:ro.NumberNode({min:0,max:1})})),music:ro.Opt(ro.ObjectNode({sound:n(),min_delay:ro.NumberNode({integer:!0,min:0}),max_delay:ro.NumberNode({integer:!0,min:0}),replace_current_music:ro.BooleanNode()})),particle:ro.Opt(ro.ObjectNode({options:ro.ObjectNode({type:n()}),probability:ro.NumberNode({min:0,max:1})}))}),starts:ro.ListNode(n({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:ro.MapNode(n({enum:["monster","creature","ambient","underground_water_creature","water_creature","water_ambient","misc"]}),ro.Mod(ro.ListNode(ro.ObjectNode({type:n({validator:"resource",params:{pool:"entity_type"}}),weight:ro.NumberNode({integer:!0}),minCount:ro.NumberNode({integer:!0}),maxCount:ro.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:ro.MapNode(n({validator:"resource",params:{pool:"entity_type"}}),ro.Mod(ro.ObjectNode({energy_budget:ro.NumberNode(),charge:ro.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:ro.MapNode(n({enum:["air","liquid"]}),ro.Mod(ro.ListNode(n({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:ro.ListNode(ro.Mod(ro.ListNode(n({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 oo={};Object.defineProperty(oo,"__esModule",{value:!0}),oo.initCarverSchemas=void 0;const ao=Pe,so=Sr;oo.initCarverSchemas=function(e,t){const n=ao.Reference.bind(void 0,e),i=ao.StringNode.bind(void 0,t),r={vertical_rotation:so.FloatProvider(),shape:ao.ObjectNode({distance_factor:so.FloatProvider(),thickness:so.FloatProvider(),width_smoothness:ao.NumberNode({integer:!0,min:0}),horizontal_radius_factor:so.FloatProvider(),vertical_radius_default_factor:ao.NumberNode(),vertical_radius_center_factor:ao.NumberNode()})},o={horizontal_radius_multiplier:so.FloatProvider(),vertical_radius_multiplier:so.FloatProvider(),floor_level:so.FloatProvider({min:-1,max:1})};e.register("configured_carver",ao.Mod(ao.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/carver"}}),config:ao.ObjectNode({probability:ao.NumberNode({min:0,max:1}),y:n("height_provider"),yScale:so.FloatProvider(),lava_level:n("vertical_anchor"),aquifers_enabled:ao.BooleanNode(),debug_settings:ao.Opt(ao.ObjectNode({debug_mode:ao.Opt(ao.BooleanNode()),air_state:ao.Opt(n("block_state")),water_state:ao.Opt(n("block_state")),lava_state:ao.Opt(n("block_state")),barrier_state:ao.Opt(n("block_state"))})),[ao.Switch]:["pop",{push:"type"}],[ao.Case]:{"minecraft:canyon":r,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var co={};Object.defineProperty(co,"__esModule",{value:!0}),co.initDecoratorSchemas=void 0;const lo=Pe,uo=Sr;co.initDecoratorSchemas=function(e,t){const n=lo.Reference.bind(void 0,e),i=lo.StringNode.bind(void 0,t),r={count:uo.IntProvider({min:0,max:256})};e.register("configured_decorator",lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/decorator"}}),config:lo.ObjectNode({[lo.Switch]:["pop",{push:"type"}],[lo.Case]:{"minecraft:carving_mask":{step:i({enum:"generation_step"})},"minecraft:cave_surface":{surface:i({enum:["floor","ceiling"]}),floor_to_ceiling_search_range:lo.NumberNode({integer:!0})},"minecraft:chance":{chance:lo.NumberNode({integer:!0,min:0})},"minecraft:count":r,"minecraft:count_extra":{count:lo.NumberNode({integer:!0,min:0}),extra_count:lo.NumberNode({integer:!0,min:0}),extra_chance:lo.NumberNode({min:0,max:1})},"minecraft:count_multilayer":r,"minecraft:count_noise":{noise_level:lo.NumberNode(),below_noise:lo.NumberNode({integer:!0}),above_noise:lo.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:lo.NumberNode({integer:!0}),noise_factor:lo.NumberNode(),noise_offset:lo.Opt(lo.NumberNode())},"minecraft:decorated":{outer:n("configured_decorator"),inner:n("configured_decorator")},"minecraft:heightmap":{heightmap:i({enum:"heightmap_type"})},"minecraft:heightmap_spread_double":{heightmap:i({enum:"heightmap_type"})},"minecraft:lava_lake":{chance:lo.NumberNode({integer:!0,min:0})},"minecraft:range":{height:n("height_provider")},"minecraft:water_depth_threshold":{max_water_depth:lo.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var ho={},po={};Object.defineProperty(po,"__esModule",{value:!0}),po.initProcessorListSchemas=po.Processors=void 0;const mo=Pe;po.initProcessorListSchemas=function(e,t){const n=mo.Reference.bind(void 0,e),i=mo.StringNode.bind(void 0,t);po.Processors=mo.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:n("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",mo.Mod(mo.ObjectNode({processors:mo.ListNode(n("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",mo.Mod(mo.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[mo.Switch]:[{push:"processor_type"}],[mo.Case]:{"minecraft:block_age":{mossiness:mo.NumberNode()},"minecraft:block_ignore":{blocks:mo.ListNode(n("block_state"))},"minecraft:block_rot":{integrity:mo.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:mo.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:i({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:mo.ListNode(n("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",mo.Mod(mo.ObjectNode({position_predicate:mo.Opt(n("pos_rule_test")),location_predicate:n("rule_test"),input_predicate:n("rule_test"),output_state:n("block_state"),output_nbt:mo.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 r={min_dist:mo.Opt(mo.NumberNode({min:0,max:255,integer:!0})),max_dist:mo.Opt(mo.NumberNode({min:0,max:255,integer:!0})),min_chance:mo.Opt(mo.NumberNode({min:0,max:1})),max_chance:mo.Opt(mo.NumberNode({min:0,max:1}))};e.register("pos_rule_test",mo.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[mo.Switch]:[{push:"predicate_type"}],[mo.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},r),"minecraft:linear_pos":r}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",mo.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[mo.Switch]:[{push:"predicate_type"}],[mo.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:n("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:mo.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:n("block_state"),probability:mo.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(ho,"__esModule",{value:!0}),ho.initFeatureSchemas=void 0;const fo=Pe,go=Sr,_o=po;ho.initFeatureSchemas=function(e,t){const n=fo.Reference.bind(void 0,e),i=fo.StringNode.bind(void 0,t),r={can_replace:fo.Opt(fo.BooleanNode()),project:fo.Opt(fo.BooleanNode()),need_water:fo.Opt(fo.BooleanNode()),xspread:fo.Opt(fo.NumberNode({integer:!0,min:0})),yspread:fo.Opt(fo.NumberNode({integer:!0,min:0})),zspread:fo.Opt(fo.NumberNode({integer:!0,min:0})),tries:fo.Opt(fo.NumberNode({integer:!0,min:1})),state_provider:n("block_state_provider"),block_placer:n("block_placer"),whitelist:fo.ListNode(n("block_state")),blacklist:fo.ListNode(n("block_state"))},o={state:n("block_state"),radius:go.IntProvider({min:0,max:8}),half_height:fo.NumberNode({integer:!0,min:0,max:4}),targets:fo.ListNode(n("block_state"))},a={cap_provider:n("block_state_provider"),stem_provider:n("block_state_provider"),foliage_radius:fo.Opt(fo.NumberNode({integer:!0}))},s=fo.ObjectNode({target:n("rule_test"),state:n("block_state")}),c={size:fo.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:fo.NumberNode({min:0,max:1}),targets:fo.ListNode(s)},l=fo.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:n("configured_feature")}],{choiceContext:"feature"}),u={surface:i({enum:["floor","ceiling"]}),depth:go.IntProvider({min:1,max:128}),vertical_range:fo.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:fo.NumberNode({min:0,max:1}),extra_edge_column_chance:fo.NumberNode({min:0,max:1}),vegetation_chance:fo.NumberNode({min:0,max:1}),xz_radius:go.IntProvider(),replaceable:i({validator:"resource",params:{pool:"$tag/block"}}),ground_state:n("block_state_provider"),vegetation_feature:l};e.register("configured_feature",fo.Mod(fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:fo.ObjectNode({[fo.Switch]:["pop",{push:"type"}],[fo.Case]:{"minecraft:bamboo":{probability:fo.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:go.IntProvider({min:0,max:3}),height:go.IntProvider({min:1,max:10})},"minecraft:block_pile":{state_provider:n("block_state_provider")},"minecraft:decorated":{decorator:n("configured_decorator"),feature:l},"minecraft:decorated_flower":{decorator:n("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:n("block_state"),rim:n("block_state"),size:go.IntProvider({min:0,max:16}),rim_size:go.IntProvider({min:0,max:16})},"minecraft:disk":o,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:fo.NumberNode({integer:!0,min:1,max:512}),height:go.IntProvider({min:0,max:128}),radius:go.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:fo.NumberNode({integer:!0,min:0,max:64}),height_deviation:fo.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:go.IntProvider({min:0,max:128}),density:go.FloatProvider({min:0,max:2}),wetness:go.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:fo.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:fo.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:fo.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:fo.BooleanNode(),exit:fo.Opt(n("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:fo.Opt(fo.BooleanNode()),crystal_beam_target:fo.Opt(n("block_pos")),spikes:fo.ListNode(fo.ObjectNode({centerX:fo.Opt(fo.NumberNode({integer:!0})),centerZ:fo.Opt(fo.NumberNode({integer:!0})),radius:fo.Opt(fo.NumberNode({integer:!0})),height:fo.Opt(fo.NumberNode({integer:!0})),guarded:fo.Opt(fo.BooleanNode())}))},"minecraft:fill_layer":{state:n("block_state"),height:fo.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":r,"minecraft:forest_rock":{state:n("block_state")},"minecraft:fossil":{max_empty_corners_allowed:fo.NumberNode({integer:!0,min:0,max:7}),fossil_structures:fo.ListNode(i({validator:"resource",params:{pool:"$structure"}})),overlay_structures:fo.ListNode(i({validator:"resource",params:{pool:"$structure"}})),fossil_processors:_o.Processors,overlay_processors:_o.Processors},"minecraft:geode":{blocks:fo.ObjectNode({filling_provider:n("block_state_provider"),inner_layer_provider:n("block_state_provider"),alternate_inner_layer_provider:n("block_state_provider"),middle_layer_provider:n("block_state_provider"),outer_layer_provider:n("block_state_provider"),inner_placements:fo.ListNode(n("block_state")),cannot_replace:i({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:i({validator:"resource",params:{pool:"$tag/block"}})}),layers:fo.ObjectNode({filling:fo.Opt(fo.NumberNode({min:.01,max:50})),inner_layer:fo.Opt(fo.NumberNode({min:.01,max:50})),middle_layer:fo.Opt(fo.NumberNode({min:.01,max:50})),outer_layer:fo.Opt(fo.NumberNode({min:.01,max:50}))}),crack:fo.ObjectNode({generate_crack_chance:fo.Opt(fo.NumberNode({min:0,max:1})),base_crack_size:fo.Opt(fo.NumberNode({min:0,max:5})),crack_point_offset:fo.Opt(fo.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:fo.Opt(fo.NumberNode({min:0,max:1})),use_potential_placements_chance:fo.Opt(fo.NumberNode({min:0,max:1})),use_alternate_layer0_chance:fo.Opt(fo.NumberNode({min:0,max:1})),placements_require_layer0_alternate:fo.Opt(fo.BooleanNode()),outer_wall_distance:fo.Opt(go.IntProvider({min:1,max:20})),distribution_points:fo.Opt(go.IntProvider({min:1,max:20})),point_offset:fo.Opt(go.IntProvider({min:0,max:10})),min_gen_offset:fo.Opt(fo.NumberNode({integer:!0})),max_gen_offset:fo.Opt(fo.NumberNode({integer:!0})),invalid_blocks_threshold:fo.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:fo.Opt(fo.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:fo.Opt(fo.NumberNode({min:0,max:1})),can_place_on_floor:fo.Opt(fo.BooleanNode()),can_place_on_ceiling:fo.Opt(fo.BooleanNode()),can_place_on_wall:fo.Opt(fo.BooleanNode()),can_be_placed_on:fo.ListNode(n("block_state"))},"minecraft:growing_plant":{direction:i({enum:["up","down","north","east","south","west"]}),allow_water:fo.BooleanNode(),height_distribution:fo.ListNode(fo.ObjectNode({weight:fo.NumberNode({integer:!0}),data:go.IntProvider()})),body_provider:n("block_state_provider"),head_provider:n("block_state_provider")},"minecraft:huge_brown_mushroom":a,"minecraft:huge_fungus":{hat_state:n("block_state"),decor_state:n("block_state"),stem_state:n("block_state"),valid_base_block:n("block_state"),planted:fo.Opt(fo.BooleanNode())},"minecraft:huge_red_mushroom":a,"minecraft:ice_patch":o,"minecraft:iceberg":{state:n("block_state")},"minecraft:lake":{state:n("block_state")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:fo.Opt(fo.NumberNode({integer:!0,min:1,max:512})),column_radius:go.IntProvider({min:0,max:60}),height_scale:go.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:fo.NumberNode({min:0,max:1}),stalactite_bluntness:go.FloatProvider({min:.1,max:10}),stalagmite_bluntness:go.FloatProvider({min:.1,max:10}),wind_speed:go.FloatProvider({min:0,max:2}),min_radius_for_wind:fo.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:fo.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:n("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:n("block_state"),target:n("block_state"),radius:go.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":r,"minecraft:ore":c,"minecraft:random_patch":r,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:fo.ListNode(fo.ObjectNode({chance:fo.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:replace_single_block":{targets:fo.ListNode(s)},"minecraft:root_system":{required_vertical_space_for_tree:fo.NumberNode({integer:!0,min:1,max:64}),root_radius:fo.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:fo.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:fo.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:fo.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:fo.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:fo.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:fo.NumberNode({integer:!0,min:1,max:64}),root_replaceable:i({validator:"resource",params:{pool:"$tag/block"}}),root_state_provider:n("block_state_provider"),hanging_root_state_provider:n("block_state_provider"),feature:l},"minecraft:scattered_ore":c,"minecraft:sea_pickle":{count:go.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:fo.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:n("block_state_provider"),place_on:fo.Opt(fo.ListNode(n("block_state"))),place_in:fo.Opt(fo.ListNode(n("block_state"))),place_under:fo.Opt(fo.ListNode(n("block_state")))},"minecraft:simple_random_selector":{features:fo.ListNode(l)},"minecraft:small_dripstone":{max_placements:fo.Opt(fo.NumberNode({integer:!0,min:0,max:100})),empty_space_search_radius:fo.Opt(fo.NumberNode({integer:!0,min:0,max:20})),max_offset_from_origin:fo.Opt(fo.NumberNode({integer:!0,min:0,max:20})),chance_of_taller_dripstone:fo.Opt(fo.NumberNode({min:0,max:1}))},"minecraft:spring_feature":{state:n("fluid_state"),rock_count:fo.NumberNode({integer:!0}),hole_count:fo.NumberNode({integer:!0}),requires_block_below:fo.BooleanNode(),valid_blocks:fo.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:fo.Opt(fo.BooleanNode()),force_dirt:fo.Opt(fo.BooleanNode()),minimum_size:n("feature_size"),dirt_provider:n("block_state_provider"),sapling_provider:n("block_state_provider"),trunk_provider:n("block_state_provider"),foliage_provider:n("block_state_provider"),trunk_placer:fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:fo.NumberNode({integer:!0,min:0,max:32}),height_rand_a:fo.NumberNode({integer:!0,min:0,max:24}),height_rand_b:fo.NumberNode({integer:!0,min:0,max:24}),[fo.Switch]:[{push:"type"}],[fo.Case]:{"minecraft:bending_trunk_placer":{bend_length:go.IntProvider({min:1,max:64}),min_height_for_leaves:fo.Opt(fo.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:go.IntProvider({min:0,max:16}),offset:go.IntProvider({min:0,max:16}),[fo.Switch]:[{push:"type"}],[fo.Case]:{"minecraft:blob_foliage_placer":{height:fo.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:fo.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:fo.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:fo.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:go.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:go.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:go.IntProvider({min:1,max:512}),leaf_placement_attempts:fo.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:go.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:fo.ListNode(fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[fo.Switch]:[{push:"type"}],[fo.Case]:{"minecraft:alter_ground":{provider:n("block_state_provider")},"minecraft:beehive":{probability:fo.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:fo.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:underwater_magma":{floor_search_range:fo.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:fo.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:fo.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":u,"minecraft:waterlogged_vegetation_patch":u}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:decorated",config:{decorator:{type:"minecraft:count",config:{count:4}},feature:{type:"minecraft:tree",config:{max_water_depth:0,ignore_vines:!0,minimum_size:{},trunk_placer:{base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{radius:2,offset:0,height:3}}}}})})),e.register("feature_size",fo.Mod(fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:fo.Opt(fo.NumberNode({min:0,max:80})),[fo.Switch]:[{push:"type"}],[fo.Case]:{"minecraft:two_layers_feature_size":{limit:fo.Opt(fo.NumberNode({integer:!0,min:0,max:81})),lower_size:fo.Opt(fo.NumberNode({integer:!0,min:0,max:16})),upper_size:fo.Opt(fo.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:fo.Opt(fo.NumberNode({integer:!0,min:0,max:80})),upper_limit:fo.Opt(fo.NumberNode({integer:!0,min:0,max:80})),lower_size:fo.Opt(fo.NumberNode({integer:!0,min:0,max:16})),middle_size:fo.Opt(fo.NumberNode({integer:!0,min:0,max:16})),upper_size:fo.Opt(fo.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",fo.Mod(fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[fo.Switch]:[{push:"type"}],[fo.Case]:{"minecraft:randomized_int_state_provider":{property:i(),values:go.IntProvider(),source:n("block_state_provider")},"minecraft:rotated_block_provider":{state:n("block_state")},"minecraft:simple_state_provider":{state:n("block_state")},"minecraft:weighted_state_provider":{entries:fo.ListNode(fo.Mod(fo.ObjectNode({weight:fo.NumberNode({integer:!0,min:1}),data:n("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",fo.Mod(fo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[fo.Switch]:[{push:"type"}],[fo.Case]:{"minecraft:column_placer":{size:go.IntProvider({min:0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.initNoiseSettingsSchemas=void 0;const vo=Pe,yo=Sr;bo.initNoiseSettingsSchemas=function(e,t){const n=vo.Reference.bind(void 0,e),i=vo.StringNode.bind(void 0,t);e.register("noise_settings",vo.Mod(vo.ObjectNode({name:vo.Mod(i({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:vo.NumberNode({integer:!0}),bedrock_floor_position:vo.NumberNode({integer:!0}),sea_level:vo.NumberNode({integer:!0}),min_surface_level:vo.NumberNode({integer:!0}),disable_mob_generation:vo.BooleanNode(),noise_caves_enabled:vo.BooleanNode(),noodle_caves_enabled:vo.BooleanNode(),aquifers_enabled:vo.BooleanNode(),deepslate_enabled:vo.BooleanNode(),ore_veins_enabled:vo.BooleanNode(),default_block:n("block_state"),default_fluid:n("block_state"),noise:vo.ObjectNode({min_y:vo.NumberNode({integer:!0,min:-2048,max:2047}),height:vo.NumberNode({integer:!0,min:0,max:4096}),density_factor:vo.NumberNode(),density_offset:vo.NumberNode(),size_horizontal:vo.NumberNode({integer:!0}),size_vertical:vo.NumberNode({integer:!0}),simplex_surface_noise:vo.BooleanNode(),random_density_offset:vo.Opt(vo.BooleanNode()),island_noise_override:vo.Opt(vo.BooleanNode()),amplified:vo.Opt(vo.BooleanNode()),sampling:vo.ObjectNode({xz_scale:vo.NumberNode(),y_scale:vo.NumberNode(),xz_factor:vo.NumberNode(),y_factor:vo.NumberNode()}),bottom_slide:vo.ObjectNode({target:vo.NumberNode({integer:!0}),size:vo.NumberNode({integer:!0,min:0}),offset:vo.NumberNode({integer:!0})}),top_slide:vo.ObjectNode({target:vo.NumberNode({integer:!0}),size:vo.NumberNode({integer:!0,min:0}),offset:vo.NumberNode({integer:!0})})}),structures:n("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>yo.DefaultNoiseSettings,validate:(t,n,i,r)=>{var o,a,s,c;return(null===(o=null==(n=e.validate(t,n,i,r))?void 0:n.noise)||void 0===o?void 0:o.min_y)+(null===(a=null==n?void 0:n.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==n?void 0:n.noise)||void 0===s?void 0:s.height)%16!=0&&i.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==n?void 0:n.noise)||void 0===c?void 0:c.min_y)%16!=0&&i.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),n}})))),e.register("generator_structures",vo.ObjectNode({stronghold:vo.Opt(vo.ObjectNode({distance:vo.NumberNode({integer:!0,min:0,max:1023}),spread:vo.NumberNode({integer:!0,min:0,max:1023}),count:vo.NumberNode({integer:!0,min:1,max:4095})})),structures:vo.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),vo.Mod(vo.ObjectNode({spacing:vo.NumberNode({integer:!0,min:0,max:4096}),separation:vo.Mod(vo.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,n,i,r)=>(t.pop().push("spacing").get()<=n&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,n,i,r))}))),salt:vo.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",vo.Mod(vo.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:vo.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.initStructureFeatureSchemas=void 0;const xo=Pe;wo.initStructureFeatureSchemas=function(e,t){const n=xo.StringNode.bind(void 0,t),i=xo.Reference.bind(void 0,e),r={start_pool:n({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:xo.NumberNode({integer:!0})};e.register("configured_structure_feature",xo.Mod(xo.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:xo.ObjectNode({[xo.Switch]:["pop",{push:"type"}],[xo.Case]:{"minecraft:bastion_remnant":r,"minecraft:buried_treasure":{probability:xo.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:n({enum:["normal","mesa"]}),probability:xo.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:i("height_provider")},"minecraft:ocean_ruin":{biome_temp:n({enum:["cold","warm"]}),large_probability:xo.NumberNode({min:0,max:1}),cluster_probability:xo.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":r,"minecraft:ruined_portal":{portal_type:n({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:xo.Opt(xo.BooleanNode())},"minecraft:village":r}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.initSurfaceBuilderSchemas=void 0;const No=Pe;Ao.initSurfaceBuilderSchemas=function(e,t){const n=No.StringNode.bind(void 0,t),i=No.Reference.bind(void 0,e);e.register("configured_surface_builder",No.Mod(No.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:No.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 ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.initTemplatePoolSchemas=void 0;const Co=Pe,Eo=po;ko.initTemplatePoolSchemas=function(e,t){const n=Co.Reference.bind(void 0,e),i=Co.StringNode.bind(void 0,t);e.register("template_pool",Co.Mod(Co.ObjectNode({name:i(),fallback:i(),elements:Co.ListNode(n("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",Co.Mod(Co.ObjectNode({weight:Co.NumberNode({integer:!0,min:1}),element:n("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",Co.Mod(Co.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[Co.Switch]:[{push:"element_type"}],[Co.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:Eo.Processors},"minecraft:list_pool_element":{elements:Co.ListNode(n("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:Eo.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(no,"__esModule",{value:!0}),no.initWorldgenSchemas=void 0;const So=io,Oo=oo,Fo=co,Do=ho,Bo=bo,Lo=po,Mo=wo,To=Ao,Ro=ko;no.initWorldgenSchemas=function(e,t){Lo.initProcessorListSchemas(e,t),So.initBiomeSchemas(e,t),Oo.initCarverSchemas(e,t),Fo.initDecoratorSchemas(e,t),Do.initFeatureSchemas(e,t),Bo.initNoiseSettingsSchemas(e,t),Mo.initStructureFeatureSchemas(e,t),To.initSurfaceBuilderSchemas(e,t),Ro.initTemplatePoolSchemas(e,t)};var $o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.initWorldSettingsSchemas=void 0;const Io=Pe;$o.initWorldSettingsSchemas=function(e,t){const n=Io.Reference.bind(void 0,e),i=Io.StringNode.bind(void 0,t);e.register("world_settings",Io.Mod(Io.ObjectNode({generate_features:Io.BooleanNode(),bonus_chest:Io.BooleanNode(),seed:Io.NumberNode({integer:!0}),dimensions:Io.MapNode(i({validator:"resource",params:{pool:"$dimension"}}),n("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(br,"__esModule",{value:!0}),br.initSchemas=void 0;const jo=vr,Po=wr,zo=Sr,Uo=Or,Wo=Br,Ho=Tr,Vo=Ir,Go=zr,qo=Gr,Ko=Kr,Xo=Jr,Jo=Zr,Yo=eo,Zo=no,Qo=$o;br.initSchemas=function(e,t){zo.initCommonSchemas(e,t),jo.initAdvancementSchemas(e,t),Po.initAssetsSchemas(e,t),Uo.initConditionSchemas(e,t),Ho.initDimensionTypeSchemas(e,t),Wo.initDimensionSchemas(e,t),Vo.initItemModifierSchemas(e,t),Go.initLootTableSchemas(e,t),qo.initPackMcmetaSchemas(e,t),Ko.initPredicatesSchemas(e,t),Xo.initRecipeSchemas(e,t),Jo.initTagsSchemas(e,t),Yo.initTextComponentSchemas(e,t),Zo.initWorldgenSchemas(e,t),Qo.initWorldSettingsSchemas(e,t)};var ea=je&&je.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),ta=je&&je.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),na=je&&je.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&ea(t,e,n);return ta(t,e),t};Object.defineProperty(gr,"__esModule",{value:!0});var ia=gr.getSchemas=gr.getCollections=void 0;const ra=Pe,oa=_r,aa=br;var sa=gr.lootContext=na(Ur);var ca=gr.getCollections=function(){const e=new ra.CollectionRegistry;return oa.initCollections(e),e};ia=gr.getSchemas=function(e){const t=new ra.SchemaRegistry;return aa.initSchemas(t,e),t};var la=Object.freeze(Object.assign(Object.create(null),gr,{[Symbol.toStringTag]:"Module",get getSchemas(){return ia},get getCollections(){return ca},lootContext:sa,default:gr})),ua={},da={};Object.defineProperty(da,"__esModule",{value:!0}),da.initCollections=void 0,da.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 ha={},pa={};Object.defineProperty(pa,"__esModule",{value:!0}),pa.initAdvancementSchemas=void 0;const ma=Pe;pa.initAdvancementSchemas=function(e,t){const n=ma.Reference.bind(void 0,e),i=ma.StringNode.bind(void 0,t),r=ma.ChoiceNode([{type:"object",node:ma.Opt(n("entity_predicate")),change:e=>{var t,n;return null!==(n=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==n?n:{}}},{type:"list",node:ma.ListNode(n("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",ma.Mod(ma.ObjectNode({display:ma.Opt(ma.Mod(ma.ObjectNode({icon:ma.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:ma.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:n("text_component"),description:n("text_component"),background:ma.Opt(i()),frame:ma.Opt(i({enum:["task","challenge","goal"]})),show_toast:ma.Opt(ma.BooleanNode()),announce_to_chat:ma.Opt(ma.BooleanNode()),hidden:ma.Opt(ma.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:ma.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:ma.MapNode(i(),n("advancement_criteria")),requirements:ma.Opt(ma.ListNode(ma.ListNode(i()))),rewards:ma.Opt(ma.ObjectNode({function:ma.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:ma.Opt(ma.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:ma.Opt(ma.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:ma.Opt(ma.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",ma.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:ma.Opt(ma.ObjectNode({player:ma.Mod(r,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[ma.Switch]:["pop",{push:"trigger"}],[ma.Case]:{"minecraft:bee_nest_destroyed":{block:ma.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:ma.Opt(ma.NumberNode({integer:!0})),item:ma.Opt(n("item_predicate"))},"minecraft:bred_animals":{parent:r,partner:r,child:r},"minecraft:brewed_potion":{potion:ma.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:ma.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:ma.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:ma.Opt(ma.ListNode(r))},"minecraft:construct_beacon":{level:n("int_bounds")},"minecraft:consume_item":{item:ma.Opt(n("item_predicate"))},"minecraft:cured_zombie_villager":{villager:r,zombie:r},"minecraft:effects_changed":{effects:ma.Opt(ma.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),ma.ObjectNode({amplifier:n("int_bounds"),duration:n("int_bounds")}))),source:ma.Opt(r)},"minecraft:enter_block":{block:ma.Opt(i({validator:"resource",params:{pool:"block"}})),state:ma.Opt(ma.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:n("int_bounds"),item:ma.Opt(n("item_predicate"))},"minecraft:entity_hurt_player":{damage:ma.Opt(n("damage_predicate"))},"minecraft:entity_killed_player":{entity:r,killing_blow:ma.Opt(n("damage_source_predicate"))},"minecraft:fall_from_height":{start_position:ma.Opt(n("location_predicate")),distance:ma.Opt(n("distance_predicate"))},"minecraft:filled_bucket":{item:ma.Opt(n("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:r,item:ma.Opt(n("item_predicate"))},"minecraft:hero_of_the_village":{location:ma.Opt(n("location_predicate"))},"minecraft:inventory_changed":{slots:ma.Opt(ma.ObjectNode({empty:n("int_bounds"),occupied:n("int_bounds"),full:n("int_bounds")})),items:ma.Opt(ma.ListNode(n("item_predicate")))},"minecraft:item_durability_changed":{delta:n("int_bounds"),durability:n("int_bounds"),item:ma.Opt(n("item_predicate"))},"minecraft:item_used_on_block":{item:ma.Opt(n("item_predicate")),location:ma.Opt(n("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:n("int_bounds"),victims:ma.Opt(ma.ListNode(r))},"minecraft:levitation":{distance:ma.Opt(n("distance_predicate")),duration:n("int_bounds")},"minecraft:lightning_strike":{lightning:r,bystander:r},"minecraft:location":{location:ma.Opt(n("location_predicate"))},"minecraft:nether_travel":{start_position:ma.Opt(n("location_predicate")),distance:ma.Opt(n("distance_predicate"))},"minecraft:placed_block":{block:ma.Opt(i({validator:"resource",params:{pool:"block"}})),state:ma.Opt(ma.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:ma.Opt(n("item_predicate")),location:ma.Opt(n("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:ma.Opt(n("damage_predicate")),entity:r},"minecraft:player_interacted_with_entity":{item:ma.Opt(n("item_predicate")),entity:r},"minecraft:player_killed_entity":{entity:r,killing_blow:ma.Opt(n("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:ride_entity_in_lava":{start_position:ma.Opt(n("location_predicate")),distance:ma.Opt(n("distance_predicate"))},"minecraft:slept_in_bed":{location:ma.Opt(n("location_predicate"))},"minecraft:slide_down_block":{block:ma.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:ma.Opt(n("item_predicate"))},"minecraft:summoned_entity":{entity:r},"minecraft:tame_animal":{entity:r},"minecraft:target_hit":{projectile:r,shooter:r,signal_strength:n("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:ma.Opt(n("entity_predicate")),item:ma.Opt(n("item_predicate"))},"minecraft:used_ender_eye":{distance:ma.Opt(n("float_bounds"))},"minecraft:used_totem":{item:ma.Opt(n("item_predicate"))},"minecraft:using_item":{item:ma.Opt(n("item_predicate"))},"minecraft:villager_trade":{villager:ma.Opt(n("entity_predicate")),item:ma.Opt(n("item_predicate"))},"minecraft:voluntary_exile":{location:ma.Opt(n("location_predicate"))}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var fa={},ga={};Object.defineProperty(ga,"__esModule",{value:!0}),ga.initModelSchemas=void 0;const _a=Pe;ga.initModelSchemas=function(e,t){_a.Reference.bind(void 0,e);const n=_a.StringNode.bind(void 0,t),i=(e,t,n)=>_a.ListNode(_a.NumberNode({min:t,max:n}),{minLength:e,maxLength:e}),r=_a.ChoiceNode([{type:"alias",match:e=>"string"==typeof e&&e.startsWith("#"),node:n(),change:e=>"string"==typeof e?`#${e}`:"#0"},{type:"reference",match:e=>"string"==typeof e,node:n({validator:"resource",params:{pool:"$texture"}}),change:e=>"string"==typeof e?e.replace(/^#/,""):""}],{choiceContext:"texture"});e.register("model",_a.Mod(_a.ObjectNode({parent:_a.Opt(n({validator:"resource",params:{pool:"$model"}})),ambientocclusion:_a.Opt(_a.BooleanNode()),gui_light:_a.Opt(n({enum:"gui_light"})),textures:_a.Opt(_a.MapNode(n(),r)),elements:_a.Opt(_a.ListNode(_a.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:_a.Opt(_a.ObjectNode({origin:i(3),axis:n({enum:"axis"}),angle:_a.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:_a.Opt(_a.BooleanNode())})),shade:_a.Opt(_a.BooleanNode()),faces:_a.MapNode(n({enum:"direction"}),_a.ObjectNode({texture:r,uv:_a.Opt(i(4)),cullface:_a.Opt(n({enum:"direction"})),rotation:_a.Opt(_a.NumberNode({integer:!0})),tintindex:_a.Opt(_a.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:_a.Opt(_a.MapNode(n({enum:"display_position"}),_a.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:_a.Opt(_a.ListNode(_a.ObjectNode({predicate:_a.MapNode(n({enum:"item_model_predicates"}),_a.NumberNode()),model:n({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var ba={};Object.defineProperty(ba,"__esModule",{value:!0}),ba.initBlockDefinitionSchemas=void 0;const va=Pe;ba.initBlockDefinitionSchemas=function(e,t){const n=va.Reference.bind(void 0,e),i=va.StringNode.bind(void 0,t);e.register("block_definition",va.Mod(va.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:va.ObjectNode({variants:va.MapNode(i(),n("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:va.ObjectNode({multipart:va.ListNode(va.ObjectNode({when:va.Opt(n("multipart_condition")),apply:n("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const r={model:i({validator:"resource",params:{pool:"$model"}}),x:va.Opt(va.NumberEnum({integer:!0,values:[0,90,180,270]})),y:va.Opt(va.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:va.Opt(va.BooleanNode())};e.register("model_variant",va.ChoiceNode([{type:"object",node:va.ObjectNode(r),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:va.ListNode(va.ObjectNode(c(s({},r),{weight:va.Opt(va.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",va.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:va.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:va.ObjectNode({OR:va.ListNode(n("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(fa,"__esModule",{value:!0}),fa.initAssetsSchemas=void 0;const ya=ga,wa=ba;fa.initAssetsSchemas=function(e,t){wa.initBlockDefinitionSchemas(e,t),ya.initModelSchemas(e,t)};var xa={};!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=Pe;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 n={"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:n}},e.initCommonSchemas=function(i,r){const o=t.StringNode.bind(void 0,r),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,n;return void 0===e?0:null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n: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,n,i,r,a,c,l)=>{let u={};a&&Object.keys(l[a]).forEach((e=>{u[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(s({type:t.Mod(t.Opt(o({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},u),{context:c,disableSwitchContext:!0}),h=[{type:n,node:l[r][i]}];return a&&h.push({type:"object",priority:-1,node:d}),Object.keys(l).forEach((e=>{h.push({type:e,match:t=>{var n;if("minecraft:"+(null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.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:d,change:t=>({type:e})})})),t.ChoiceNode(h,{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 n,i,r;return{[e]:null!==(r=null!==(i=null!==(n=t.absolute)&&void 0!==n?n:t.above_bottom)&&void 0!==i?i:t.below_top)&&void 0!==r?r: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,n=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:r.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:n},"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 r.get("loot_function_type").forEach((t=>{l[t]=s(s({},c[t]),e)})),l},e.DimensionTypePresets=n=>t.ObjectOrPreset(o({validator:"resource",params:{pool:"$dimension_type"}}),n,{"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:n}},"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:n}},"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:n}},"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:n}},"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:n}}})}}(xa);var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.initConditionSchemas=void 0;const Na=Pe,ka=xa;Aa.initConditionSchemas=function(e,t){const n=Na.Reference.bind(void 0,e),i=Na.StringNode.bind(void 0,t);e.register("predicate",Na.ObjectOrList(n("condition"),{choiceContext:"condition"})),e.register("condition",Na.Mod(Na.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[Na.Switch]:[{push:"condition"}],[Na.Case]:ka.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Ca={};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.initDimensionSchemas=void 0;const Ea=Pe,Sa=xa;Ca.initDimensionSchemas=function(e,t){const n=Ea.Reference.bind(void 0,e),i=Ea.StringNode.bind(void 0,t);e.register("dimension",Ea.Mod(Ea.ObjectNode({type:Sa.DimensionTypePresets(n("dimension_type")),generator:Ea.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Ea.Switch]:[{push:"type"}],[Ea.Case]:{"minecraft:noise":{seed:Ea.NumberNode({integer:!0}),settings:Sa.NoiseSettingsPresets(n("noise_settings")),biome_source:Ea.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Ea.Switch]:[{push:"type"}],[Ea.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:Ea.Opt(i({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:Ea.Mod(Ea.ListNode(n("generator_biome")),{enabled:e=>void 0===e.push("preset").get(),default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:Ea.Opt(Ea.NumberNode({integer:!0,min:0,max:62})),biomes:Ea.ListNode(i({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Ea.NumberNode({integer:!0})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Ea.ObjectNode({biome:Ea.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Ea.Opt(Ea.BooleanNode()),features:Ea.Opt(Ea.BooleanNode()),layers:Ea.ListNode(n("generator_layer")),structures:n("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 r=Ea.ChoiceNode([{type:"number",node:Ea.NumberNode({min:-2,max:2}),change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:0}},{type:"list",node:Ea.ListNode(Ea.NumberNode({min:-2,max:2}),{minLength:2,maxLength:2}),change:e=>[null!=e?e:0,null!=e?e:0]}]);e.register("generator_biome",Ea.Mod(Ea.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Ea.ObjectNode({temperature:r,humidity:r,continentalness:r,erosion:r,weirdness:r,depth:r,offset:Ea.NumberNode({min:0,max:1})})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})}))};var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.initDimensionTypeSchemas=void 0;const Fa=Pe,Da=xa;Oa.initDimensionTypeSchemas=function(e,t){const n=Fa.StringNode.bind(void 0,t);e.register("dimension_type",Fa.Mod(Fa.ObjectNode({ultrawarm:Fa.BooleanNode(),natural:Fa.BooleanNode(),piglin_safe:Fa.BooleanNode(),respawn_anchor_works:Fa.BooleanNode(),bed_works:Fa.BooleanNode(),has_raids:Fa.BooleanNode(),has_skylight:Fa.BooleanNode(),has_ceiling:Fa.BooleanNode(),coordinate_scale:Fa.NumberNode({min:1e-5,max:3e7}),ambient_light:Fa.NumberNode(),fixed_time:Fa.Opt(Fa.NumberNode({integer:!0})),logical_height:Fa.NumberNode({integer:!0,min:0,max:4096}),effects:Fa.Opt(n({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:n({validator:"resource",params:{pool:"$tag/block"}}),min_y:Fa.NumberNode({integer:!0,min:-2048,max:2047}),height:Fa.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>Da.DefaultDimensionType,validate:(t,n,i,r)=>((null==(n=e.validate(t,n,i,r))?void 0:n.min_y)+(null==n?void 0:n.height)>2047&&i.add(t.push("height"),"error.min_y_plus_height",2047),(null==n?void 0:n.logical_height)>(null==n?void 0:n.height)&&i.add(t.push("logical_height"),"error.logical_height"),(null==n?void 0:n.height)%16!=0&&i.add(t.push("height"),"error.height_multiple",16),(null==n?void 0:n.min_y)%16!=0&&i.add(t.push("min_y"),"error.min_y_multiple",16),n)}))))};var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.initItemModifierSchemas=void 0;const La=Pe,Ma=xa;Ba.initItemModifierSchemas=function(e,t){const n=La.Reference.bind(void 0,e),i=La.StringNode.bind(void 0,t);e.register("item_modifier",La.ObjectOrList(n("function"),{choiceContext:"function"}));const r={conditions:La.Opt(La.ListNode(n("condition")))};e.register("function",La.Mod(La.ObjectNode({function:i({validator:"resource",params:{pool:"loot_function_type"}}),[La.Switch]:[{push:"function"}],[La.Case]:Ma.FunctionCases(r)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var Ta={},Ra={};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.LootFunctions=Ra.LootConditions=Ra.LootCopySources=Ra.LootEntitySources=Ra.LootTableTypes=void 0,Ra.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]}]]),Ra.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Ra.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Ra.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",[]]]),Ra.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(Ta,"__esModule",{value:!0}),Ta.initLootTableSchemas=void 0;const $a=Pe,Ia=Ra,ja=xa;Ta.initLootTableSchemas=function(e,t){const n=$a.Reference.bind(void 0,e),i=$a.StringNode.bind(void 0,t),r={conditions:$a.Opt($a.ListNode(n("loot_condition")))},o=s({functions:$a.Opt($a.ListNode(n("loot_function")))},r);function a(e,n,i){const r=[],o=i=>t.get(n).filter((t=>{var n;return(null!==(n=e.get(t))&&void 0!==n?n:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Ia.LootTableTypes){const e=[...a,...s];r.push({match:e=>e.getModel().get(new $a.Path(["type"]))===t,node:i(o(e))})}return r.push({match:e=>!0,node:i(n)}),$a.SwitchNode(r)}const c=a(Ia.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(Ia.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(Ia.LootEntitySources,"entity_source",(e=>i({enum:e}))),d=a(Ia.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",$a.Mod($a.ObjectNode({type:$a.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:$a.Opt($a.ListNode($a.Mod($a.ObjectNode(s({rolls:n("number_provider"),bonus_rolls:$a.Opt(n("number_provider")),entries:$a.ListNode(n("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:$a.Opt($a.ListNode(n("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const h={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",$a.Mod($a.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:$a.Opt($a.Mod($a.NumberNode({integer:!0,min:1}),h)),quality:$a.Opt($a.Mod($a.NumberNode({integer:!0}),h)),[$a.Switch]:[{push:"type"}],[$a.Case]:{"minecraft:alternatives":s({children:$a.ListNode(n("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:$a.ListNode(n("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:$a.ListNode(n("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:$a.Opt($a.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",$a.Mod($a.ObjectNode({function:l,[$a.Switch]:[{push:"function"}],[$a.Case]:ja.FunctionCases(r,d,u)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",$a.Mod($a.ObjectNode({condition:c,[$a.Switch]:[{push:"condition"}],[$a.Case]:ja.ConditionCases(u)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",$a.Mod($a.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:n("number_provider"),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:$a.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.initPackMcmetaSchemas=void 0;const za=Pe;Pa.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",za.Mod(za.ObjectNode({pack:za.Mod(za.ObjectNode({pack_format:za.Mod(za.NumberNode({integer:!0,min:8,max:8}),{default:()=>8,canUpdate:(e,t)=>8!==t,update:()=>[{name:"pack_format",params:[8],newValue:8}]}),description:za.Reference(e,"text_component")}),{default:()=>({pack_format:8,description:""})})}),{default:()=>({pack:{pack_format:8,description:""}})}))};var Ua={};Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.initPredicatesSchemas=void 0;const Wa=Pe;Ua.initPredicatesSchemas=function(e,t){const n=Wa.Reference.bind(void 0,e),i=Wa.StringNode.bind(void 0,t),r=Wa.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Wa.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Wa.ObjectNode({min:Wa.Opt(Wa.NumberNode({integer:!0})),max:Wa.Opt(Wa.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Wa.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Wa.ObjectNode({items:Wa.Opt(Wa.ListNode(i({validator:"resource",params:{pool:"item"}}))),tag:Wa.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:n("int_bounds"),durability:n("int_bounds"),potion:Wa.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Wa.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Wa.Opt(Wa.ListNode(n("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Wa.ObjectNode({enchantment:Wa.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:n("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Wa.ObjectNode({blocks:Wa.Opt(Wa.ListNode(i({validator:"resource",params:{pool:"block"}}))),tag:Wa.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Wa.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Wa.Opt(Wa.MapNode(i(),r,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Wa.ObjectNode({fluid:Wa.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Wa.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Wa.Opt(Wa.MapNode(i(),r))},{context:"fluid"})),e.register("location_predicate",Wa.ObjectNode({position:Wa.Opt(Wa.ObjectNode({x:n("float_bounds"),y:n("float_bounds"),z:n("float_bounds")})),biome:Wa.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Wa.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Wa.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Wa.Opt(Wa.ObjectNode({light:n("int_bounds")})),smokey:Wa.Opt(Wa.BooleanNode()),block:Wa.Opt(n("block_predicate")),fluid:Wa.Opt(n("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Wa.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:n("int_bounds"),[Wa.Switch]:[{push:"type"}],[Wa.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",Wa.ObjectNode({gamemode:Wa.Opt(i({enum:"gamemode"})),level:n("int_bounds"),advancements:Wa.Opt(Wa.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Wa.ChoiceNode([{type:"boolean",node:Wa.BooleanNode(),change:e=>!0},{type:"object",node:Wa.MapNode(i(),Wa.BooleanNode())}]))),recipes:Wa.Opt(Wa.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Wa.BooleanNode())),stats:Wa.Opt(Wa.ListNode(n("statistic_predicate"))),looking_at:Wa.Opt(n("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Wa.ObjectNode({amplifier:n("int_bounds"),duration:n("int_bounds"),ambient:Wa.Opt(Wa.BooleanNode()),visible:Wa.Opt(Wa.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Wa.ObjectNode({x:n("float_bounds"),y:n("float_bounds"),z:n("float_bounds"),absolute:n("float_bounds"),horizontal:n("float_bounds")},{context:"distance"})),e.register("entity_predicate",Wa.ObjectNode({type:Wa.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Wa.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Wa.Opt(i({validator:"team"})),location:Wa.Opt(n("location_predicate")),stepping_on:Wa.Opt(n("location_predicate")),distance:Wa.Opt(n("distance_predicate")),flags:Wa.Opt(Wa.ObjectNode({is_on_fire:Wa.Opt(Wa.BooleanNode()),is_sneaking:Wa.Opt(Wa.BooleanNode()),is_sprinting:Wa.Opt(Wa.BooleanNode()),is_swimming:Wa.Opt(Wa.BooleanNode()),is_baby:Wa.Opt(Wa.BooleanNode())})),equipment:Wa.Opt(Wa.MapNode(i({enum:"slot"}),n("item_predicate"))),player:Wa.Opt(n("player_predicate")),vehicle:Wa.Opt(n("entity_predicate")),passenger:Wa.Opt(n("entity_predicate")),targeted_entity:Wa.Opt(n("entity_predicate")),lightning_bolt:Wa.Opt(Wa.ObjectNode({blocks_set_on_fire:Wa.Opt(n("int_bounds")),entity_struck:Wa.Opt(n("entity_predicate"))})),fishing_hook:Wa.Opt(Wa.ObjectNode({in_open_water:Wa.Opt(Wa.BooleanNode())})),effects:Wa.Opt(Wa.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),n("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Wa.ObjectNode({is_explosion:Wa.Opt(Wa.BooleanNode()),is_fire:Wa.Opt(Wa.BooleanNode()),is_magic:Wa.Opt(Wa.BooleanNode()),is_projectile:Wa.Opt(Wa.BooleanNode()),is_lightning:Wa.Opt(Wa.BooleanNode()),bypasses_armor:Wa.Opt(Wa.BooleanNode()),bypasses_invulnerability:Wa.Opt(Wa.BooleanNode()),bypasses_magic:Wa.Opt(Wa.BooleanNode()),source_entity:Wa.Opt(n("entity_predicate")),direct_entity:Wa.Opt(n("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Wa.ObjectNode({dealt:n("float_bounds"),taken:n("float_bounds"),blocked:Wa.Opt(Wa.BooleanNode()),source_entity:Wa.Opt(n("entity_predicate")),type:Wa.Opt(n("damage_source_predicate"))},{context:"damage"}))};var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.initRecipeSchemas=void 0;const Va=Pe;Ha.initRecipeSchemas=function(e,t){const n=Va.Reference.bind(void 0,e),i=Va.StringNode.bind(void 0,t);e.register("recipe",Va.Mod(Va.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[Va.Switch]:[{push:"type"}],[Va.Case]:{"minecraft:crafting_shaped":{group:Va.Opt(i({enum:"recipe_group",additional:!0})),pattern:Va.ListNode(i()),key:Va.MapNode(i(),n("recipe_ingredient")),result:n("recipe_result")},"minecraft:crafting_shapeless":{group:Va.Opt(i()),ingredients:Va.ListNode(n("recipe_ingredient")),result:n("recipe_result")},"minecraft:smelting":{group:Va.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Va.Opt(Va.NumberNode()),cookingtime:Va.Opt(Va.Mod(Va.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Va.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Va.Opt(Va.NumberNode()),cookingtime:Va.Opt(Va.Mod(Va.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Va.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Va.Opt(Va.NumberNode()),cookingtime:Va.Opt(Va.Mod(Va.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Va.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Va.Opt(Va.NumberNode()),cookingtime:Va.Opt(Va.Mod(Va.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Va.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:Va.NumberNode({integer:!0})},"minecraft:smithing":{group:Va.Opt(i()),base:n("recipe_ingredient_object"),addition:n("recipe_ingredient_object"),result:n("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Va.Mod(Va.ChoiceNode([{type:"object",node:n("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Va.ListNode(n("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Va.Mod(Va.ObjectNode({item:Va.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Va.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Va.Mod(Va.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:Va.Opt(Va.Mod(Va.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.initTagsSchemas=void 0;const qa=Pe;Ga.initTagsSchemas=function(e,t){const n=qa.StringNode.bind(void 0,t),i=e=>qa.Mod(qa.ObjectNode({replace:qa.Opt(qa.BooleanNode()),values:qa.ListNode(qa.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:qa.ObjectNode({id:n({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:qa.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 Ka={};Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.initTextComponentSchemas=void 0;const Xa=Pe;Ka.initTextComponentSchemas=function(e,t){const n=Xa.Reference.bind(void 0,e),i=Xa.StringNode.bind(void 0,t),r=e=>{var t;return e instanceof Array?r(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:n("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:r(e[0])}:"object"==typeof e?e:{text:r(e)}},{type:"list",node:n("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:r},{type:"number",node:Xa.NumberNode(),change:e=>{const t=parseFloat(r(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Xa.BooleanNode(),change:e=>{const t=r(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(n("text_component")),contents:Xa.Opt(n("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(n("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(n("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(n("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(n("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(n("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Xa.Mod(Xa.ListNode(n("text_component")),{default:()=>[{text:""}]}))};var Ja={},Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.initBiomeSchemas=void 0;const Za=Pe;Ya.initBiomeSchemas=function(e,t){const n=Za.StringNode.bind(void 0,t);e.register("biome",Za.Mod(Za.ObjectNode({temperature:Za.NumberNode(),downfall:Za.NumberNode(),precipitation:n({enum:["none","rain","snow"]}),temperature_modifier:Za.Opt(n({enum:["none","frozen"]})),category:n({enum:"biome_category"}),creature_spawn_probability:Za.Opt(Za.NumberNode({min:0,max:1})),effects:Za.ObjectNode({sky_color:Za.NumberNode({color:!0}),fog_color:Za.NumberNode({color:!0}),water_color:Za.NumberNode({color:!0}),water_fog_color:Za.NumberNode({color:!0}),grass_color:Za.Opt(Za.NumberNode({color:!0})),foliage_color:Za.Opt(Za.NumberNode({color:!0})),grass_color_modifier:Za.Opt(n({enum:["none","dark_forest","swamp"]})),ambient_sound:Za.Opt(n()),mood_sound:Za.Opt(Za.ObjectNode({sound:n(),tick_delay:Za.NumberNode({integer:!0}),block_search_extent:Za.NumberNode({integer:!0}),offset:Za.NumberNode()})),additions_sound:Za.Opt(Za.ObjectNode({sound:n(),tick_chance:Za.NumberNode({min:0,max:1})})),music:Za.Opt(Za.ObjectNode({sound:n(),min_delay:Za.NumberNode({integer:!0,min:0}),max_delay:Za.NumberNode({integer:!0,min:0}),replace_current_music:Za.BooleanNode()})),particle:Za.Opt(Za.ObjectNode({options:Za.ObjectNode({type:n()}),probability:Za.NumberNode({min:0,max:1})}))}),spawners:Za.MapNode(n({enum:["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"]}),Za.Mod(Za.ListNode(Za.ObjectNode({type:n({validator:"resource",params:{pool:"entity_type"}}),weight:Za.NumberNode({integer:!0}),minCount:Za.NumberNode({integer:!0}),maxCount:Za.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:Za.MapNode(n({validator:"resource",params:{pool:"entity_type"}}),Za.Mod(Za.ObjectNode({energy_budget:Za.NumberNode(),charge:Za.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:Za.MapNode(n({enum:["air","liquid"]}),Za.Mod(Za.ListNode(n({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:Za.ListNode(Za.Mod(Za.ListNode(n({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 Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.initCarverSchemas=void 0;const es=Pe,ts=xa;Qa.initCarverSchemas=function(e,t){const n=es.Reference.bind(void 0,e),i=es.StringNode.bind(void 0,t),r={vertical_rotation:ts.FloatProvider(),shape:es.ObjectNode({distance_factor:ts.FloatProvider(),thickness:ts.FloatProvider(),width_smoothness:es.NumberNode({integer:!0,min:0}),horizontal_radius_factor:ts.FloatProvider(),vertical_radius_default_factor:es.NumberNode(),vertical_radius_center_factor:es.NumberNode()})},o={horizontal_radius_multiplier:ts.FloatProvider(),vertical_radius_multiplier:ts.FloatProvider(),floor_level:ts.FloatProvider({min:-1,max:1})};e.register("configured_carver",es.Mod(es.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/carver"}}),config:es.ObjectNode({probability:es.NumberNode({min:0,max:1}),y:n("height_provider"),yScale:ts.FloatProvider(),lava_level:n("vertical_anchor"),debug_settings:es.Opt(es.ObjectNode({debug_mode:es.Opt(es.BooleanNode()),air_state:es.Opt(n("block_state")),water_state:es.Opt(n("block_state")),lava_state:es.Opt(n("block_state")),barrier_state:es.Opt(n("block_state"))})),[es.Switch]:["pop",{push:"type"}],[es.Case]:{"minecraft:canyon":r,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var ns={};Object.defineProperty(ns,"__esModule",{value:!0}),ns.initDecoratorSchemas=void 0;const is=Pe,rs=xa;ns.initDecoratorSchemas=function(e,t){const n=is.Reference.bind(void 0,e),i=is.StringNode.bind(void 0,t);e.register("decorator",is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/placement_modifier_type"}}),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:block_predicate_filter":{predicate:n("block_predicate_worldgen")},"minecraft:carving_mask":{step:i({enum:"generation_step"})},"minecraft:rarity_filter":{chance:is.NumberNode({integer:!0,min:0})},"minecraft:count":{count:rs.IntProvider({min:0,max:256})},"minecraft:count_on_every_layer":{count:rs.IntProvider({min:0,max:256})},"minecraft:noise_threshold_count":{noise_level:is.NumberNode(),below_noise:is.NumberNode({integer:!0}),above_noise:is.NumberNode({integer:!0})},"minecraft:noise_based_count":{noise_to_count_ratio:is.NumberNode({integer:!0}),noise_factor:is.NumberNode(),noise_offset:is.Opt(is.NumberNode())},"minecraft:environment_scan":{direction_of_search:i({enum:["up","down"]}),max_steps:is.NumberNode({integer:!0,min:1,max:32}),target_condition:n("block_predicate_worldgen"),allowed_search_condition:is.Opt(n("block_predicate_worldgen"))},"minecraft:heightmap":{heightmap:i({enum:"heightmap_type"})},"minecraft:height_range":{height:n("height_provider")},"minecraft:random_offset":{xz_spread:rs.IntProvider({min:-16,max:16}),y_spread:rs.IntProvider({min:-16,max:16})},"minecraft:surface_relative_threshold_filter":{heightmap:i({enum:"heightmap_type"}),min_inclusive:is.Opt(is.NumberNode({integer:!0})),max_inclusive:is.Opt(is.NumberNode({integer:!0}))},"minecraft:surface_water_depth_filter":{max_water_depth:is.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"}))};var os={},as={};Object.defineProperty(as,"__esModule",{value:!0}),as.initProcessorListSchemas=as.Processors=void 0;const ss=Pe;as.initProcessorListSchemas=function(e,t){const n=ss.Reference.bind(void 0,e),i=ss.StringNode.bind(void 0,t);as.Processors=ss.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:n("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",ss.Mod(ss.ObjectNode({processors:ss.ListNode(n("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",ss.Mod(ss.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[ss.Switch]:[{push:"processor_type"}],[ss.Case]:{"minecraft:block_age":{mossiness:ss.NumberNode()},"minecraft:block_ignore":{blocks:ss.ListNode(n("block_state"))},"minecraft:block_rot":{integrity:ss.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:ss.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:i({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:ss.ListNode(n("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",ss.Mod(ss.ObjectNode({position_predicate:ss.Opt(n("pos_rule_test")),location_predicate:n("rule_test"),input_predicate:n("rule_test"),output_state:n("block_state"),output_nbt:ss.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 r={min_dist:ss.Opt(ss.NumberNode({min:0,max:255,integer:!0})),max_dist:ss.Opt(ss.NumberNode({min:0,max:255,integer:!0})),min_chance:ss.Opt(ss.NumberNode({min:0,max:1})),max_chance:ss.Opt(ss.NumberNode({min:0,max:1}))};e.register("pos_rule_test",ss.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[ss.Switch]:[{push:"predicate_type"}],[ss.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},r),"minecraft:linear_pos":r}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",ss.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[ss.Switch]:[{push:"predicate_type"}],[ss.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:n("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:ss.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:n("block_state"),probability:ss.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(os,"__esModule",{value:!0}),os.initFeatureSchemas=void 0;const cs=Pe,ls=xa,us=as;os.initFeatureSchemas=function(e,t){const n=cs.Reference.bind(void 0,e),i=cs.StringNode.bind(void 0,t),r=cs.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:n("configured_feature")}],{choiceContext:"feature"}),o=cs.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},{type:"object",node:n("placed_feature")}],{choiceContext:"placed_feature"}),a={tries:cs.Opt(cs.NumberNode({integer:!0,min:1})),xz_spread:cs.Opt(cs.NumberNode({integer:!0,min:0})),y_spread:cs.Opt(cs.NumberNode({integer:!0,min:0})),feature:o},l={state:n("block_state"),radius:ls.IntProvider({min:0,max:8}),half_height:cs.NumberNode({integer:!0,min:0,max:4}),targets:cs.ListNode(n("block_state"))},u={cap_provider:n("block_state_provider"),stem_provider:n("block_state_provider"),foliage_radius:cs.Opt(cs.NumberNode({integer:!0}))},d=cs.ObjectNode({target:n("rule_test"),state:n("block_state")}),h={size:cs.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:cs.NumberNode({min:0,max:1}),targets:cs.ListNode(d)},p={surface:i({enum:"cave_surface"}),depth:ls.IntProvider({min:1,max:128}),vertical_range:cs.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:cs.NumberNode({min:0,max:1}),extra_edge_column_chance:cs.NumberNode({min:0,max:1}),vegetation_chance:cs.NumberNode({min:0,max:1}),xz_radius:ls.IntProvider(),replaceable:i({validator:"resource",params:{pool:"$tag/block"}}),ground_state:n("block_state_provider"),vegetation_feature:o};e.register("configured_feature",cs.Mod(cs.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:cs.ObjectNode({[cs.Switch]:["pop",{push:"type"}],[cs.Case]:{"minecraft:bamboo":{probability:cs.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:ls.IntProvider({min:0,max:3}),height:ls.IntProvider({min:1,max:10})},"minecraft:block_column":{direction:i({enum:["up","down","north","east","south","west"]}),allowed_placement:n("block_predicate_worldgen"),prioritize_tip:cs.BooleanNode(),layers:cs.ListNode(cs.ObjectNode({height:ls.IntProvider({min:0}),provider:n("block_state_provider")}))},"minecraft:block_pile":{state_provider:n("block_state_provider")},"minecraft:delta_feature":{contents:n("block_state"),rim:n("block_state"),size:ls.IntProvider({min:0,max:16}),rim_size:ls.IntProvider({min:0,max:16})},"minecraft:disk":l,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:cs.NumberNode({integer:!0,min:1,max:512}),height:ls.IntProvider({min:0,max:128}),radius:ls.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:cs.NumberNode({integer:!0,min:0,max:64}),height_deviation:cs.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:ls.IntProvider({min:0,max:128}),density:ls.FloatProvider({min:0,max:2}),wetness:ls.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:cs.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:cs.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:cs.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:cs.BooleanNode(),exit:cs.Opt(n("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:cs.Opt(cs.BooleanNode()),crystal_beam_target:cs.Opt(n("block_pos")),spikes:cs.ListNode(cs.ObjectNode({centerX:cs.Opt(cs.NumberNode({integer:!0})),centerZ:cs.Opt(cs.NumberNode({integer:!0})),radius:cs.Opt(cs.NumberNode({integer:!0})),height:cs.Opt(cs.NumberNode({integer:!0})),guarded:cs.Opt(cs.BooleanNode())}))},"minecraft:fill_layer":{state:n("block_state"),height:cs.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":a,"minecraft:forest_rock":{state:n("block_state")},"minecraft:fossil":{max_empty_corners_allowed:cs.NumberNode({integer:!0,min:0,max:7}),fossil_structures:cs.ListNode(i({validator:"resource",params:{pool:"$structure"}})),overlay_structures:cs.ListNode(i({validator:"resource",params:{pool:"$structure"}})),fossil_processors:us.Processors,overlay_processors:us.Processors},"minecraft:geode":{blocks:cs.ObjectNode({filling_provider:n("block_state_provider"),inner_layer_provider:n("block_state_provider"),alternate_inner_layer_provider:n("block_state_provider"),middle_layer_provider:n("block_state_provider"),outer_layer_provider:n("block_state_provider"),inner_placements:cs.ListNode(n("block_state")),cannot_replace:i({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:i({validator:"resource",params:{pool:"$tag/block"}})}),layers:cs.ObjectNode({filling:cs.Opt(cs.NumberNode({min:.01,max:50})),inner_layer:cs.Opt(cs.NumberNode({min:.01,max:50})),middle_layer:cs.Opt(cs.NumberNode({min:.01,max:50})),outer_layer:cs.Opt(cs.NumberNode({min:.01,max:50}))}),crack:cs.ObjectNode({generate_crack_chance:cs.Opt(cs.NumberNode({min:0,max:1})),base_crack_size:cs.Opt(cs.NumberNode({min:0,max:5})),crack_point_offset:cs.Opt(cs.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:cs.Opt(cs.NumberNode({min:0,max:1})),use_potential_placements_chance:cs.Opt(cs.NumberNode({min:0,max:1})),use_alternate_layer0_chance:cs.Opt(cs.NumberNode({min:0,max:1})),placements_require_layer0_alternate:cs.Opt(cs.BooleanNode()),outer_wall_distance:cs.Opt(ls.IntProvider({min:1,max:20})),distribution_points:cs.Opt(ls.IntProvider({min:1,max:20})),point_offset:cs.Opt(ls.IntProvider({min:0,max:10})),min_gen_offset:cs.Opt(cs.NumberNode({integer:!0})),max_gen_offset:cs.Opt(cs.NumberNode({integer:!0})),invalid_blocks_threshold:cs.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:cs.Opt(cs.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:cs.Opt(cs.NumberNode({min:0,max:1})),can_place_on_floor:cs.Opt(cs.BooleanNode()),can_place_on_ceiling:cs.Opt(cs.BooleanNode()),can_place_on_wall:cs.Opt(cs.BooleanNode()),can_be_placed_on:cs.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:huge_brown_mushroom":u,"minecraft:huge_fungus":{hat_state:n("block_state"),decor_state:n("block_state"),stem_state:n("block_state"),valid_base_block:n("block_state"),planted:cs.Opt(cs.BooleanNode())},"minecraft:huge_red_mushroom":u,"minecraft:ice_patch":l,"minecraft:iceberg":{state:n("block_state")},"minecraft:lake":{fluid:n("block_state_provider"),barrier:n("block_state_provider")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:cs.Opt(cs.NumberNode({integer:!0,min:1,max:512})),column_radius:ls.IntProvider({min:0,max:60}),height_scale:ls.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:cs.NumberNode({min:0,max:1}),stalactite_bluntness:ls.FloatProvider({min:.1,max:10}),stalagmite_bluntness:ls.FloatProvider({min:.1,max:10}),wind_speed:ls.FloatProvider({min:0,max:2}),min_radius_for_wind:cs.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:cs.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:n("block_state_provider"),spread_width:cs.NumberNode({integer:!0,min:1}),spread_height:cs.NumberNode({integer:!0,min:1})},"minecraft:netherrack_replace_blobs":{state:n("block_state"),target:n("block_state"),radius:ls.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":a,"minecraft:ore":h,"minecraft:pointed_dripstone":{chance_of_taller_dripstone:cs.Opt(cs.NumberNode({min:0,max:1})),chance_of_directional_spread:cs.Opt(cs.NumberNode({min:0,max:1})),chance_of_spread_radius2:cs.Opt(cs.NumberNode({min:0,max:1})),chance_of_spread_radius3:cs.Opt(cs.NumberNode({min:0,max:1}))},"minecraft:random_patch":a,"minecraft:random_boolean_selector":{feature_false:o,feature_true:o},"minecraft:random_selector":{features:cs.ListNode(cs.ObjectNode({chance:cs.NumberNode({min:0,max:1}),feature:o})),default:o},"minecraft:replace_single_block":{targets:cs.ListNode(d)},"minecraft:root_system":{required_vertical_space_for_tree:cs.NumberNode({integer:!0,min:1,max:64}),root_radius:cs.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:cs.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:cs.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:cs.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:cs.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:cs.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:cs.NumberNode({integer:!0,min:1,max:64}),root_replaceable:i({validator:"resource",params:{pool:"$tag/block"}}),root_state_provider:n("block_state_provider"),hanging_root_state_provider:n("block_state_provider"),allowed_tree_position:n("block_predicate_worldgen"),feature:o},"minecraft:scattered_ore":h,"minecraft:sea_pickle":{count:ls.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:cs.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:n("block_state_provider")},"minecraft:simple_random_selector":{features:cs.ListNode(o)},"minecraft:spring_feature":{state:n("fluid_state"),rock_count:cs.NumberNode({integer:!0}),hole_count:cs.NumberNode({integer:!0}),requires_block_below:cs.BooleanNode(),valid_blocks:cs.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:cs.Opt(cs.BooleanNode()),force_dirt:cs.Opt(cs.BooleanNode()),minimum_size:n("feature_size"),dirt_provider:n("block_state_provider"),trunk_provider:n("block_state_provider"),foliage_provider:n("block_state_provider"),trunk_placer:cs.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:cs.NumberNode({integer:!0,min:0,max:32}),height_rand_a:cs.NumberNode({integer:!0,min:0,max:24}),height_rand_b:cs.NumberNode({integer:!0,min:0,max:24}),[cs.Switch]:[{push:"type"}],[cs.Case]:{"minecraft:bending_trunk_placer":{bend_length:ls.IntProvider({min:1,max:64}),min_height_for_leaves:cs.Opt(cs.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:cs.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:ls.IntProvider({min:0,max:16}),offset:ls.IntProvider({min:0,max:16}),[cs.Switch]:[{push:"type"}],[cs.Case]:{"minecraft:blob_foliage_placer":{height:cs.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:cs.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:cs.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:cs.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:ls.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:ls.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:ls.IntProvider({min:1,max:512}),leaf_placement_attempts:cs.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:ls.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:cs.ListNode(cs.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[cs.Switch]:[{push:"type"}],[cs.Case]:{"minecraft:alter_ground":{provider:n("block_state_provider")},"minecraft:beehive":{probability:cs.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:cs.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:twisting_vines":{spread_width:cs.NumberNode({integer:!0,min:1}),spread_height:cs.NumberNode({integer:!0,min:1}),max_height:cs.NumberNode({integer:!0,min:1})},"minecraft:underwater_magma":{floor_search_range:cs.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:cs.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:cs.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":p,"minecraft:waterlogged_vegetation_patch":p}},{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",cs.Mod(cs.ObjectNode({feature:r,placement:cs.ListNode(n("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",cs.Mod(cs.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:cs.Opt(cs.NumberNode({min:0,max:80})),[cs.Switch]:[{push:"type"}],[cs.Case]:{"minecraft:two_layers_feature_size":{limit:cs.Opt(cs.NumberNode({integer:!0,min:0,max:81})),lower_size:cs.Opt(cs.NumberNode({integer:!0,min:0,max:16})),upper_size:cs.Opt(cs.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:cs.Opt(cs.NumberNode({integer:!0,min:0,max:80})),upper_limit:cs.Opt(cs.NumberNode({integer:!0,min:0,max:80})),lower_size:cs.Opt(cs.NumberNode({integer:!0,min:0,max:16})),middle_size:cs.Opt(cs.NumberNode({integer:!0,min:0,max:16})),upper_size:cs.Opt(cs.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const m={seed:cs.NumberNode({integer:!0}),noise:n("noise_parameters"),scale:cs.Mod(cs.NumberNode({min:Number.MIN_VALUE}),{default:()=>1})};e.register("block_state_provider",cs.Mod(cs.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[cs.Switch]:[{push:"type"}],[cs.Case]:{"minecraft:dual_noise_provider":c(s({},m),{variety:ls.InclusiveRange({integer:!0,min:1,max:64}),slow_noise:n("noise_parameters"),slow_scale:cs.Mod(cs.NumberNode({min:Number.MIN_VALUE}),{default:()=>1}),states:cs.ListNode(n("block_state"))}),"minecraft:noise_threshold_provider":c(s({},m),{threshold:cs.NumberNode({min:-1,max:1}),high_chance:cs.NumberNode({min:0,max:1}),default_state:n("block_state"),low_states:cs.ListNode(n("block_state")),high_states:cs.ListNode(n("block_state"))}),"minecraft:noise_provider":c(s({},m),{states:cs.ListNode(n("block_state"))}),"minecraft:randomized_int_state_provider":{property:i(),values:ls.IntProvider(),source:n("block_state_provider")},"minecraft:rotated_block_provider":{state:n("block_state")},"minecraft:simple_state_provider":{state:n("block_state")},"minecraft:weighted_state_provider":{entries:cs.ListNode(cs.Mod(cs.ObjectNode({weight:cs.NumberNode({integer:!0,min:1}),data:n("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})}));const f={offset:cs.Opt(cs.ListNode(cs.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))};e.register("block_predicate_worldgen",cs.Mod(cs.ObjectNode({type:i({validator:"resource",params:{pool:"block_predicate_type"}}),[cs.Switch]:[{push:"type"}],[cs.Case]:{"minecraft:all_of":{predicates:cs.ListNode(n("block_predicate_worldgen"))},"minecraft:any_of":{predicates:cs.ListNode(n("block_predicate_worldgen"))},"minecraft:has_sturdy_face":c(s({},f),{direction:i({enum:"direction"})}),"minecraft:inside_world_bounds":s({},f),"minecraft:matching_block_tag":c(s({},f),{tag:i({validator:"resource",params:{pool:"$tag/block"}})}),"minecraft:matching_blocks":c(s({},f),{blocks:cs.ListNode(i({validator:"resource",params:{pool:"block"}}))}),"minecraft:matching_fluids":c(s({},f),{fluids:cs.ListNode(i({validator:"resource",params:{pool:"fluid"}}))}),"minecraft:not":{predicate:n("block_predicate_worldgen")},"minecraft:would_survive":c(s({},f),{state:n("block_state")})}},{context:"block_predicate"}),{default:()=>({type:"minecraft:true"})}))};var ds={};Object.defineProperty(ds,"__esModule",{value:!0}),ds.initNoiseSettingsSchemas=void 0;const hs=Pe,ps=xa;ds.initNoiseSettingsSchemas=function(e,t){const n=hs.Reference.bind(void 0,e),i=hs.StringNode.bind(void 0,t);e.register("noise_settings",hs.Mod(hs.ObjectNode({sea_level:hs.NumberNode({integer:!0}),disable_mob_generation:hs.BooleanNode(),noise_caves_enabled:hs.BooleanNode(),noodle_caves_enabled:hs.BooleanNode(),aquifers_enabled:hs.BooleanNode(),ore_veins_enabled:hs.BooleanNode(),legacy_random_source:hs.BooleanNode(),default_block:n("block_state"),default_fluid:n("block_state"),noise:hs.ObjectNode({min_y:hs.NumberNode({integer:!0,min:-2048,max:2047}),height:hs.NumberNode({integer:!0,min:0,max:4096}),size_horizontal:hs.NumberNode({integer:!0}),size_vertical:hs.NumberNode({integer:!0}),island_noise_override:hs.Opt(hs.BooleanNode()),amplified:hs.Opt(hs.BooleanNode()),large_biomes:hs.Opt(hs.BooleanNode()),sampling:hs.ObjectNode({xz_scale:hs.NumberNode(),y_scale:hs.NumberNode(),xz_factor:hs.NumberNode(),y_factor:hs.NumberNode()}),bottom_slide:n("noise_slider"),top_slide:n("noise_slider"),terrain_shaper:n("terrain_shaper")}),surface_rule:n("material_rule"),structures:n("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>ps.DefaultNoiseSettings,validate:(t,n,i,r)=>{var o,a,s,c;return(null===(o=null==(n=e.validate(t,n,i,r))?void 0:n.noise)||void 0===o?void 0:o.min_y)+(null===(a=null==n?void 0:n.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==n?void 0:n.noise)||void 0===s?void 0:s.height)%16!=0&&i.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==n?void 0:n.noise)||void 0===c?void 0:c.min_y)%16!=0&&i.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),n}})))),e.register("noise_slider",hs.ObjectNode({target:hs.NumberNode(),size:hs.NumberNode({integer:!0,min:0}),offset:hs.NumberNode({integer:!0})})),e.register("generator_structures",hs.ObjectNode({stronghold:hs.Opt(hs.ObjectNode({distance:hs.NumberNode({integer:!0,min:0,max:1023}),spread:hs.NumberNode({integer:!0,min:0,max:1023}),count:hs.NumberNode({integer:!0,min:1,max:4095})})),structures:hs.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),hs.Mod(hs.ObjectNode({spacing:hs.NumberNode({integer:!0,min:0,max:4096}),separation:hs.Mod(hs.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,n,i,r)=>(t.pop().push("spacing").get()<=n&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,n,i,r))}))),salt:hs.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",hs.Mod(hs.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:hs.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})})),e.register("terrain_shaper",hs.Mod(hs.ObjectNode({offset:n("terrain_spline"),factor:n("terrain_spline"),jaggedness:n("terrain_spline")},{context:"terrain_shaper"}),{default:()=>({offset:0,factor:0,jaggedness:0})})),e.register("terrain_spline",hs.Mod(hs.ChoiceNode([{type:"number",node:hs.NumberNode()},{type:"object",node:hs.ObjectNode({coordinate:hs.Mod(i({enum:["continents","erosion","weirdness","ridges"]}),{default:()=>"continents"}),points:hs.ListNode(hs.ObjectNode({location:hs.NumberNode(),derivative:hs.NumberNode(),value:n("terrain_spline")}))},{category:"function"})}],{context:"terrain_spline",choiceContext:"terrain_spline"}),{default:()=>0}))};var ms={};Object.defineProperty(ms,"__esModule",{value:!0}),ms.initStructureFeatureSchemas=void 0;const fs=Pe;ms.initStructureFeatureSchemas=function(e,t){const n=fs.StringNode.bind(void 0,t),i=fs.Reference.bind(void 0,e),r={start_pool:n({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:fs.NumberNode({integer:!0})};e.register("configured_structure_feature",fs.Mod(fs.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:fs.ObjectNode({[fs.Switch]:["pop",{push:"type"}],[fs.Case]:{"minecraft:bastion_remnant":r,"minecraft:buried_treasure":{probability:fs.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:n({enum:["normal","mesa"]}),probability:fs.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:i("height_provider")},"minecraft:ocean_ruin":{biome_temp:n({enum:["cold","warm"]}),large_probability:fs.NumberNode({min:0,max:1}),cluster_probability:fs.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":r,"minecraft:ruined_portal":{portal_type:n({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:fs.Opt(fs.BooleanNode())},"minecraft:village":r}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var gs={};Object.defineProperty(gs,"__esModule",{value:!0}),gs.initSurfaceRuleSchemas=void 0;const _s=Pe;gs.initSurfaceRuleSchemas=function(e,t){const n=_s.StringNode.bind(void 0,t),i=_s.Reference.bind(void 0,e);e.register("material_rule",_s.Mod(_s.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/material_rule"}}),[_s.Switch]:[{push:"type"}],[_s.Case]:{"minecraft:block":{result_state:i("block_state")},"minecraft:condition":{if_true:i("material_condition"),then_run:i("material_rule")},"minecraft:sequence":{sequence:_s.ListNode(i("material_rule"))}}},{context:"material_rule",category:"pool"}),{default:()=>({type:"minecraft:block",result_state:{Name:"minecraft:stone"}})})),e.register("material_condition",_s.Mod(_s.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/material_condition"}}),[_s.Switch]:[{push:"type"}],[_s.Case]:{"minecraft:biome":{biome_is:_s.ListNode(n({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:noise_threshold":{noise:n({validator:"resource",params:{pool:"$worldgen/noise"}}),min_threshold:_s.NumberNode(),max_threshold:_s.NumberNode()},"minecraft:not":{invert:i("material_condition")},"minecraft:stone_depth":{offset:_s.NumberNode({integer:!0}),surface_type:n({enum:"cave_surface"}),add_surface_depth:_s.BooleanNode(),add_surface_secondary_depth:_s.BooleanNode()},"minecraft:vertical_gradient":{random_name:n(),true_at_and_below:i("vertical_anchor"),false_at_and_above:i("vertical_anchor")},"minecraft:water":{offset:_s.NumberNode({integer:!0}),surface_depth_multiplier:_s.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:_s.BooleanNode()},"minecraft:y_above":{anchor:i("vertical_anchor"),surface_depth_multiplier:_s.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:_s.BooleanNode()}}},{context:"material_condition"}),{default:()=>({type:"minecraft:biome",is_biome:"minecraft:plains"})}))};var bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.initTemplatePoolSchemas=void 0;const vs=Pe,ys=as;bs.initTemplatePoolSchemas=function(e,t){const n=vs.Reference.bind(void 0,e),i=vs.StringNode.bind(void 0,t);e.register("template_pool",vs.Mod(vs.ObjectNode({name:i(),fallback:i(),elements:vs.ListNode(n("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",vs.Mod(vs.ObjectNode({weight:vs.NumberNode({integer:!0,min:1}),element:n("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",vs.Mod(vs.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[vs.Switch]:[{push:"element_type"}],[vs.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:ys.Processors},"minecraft:list_pool_element":{elements:vs.ListNode(n("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:ys.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 ws=Ya,xs=Qa,As=ns,Ns=os,ks=ds,Cs=as,Es=ms,Ss=gs,Os=bs;Ja.initWorldgenSchemas=function(e,t){Cs.initProcessorListSchemas(e,t),ws.initBiomeSchemas(e,t),xs.initCarverSchemas(e,t),As.initDecoratorSchemas(e,t),Ns.initFeatureSchemas(e,t),ks.initNoiseSettingsSchemas(e,t),Es.initStructureFeatureSchemas(e,t),Ss.initSurfaceRuleSchemas(e,t),Os.initTemplatePoolSchemas(e,t)};var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.initWorldSettingsSchemas=void 0;const Ds=Pe;Fs.initWorldSettingsSchemas=function(e,t){const n=Ds.Reference.bind(void 0,e),i=Ds.StringNode.bind(void 0,t);e.register("world_settings",Ds.Mod(Ds.ObjectNode({generate_features:Ds.BooleanNode(),bonus_chest:Ds.BooleanNode(),seed:Ds.NumberNode({integer:!0}),dimensions:Ds.MapNode(i({validator:"resource",params:{pool:"$dimension"}}),n("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(ha,"__esModule",{value:!0}),ha.initSchemas=void 0;const Bs=pa,Ls=fa,Ms=xa,Ts=Aa,Rs=Ca,$s=Oa,Is=Ba,js=Ta,Ps=Pa,zs=Ua,Us=Ha,Ws=Ga,Hs=Ka,Vs=Ja,Gs=Fs;ha.initSchemas=function(e,t){Ms.initCommonSchemas(e,t),Bs.initAdvancementSchemas(e,t),Ls.initAssetsSchemas(e,t),Ts.initConditionSchemas(e,t),$s.initDimensionTypeSchemas(e,t),Rs.initDimensionSchemas(e,t),Is.initItemModifierSchemas(e,t),js.initLootTableSchemas(e,t),Ps.initPackMcmetaSchemas(e,t),zs.initPredicatesSchemas(e,t),Us.initRecipeSchemas(e,t),Ws.initTagsSchemas(e,t),Hs.initTextComponentSchemas(e,t),Vs.initWorldgenSchemas(e,t),Gs.initWorldSettingsSchemas(e,t)};var qs=je&&je.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),Ks=je&&je.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Xs=je&&je.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&qs(t,e,n);return Ks(t,e),t};Object.defineProperty(ua,"__esModule",{value:!0});var Js=ua.getSchemas=ua.getCollections=void 0;const Ys=Pe,Zs=da,Qs=ha;var ec=ua.lootContext=Xs(Ra);var tc=ua.getCollections=function(){const e=new Ys.CollectionRegistry;return Zs.initCollections(e),e};Js=ua.getSchemas=function(e){const t=new Ys.SchemaRegistry;return Qs.initSchemas(t,e),t};var nc=Object.freeze(Object.assign(Object.create(null),ua,{[Symbol.toStringTag]:"Module",get getSchemas(){return Js},get getCollections(){return tc},lootContext:ec,default:ua})),ic={},rc={};Object.defineProperty(rc,"__esModule",{value:!0}),rc.initCollections=void 0,rc.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"]),e.register("mob_category",["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"])};var oc={},ac={};Object.defineProperty(ac,"__esModule",{value:!0}),ac.initAdvancementSchemas=void 0;const sc=Pe;ac.initAdvancementSchemas=function(e,t){const n=sc.Reference.bind(void 0,e),i=sc.StringNode.bind(void 0,t),r=sc.ChoiceNode([{type:"object",node:sc.Opt(n("entity_predicate")),change:e=>{var t,n;return null!==(n=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==n?n:{}}},{type:"list",node:sc.ListNode(n("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",sc.Mod(sc.ObjectNode({display:sc.Opt(sc.Mod(sc.ObjectNode({icon:sc.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:sc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:n("text_component"),description:n("text_component"),background:sc.Opt(i()),frame:sc.Opt(i({enum:["task","challenge","goal"]})),show_toast:sc.Opt(sc.BooleanNode()),announce_to_chat:sc.Opt(sc.BooleanNode()),hidden:sc.Opt(sc.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:sc.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:sc.MapNode(i(),n("advancement_criteria")),requirements:sc.Opt(sc.ListNode(sc.ListNode(i()))),rewards:sc.Opt(sc.ObjectNode({function:sc.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:sc.Opt(sc.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:sc.Opt(sc.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:sc.Opt(sc.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",sc.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:sc.Opt(sc.ObjectNode({player:sc.Mod(r,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[sc.Switch]:["pop",{push:"trigger"}],[sc.Case]:{"minecraft:bee_nest_destroyed":{block:sc.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:sc.Opt(sc.NumberNode({integer:!0})),item:sc.Opt(n("item_predicate"))},"minecraft:bred_animals":{parent:r,partner:r,child:r},"minecraft:brewed_potion":{potion:sc.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:sc.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:sc.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:sc.Opt(sc.ListNode(r))},"minecraft:construct_beacon":{level:n("int_bounds")},"minecraft:consume_item":{item:sc.Opt(n("item_predicate"))},"minecraft:cured_zombie_villager":{villager:r,zombie:r},"minecraft:effects_changed":{effects:sc.Opt(sc.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),sc.ObjectNode({amplifier:n("int_bounds"),duration:n("int_bounds")}))),source:sc.Opt(r)},"minecraft:enter_block":{block:sc.Opt(i({validator:"resource",params:{pool:"block"}})),state:sc.Opt(sc.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:n("int_bounds"),item:sc.Opt(n("item_predicate"))},"minecraft:entity_hurt_player":{damage:sc.Opt(n("damage_predicate"))},"minecraft:entity_killed_player":{entity:r,killing_blow:sc.Opt(n("damage_source_predicate"))},"minecraft:fall_from_height":{start_position:sc.Opt(n("location_predicate")),distance:sc.Opt(n("distance_predicate"))},"minecraft:filled_bucket":{item:sc.Opt(n("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:r,item:sc.Opt(n("item_predicate"))},"minecraft:hero_of_the_village":{location:sc.Opt(n("location_predicate"))},"minecraft:inventory_changed":{slots:sc.Opt(sc.ObjectNode({empty:n("int_bounds"),occupied:n("int_bounds"),full:n("int_bounds")})),items:sc.Opt(sc.ListNode(n("item_predicate")))},"minecraft:item_durability_changed":{delta:n("int_bounds"),durability:n("int_bounds"),item:sc.Opt(n("item_predicate"))},"minecraft:item_used_on_block":{item:sc.Opt(n("item_predicate")),location:sc.Opt(n("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:n("int_bounds"),victims:sc.Opt(sc.ListNode(r))},"minecraft:levitation":{distance:sc.Opt(n("distance_predicate")),duration:n("int_bounds")},"minecraft:lightning_strike":{lightning:r,bystander:r},"minecraft:location":{location:sc.Opt(n("location_predicate"))},"minecraft:nether_travel":{start_position:sc.Opt(n("location_predicate")),distance:sc.Opt(n("distance_predicate"))},"minecraft:placed_block":{block:sc.Opt(i({validator:"resource",params:{pool:"block"}})),state:sc.Opt(sc.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:sc.Opt(n("item_predicate")),location:sc.Opt(n("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:sc.Opt(n("damage_predicate")),entity:r},"minecraft:player_interacted_with_entity":{item:sc.Opt(n("item_predicate")),entity:r},"minecraft:player_killed_entity":{entity:r,killing_blow:sc.Opt(n("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:ride_entity_in_lava":{start_position:sc.Opt(n("location_predicate")),distance:sc.Opt(n("distance_predicate"))},"minecraft:slept_in_bed":{location:sc.Opt(n("location_predicate"))},"minecraft:slide_down_block":{block:sc.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:sc.Opt(n("item_predicate"))},"minecraft:summoned_entity":{entity:r},"minecraft:tame_animal":{entity:r},"minecraft:target_hit":{projectile:r,shooter:r,signal_strength:n("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:sc.Opt(n("entity_predicate")),item:sc.Opt(n("item_predicate"))},"minecraft:used_ender_eye":{distance:sc.Opt(n("float_bounds"))},"minecraft:used_totem":{item:sc.Opt(n("item_predicate"))},"minecraft:using_item":{item:sc.Opt(n("item_predicate"))},"minecraft:villager_trade":{villager:sc.Opt(n("entity_predicate")),item:sc.Opt(n("item_predicate"))},"minecraft:voluntary_exile":{location:sc.Opt(n("location_predicate"))}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var cc={},lc={};Object.defineProperty(lc,"__esModule",{value:!0}),lc.initModelSchemas=void 0;const uc=Pe;lc.initModelSchemas=function(e,t){uc.Reference.bind(void 0,e);const n=uc.StringNode.bind(void 0,t),i=(e,t,n)=>uc.ListNode(uc.NumberNode({min:t,max:n}),{minLength:e,maxLength:e}),r=uc.ChoiceNode([{type:"alias",match:e=>"string"==typeof e&&e.startsWith("#"),node:n(),change:e=>"string"==typeof e?`#${e}`:"#0"},{type:"reference",match:e=>"string"==typeof e,node:n({validator:"resource",params:{pool:"$texture"}}),change:e=>"string"==typeof e?e.replace(/^#/,""):""}],{choiceContext:"texture"});e.register("model",uc.Mod(uc.ObjectNode({parent:uc.Opt(n({validator:"resource",params:{pool:"$model"}})),ambientocclusion:uc.Opt(uc.BooleanNode()),gui_light:uc.Opt(n({enum:"gui_light"})),textures:uc.Opt(uc.MapNode(n(),r)),elements:uc.Opt(uc.ListNode(uc.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:uc.Opt(uc.ObjectNode({origin:i(3),axis:n({enum:"axis"}),angle:uc.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:uc.Opt(uc.BooleanNode())})),shade:uc.Opt(uc.BooleanNode()),faces:uc.MapNode(n({enum:"direction"}),uc.ObjectNode({texture:r,uv:uc.Opt(i(4)),cullface:uc.Opt(n({enum:"direction"})),rotation:uc.Opt(uc.NumberNode({integer:!0})),tintindex:uc.Opt(uc.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:uc.Opt(uc.MapNode(n({enum:"display_position"}),uc.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:uc.Opt(uc.ListNode(uc.ObjectNode({predicate:uc.MapNode(n({enum:"item_model_predicates"}),uc.NumberNode()),model:n({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var dc={};Object.defineProperty(dc,"__esModule",{value:!0}),dc.initBlockDefinitionSchemas=void 0;const hc=Pe;dc.initBlockDefinitionSchemas=function(e,t){const n=hc.Reference.bind(void 0,e),i=hc.StringNode.bind(void 0,t);e.register("block_definition",hc.Mod(hc.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:hc.ObjectNode({variants:hc.MapNode(i(),n("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:hc.ObjectNode({multipart:hc.ListNode(hc.ObjectNode({when:hc.Opt(n("multipart_condition")),apply:n("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const r={model:i({validator:"resource",params:{pool:"$model"}}),x:hc.Opt(hc.NumberEnum({integer:!0,values:[0,90,180,270]})),y:hc.Opt(hc.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:hc.Opt(hc.BooleanNode())};e.register("model_variant",hc.ChoiceNode([{type:"object",node:hc.ObjectNode(r),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:hc.ListNode(hc.ObjectNode(c(s({},r),{weight:hc.Opt(hc.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",hc.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:hc.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:hc.ObjectNode({OR:hc.ListNode(n("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(cc,"__esModule",{value:!0}),cc.initAssetsSchemas=void 0;const pc=lc,mc=dc;cc.initAssetsSchemas=function(e,t){mc.initBlockDefinitionSchemas(e,t),pc.initModelSchemas(e,t)};var fc={};!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=Pe;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={sea_level:63,ore_veins_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,legacy_random_source:!1,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,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}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},e.initCommonSchemas=function(n,i){const r=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,n);n.register("block_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(r(),r(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),n.register("fluid_state",t.Mod(t.ObjectNode({Name:r({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(r(),r()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),n.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const a=e=>t.Opt(t.ChoiceNode([{type:"number",node:t.NumberNode({integer:e}),change:e=>{var t,n;return void 0===e?0:null!==(n=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==n?n:0}},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:e})),max:t.Opt(t.NumberNode({integer:e}))},{context:"range"}),change:e=>({min:null!=e?e:0,max:null!=e?e:0})}]));n.register("int_bounds",a(!0)),n.register("float_bounds",a()),n.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,n,i,o,a,c,l)=>{let u={};a&&Object.keys(l[a]).forEach((e=>{u[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(s({type:t.Mod(t.Opt(r({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},u),{context:c,disableSwitchContext:!0}),h=[{type:n,node:l[o][i]}];return a&&h.push({type:"object",priority:-1,node:d}),Object.keys(l).forEach((e=>{h.push({type:e,match:t=>{var n;if("minecraft:"+(null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.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:d,change:t=>({type:e})})})),t.ChoiceNode(h,{context:c,choiceContext:`${c}.type`})};n.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:r({validator:"objective"}),scale:t.Opt(t.NumberNode())}})),n.register("scoreboard_name_provider",c("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:r({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(r({enum:"entity_source"}),{default:()=>"this"})}})),n.register("nbt_provider",c("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:r({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(r({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()})}}),n.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")}))}}),n.register("int_provider",e.IntProvider()),n.register("vertical_anchor",t.ChoiceNode(["absolute","above_bottom","below_top"].map((e=>({type:e,match:t=>void 0!==(null==t?void 0:t[e]),change:t=>{var n,i,r;return{[e]:null!==(r=null!==(i=null!==(n=t.absolute)&&void 0!==n?n:t.above_bottom)&&void 0!==i?i:t.below_top)&&void 0!==r?r:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),n.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}))},"minecraft:weighted_list":{distribution:t.ListNode(t.ObjectNode({weight:t.NumberNode({integer:!0}),data:o("int_provider")}))}})),e.InclusiveRange=e=>t.ObjectNode({min_inclusive:t.NumberNode(e),max_inclusive:t.NumberNode(e)},{context:"range"}),n.register("noise_parameters",t.Mod(t.ObjectNode({firstOctave:t.NumberNode({integer:!0}),amplitudes:t.ListNode(t.NumberNode())},{context:"noise_parameters"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})})),e.Tag=e=>t.ChoiceNode([{type:"string",node:r({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:r({validator:"resource",params:{pool:e.resource}})},{type:"object",node:o(e.inlineSchema)}],{choiceContext:"tag.list"}):r({validator:"resource",params:{pool:e.resource}})),change:e=>"string"!=typeof e||e.startsWith("#")?[]:[e]}],{choiceContext:"tag"}),e.ConditionCases=(e=r({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:r({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(r(),r(),{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(r({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:r({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:r({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,n=r({enum:"copy_source"}),a=r({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:r({validator:"resource",params:{pool:"enchantment"}}),formula:r({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:n},"minecraft:copy_nbt":{source:o("nbt_provider"),ops:t.ListNode(t.ObjectNode({source:r({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:r({validator:"nbt_path",params:{category:"minecraft:item"}}),op:r({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:r({validator:"resource",params:{pool:"block"}}),properties:t.ListNode(r({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(r({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:o("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(r({enum:"map_feature"})),decoration:t.Opt(r({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:r({enum:"banner_pattern"}),color:r({enum:"dye_color"})})),append:t.Opt(t.BooleanNode())},"minecraft:set_contents":{type:r({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(r({validator:"resource",params:{pool:"enchantment"}}),o("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{type:r({validator:"resource",params:{pool:"block_entity_type"}}),name:r({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:r({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_potion":{id:r({validator:"resource",params:{pool:"potion"}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:r({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=n=>t.ObjectOrPreset(r({validator:"resource",params:{pool:"$dimension_type"}}),n,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"#minecraft:infiniburn_nether",min_y:0,height:256},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"#minecraft:infiniburn_end",min_y:0,height:256}}),e.NoiseSettingsPresets=n=>t.ObjectOrPreset(r({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),n,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{sea_level:32,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,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,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}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:end":{sea_level:0,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,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}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:amplified":{sea_level:63,ore_veins_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,legacy_random_source:!1,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,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}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:caves":{sea_level:32,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,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,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}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:floating_islands":{sea_level:0,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,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,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}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}}})}}(fc);var gc={};Object.defineProperty(gc,"__esModule",{value:!0}),gc.initConditionSchemas=void 0;const _c=Pe,bc=fc;gc.initConditionSchemas=function(e,t){const n=_c.Reference.bind(void 0,e),i=_c.StringNode.bind(void 0,t);e.register("predicate",_c.ObjectOrList(n("condition"),{choiceContext:"condition"})),e.register("condition",_c.Mod(_c.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[_c.Switch]:[{push:"condition"}],[_c.Case]:bc.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.initDimensionSchemas=void 0;const yc=Pe,wc=fc;vc.initDimensionSchemas=function(e,t){const n=yc.Reference.bind(void 0,e),i=yc.StringNode.bind(void 0,t),r=yc.ChoiceNode([{type:"string",priority:1,node:i({validator:"resource",params:{pool:"$worldgen/structure_set"}}),change:()=>{}},{type:"object",node:n("structure_set"),change:()=>({})}],{choiceContext:"structure_set"});e.register("dimension",yc.Mod(yc.ObjectNode({type:wc.DimensionTypePresets(n("dimension_type")),generator:yc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[yc.Switch]:[{push:"type"}],[yc.Case]:{"minecraft:noise":{seed:yc.NumberNode({integer:!0}),settings:wc.NoiseSettingsPresets(n("noise_settings")),biome_source:yc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[yc.Switch]:[{push:"type"}],[yc.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:yc.Opt(i({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:yc.Mod(yc.ListNode(n("generator_biome")),{enabled:e=>void 0===e.push("preset").get(),default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:yc.Opt(yc.NumberNode({integer:!0,min:0,max:62})),biomes:wc.Tag({resource:"$worldgen/biome"})},"minecraft:the_end":{seed:yc.NumberNode({integer:!0})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:yc.ObjectNode({biome:yc.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:yc.Opt(yc.BooleanNode()),features:yc.Opt(yc.BooleanNode()),layers:yc.ListNode(n("generator_layer")),structure_overrides:yc.ListNode(r)})}}},{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 o=yc.ChoiceNode([{type:"number",node:yc.NumberNode({min:-2,max:2}),change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:0}},{type:"list",node:yc.ListNode(yc.NumberNode({min:-2,max:2}),{minLength:2,maxLength:2}),change:e=>[null!=e?e:0,null!=e?e:0]}]);e.register("generator_biome",yc.Mod(yc.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:yc.ObjectNode({temperature:o,humidity:o,continentalness:o,erosion:o,weirdness:o,depth:o,offset:yc.NumberNode({min:0,max:1})})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})}))};var xc={};Object.defineProperty(xc,"__esModule",{value:!0}),xc.initDimensionTypeSchemas=void 0;const Ac=Pe,Nc=fc;xc.initDimensionTypeSchemas=function(e,t){const n=Ac.StringNode.bind(void 0,t);e.register("dimension_type",Ac.Mod(Ac.ObjectNode({ultrawarm:Ac.BooleanNode(),natural:Ac.BooleanNode(),piglin_safe:Ac.BooleanNode(),respawn_anchor_works:Ac.BooleanNode(),bed_works:Ac.BooleanNode(),has_raids:Ac.BooleanNode(),has_skylight:Ac.BooleanNode(),has_ceiling:Ac.BooleanNode(),coordinate_scale:Ac.NumberNode({min:1e-5,max:3e7}),ambient_light:Ac.NumberNode(),fixed_time:Ac.Opt(Ac.NumberNode({integer:!0})),logical_height:Ac.NumberNode({integer:!0,min:0,max:4064}),effects:Ac.Opt(n({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:n({validator:"resource",params:{pool:"block",requireTag:!0}}),min_y:Ac.NumberNode({integer:!0,min:-2032,max:2031}),height:Ac.NumberNode({integer:!0,min:16,max:4064})},{context:"dimension_type"}),(e=>({default:()=>Nc.DefaultDimensionType,validate:(t,n,i,r)=>((null==(n=e.validate(t,n,i,r))?void 0:n.min_y)+(null==n?void 0:n.height)>2032&&i.add(t.push("height"),"error.min_y_plus_height",2032),(null==n?void 0:n.logical_height)>(null==n?void 0:n.height)&&i.add(t.push("logical_height"),"error.logical_height"),(null==n?void 0:n.height)%16!=0&&i.add(t.push("height"),"error.height_multiple",16),(null==n?void 0:n.min_y)%16!=0&&i.add(t.push("min_y"),"error.min_y_multiple",16),n)}))))};var kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.initItemModifierSchemas=void 0;const Cc=Pe,Ec=fc;kc.initItemModifierSchemas=function(e,t){const n=Cc.Reference.bind(void 0,e),i=Cc.StringNode.bind(void 0,t);e.register("item_modifier",Cc.ObjectOrList(n("function"),{choiceContext:"function"}));const r={conditions:Cc.Opt(Cc.ListNode(n("condition")))};e.register("function",Cc.Mod(Cc.ObjectNode({function:i({validator:"resource",params:{pool:"loot_function_type"}}),[Cc.Switch]:[{push:"function"}],[Cc.Case]:Ec.FunctionCases(r)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var Sc={},Oc={};Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.LootFunctions=Oc.LootConditions=Oc.LootCopySources=Oc.LootEntitySources=Oc.LootTableTypes=void 0,Oc.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]}]]),Oc.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Oc.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Oc.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",[]]]),Oc.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(Sc,"__esModule",{value:!0}),Sc.initLootTableSchemas=void 0;const Fc=Pe,Dc=Oc,Bc=fc;Sc.initLootTableSchemas=function(e,t){const n=Fc.Reference.bind(void 0,e),i=Fc.StringNode.bind(void 0,t),r={conditions:Fc.Opt(Fc.ListNode(n("loot_condition")))},o=s({functions:Fc.Opt(Fc.ListNode(n("loot_function")))},r);function a(e,n,i){const r=[],o=i=>t.get(n).filter((t=>{var n;return(null!==(n=e.get(t))&&void 0!==n?n:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Dc.LootTableTypes){const e=[...a,...s];r.push({match:e=>e.getModel().get(new Fc.Path(["type"]))===t,node:i(o(e))})}return r.push({match:e=>!0,node:i(n)}),Fc.SwitchNode(r)}const c=a(Dc.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(Dc.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(Dc.LootEntitySources,"entity_source",(e=>i({enum:e}))),d=a(Dc.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",Fc.Mod(Fc.ObjectNode({type:Fc.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Fc.Opt(Fc.ListNode(Fc.Mod(Fc.ObjectNode(s({rolls:n("number_provider"),bonus_rolls:Fc.Opt(n("number_provider")),entries:Fc.ListNode(n("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Fc.Opt(Fc.ListNode(n("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const h={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",Fc.Mod(Fc.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Fc.Opt(Fc.Mod(Fc.NumberNode({integer:!0,min:1}),h)),quality:Fc.Opt(Fc.Mod(Fc.NumberNode({integer:!0}),h)),[Fc.Switch]:[{push:"type"}],[Fc.Case]:{"minecraft:alternatives":s({children:Fc.ListNode(n("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Fc.ListNode(n("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:Fc.ListNode(n("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:Fc.Opt(Fc.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Fc.Mod(Fc.ObjectNode({function:l,[Fc.Switch]:[{push:"function"}],[Fc.Case]:Bc.FunctionCases(r,d,u)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Fc.Mod(Fc.ObjectNode({condition:c,[Fc.Switch]:[{push:"condition"}],[Fc.Case]:Bc.ConditionCases(u)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Fc.Mod(Fc.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:n("number_provider"),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:Fc.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.initPackMcmetaSchemas=void 0;const Mc=Pe;Lc.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Mc.Mod(Mc.ObjectNode({pack:Mc.Mod(Mc.ObjectNode({pack_format:Mc.Mod(Mc.NumberNode({integer:!0,min:9,max:9}),{default:()=>9,canUpdate:(e,t)=>9!==t,update:()=>[{name:"pack_format",params:[9],newValue:9}]}),description:Mc.Reference(e,"text_component")}),{default:()=>({pack_format:9,description:""})})}),{default:()=>({pack:{pack_format:9,description:""}})}))};var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.initPredicatesSchemas=void 0;const Rc=Pe;Tc.initPredicatesSchemas=function(e,t){const n=Rc.Reference.bind(void 0,e),i=Rc.StringNode.bind(void 0,t),r=Rc.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Rc.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Rc.ObjectNode({min:Rc.Opt(Rc.NumberNode({integer:!0})),max:Rc.Opt(Rc.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Rc.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Rc.ObjectNode({items:Rc.Opt(Rc.ListNode(i({validator:"resource",params:{pool:"item"}}))),tag:Rc.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:n("int_bounds"),durability:n("int_bounds"),potion:Rc.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Rc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Rc.Opt(Rc.ListNode(n("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Rc.ObjectNode({enchantment:Rc.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:n("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Rc.ObjectNode({blocks:Rc.Opt(Rc.ListNode(i({validator:"resource",params:{pool:"block"}}))),tag:Rc.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Rc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Rc.Opt(Rc.MapNode(i(),r,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Rc.ObjectNode({fluid:Rc.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Rc.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Rc.Opt(Rc.MapNode(i(),r))},{context:"fluid"})),e.register("location_predicate",Rc.ObjectNode({position:Rc.Opt(Rc.ObjectNode({x:n("float_bounds"),y:n("float_bounds"),z:n("float_bounds")})),biome:Rc.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Rc.Opt(i({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),dimension:Rc.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Rc.Opt(Rc.ObjectNode({light:n("int_bounds")})),smokey:Rc.Opt(Rc.BooleanNode()),block:Rc.Opt(n("block_predicate")),fluid:Rc.Opt(n("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Rc.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:n("int_bounds"),[Rc.Switch]:[{push:"type"}],[Rc.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",Rc.ObjectNode({gamemode:Rc.Opt(i({enum:"gamemode"})),level:n("int_bounds"),advancements:Rc.Opt(Rc.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Rc.ChoiceNode([{type:"boolean",node:Rc.BooleanNode(),change:e=>!0},{type:"object",node:Rc.MapNode(i(),Rc.BooleanNode())}]))),recipes:Rc.Opt(Rc.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Rc.BooleanNode())),stats:Rc.Opt(Rc.ListNode(n("statistic_predicate"))),looking_at:Rc.Opt(n("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Rc.ObjectNode({amplifier:n("int_bounds"),duration:n("int_bounds"),ambient:Rc.Opt(Rc.BooleanNode()),visible:Rc.Opt(Rc.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Rc.ObjectNode({x:n("float_bounds"),y:n("float_bounds"),z:n("float_bounds"),absolute:n("float_bounds"),horizontal:n("float_bounds")},{context:"distance"})),e.register("entity_predicate",Rc.ObjectNode({type:Rc.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Rc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Rc.Opt(i({validator:"team"})),location:Rc.Opt(n("location_predicate")),stepping_on:Rc.Opt(n("location_predicate")),distance:Rc.Opt(n("distance_predicate")),flags:Rc.Opt(Rc.ObjectNode({is_on_fire:Rc.Opt(Rc.BooleanNode()),is_sneaking:Rc.Opt(Rc.BooleanNode()),is_sprinting:Rc.Opt(Rc.BooleanNode()),is_swimming:Rc.Opt(Rc.BooleanNode()),is_baby:Rc.Opt(Rc.BooleanNode())})),equipment:Rc.Opt(Rc.MapNode(i({enum:"slot"}),n("item_predicate"))),player:Rc.Opt(n("player_predicate")),vehicle:Rc.Opt(n("entity_predicate")),passenger:Rc.Opt(n("entity_predicate")),targeted_entity:Rc.Opt(n("entity_predicate")),lightning_bolt:Rc.Opt(Rc.ObjectNode({blocks_set_on_fire:Rc.Opt(n("int_bounds")),entity_struck:Rc.Opt(n("entity_predicate"))})),fishing_hook:Rc.Opt(Rc.ObjectNode({in_open_water:Rc.Opt(Rc.BooleanNode())})),effects:Rc.Opt(Rc.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),n("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Rc.ObjectNode({is_explosion:Rc.Opt(Rc.BooleanNode()),is_fire:Rc.Opt(Rc.BooleanNode()),is_magic:Rc.Opt(Rc.BooleanNode()),is_projectile:Rc.Opt(Rc.BooleanNode()),is_lightning:Rc.Opt(Rc.BooleanNode()),bypasses_armor:Rc.Opt(Rc.BooleanNode()),bypasses_invulnerability:Rc.Opt(Rc.BooleanNode()),bypasses_magic:Rc.Opt(Rc.BooleanNode()),source_entity:Rc.Opt(n("entity_predicate")),direct_entity:Rc.Opt(n("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Rc.ObjectNode({dealt:n("float_bounds"),taken:n("float_bounds"),blocked:Rc.Opt(Rc.BooleanNode()),source_entity:Rc.Opt(n("entity_predicate")),type:Rc.Opt(n("damage_source_predicate"))},{context:"damage"}))};var $c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.initRecipeSchemas=void 0;const Ic=Pe;$c.initRecipeSchemas=function(e,t){const n=Ic.Reference.bind(void 0,e),i=Ic.StringNode.bind(void 0,t);e.register("recipe",Ic.Mod(Ic.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[Ic.Switch]:[{push:"type"}],[Ic.Case]:{"minecraft:crafting_shaped":{group:Ic.Opt(i({enum:"recipe_group",additional:!0})),pattern:Ic.ListNode(i()),key:Ic.MapNode(i(),n("recipe_ingredient")),result:n("recipe_result")},"minecraft:crafting_shapeless":{group:Ic.Opt(i()),ingredients:Ic.ListNode(n("recipe_ingredient")),result:n("recipe_result")},"minecraft:smelting":{group:Ic.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Ic.Opt(Ic.NumberNode()),cookingtime:Ic.Opt(Ic.Mod(Ic.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Ic.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Ic.Opt(Ic.NumberNode()),cookingtime:Ic.Opt(Ic.Mod(Ic.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Ic.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Ic.Opt(Ic.NumberNode()),cookingtime:Ic.Opt(Ic.Mod(Ic.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Ic.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Ic.Opt(Ic.NumberNode()),cookingtime:Ic.Opt(Ic.Mod(Ic.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Ic.Opt(i()),ingredient:n("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:Ic.NumberNode({integer:!0})},"minecraft:smithing":{group:Ic.Opt(i()),base:n("recipe_ingredient_object"),addition:n("recipe_ingredient_object"),result:n("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Ic.Mod(Ic.ChoiceNode([{type:"object",node:n("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Ic.ListNode(n("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Ic.Mod(Ic.ObjectNode({item:Ic.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Ic.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Ic.Mod(Ic.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:Ic.Opt(Ic.Mod(Ic.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var jc={};Object.defineProperty(jc,"__esModule",{value:!0}),jc.initTagsSchemas=void 0;const Pc=Pe;jc.initTagsSchemas=function(e,t){const n=Pc.StringNode.bind(void 0,t),i=e=>Pc.Mod(Pc.ObjectNode({replace:Pc.Opt(Pc.BooleanNode()),values:Pc.ListNode(Pc.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Pc.ObjectNode({id:n({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Pc.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")),e.register("advancement_tag",i("$advancement")),e.register("dimension_tag",i("$dimension")),e.register("dimension_type_tag",i("$dimension_type")),e.register("function_tag",i("$function")),e.register("item_modifier_tag",i("$item_modifier")),e.register("loot_table_tag",i("$loot_table")),e.register("predicate_tag",i("$predicate")),e.register("recipe_tag",i("$recipe")),e.register("structure_tag",i("$structure")),e.register("biome_tag",i("$worldgen/biome")),e.register("configured_carver_tag",i("$worldgen/configured_carver")),e.register("configured_decorator_tag",i("$worldgen/configured_decorator")),e.register("configured_feature_tag",i("$worldgen/configured_feature")),e.register("configured_structure_feature_tag",i("$worldgen/configured_structure_feature")),e.register("configured_surface_builder_tag",i("$worldgen/configured_surface_builder")),e.register("density_function_tag",i("$worldgen/density_function")),e.register("noise_tag",i("$worldgen/noise")),e.register("noise_settings_tag",i("$worldgen/noise_settings")),e.register("placed_feature_tag",i("$worldgen/placed_feature")),e.register("processor_list_tag",i("$worldgen/processor_list")),e.register("structure_set_tag",i("$worldgen/structure_set")),e.register("template_pool_tag",i("$worldgen/template_pool"))};var zc={};Object.defineProperty(zc,"__esModule",{value:!0}),zc.initTextComponentSchemas=void 0;const Uc=Pe;zc.initTextComponentSchemas=function(e,t){const n=Uc.Reference.bind(void 0,e),i=Uc.StringNode.bind(void 0,t),r=e=>{var t;return e instanceof Array?r(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",Uc.Mod(Uc.ChoiceNode([{type:"object",node:n("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:r(e[0])}:"object"==typeof e?e:{text:r(e)}},{type:"list",node:n("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:r},{type:"number",node:Uc.NumberNode(),change:e=>{const t=parseFloat(r(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Uc.BooleanNode(),change:e=>{const t=r(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:Uc.Opt(i()),font:Uc.Opt(i()),bold:Uc.Opt(Uc.BooleanNode()),italic:Uc.Opt(Uc.BooleanNode()),underlined:Uc.Opt(Uc.BooleanNode()),strikethrough:Uc.Opt(Uc.BooleanNode()),obfuscated:Uc.Opt(Uc.BooleanNode()),insertion:Uc.Opt(i()),clickEvent:Uc.Opt(Uc.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[Uc.Switch]:[{push:"action"}],[Uc.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:Uc.Opt(Uc.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[Uc.Switch]:[{push:"action"}],[Uc.Case]:{show_text:{value:Uc.Opt(n("text_component")),contents:Uc.Opt(n("text_component"))},show_item:{value:Uc.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:Uc.Opt(Uc.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:Uc.Opt(Uc.NumberNode({integer:!0})),tag:Uc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:Uc.Opt(Uc.ObjectNode({name:Uc.Opt(i()),type:Uc.Opt(i()),id:Uc.Opt(i())})),contents:Uc.Opt(Uc.Mod(Uc.ObjectNode({name:Uc.Opt(n("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:Uc.Opt(n("text_component_list"))};e.register("text_component_object",Uc.Mod(Uc.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:Uc.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:Uc.ObjectNode(s({translate:i(),with:Uc.Opt(n("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:Uc.ObjectNode(s({score:Uc.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:Uc.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:Uc.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:Uc.Opt(n("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:Uc.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:Uc.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:Uc.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:Uc.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:Uc.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:Uc.Opt(Uc.BooleanNode()),separator:Uc.Opt(n("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Uc.Mod(Uc.ListNode(n("text_component")),{default:()=>[{text:""}]}))};var Wc={},Hc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initBiomeSchemas=e.MobCategorySpawnSettings=void 0;const t=Pe,n=fc;e.initBiomeSchemas=function(i,r){const o=t.StringNode.bind(void 0,r);e.MobCategorySpawnSettings=t.Mod(t.ListNode(t.ObjectNode({type:o({validator:"resource",params:{pool:"entity_type"}}),weight:t.NumberNode({integer:!0}),minCount:t.NumberNode({integer:!0}),maxCount:t.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]}),i.register("biome",t.Mod(t.ObjectNode({temperature:t.NumberNode(),downfall:t.NumberNode(),precipitation:o({enum:["none","rain","snow"]}),temperature_modifier:t.Opt(o({enum:["none","frozen"]})),category:o({enum:"biome_category"}),creature_spawn_probability:t.Opt(t.NumberNode({min:0,max:1})),effects:t.ObjectNode({sky_color:t.NumberNode({color:!0}),fog_color:t.NumberNode({color:!0}),water_color:t.NumberNode({color:!0}),water_fog_color:t.NumberNode({color:!0}),grass_color:t.Opt(t.NumberNode({color:!0})),foliage_color:t.Opt(t.NumberNode({color:!0})),grass_color_modifier:t.Opt(o({enum:["none","dark_forest","swamp"]})),ambient_sound:t.Opt(o()),mood_sound:t.Opt(t.ObjectNode({sound:o(),tick_delay:t.NumberNode({integer:!0}),block_search_extent:t.NumberNode({integer:!0}),offset:t.NumberNode()})),additions_sound:t.Opt(t.ObjectNode({sound:o(),tick_chance:t.NumberNode({min:0,max:1})})),music:t.Opt(t.ObjectNode({sound:o(),min_delay:t.NumberNode({integer:!0,min:0}),max_delay:t.NumberNode({integer:!0,min:0}),replace_current_music:t.BooleanNode()})),particle:t.Opt(t.ObjectNode({options:t.ObjectNode({type:o()}),probability:t.NumberNode({min:0,max:1})}))}),spawners:t.MapNode(o({enum:"mob_category"}),e.MobCategorySpawnSettings),spawn_costs:t.MapNode(o({validator:"resource",params:{pool:"entity_type"}}),t.Mod(t.ObjectNode({energy_budget:t.NumberNode(),charge:t.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:t.MapNode(o({enum:["air","liquid"]}),t.Mod(n.Tag({resource:"$worldgen/configured_carver",inlineSchema:"configured_carver"}),{default:()=>["minecraft:cave"]})),features:t.ListNode(t.Mod(n.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}})}))}}(Hc);var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.initCarverSchemas=void 0;const Gc=Pe,qc=fc;Vc.initCarverSchemas=function(e,t){const n=Gc.Reference.bind(void 0,e),i=Gc.StringNode.bind(void 0,t),r={vertical_rotation:qc.FloatProvider(),shape:Gc.ObjectNode({distance_factor:qc.FloatProvider(),thickness:qc.FloatProvider(),width_smoothness:Gc.NumberNode({integer:!0,min:0}),horizontal_radius_factor:qc.FloatProvider(),vertical_radius_default_factor:Gc.NumberNode(),vertical_radius_center_factor:Gc.NumberNode()})},o={horizontal_radius_multiplier:qc.FloatProvider(),vertical_radius_multiplier:qc.FloatProvider(),floor_level:qc.FloatProvider({min:-1,max:1})};e.register("configured_carver",Gc.Mod(Gc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/carver"}}),config:Gc.ObjectNode({probability:Gc.NumberNode({min:0,max:1}),y:n("height_provider"),yScale:qc.FloatProvider(),lava_level:n("vertical_anchor"),debug_settings:Gc.Opt(Gc.ObjectNode({debug_mode:Gc.Opt(Gc.BooleanNode()),air_state:Gc.Opt(n("block_state")),water_state:Gc.Opt(n("block_state")),lava_state:Gc.Opt(n("block_state")),barrier_state:Gc.Opt(n("block_state"))})),[Gc.Switch]:["pop",{push:"type"}],[Gc.Case]:{"minecraft:canyon":r,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.initDecoratorSchemas=void 0;const Xc=Pe,Jc=fc;Kc.initDecoratorSchemas=function(e,t){const n=Xc.Reference.bind(void 0,e),i=Xc.StringNode.bind(void 0,t);e.register("decorator",Xc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/placement_modifier_type"}}),[Xc.Switch]:[{push:"type"}],[Xc.Case]:{"minecraft:block_predicate_filter":{predicate:n("block_predicate_worldgen")},"minecraft:carving_mask":{step:i({enum:"generation_step"})},"minecraft:rarity_filter":{chance:Xc.NumberNode({integer:!0,min:0})},"minecraft:count":{count:Jc.IntProvider({min:0,max:256})},"minecraft:count_on_every_layer":{count:Jc.IntProvider({min:0,max:256})},"minecraft:noise_threshold_count":{noise_level:Xc.NumberNode(),below_noise:Xc.NumberNode({integer:!0}),above_noise:Xc.NumberNode({integer:!0})},"minecraft:noise_based_count":{noise_to_count_ratio:Xc.NumberNode({integer:!0}),noise_factor:Xc.NumberNode(),noise_offset:Xc.Opt(Xc.NumberNode())},"minecraft:environment_scan":{direction_of_search:i({enum:["up","down"]}),max_steps:Xc.NumberNode({integer:!0,min:1,max:32}),target_condition:n("block_predicate_worldgen"),allowed_search_condition:Xc.Opt(n("block_predicate_worldgen"))},"minecraft:heightmap":{heightmap:i({enum:"heightmap_type"})},"minecraft:height_range":{height:n("height_provider")},"minecraft:random_offset":{xz_spread:Jc.IntProvider({min:-16,max:16}),y_spread:Jc.IntProvider({min:-16,max:16})},"minecraft:surface_relative_threshold_filter":{heightmap:i({enum:"heightmap_type"}),min_inclusive:Xc.Opt(Xc.NumberNode({integer:!0})),max_inclusive:Xc.Opt(Xc.NumberNode({integer:!0}))},"minecraft:surface_water_depth_filter":{max_water_depth:Xc.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"}))};var Yc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initDensityFunctionSchemas=e.DensityFunction=void 0;const t=Pe;e.initDensityFunctionSchemas=function(n,i){const r=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,n);e.DensityFunction=t.Mod(t.ChoiceNode([{type:"number",node:t.NumberNode(),change:()=>0},{type:"string",priority:1,node:r({validator:"resource",params:{pool:"$worldgen/density_function"}}),change:()=>{}},{type:"object",node:o("density_function"),change:()=>({})}],{choiceContext:"density_function"}),{default:()=>0});const a=t.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:"$worldgen/noise"}}),change:()=>{}},{type:"object",node:o("noise_parameters")}],{choiceContext:"noise_parameters"}),s=t.NumberNode({min:-1e6,max:1e6}),c=t.NumberNode({integer:!0,min:-4064,max:4062});n.register("density_function",t.Mod(t.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/density_function_type"}}),[t.Switch]:[{push:"type"}],[t.Case]:{"minecraft:abs":{argument:e.DensityFunction},"minecraft:add":{argument1:e.DensityFunction,argument2:e.DensityFunction},"minecraft:blend_density":{argument:e.DensityFunction},"minecraft:cache_2d":{argument:e.DensityFunction},"minecraft:cache_all_in_cell":{argument:e.DensityFunction},"minecraft:cache_once":{argument:e.DensityFunction},"minecraft:clamp":{input:e.DensityFunction,min:s,max:s},"minecraft:constant":{argument:t.NumberNode()},"minecraft:cube":{argument:e.DensityFunction},"minecraft:flat_cache":{argument:e.DensityFunction},"minecraft:half_negative":{argument:e.DensityFunction},"minecraft:interpolated":{argument:e.DensityFunction},"minecraft:max":{argument1:e.DensityFunction,argument2:e.DensityFunction},"minecraft:min":{argument1:e.DensityFunction,argument2:e.DensityFunction},"minecraft:mul":{argument1:e.DensityFunction,argument2:e.DensityFunction},"minecraft:noise":{noise:a,xz_scale:t.NumberNode(),y_scale:t.NumberNode()},"minecraft:quarter_negative":{argument:e.DensityFunction},"minecraft:range_choice":{input:e.DensityFunction,min_inclusive:s,max_exclusive:s,when_in_range:e.DensityFunction,when_out_of_range:e.DensityFunction},"minecraft:shift":{argument:e.DensityFunction},"minecraft:shift_a":{argument:e.DensityFunction},"minecraft:shift_b":{argument:e.DensityFunction},"minecraft:shifted_noise":{noise:a,xz_scale:t.NumberNode(),y_scale:t.NumberNode(),shift_x:e.DensityFunction,shift_y:e.DensityFunction,shift_z:e.DensityFunction},"minecraft:slide":{argument:e.DensityFunction},"minecraft:square":{argument:e.DensityFunction},"minecraft:squeeze":{argument:e.DensityFunction},"minecraft:terrain_shaper_spline":{spline:r({enum:["offset","factor","jaggedness"]}),min_value:s,max_value:s,continentalness:e.DensityFunction,erosion:e.DensityFunction,weirdness:e.DensityFunction},"minecraft:weird_scaled_sampler":{rarity_value_mapper:r({enum:["type_1","type_2"]}),noise:a,input:e.DensityFunction},"minecraft:y_clamped_gradient":{from_y:c,to_y:c,from_value:s,to_value:s}}},{context:"density_function",disableSwitchContext:!0}),{default:()=>({type:"minecraft:noise",noise:"minecraft:cave_entrance",xz_scale:.75,y_scale:.5})}))}}(Yc);var Zc={},Qc={};Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.initProcessorListSchemas=Qc.Processors=void 0;const el=Pe;Qc.initProcessorListSchemas=function(e,t){const n=el.Reference.bind(void 0,e),i=el.StringNode.bind(void 0,t);Qc.Processors=el.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:n("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",el.Mod(el.ObjectNode({processors:el.ListNode(n("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",el.Mod(el.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[el.Switch]:[{push:"processor_type"}],[el.Case]:{"minecraft:block_age":{mossiness:el.NumberNode()},"minecraft:block_ignore":{blocks:el.ListNode(n("block_state"))},"minecraft:block_rot":{integrity:el.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:el.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:i({validator:"resource",params:{pool:"block",requireTag:!0}})},"minecraft:rule":{rules:el.ListNode(n("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",el.Mod(el.ObjectNode({position_predicate:el.Opt(n("pos_rule_test")),location_predicate:n("rule_test"),input_predicate:n("rule_test"),output_state:n("block_state"),output_nbt:el.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 r={min_dist:el.Opt(el.NumberNode({min:0,max:255,integer:!0})),max_dist:el.Opt(el.NumberNode({min:0,max:255,integer:!0})),min_chance:el.Opt(el.NumberNode({min:0,max:1})),max_chance:el.Opt(el.NumberNode({min:0,max:1}))};e.register("pos_rule_test",el.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[el.Switch]:[{push:"predicate_type"}],[el.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},r),"minecraft:linear_pos":r}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",el.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[el.Switch]:[{push:"predicate_type"}],[el.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:n("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:el.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:n("block_state"),probability:el.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.initFeatureSchemas=void 0;const tl=Pe,nl=fc,il=Qc;Zc.initFeatureSchemas=function(e,t){const n=tl.Reference.bind(void 0,e),i=tl.StringNode.bind(void 0,t),r=tl.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:n("configured_feature")}],{choiceContext:"feature"}),o=tl.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},{type:"object",node:n("placed_feature")}],{choiceContext:"placed_feature"}),a={tries:tl.Opt(tl.NumberNode({integer:!0,min:1})),xz_spread:tl.Opt(tl.NumberNode({integer:!0,min:0})),y_spread:tl.Opt(tl.NumberNode({integer:!0,min:0})),feature:o},l={state:n("block_state"),radius:nl.IntProvider({min:0,max:8}),half_height:tl.NumberNode({integer:!0,min:0,max:4}),targets:tl.ListNode(n("block_state"))},u={cap_provider:n("block_state_provider"),stem_provider:n("block_state_provider"),foliage_radius:tl.Opt(tl.NumberNode({integer:!0}))},d=tl.ObjectNode({target:n("rule_test"),state:n("block_state")}),h={size:tl.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:tl.NumberNode({min:0,max:1}),targets:tl.ListNode(d)},p={surface:i({enum:"cave_surface"}),depth:nl.IntProvider({min:1,max:128}),vertical_range:tl.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:tl.NumberNode({min:0,max:1}),extra_edge_column_chance:tl.NumberNode({min:0,max:1}),vegetation_chance:tl.NumberNode({min:0,max:1}),xz_radius:nl.IntProvider(),replaceable:i({validator:"resource",params:{pool:"block",requireTag:!0}}),ground_state:n("block_state_provider"),vegetation_feature:o};e.register("configured_feature",tl.Mod(tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:tl.ObjectNode({[tl.Switch]:["pop",{push:"type"}],[tl.Case]:{"minecraft:bamboo":{probability:tl.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:nl.IntProvider({min:0,max:3}),height:nl.IntProvider({min:1,max:10})},"minecraft:block_column":{direction:i({enum:["up","down","north","east","south","west"]}),allowed_placement:n("block_predicate_worldgen"),prioritize_tip:tl.BooleanNode(),layers:tl.ListNode(tl.ObjectNode({height:nl.IntProvider({min:0}),provider:n("block_state_provider")}))},"minecraft:block_pile":{state_provider:n("block_state_provider")},"minecraft:delta_feature":{contents:n("block_state"),rim:n("block_state"),size:nl.IntProvider({min:0,max:16}),rim_size:nl.IntProvider({min:0,max:16})},"minecraft:disk":l,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:tl.NumberNode({integer:!0,min:1,max:512}),height:nl.IntProvider({min:0,max:128}),radius:nl.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:tl.NumberNode({integer:!0,min:0,max:64}),height_deviation:tl.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:nl.IntProvider({min:0,max:128}),density:nl.FloatProvider({min:0,max:2}),wetness:nl.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:tl.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:tl.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:tl.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:tl.BooleanNode(),exit:tl.Opt(n("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:tl.Opt(tl.BooleanNode()),crystal_beam_target:tl.Opt(n("block_pos")),spikes:tl.ListNode(tl.ObjectNode({centerX:tl.Opt(tl.NumberNode({integer:!0})),centerZ:tl.Opt(tl.NumberNode({integer:!0})),radius:tl.Opt(tl.NumberNode({integer:!0})),height:tl.Opt(tl.NumberNode({integer:!0})),guarded:tl.Opt(tl.BooleanNode())}))},"minecraft:fill_layer":{state:n("block_state"),height:tl.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":a,"minecraft:forest_rock":{state:n("block_state")},"minecraft:fossil":{max_empty_corners_allowed:tl.NumberNode({integer:!0,min:0,max:7}),fossil_structures:tl.ListNode(i({validator:"resource",params:{pool:"$structure"}})),overlay_structures:tl.ListNode(i({validator:"resource",params:{pool:"$structure"}})),fossil_processors:il.Processors,overlay_processors:il.Processors},"minecraft:geode":{blocks:tl.ObjectNode({filling_provider:n("block_state_provider"),inner_layer_provider:n("block_state_provider"),alternate_inner_layer_provider:n("block_state_provider"),middle_layer_provider:n("block_state_provider"),outer_layer_provider:n("block_state_provider"),inner_placements:tl.ListNode(n("block_state")),cannot_replace:i({validator:"resource",params:{pool:"block",requireTag:!0}}),invalid_blocks:i({validator:"resource",params:{pool:"block",requireTag:!0}})}),layers:tl.ObjectNode({filling:tl.Opt(tl.NumberNode({min:.01,max:50})),inner_layer:tl.Opt(tl.NumberNode({min:.01,max:50})),middle_layer:tl.Opt(tl.NumberNode({min:.01,max:50})),outer_layer:tl.Opt(tl.NumberNode({min:.01,max:50}))}),crack:tl.ObjectNode({generate_crack_chance:tl.Opt(tl.NumberNode({min:0,max:1})),base_crack_size:tl.Opt(tl.NumberNode({min:0,max:5})),crack_point_offset:tl.Opt(tl.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:tl.Opt(tl.NumberNode({min:0,max:1})),use_potential_placements_chance:tl.Opt(tl.NumberNode({min:0,max:1})),use_alternate_layer0_chance:tl.Opt(tl.NumberNode({min:0,max:1})),placements_require_layer0_alternate:tl.Opt(tl.BooleanNode()),outer_wall_distance:tl.Opt(nl.IntProvider({min:1,max:20})),distribution_points:tl.Opt(nl.IntProvider({min:1,max:20})),point_offset:tl.Opt(nl.IntProvider({min:0,max:10})),min_gen_offset:tl.Opt(tl.NumberNode({integer:!0})),max_gen_offset:tl.Opt(tl.NumberNode({integer:!0})),invalid_blocks_threshold:tl.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:tl.Opt(tl.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:tl.Opt(tl.NumberNode({min:0,max:1})),can_place_on_floor:tl.Opt(tl.BooleanNode()),can_place_on_ceiling:tl.Opt(tl.BooleanNode()),can_place_on_wall:tl.Opt(tl.BooleanNode()),can_be_placed_on:nl.Tag({resource:"block"})},"minecraft:huge_brown_mushroom":u,"minecraft:huge_fungus":{hat_state:n("block_state"),decor_state:n("block_state"),stem_state:n("block_state"),valid_base_block:n("block_state"),planted:tl.Opt(tl.BooleanNode())},"minecraft:huge_red_mushroom":u,"minecraft:ice_patch":l,"minecraft:iceberg":{state:n("block_state")},"minecraft:lake":{fluid:n("block_state_provider"),barrier:n("block_state_provider")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:tl.Opt(tl.NumberNode({integer:!0,min:1,max:512})),column_radius:nl.IntProvider({min:0,max:60}),height_scale:nl.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:tl.NumberNode({min:0,max:1}),stalactite_bluntness:nl.FloatProvider({min:.1,max:10}),stalagmite_bluntness:nl.FloatProvider({min:.1,max:10}),wind_speed:nl.FloatProvider({min:0,max:2}),min_radius_for_wind:tl.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:tl.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:n("block_state_provider"),spread_width:tl.NumberNode({integer:!0,min:1}),spread_height:tl.NumberNode({integer:!0,min:1})},"minecraft:netherrack_replace_blobs":{state:n("block_state"),target:n("block_state"),radius:nl.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":a,"minecraft:ore":h,"minecraft:pointed_dripstone":{chance_of_taller_dripstone:tl.Opt(tl.NumberNode({min:0,max:1})),chance_of_directional_spread:tl.Opt(tl.NumberNode({min:0,max:1})),chance_of_spread_radius2:tl.Opt(tl.NumberNode({min:0,max:1})),chance_of_spread_radius3:tl.Opt(tl.NumberNode({min:0,max:1}))},"minecraft:random_patch":a,"minecraft:random_boolean_selector":{feature_false:o,feature_true:o},"minecraft:random_selector":{features:tl.ListNode(tl.ObjectNode({chance:tl.NumberNode({min:0,max:1}),feature:o})),default:o},"minecraft:replace_single_block":{targets:tl.ListNode(d)},"minecraft:root_system":{required_vertical_space_for_tree:tl.NumberNode({integer:!0,min:1,max:64}),root_radius:tl.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:tl.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:tl.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:tl.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:tl.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:tl.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:tl.NumberNode({integer:!0,min:1,max:64}),root_replaceable:i({validator:"resource",params:{pool:"block",requireTag:!0}}),root_state_provider:n("block_state_provider"),hanging_root_state_provider:n("block_state_provider"),allowed_tree_position:n("block_predicate_worldgen"),feature:o},"minecraft:scattered_ore":h,"minecraft:sea_pickle":{count:nl.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:tl.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:n("block_state_provider")},"minecraft:simple_random_selector":{features:nl.Tag({resource:"$worldgen/placed_feature",inlineSchema:"placed_feature"})},"minecraft:spring_feature":{state:n("fluid_state"),rock_count:tl.NumberNode({integer:!0}),hole_count:tl.NumberNode({integer:!0}),requires_block_below:tl.BooleanNode(),valid_blocks:nl.Tag({resource:"block"})},"minecraft:tree":{ignore_vines:tl.Opt(tl.BooleanNode()),force_dirt:tl.Opt(tl.BooleanNode()),minimum_size:n("feature_size"),dirt_provider:n("block_state_provider"),trunk_provider:n("block_state_provider"),foliage_provider:n("block_state_provider"),trunk_placer:tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:tl.NumberNode({integer:!0,min:0,max:32}),height_rand_a:tl.NumberNode({integer:!0,min:0,max:24}),height_rand_b:tl.NumberNode({integer:!0,min:0,max:24}),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:bending_trunk_placer":{bend_length:nl.IntProvider({min:1,max:64}),min_height_for_leaves:tl.Opt(tl.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:nl.IntProvider({min:0,max:16}),offset:nl.IntProvider({min:0,max:16}),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:blob_foliage_placer":{height:tl.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:tl.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:tl.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:tl.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:nl.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:nl.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:nl.IntProvider({min:1,max:512}),leaf_placement_attempts:tl.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:nl.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:tl.ListNode(tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:alter_ground":{provider:n("block_state_provider")},"minecraft:beehive":{probability:tl.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:tl.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:twisting_vines":{spread_width:tl.NumberNode({integer:!0,min:1}),spread_height:tl.NumberNode({integer:!0,min:1}),max_height:tl.NumberNode({integer:!0,min:1})},"minecraft:underwater_magma":{floor_search_range:tl.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:tl.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:tl.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":p,"minecraft:waterlogged_vegetation_patch":p}},{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",tl.Mod(tl.ObjectNode({feature:r,placement:tl.ListNode(n("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",tl.Mod(tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:tl.Opt(tl.NumberNode({min:0,max:80})),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:two_layers_feature_size":{limit:tl.Opt(tl.NumberNode({integer:!0,min:0,max:81})),lower_size:tl.Opt(tl.NumberNode({integer:!0,min:0,max:16})),upper_size:tl.Opt(tl.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:tl.Opt(tl.NumberNode({integer:!0,min:0,max:80})),upper_limit:tl.Opt(tl.NumberNode({integer:!0,min:0,max:80})),lower_size:tl.Opt(tl.NumberNode({integer:!0,min:0,max:16})),middle_size:tl.Opt(tl.NumberNode({integer:!0,min:0,max:16})),upper_size:tl.Opt(tl.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const m={seed:tl.NumberNode({integer:!0}),noise:n("noise_parameters"),scale:tl.Mod(tl.NumberNode({min:Number.MIN_VALUE}),{default:()=>1})};e.register("block_state_provider",tl.Mod(tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:dual_noise_provider":c(s({},m),{variety:nl.InclusiveRange({integer:!0,min:1,max:64}),slow_noise:n("noise_parameters"),slow_scale:tl.Mod(tl.NumberNode({min:Number.MIN_VALUE}),{default:()=>1}),states:tl.ListNode(n("block_state"))}),"minecraft:noise_threshold_provider":c(s({},m),{threshold:tl.NumberNode({min:-1,max:1}),high_chance:tl.NumberNode({min:0,max:1}),default_state:n("block_state"),low_states:tl.ListNode(n("block_state")),high_states:tl.ListNode(n("block_state"))}),"minecraft:noise_provider":c(s({},m),{states:tl.ListNode(n("block_state"))}),"minecraft:randomized_int_state_provider":{property:i(),values:nl.IntProvider(),source:n("block_state_provider")},"minecraft:rotated_block_provider":{state:n("block_state")},"minecraft:simple_state_provider":{state:n("block_state")},"minecraft:weighted_state_provider":{entries:tl.ListNode(tl.Mod(tl.ObjectNode({weight:tl.NumberNode({integer:!0,min:1}),data:n("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})}));const f={offset:tl.Opt(tl.ListNode(tl.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))};e.register("block_predicate_worldgen",tl.Mod(tl.ObjectNode({type:i({validator:"resource",params:{pool:"block_predicate_type"}}),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:all_of":{predicates:tl.ListNode(n("block_predicate_worldgen"))},"minecraft:any_of":{predicates:tl.ListNode(n("block_predicate_worldgen"))},"minecraft:has_sturdy_face":c(s({},f),{direction:i({enum:"direction"})}),"minecraft:inside_world_bounds":s({},f),"minecraft:matching_block_tag":c(s({},f),{tag:i({validator:"resource",params:{pool:"$tag/block"}})}),"minecraft:matching_blocks":c(s({},f),{blocks:nl.Tag({resource:"block"})}),"minecraft:matching_fluids":c(s({},f),{fluids:nl.Tag({resource:"fluid"})}),"minecraft:not":{predicate:n("block_predicate_worldgen")},"minecraft:would_survive":c(s({},f),{state:n("block_state")})}},{context:"block_predicate"}),{default:()=>({type:"minecraft:true"})}))};var rl={};Object.defineProperty(rl,"__esModule",{value:!0}),rl.initNoiseSettingsSchemas=void 0;const ol=Pe,al=fc,sl=Yc;rl.initNoiseSettingsSchemas=function(e,t){const n=ol.Reference.bind(void 0,e),i=ol.StringNode.bind(void 0,t);e.register("noise_settings",ol.Mod(ol.ObjectNode({sea_level:ol.NumberNode({integer:!0}),disable_mob_generation:ol.BooleanNode(),aquifers_enabled:ol.BooleanNode(),ore_veins_enabled:ol.BooleanNode(),legacy_random_source:ol.BooleanNode(),default_block:n("block_state"),default_fluid:n("block_state"),noise:ol.ObjectNode({min_y:ol.NumberNode({integer:!0,min:-2048,max:2047}),height:ol.NumberNode({integer:!0,min:0,max:4096}),size_horizontal:ol.NumberNode({integer:!0}),size_vertical:ol.NumberNode({integer:!0}),sampling:ol.ObjectNode({xz_scale:ol.NumberNode(),y_scale:ol.NumberNode(),xz_factor:ol.NumberNode(),y_factor:ol.NumberNode()}),bottom_slide:n("noise_slider"),top_slide:n("noise_slider"),terrain_shaper:n("terrain_shaper")}),noise_router:ol.ObjectNode({barrier:sl.DensityFunction,fluid_level_floodedness:sl.DensityFunction,fluid_level_spread:sl.DensityFunction,lava:sl.DensityFunction,temperature:sl.DensityFunction,vegetation:sl.DensityFunction,continents:sl.DensityFunction,erosion:sl.DensityFunction,depth:sl.DensityFunction,ridges:sl.DensityFunction,initial_density_without_jaggedness:sl.DensityFunction,final_density:sl.DensityFunction,vein_toggle:sl.DensityFunction,vein_ridged:sl.DensityFunction,vein_gap:sl.DensityFunction}),surface_rule:n("material_rule")},{context:"noise_settings"}),(e=>({default:()=>al.DefaultNoiseSettings,validate:(t,n,i,r)=>{var o,a,s,c;return(null===(o=null==(n=e.validate(t,n,i,r))?void 0:n.noise)||void 0===o?void 0:o.min_y)+(null===(a=null==n?void 0:n.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==n?void 0:n.noise)||void 0===s?void 0:s.height)%16!=0&&i.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==n?void 0:n.noise)||void 0===c?void 0:c.min_y)%16!=0&&i.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),n}})))),e.register("noise_slider",ol.ObjectNode({target:ol.NumberNode(),size:ol.NumberNode({integer:!0,min:0}),offset:ol.NumberNode({integer:!0})})),e.register("generator_layer",ol.Mod(ol.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:ol.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})})),e.register("terrain_shaper",ol.Mod(ol.ObjectNode({offset:n("terrain_spline"),factor:n("terrain_spline"),jaggedness:n("terrain_spline")},{context:"terrain_shaper"}),{default:()=>({offset:0,factor:0,jaggedness:0})})),e.register("terrain_spline",ol.Mod(ol.ChoiceNode([{type:"number",node:ol.NumberNode()},{type:"object",node:ol.ObjectNode({coordinate:ol.Mod(i({enum:["continents","erosion","weirdness","ridges"]}),{default:()=>"continents"}),points:ol.ListNode(ol.ObjectNode({location:ol.NumberNode(),derivative:ol.NumberNode(),value:n("terrain_spline")}))},{category:"function"})}],{context:"terrain_spline",choiceContext:"terrain_spline"}),{default:()=>0}))};var cl={};Object.defineProperty(cl,"__esModule",{value:!0}),cl.initStructureFeatureSchemas=void 0;const ll=Pe,ul=fc,dl=Hc;cl.initStructureFeatureSchemas=function(e,t){const n=ll.StringNode.bind(void 0,t),i=ll.Reference.bind(void 0,e),r={start_pool:n({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:ll.NumberNode({integer:!0})};e.register("configured_structure_feature",ll.Mod(ll.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),biomes:ul.Tag({resource:"$worldgen/biome"}),adapt_noise:ll.Opt(ll.BooleanNode()),spawn_overrides:ll.MapNode(n({enum:"mob_category"}),ll.ObjectNode({bounding_box:n({enum:["piece","full"]}),spawns:dl.MobCategorySpawnSettings})),config:ll.ObjectNode({[ll.Switch]:["pop",{push:"type"}],[ll.Case]:{"minecraft:bastion_remnant":r,"minecraft:buried_treasure":{probability:ll.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:n({enum:["normal","mesa"]}),probability:ll.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:i("height_provider")},"minecraft:ocean_ruin":{biome_temp:n({enum:["cold","warm"]}),large_probability:ll.NumberNode({min:0,max:1}),cluster_probability:ll.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":r,"minecraft:ruined_portal":{portal_type:n({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:ll.Opt(ll.BooleanNode())},"minecraft:village":r}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var hl={};Object.defineProperty(hl,"__esModule",{value:!0}),hl.initStructureSetSchemas=void 0;const pl=Pe,ml=fc;hl.initStructureSetSchemas=function(e,t){const n=pl.StringNode.bind(void 0,t),i=pl.Reference.bind(void 0,e);e.register("structure_set",pl.ObjectNode({structures:pl.ListNode(pl.ObjectNode({structure:ml.Tag({resource:"$worldgen/configured_structure_feature"}),weight:pl.NumberNode({integer:!0,min:1})})),placement:i("structure_placement")},{context:"structure_set"})),e.register("structure_placement",pl.Mod(pl.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/structure_placement"}}),[pl.Switch]:[{push:"type"}],[pl.Case]:{"minecraft:concentric_rings":{distance:pl.NumberNode({integer:!0,min:0,max:1023}),spread:pl.NumberNode({integer:!0,min:0,max:1023}),count:pl.NumberNode({integer:!0,min:1,max:4095})},"minecraft:random_spread":{spread_type:pl.Opt(n({enum:["linear","triangular"]})),spacing:pl.NumberNode({integer:!0,min:0,max:4096}),separation:pl.Mod(pl.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,n,i,r)=>(t.pop().push("spacing").get()<=n&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,n,i,r))}))),salt:pl.NumberNode({integer:!0,min:0}),locate_offset:pl.Opt(pl.ListNode(pl.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))}}},{context:"structure_placement"}),{default:()=>({type:"minecraft:random_spread",spacing:10,separation:5,salt:Math.floor(2147483647*Math.random())})}))};var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.initSurfaceRuleSchemas=void 0;const gl=Pe;fl.initSurfaceRuleSchemas=function(e,t){const n=gl.StringNode.bind(void 0,t),i=gl.Reference.bind(void 0,e);e.register("material_rule",gl.Mod(gl.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/material_rule"}}),[gl.Switch]:[{push:"type"}],[gl.Case]:{"minecraft:block":{result_state:i("block_state")},"minecraft:condition":{if_true:i("material_condition"),then_run:i("material_rule")},"minecraft:sequence":{sequence:gl.ListNode(i("material_rule"))}}},{context:"material_rule",category:"pool"}),{default:()=>({type:"minecraft:block",result_state:{Name:"minecraft:stone"}})})),e.register("material_condition",gl.Mod(gl.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/material_condition"}}),[gl.Switch]:[{push:"type"}],[gl.Case]:{"minecraft:biome":{biome_is:gl.ListNode(n({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:noise_threshold":{noise:n({validator:"resource",params:{pool:"$worldgen/noise"}}),min_threshold:gl.NumberNode(),max_threshold:gl.NumberNode()},"minecraft:not":{invert:i("material_condition")},"minecraft:stone_depth":{offset:gl.NumberNode({integer:!0}),surface_type:n({enum:"cave_surface"}),add_surface_depth:gl.BooleanNode(),secondary_depth_range:gl.NumberNode({integer:!0})},"minecraft:vertical_gradient":{random_name:n(),true_at_and_below:i("vertical_anchor"),false_at_and_above:i("vertical_anchor")},"minecraft:water":{offset:gl.NumberNode({integer:!0}),surface_depth_multiplier:gl.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:gl.BooleanNode()},"minecraft:y_above":{anchor:i("vertical_anchor"),surface_depth_multiplier:gl.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:gl.BooleanNode()}}},{context:"material_condition"}),{default:()=>({type:"minecraft:biome",is_biome:"minecraft:plains"})}))};var _l={};Object.defineProperty(_l,"__esModule",{value:!0}),_l.initTemplatePoolSchemas=void 0;const bl=Pe,vl=Qc;_l.initTemplatePoolSchemas=function(e,t){const n=bl.Reference.bind(void 0,e),i=bl.StringNode.bind(void 0,t);e.register("template_pool",bl.Mod(bl.ObjectNode({name:i(),fallback:i(),elements:bl.ListNode(n("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",bl.Mod(bl.ObjectNode({weight:bl.NumberNode({integer:!0,min:1}),element:n("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",bl.Mod(bl.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[bl.Switch]:[{push:"element_type"}],[bl.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:vl.Processors},"minecraft:list_pool_element":{elements:bl.ListNode(n("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:vl.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.initWorldgenSchemas=void 0;const yl=Hc,wl=Vc,xl=Kc,Al=Yc,Nl=Zc,kl=rl,Cl=Qc,El=cl,Sl=hl,Ol=fl,Fl=_l;Wc.initWorldgenSchemas=function(e,t){Cl.initProcessorListSchemas(e,t),Al.initDensityFunctionSchemas(e,t),yl.initBiomeSchemas(e,t),wl.initCarverSchemas(e,t),xl.initDecoratorSchemas(e,t),Nl.initFeatureSchemas(e,t),kl.initNoiseSettingsSchemas(e,t),El.initStructureFeatureSchemas(e,t),Sl.initStructureSetSchemas(e,t),Ol.initSurfaceRuleSchemas(e,t),Fl.initTemplatePoolSchemas(e,t)};var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.initWorldSettingsSchemas=void 0;const Bl=Pe;Dl.initWorldSettingsSchemas=function(e,t){const n=Bl.Reference.bind(void 0,e),i=Bl.StringNode.bind(void 0,t);e.register("world_settings",Bl.Mod(Bl.ObjectNode({generate_features:Bl.BooleanNode(),bonus_chest:Bl.BooleanNode(),seed:Bl.NumberNode({integer:!0}),dimensions:Bl.MapNode(i({validator:"resource",params:{pool:"$dimension"}}),n("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(oc,"__esModule",{value:!0}),oc.initSchemas=void 0;const Ll=ac,Ml=cc,Tl=fc,Rl=gc,$l=vc,Il=xc,jl=kc,Pl=Sc,zl=Lc,Ul=Tc,Wl=$c,Hl=jc,Vl=zc,Gl=Wc,ql=Dl;oc.initSchemas=function(e,t){Tl.initCommonSchemas(e,t),Ll.initAdvancementSchemas(e,t),Ml.initAssetsSchemas(e,t),Rl.initConditionSchemas(e,t),Il.initDimensionTypeSchemas(e,t),$l.initDimensionSchemas(e,t),jl.initItemModifierSchemas(e,t),Pl.initLootTableSchemas(e,t),zl.initPackMcmetaSchemas(e,t),Ul.initPredicatesSchemas(e,t),Wl.initRecipeSchemas(e,t),Hl.initTagsSchemas(e,t),Vl.initTextComponentSchemas(e,t),Gl.initWorldgenSchemas(e,t),ql.initWorldSettingsSchemas(e,t)};var Kl=je&&je.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),Xl=je&&je.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Jl=je&&je.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&Kl(t,e,n);return Xl(t,e),t};Object.defineProperty(ic,"__esModule",{value:!0});var Yl=ic.getSchemas=ic.getCollections=void 0;const Zl=Pe,Ql=rc,eu=oc;var tu=ic.lootContext=Jl(Oc);var nu=ic.getCollections=function(){const e=new Zl.CollectionRegistry;return Ql.initCollections(e),e};Yl=ic.getSchemas=function(e){const t=new Zl.SchemaRegistry;return eu.initSchemas(t,e),t};var iu=Object.freeze(Object.assign(Object.create(null),ic,{[Symbol.toStringTag]:"Module",get getSchemas(){return Yl},get getCollections(){return nu},lootContext:tu,default:ic})); /*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */function ru(e){let t=e.length;for(;--t>=0;)e[t]=0}const ou=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]),au=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]),su=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),cu=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lu=new Array(576);ru(lu);const uu=new Array(60);ru(uu);const du=new Array(512);ru(du);const hu=new Array(256);ru(hu);const pu=new Array(29);ru(pu);const mu=new Array(30);function fu(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let gu,_u,bu;function vu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}ru(mu);const yu=e=>e<256?du[e]:du[256+(e>>>7)],wu=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},xu=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<{xu(e,n[2*t],n[2*t+1])},Nu=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},ku=(e,t,n)=>{const i=new Array(16);let r,o,a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=Nu(i[t]++,t))}},Cu=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},Eu=e=>{e.bi_valid>8?wu(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Su=(e,t,n,i)=>{const r=2*t,o=2*n;return e[r]{const i=e.heap[n];let r=n<<1;for(;r<=e.heap_len&&(r{let i,r,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],r=e.pending_buf[e.l_buf+s],s++,0===i?Au(e,r,t):(o=hu[r],Au(e,o+256+1,t),a=ou[o],0!==a&&(r-=pu[o],xu(e,r,a)),i--,o=yu(i),Au(e,o,n),a=au[o],0!==a&&(i-=mu[o],xu(e,i,a)))}while(s{const n=t.dyn_tree,i=t.stat_desc.static_tree,r=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>1;a>=1;a--)Ou(e,n,a);c=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ou(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,n[2*c]=n[2*a]+n[2*s],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,n[2*a+1]=n[2*s+1]=c,e.heap[1]=c++,Ou(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,i=t.max_code,r=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,d,h,p,m,f=0;for(h=0;h<=15;h++)e.bl_count[h]=0;for(n[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)u=e.heap[l],h=n[2*n[2*u+1]+1]+1,h>c&&(h=c,f++),n[2*u+1]=h,u>i||(e.bl_count[h]++,p=0,u>=s&&(p=a[u-s]),m=n[2*u],e.opt_len+=m*(h+p),o&&(e.static_len+=m*(r[2*u+1]+p)));if(0!==f){do{for(h=c-1;0===e.bl_count[h];)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[c]--,f-=2}while(f>0);for(h=c;0!==h;h--)for(u=e.bl_count[h];0!==u;)d=e.heap[--l],d>i||(n[2*d+1]!==h&&(e.opt_len+=(h-n[2*d+1])*n[2*d],n[2*d+1]=h),u--)}})(e,t),ku(n,l,e.bl_count)},Bu=(e,t,n)=>{let i,r,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s{let i,r,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s{xu(e,0+(i?1:0),3),((e,t,n,i)=>{Eu(e),i&&(wu(e,n),wu(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n})(e,t,n,!0)};var Ru={_tr_init:e=>{Mu||((()=>{let e,t,n,i,r;const o=new Array(16);for(n=0,i=0;i<28;i++)for(pu[i]=n,e=0;e<1<>=7;i<30;i++)for(mu[i]=r<<7,e=0;e<1<{let r,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&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)),Du(e,e.l_desc),Du(e,e.d_desc),a=(e=>{let t;for(Bu(e,e.dyn_ltree,e.l_desc.max_code),Bu(e,e.dyn_dtree,e.d_desc.max_code),Du(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*cu[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),r=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=r&&(r=o)):r=o=n+5,n+4<=r&&-1!==t?Tu(e,t,n,i):4===e.strategy||o===r?(xu(e,2+(i?1:0),3),Fu(e,lu,uu)):(xu(e,4+(i?1:0),3),((e,t,n,i)=>{let r;for(xu(e,t-257,5),xu(e,n-1,5),xu(e,i-4,4),r=0;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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(hu[n]+256+1)]++,e.dyn_dtree[2*yu(t)]++),e.last_lit===e.lit_bufsize-1),_tr_align:e=>{xu(e,2,3),Au(e,256,lu),(e=>{16===e.bi_valid?(wu(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 $u=(e,t,n,i)=>{let r=65535&e|0,o=e>>>16&65535|0,a=0;for(;0!==n;){a=n>2e3?2e3:n,n-=a;do{r=r+t[i++]|0,o=o+r|0}while(--a);r%=65521,o%=65521}return r|o<<16|0};const Iu=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var ju=(e,t,n,i)=>{const r=Iu,o=i+n;e^=-1;for(let a=i;a>>8^r[255&(e^t[a])];return-1^e},Pu={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"},zu={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:Uu,_tr_stored_block:Wu,_tr_flush_block:Hu,_tr_tally:Vu,_tr_align:Gu}=Ru,{Z_NO_FLUSH:qu,Z_PARTIAL_FLUSH:Ku,Z_FULL_FLUSH:Xu,Z_FINISH:Ju,Z_BLOCK:Yu,Z_OK:Zu,Z_STREAM_END:Qu,Z_STREAM_ERROR:ed,Z_DATA_ERROR:td,Z_BUF_ERROR:nd,Z_DEFAULT_COMPRESSION:id,Z_FILTERED:rd,Z_HUFFMAN_ONLY:od,Z_RLE:ad,Z_FIXED:sd,Z_DEFAULT_STRATEGY:cd,Z_UNKNOWN:ld,Z_DEFLATED:ud}=zu,dd=(e,t)=>(e.msg=Pu[t],t),hd=e=>(e<<1)-(e>4?9:0),pd=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let md=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},gd=(e,t)=>{Hu(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fd(e.strm)},_d=(e,t)=>{e.pending_buf[e.pending++]=t},bd=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},vd=(e,t,n,i)=>{let r=e.avail_in;return r>i&&(r=i),0===r?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),n),1===e.state.wrap?e.adler=$u(e.adler,t,r,n):2===e.state.wrap&&(e.adler=ju(e.adler,t,r,n)),e.next_in+=r,e.total_in+=r,r)},yd=(e,t)=>{let n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,u=e.w_mask,d=e.prev,h=e.strstart+258;let p=l[o+a-1],m=l[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,l[n+a]===m&&l[n+a-1]===p&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(e.match_start=t,a=i,i>=s)break;p=l[o+a-1],m=l[o+a]}}}while((t=d[t&u])>c&&0!=--r);return a<=e.lookahead?a:e.lookahead},wd=e=>{const t=e.w_size;let n,i,r,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,n=i;do{r=e.head[--n],e.head[n]=r>=t?r-t:0}while(--i);i=t,n=i;do{r=e.prev[--n],e.prev[n]=r>=t?r-t:0}while(--i);o+=t}if(0===e.strm.avail_in)break;if(i=vd(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=md(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=md(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)},xd=(e,t)=>{let n,i;for(;;){if(e.lookahead<262){if(wd(e),e.lookahead<262&&t===qu)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=md(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=yd(e,n)),e.match_length>=3)if(i=Vu(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=md(e,e.ins_h,e.window[e.strstart+3-1]),n=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=md(e,e.ins_h,e.window[e.strstart+1]);else i=Vu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(gd(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Ju?(gd(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(gd(e,!1),0===e.strm.avail_out)?1:2},Ad=(e,t)=>{let n,i,r;for(;;){if(e.lookahead<262){if(wd(e),e.lookahead<262&&t===qu)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=md(e,e.ins_h,e.window[e.strstart+3-1]),n=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!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-3,i=Vu(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=md(e,e.ins_h,e.window[e.strstart+3-1]),n=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&&(gd(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(i=Vu(e,0,e.window[e.strstart-1]),i&&gd(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=Vu(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Ju?(gd(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(gd(e,!1),0===e.strm.avail_out)?1:2};function Nd(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}const kd=[new Nd(0,0,0,0,((e,t)=>{let n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(wd(e),0===e.lookahead&&t===qu)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,gd(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(gd(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ju?(gd(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(gd(e,!1),e.strm.avail_out),1)})),new Nd(4,4,8,4,xd),new Nd(4,5,16,8,xd),new Nd(4,6,32,32,xd),new Nd(4,4,16,16,Ad),new Nd(8,16,32,32,Ad),new Nd(8,16,128,128,Ad),new Nd(8,32,128,256,Ad),new Nd(32,128,258,1024,Ad),new Nd(32,258,258,4096,Ad)];function Cd(){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=ud,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),pd(this.dyn_ltree),pd(this.dyn_dtree),pd(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),pd(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),pd(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 Ed=e=>{if(!e||!e.state)return dd(e,ed);e.total_in=e.total_out=0,e.data_type=ld;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=qu,Uu(t),Zu},Sd=e=>{const t=Ed(e);var n;return t===Zu&&((n=e.state).window_size=2*n.w_size,pd(n.head),n.max_lazy_match=kd[n.level].max_lazy,n.good_match=kd[n.level].good_length,n.nice_match=kd[n.level].nice_length,n.max_chain_length=kd[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},Od=(e,t,n,i,r,o)=>{if(!e)return ed;let a=1;if(t===id&&(t=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),r<1||r>9||n!==ud||i<8||i>15||t<0||t>9||o<0||o>sd)return dd(e,ed);8===i&&(i=9);const s=new Cd;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=i,s.w_size=1<Od(e,t,ud,15,8,cd),deflateInit2:Od,deflateReset:Sd,deflateResetKeep:Ed,deflateSetHeader:(e,t)=>e&&e.state?2!==e.state.wrap?ed:(e.state.gzhead=t,Zu):ed,deflate:(e,t)=>{let n,i;if(!e||!e.state||t>Yu||t<0)return e?dd(e,ed):ed;const r=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==Ju)return dd(e,0===e.avail_out?nd:ed);r.strm=e;const o=r.last_flush;if(r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,_d(r,31),_d(r,139),_d(r,8),r.gzhead?(_d(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),_d(r,255&r.gzhead.time),_d(r,r.gzhead.time>>8&255),_d(r,r.gzhead.time>>16&255),_d(r,r.gzhead.time>>24&255),_d(r,9===r.level?2:r.strategy>=od||r.level<2?4:0),_d(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(_d(r,255&r.gzhead.extra.length),_d(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ju(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(_d(r,0),_d(r,0),_d(r,0),_d(r,0),_d(r,0),_d(r,9===r.level?2:r.strategy>=od||r.level<2?4:0),_d(r,3),r.status=113);else{let t=ud+(r.w_bits-8<<4)<<8,n=-1;n=r.strategy>=od||r.level<2?0:r.level<6?1:6===r.level?2:3,t|=n<<6,0!==r.strstart&&(t|=32),t+=31-t%31,r.status=113,bd(r,t),0!==r.strstart&&(bd(r,e.adler>>>16),bd(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(n=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>n&&(e.adler=ju(e.adler,r.pending_buf,r.pending-n,n)),fd(e),n=r.pending,r.pending!==r.pending_buf_size));)_d(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>n&&(e.adler=ju(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){n=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>n&&(e.adler=ju(e.adler,r.pending_buf,r.pending-n,n)),fd(e),n=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindexn&&(e.adler=ju(e.adler,r.pending_buf,r.pending-n,n)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){n=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>n&&(e.adler=ju(e.adler,r.pending_buf,r.pending-n,n)),fd(e),n=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindexn&&(e.adler=ju(e.adler,r.pending_buf,r.pending-n,n)),0===i&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&fd(e),r.pending+2<=r.pending_buf_size&&(_d(r,255&e.adler),_d(r,e.adler>>8&255),e.adler=0,r.status=113)):r.status=113),0!==r.pending){if(fd(e),0===e.avail_out)return r.last_flush=-1,Zu}else if(0===e.avail_in&&hd(t)<=hd(o)&&t!==Ju)return dd(e,nd);if(666===r.status&&0!==e.avail_in)return dd(e,nd);if(0!==e.avail_in||0!==r.lookahead||t!==qu&&666!==r.status){let n=r.strategy===od?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(wd(e),0===e.lookahead)){if(t===qu)return 1;break}if(e.match_length=0,n=Vu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(gd(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ju?(gd(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(gd(e,!1),0===e.strm.avail_out)?1:2})(r,t):r.strategy===ad?((e,t)=>{let n,i,r,o;const a=e.window;for(;;){if(e.lookahead<=258){if(wd(e),e.lookahead<=258&&t===qu)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=e.strstart-1,i=a[r],i===a[++r]&&i===a[++r]&&i===a[++r])){o=e.strstart+258;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Vu(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Vu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(gd(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ju?(gd(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(gd(e,!1),0===e.strm.avail_out)?1:2})(r,t):kd[r.level].func(r,t);if(3!==n&&4!==n||(r.status=666),1===n||3===n)return 0===e.avail_out&&(r.last_flush=-1),Zu;if(2===n&&(t===Ku?Gu(r):t!==Yu&&(Wu(r,0,0,!1),t===Xu&&(pd(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),fd(e),0===e.avail_out))return r.last_flush=-1,Zu}return t!==Ju?Zu:r.wrap<=0?Qu:(2===r.wrap?(_d(r,255&e.adler),_d(r,e.adler>>8&255),_d(r,e.adler>>16&255),_d(r,e.adler>>24&255),_d(r,255&e.total_in),_d(r,e.total_in>>8&255),_d(r,e.total_in>>16&255),_d(r,e.total_in>>24&255)):(bd(r,e.adler>>>16),bd(r,65535&e.adler)),fd(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?Zu:Qu)},deflateEnd:e=>{if(!e||!e.state)return ed;const t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?dd(e,ed):(e.state=null,113===t?dd(e,td):Zu)},deflateSetDictionary:(e,t)=>{let n=t.length;if(!e||!e.state)return ed;const i=e.state,r=i.wrap;if(2===r||1===r&&42!==i.status||i.lookahead)return ed;if(1===r&&(e.adler=$u(e.adler,t,n,0)),i.wrap=0,n>=i.w_size){0===r&&(pd(i.head),i.strstart=0,i.block_start=0,i.insert=0);let e=new Uint8Array(i.w_size);e.set(t.subarray(n-i.w_size,n),0),t=e,n=i.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,wd(i);i.lookahead>=3;){let e=i.strstart,t=i.lookahead-2;do{i.ins_h=md(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,wd(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=r,Zu},deflateInfo:"pako deflate (from Nodeca project)"};const Dd=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Bd=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Dd(n,t)&&(e[t]=n[t])}}return e},Ld=e=>{let t=0;for(let i=0,r=e.length;i=252?6:zx>=248?5:zx>=240?4:zx>=224?3:zx>=192?2:1;Td[254]=Td[254]=1;var Rd=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,i,r,o,a=e.length,s=0;for(r=0;r>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},$d=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let i,r;const o=new Array(2*n);for(r=0,i=0;i4)o[r++]=65533,i+=a-1;else{for(t&=2===a?31:3===a?15:7;a>1&&i1?o[r++]=65533:t<65536?o[r++]=t:(t-=65536,o[r++]=55296|t>>10&1023,o[r++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Md)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let i=0;i{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Td[e[n]]>t?n:t};var jd=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 Pd=Object.prototype.toString,{Z_NO_FLUSH:zd,Z_SYNC_FLUSH:Ud,Z_FULL_FLUSH:Wd,Z_FINISH:Hd,Z_OK:Vd,Z_STREAM_END:Gd,Z_DEFAULT_COMPRESSION:qd,Z_DEFAULT_STRATEGY:Kd,Z_DEFLATED:Xd}=zu;function Jd(e){this.options=Bd({level:qd,method:Xd,chunkSize:16384,windowBits:15,memLevel:8,strategy:Kd},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 jd,this.strm.avail_out=0;let n=Fd.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Vd)throw new Error(Pu[n]);if(t.header&&Fd.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Rd(t.dictionary):"[object ArrayBuffer]"===Pd.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Fd.deflateSetDictionary(this.strm,e),n!==Vd)throw new Error(Pu[n]);this._dict_set=!0}}Jd.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize;let r,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?Hd:zd,"string"==typeof e?n.input=Rd(e):"[object ArrayBuffer]"===Pd.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(o===Ud||o===Wd)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(r=Fd.deflate(n,o),r===Gd)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=Fd.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Vd;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},Jd.prototype.onData=function(e){this.chunks.push(e)},Jd.prototype.onEnd=function(e){e===Vd&&(this.result=Ld(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Yd=function(e,t){let n,i,r,o,a,s,c,l,u,d,h,p,m,f,g,_,b,v,y,w,x,A,N,k;const C=e.state;n=e.next_in,N=e.input,i=n+(e.avail_in-5),r=e.next_out,k=e.output,o=r-(t-e.avail_out),a=r+(e.avail_out-257),s=C.dmax,c=C.wsize,l=C.whave,u=C.wnext,d=C.window,h=C.hold,p=C.bits,m=C.lencode,f=C.distcode,g=(1<>>24,h>>>=v,p-=v,v=b>>>16&255,0===v)k[r++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=m[(65535&b)+(h&(1<>>=v,p-=v),p<15&&(h+=N[n++]<>>24,h>>>=v,p-=v,v=b>>>16&255,!(16&v)){if(0==(64&v)){b=f[(65535&b)+(h&(1<s){e.msg="invalid distance too far back",C.mode=30;break e}if(h>>>=v,p-=v,v=r-o,w>v){if(v=w-v,v>l&&C.sane){e.msg="invalid distance too far back",C.mode=30;break e}if(x=0,A=d,0===u){if(x+=c-v,v2;)k[r++]=A[x++],k[r++]=A[x++],k[r++]=A[x++],y-=3;y&&(k[r++]=A[x++],y>1&&(k[r++]=A[x++]))}else{x=r-w;do{k[r++]=k[x++],k[r++]=k[x++],k[r++]=k[x++],y-=3}while(y>2);y&&(k[r++]=k[x++],y>1&&(k[r++]=k[x++]))}break}}break}}while(n>3,n-=y,p-=y<<3,h&=(1<{const c=s.bits;let l,u,d,h,p,m,f=0,g=0,_=0,b=0,v=0,y=0,w=0,x=0,A=0,N=0,k=null,C=0;const E=new Uint16Array(16),S=new Uint16Array(16);let O,F,D,B=null,L=0;for(f=0;f<=15;f++)E[f]=0;for(g=0;g=1&&0===E[b];b--);if(v>b&&(v=b),0===b)return r[o++]=20971520,r[o++]=20971520,s.bits=1,0;for(_=1;_0&&(0===e||1!==b))return-1;for(S[1]=0,f=1;f<15;f++)S[f+1]=S[f]+E[f];for(g=0;g852||2===e&&A>592)return 1;for(;;){O=f-w,a[g]m?(F=B[L+a[g]],D=k[C+a[g]]):(F=96,D=0),l=1<>w)+u]=O<<24|F<<16|D|0}while(0!==u);for(l=1<>=1;if(0!==l?(N&=l-1,N+=l):N=0,g++,0==--E[f]){if(f===b)break;f=t[n+a[g]]}if(f>v&&(N&h)!==d){for(0===w&&(w=v),p+=_,y=f-w,x=1<852||2===e&&A>592)return 1;d=N&h,r[d]=v<<24|y<<16|p-o|0}}return 0!==N&&(r[p+N]=f-w<<24|64<<16|0),s.bits=v,0};const{Z_FINISH:ih,Z_BLOCK:rh,Z_TREES:oh,Z_OK:ah,Z_STREAM_END:sh,Z_NEED_DICT:ch,Z_STREAM_ERROR:lh,Z_DATA_ERROR:uh,Z_MEM_ERROR:dh,Z_BUF_ERROR:hh,Z_DEFLATED:ph}=zu,mh=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function fh(){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 gh=e=>{if(!e||!e.state)return lh;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,ah},_h=e=>{if(!e||!e.state)return lh;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,gh(e)},bh=(e,t)=>{let n;if(!e||!e.state)return lh;const i=e.state;return t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?lh:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,_h(e))},vh=(e,t)=>{if(!e)return lh;const n=new fh;e.state=n,n.window=null;const i=bh(e,t);return i!==ah&&(e.state=null),i};let yh,wh,xh=!0;const Ah=e=>{if(xh){yh=new Int32Array(512),wh=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(nh(1,e.lens,0,288,yh,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;nh(2,e.lens,0,32,wh,0,e.work,{bits:5}),xh=!1}e.lencode=yh,e.lenbits=9,e.distcode=wh,e.distbits=5},Nh=(e,t,n,i)=>{let r;const o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(r=o.wsize-o.wnext,r>i&&(r=i),o.window.set(t.subarray(n-i,n-i+r),o.wnext),(i-=r)?(o.window.set(t.subarray(n-i,n),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whavevh(e,15),inflateInit2:vh,inflate:(e,t)=>{let n,i,r,o,a,s,c,l,u,d,h,p,m,f,g,_,b,v,y,w,x,A,N=0;const k=new Uint8Array(4);let C,E;const S=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 lh;n=e.state,12===n.mode&&(n.mode=13),a=e.next_out,r=e.output,c=e.avail_out,o=e.next_in,i=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,h=c,A=ah;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break e;s--,l+=i[o++]<>>8&255,n.check=ju(n.check,k,2,0),l=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=30;break}if((15&l)!==ph){e.msg="unknown compression method",n.mode=30;break}if(l>>>=4,u-=4,x=8+(15&l),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(k[0]=255&l,k[1]=l>>>8&255,n.check=ju(n.check,k,2,0)),l=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,l+=i[o++]<>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,n.check=ju(n.check,k,4,0)),l=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,l+=i[o++]<>8),512&n.flags&&(k[0]=255&l,k[1]=l>>>8&255,n.check=ju(n.check,k,2,0)),l=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,l+=i[o++]<>>8&255,n.check=ju(n.check,k,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p=n.length,p>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(o,o+p),x)),512&n.flags&&(n.check=ju(n.check,i,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{x=i[o+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===s)break e;s--,l+=i[o++]<>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break e;s--,l+=i[o++]<>>=1,u-=1,3&l){case 0:n.mode=14;break;case 1:if(Ah(n),n.mode=20,t===oh){l>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}l>>>=2,u-=2;break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,l+=i[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&l,l=0,u=0,n.mode=15,t===oh)break e;case 15:n.mode=16;case 16:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),0===p)break e;r.set(i.subarray(o,o+p),a),s-=p,o+=p,c-=p,a+=p,n.length-=p;break}n.mode=12;break;case 17:for(;u<14;){if(0===s)break e;s--,l+=i[o++]<>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,u-=3}for(;n.have<19;)n.lens[S[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},A=nh(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,A){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>24,_=N>>>16&255,b=65535&N,!(g<=u);){if(0===s)break e;s--,l+=i[o++]<>>=g,u-=g,n.lens[n.have++]=b;else{if(16===b){for(E=g+2;u>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}x=n.lens[n.have-1],p=3+(3&l),l>>>=2,u-=2}else if(17===b){for(E=g+3;u>>=g,u-=g,x=0,p=3+(7&l),l>>>=3,u-=3}else{for(E=g+7;u>>=g,u-=g,x=0,p=11+(127&l),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;p--;)n.lens[n.have++]=x}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,C={bits:n.lenbits},A=nh(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,A){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},A=nh(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,A){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,t===oh)break e;case 20:n.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,n.hold=l,n.bits=u,Yd(e,h),a=e.next_out,r=e.output,c=e.avail_out,o=e.next_in,i=e.input,s=e.avail_in,l=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;N=n.lencode[l&(1<>>24,_=N>>>16&255,b=65535&N,!(g<=u);){if(0===s)break e;s--,l+=i[o++]<>v)],g=N>>>24,_=N>>>16&255,b=65535&N,!(v+g<=u);){if(0===s)break e;s--,l+=i[o++]<>>=v,u-=v,n.back+=v}if(l>>>=g,u-=g,n.back+=g,n.length=b,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=12;break}if(64&_){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(E=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;N=n.distcode[l&(1<>>24,_=N>>>16&255,b=65535&N,!(g<=u);){if(0===s)break e;s--,l+=i[o++]<>v)],g=N>>>24,_=N>>>16&255,b=65535&N,!(v+g<=u);){if(0===s)break e;s--,l+=i[o++]<>>=v,u-=v,n.back+=v}if(l>>>=g,u-=g,n.back+=g,64&_){e.msg="invalid distance code",n.mode=30;break}n.offset=b,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(E=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(p=h-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),f=n.window}else f=r,m=a-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do{r[a++]=f[m++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===c)break e;r[a++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break e;s--,l|=i[o++]<{if(!e||!e.state)return lh;let t=e.state;return t.window&&(t.window=null),e.state=null,ah},inflateGetHeader:(e,t)=>{if(!e||!e.state)return lh;const n=e.state;return 0==(2&n.wrap)?lh:(n.head=t,t.done=!1,ah)},inflateSetDictionary:(e,t)=>{const n=t.length;let i,r,o;return e&&e.state?(i=e.state,0!==i.wrap&&11!==i.mode?lh:11===i.mode&&(r=1,r=$u(r,t,n,0),r!==i.check)?uh:(o=Nh(e,t,n,n),o?(i.mode=31,dh):(i.havedict=1,ah))):lh},inflateInfo:"pako inflate (from Nodeca project)"};var Ch=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 Eh=Object.prototype.toString,{Z_NO_FLUSH:Sh,Z_FINISH:Oh,Z_OK:Fh,Z_STREAM_END:Dh,Z_NEED_DICT:Bh,Z_STREAM_ERROR:Lh,Z_DATA_ERROR:Mh,Z_MEM_ERROR:Th}=zu;function Rh(e){this.options=Bd({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 jd,this.strm.avail_out=0;let n=kh.inflateInit2(this.strm,t.windowBits);if(n!==Fh)throw new Error(Pu[n]);if(this.header=new Ch,kh.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Rd(t.dictionary):"[object ArrayBuffer]"===Eh.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=kh.inflateSetDictionary(this.strm,t.dictionary),n!==Fh)))throw new Error(Pu[n])}Rh.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=t===~~t?t:!0===t?Oh:Sh,"[object ArrayBuffer]"===Eh.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),o=kh.inflate(n,a),o===Bh&&r&&(o=kh.inflateSetDictionary(n,r),o===Fh?o=kh.inflate(n,a):o===Mh&&(o=Bh));n.avail_in>0&&o===Dh&&n.state.wrap>0&&0!==e[n.next_in];)kh.inflateReset(n),o=kh.inflate(n,a);switch(o){case Lh:case Mh:case Bh:case Th:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||o===Dh))if("string"===this.options.to){let e=Id(n.output,n.next_out),t=n.next_out-e,r=$d(n.output,e);n.next_out=t,n.avail_out=i-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==Fh||0!==s){if(o===Dh)return o=kh.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},Rh.prototype.onData=function(e){this.chunks.push(e)},Rh.prototype.onEnd=function(e){e===Fh&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ld(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var $h,Ih,jh={exports:{}},Ph={exports:{}};$h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ih={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&Ih.rotl(e,8)|4278255360&Ih.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,i=0;n>>5]|=e[n]<<24-i%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-r)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,i=0;n>>6-2*i);return t}},Ph.exports=Ih;var zh={utf8:{stringToBytes:function(e){return zh.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(zh.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var m=r._ff,f=r._gg,g=r._hh,_=r._ii;for(p=0;p>>0,u=u+v>>>0,d=d+y>>>0,h=h+w>>>0}return e.endian([l,u,d,h])};r._ff=function(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+(r>>>0)+a;return(s<>>32-o)+t},r._gg=function(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+(r>>>0)+a;return(s<>>32-o)+t},r._hh=function(e,t,n,i,r,o,a){var s=e+(t^n^i)+(r>>>0)+a;return(s<>>32-o)+t},r._ii=function(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+(r>>>0)+a;return(s<>>32-o)+t},r._blocksize=16,r._digestsize=16,jh.exports=function(t,n){if(null==t)throw new Error("Illegal argument "+t);var o=e.wordsToBytes(r(t,n));return n&&n.asBytes?o:n&&n.asString?i.bytesToString(o):e.bytesToHex(o)}}();var Vh,Gh,qh=jh.exports;(Gh=Vh||(Vh={})).UP="up",Gh.DOWN="down",Gh.NORTH="north",Gh.EAST="east",Gh.SOUTH="south",Gh.WEST="west";const Kh={[Vh.UP]:[0,1,0],[Vh.DOWN]:[0,-1,0],[Vh.NORTH]:[0,0,-1],[Vh.EAST]:[1,0,0],[Vh.SOUTH]:[0,0,1],[Vh.WEST]:[-1,0,0]};var Xh,Jh,Yh,Zh;function Qh(e,t,n){if(!e[t])throw new Error(`Missing ${t} tag`);if(e[t].type!==n)throw new Error(`Expected ${t} to be of type ${n}, but found ${e[t].type}`);return e[t].value}function ep(e){let t=null;return()=>(null==t&&(t=e()),t)}function tp(e,t,n){const i=e.get(t);if(i)return i;const r=n(t);return e.set(t,r),r}(Yh=Vh||(Vh={})).ALL=[Yh.UP,Yh.DOWN,Yh.NORTH,Yh.EAST,Yh.SOUTH,Yh.WEST],Yh.normal=function(e){return Kh[e]},(Jh=Xh||(Xh={})).create=function(e,t,n){return[e,t,n]},Jh.ZERO=Jh.create(0,0,0),Jh.offset=function(e,t,n,i){return[e[0]+t,e[1]+n,e[2]+i]},Jh.towards=function(e,t){return Jh.offset(e,...Vh.normal(t))},Jh.equals=function(e,t){return e===t||e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},Jh.magnitude=function(e){return e[0]*e[0]+e[1]*e[1]+e[2]*e[2]},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,n){var i;const r=null!=(i=t(e))?i:{};return Object.fromEntries(Object.entries(r).map((([e,t])=>[e,n(t)])))},e.compose=function(e,t,n){const i=t(e);return i?n(i):void 0},e.readEnum=function(e,t){return"string"!=typeof e?t[0]:t.includes(e)?e:t[0]}}(Zh||(Zh={}));const np=class{constructor(e,t){if(this.namespace=e,this.path=t,!e.match(/^[a-z0-9._-]+$/))throw new Error(`Non [a-z0-9._-] character in namespace of ${e}:${t}`);if(!t.match(/^[a-z0-9/._-]+$/))throw new Error(`Non [a-z0-9/._-] character in path of ${e}:${t}`)}equals(e){return this===e||this.namespace===e.namespace&&this.path===e.path}toString(){return`${this.namespace}:${this.path}`}static create(e){return new np(this.DEFAULT_NAMESPACE,e)}static parse(e){const t=e.indexOf(this.SEPARATOR);if(t>=0){const n=t>=1?e.substring(0,t):this.DEFAULT_NAMESPACE,i=e.substring(t+1);return new np(n,i)}return new np(this.DEFAULT_NAMESPACE,e)}};let ip=np;ip.DEFAULT_NAMESPACE="minecraft",ip.SEPARATOR=":";var rp=Object.defineProperty,op=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,sp=Object.getOwnPropertySymbols,cp=Object.prototype.hasOwnProperty,lp=Object.prototype.propertyIsEnumerable,up=(e,t,n)=>t in e?rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const dp=class{constructor(e,t={}){this.properties=t,this.name="string"==typeof e?ip.parse(e):e}getName(){return this.name}getProperties(){return this.properties}getProperty(e){return this.properties[e]}isFluid(){return this.is(dp.WATER)||this.is(dp.LAVA)}equals(e){return!!this.name.equals(e.name)&&Object.keys(this.properties).every((t=>e.properties[t]===this.properties[t]))}is(e){return this.name.equals(e.name)}toString(){return 0===Object.keys(this.properties).length?this.name.toString():`${this.name.toString()}[${Object.entries(this.properties).map((([e,t])=>e+"="+t)).join(",")}]`}static fromNbt(e){const t=ip.parse(Qh(e.value,"Name","string")),n=function(e,t){try{return e()}catch(n){return t}}((()=>Qh(e.value,"Properties","compound")),{}),i=Object.keys(n).reduce(((e,t)=>{return i=((e,t)=>{for(var n in t||(t={}))cp.call(t,n)&&up(e,n,t[n]);if(sp)for(var n of sp(t))lp.call(t,n)&&up(e,n,t[n]);return e})({},e),r={[t]:Qh(n,t,"string")},op(i,ap(r));var i,r}),{});return new dp(t,i)}static fromJson(e){var t,n;const i=null!=(t=Zh.readObject(e))?t:{},r=ip.parse(null!=(n=Zh.readString(i.Name))?n:dp.STONE.name.toString()),o=Zh.readMap(i.Properties,(e=>{var t;return null!=(t=Zh.readString(e))?t:""}));return new dp(r,o)}};let hp=dp;hp.AIR=new dp(ip.create("air")),hp.STONE=new dp(ip.create("stone")),hp.WATER=new dp(ip.create("water"),{level:"0"}),hp.LAVA=new dp(ip.create("lava"),{level:"0"});const pp=class{constructor(e){this.minY=e,this.storage=Array(pp.SIZE).fill(0),this.palette=[hp.AIR]}get minBlockY(){return this.minY<<4}index(e,t,n){return(e<<8)+(t<<4)+n}getBlockState(e,t,n){var i;const r=this.storage[this.index(e,t,n)];return null!=(i=this.palette[r])?i:hp.AIR}setBlockState(e,t,n,i){let r=this.palette.findIndex((e=>e.equals(i)));-1===r&&(r=this.palette.length,this.palette.push(i)),this.storage[this.index(e,t,n)]=r}};let mp=pp;mp.WIDTH=16,mp.SIZE=pp.WIDTH*pp.WIDTH*pp.WIDTH;class fp{constructor(e,t,n){this.minY=e,this.height=t,this.pos=n,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[n,i,r]=e,o=this.sections[this.getSectionIndex(i)];return null!=(t=null==o?void 0:o.getBlockState(15&n,15&i,15&r))?t:hp.AIR}setBlockState(e,t){const[n,i,r]=e,o=this.getSectionIndex(i);let a=this.sections[o];if(null===a){if(t.equals(hp.AIR))return;a=this.getOrCreateSection(o)}a.setBlockState(15&n,15&i,15&r,t)}getOrCreateSection(e){return null==this.sections[e]&&(this.sections[e]=new mp(this.minSection+e)),this.sections[e]}}var gp,_p;!function(e){function t(e,t){return BigInt(4294967295&e)|BigInt(4294967295&t)<>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)}}(gp||(gp={})),function(e){function t(e){return{value:()=>e,key:()=>{}}}function n(e,t){return{value:()=>e.getOrThrow(t),key:()=>t}}e.parser=function(e,i){return r=>"string"==typeof r?n(e,ip.parse(r)):t(i(r))},e.direct=t,e.reference=n}(_p||(_p={}));const bp=class{constructor(e,t){this.key=e,this.parser=t,this.storage=new Map,this.builtin=new Map}register(e,t,n){return this.storage.set(e.toString(),t),n&&this.builtin.set(e.toString(),t),_p.reference(this,e)}keys(){return[...this.storage.keys()].map((e=>ip.parse(e)))}get(e){return this.storage.get(e.toString())}getOrThrow(e){const t=this.storage.get(e.toString());if(void 0===t)throw new Error(`Missing key in ${this.key.toString()}: ${e.toString()}`);return t}parse(e){if(!this.parser)throw new Error(`No parser exists for ${this.key.toString()}`);return this.parser(e)}clear(){this.storage.clear();for(const[e,t]of this.builtin.entries())this.storage.set(e,t);return this}assign(e){if(!this.key.equals(e.key))throw new Error(`Cannot assign registry of type ${e.key.toString()} to registry of type ${this.key.toString()}`);for(const t of e.keys())this.storage.set(t.toString(),e.getOrThrow(t));return this}cloneEmpty(){return new bp(this.key,this.parser)}};let vp=bp;function yp(e){return e*e}function wp(e,t,n){return Math.max(t,Math.min(n,e))}function xp(e,t,n){return t+e*(n-t)}function Ap(e,t,n,i,r,o){return xp(t,xp(e,n,i),xp(e,r,o))}function Np(e,t,n){return 0===e?t():1===e?n():t()+e*(n()-t())}function kp(e,t,n,i,r,o){return Np(t,(()=>Np(e,n,i)),(()=>Np(e,r,o)))}function Cp(e,t,n){return n<0?e:n>1?t:xp(n,e,t)}function Ep(e,t,n){return(e-t)/(n-t)}function Sp(e){return e*e*e*(e*(6*e-15)+10)}function Op(e,t,n,i,r){return xp(Ep(e,t,n),i,r)}function Fp(e,t,n,i,r){return Cp(i,r,Ep(e,t,n))}function Dp(e,t,n){let i=BigInt(3129871*e)^BigInt(n)*BigInt(116129781)^BigInt(t);return i=i*i*BigInt(42317861)+i*BigInt(11),i>>BigInt(16)}function Bp(e,t,n,i,r,o,a,s){return BigInt(e)<{var t;return null!=(t=Zh.readObject(e))?t:{}})))?a:[];if(0===d.length)return new t(0);for(const t of d){const n=null!=(s=Zh.readNumber(t.location))?s:0,i=e(t.value,r),o=null!=(c=Zh.readNumber(t.derivative))?c:0;u.addPoint(n,i,o)}return u};class t{constructor(e){this.value=e}compute(){return this.value}min(){return this.value}max(){return this.value}mapAll(){return this}}e.Constant=t;class n{constructor(e,t=[],n=[],i=[]){this.coordinate=e,this.locations=t,this.values=n,this.derivatives=i}compute(e){const t=this.coordinate.compute(e),n=function(e,t,n){let i=t-e;for(;i>0;){const t=Math.floor(i/2),r=e+t;n(r)?i=t:(e=r+1,i-=t+1)}return e}(0,this.locations.length,(e=>te.min())))}max(){return Math.max(...this.values.map((e=>e.max())))}mapAll(e){return new n(e(this.coordinate),this.locations,this.values.map((t=>t.mapAll(e))),this.derivatives)}addPoint(t,n,i=0){return this.locations.push(t),this.values.push("number"==typeof n?new e.Constant(n):n),this.derivatives.push(i),this}}e.MultiPoint=n}(Lp||(Lp={}));const Mp=class{constructor(e){this.seed=BigInt(0),this.setSeed(e)}fork(){return new Mp(this.nextLong())}forkPositional(){return new Rp(this.nextLong())}setSeed(e){this.seed=e^Mp.MULTIPLIER&Mp.MODULUS_MASK}advance(){this.seed=this.seed*Mp.MULTIPLIER+Mp.INCREMENT&Mp.MODULUS_MASK}consume(e){for(let t=0;t>BigInt(Mp.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,n;for(;(t=this.next(31))-(n=t%e)+(e-1)<0;);return n}nextLong(){return(BigInt(this.next(32))<>$p.BIGINT_30)*$p.STAFFORD_1&$p.MAX_ULONG)^e>>$p.BIGINT_27)*$p.STAFFORD_2&$p.MAX_ULONG)^e>>$p.BIGINT_31)&$p.MAX_ULONG}static upgradeSeedTo128bit(e){e<0&&(e+=$p.POW2_60);const t=e^$p.SILVER_RATIO_64,n=t+$p.GOLDEN_RATIO_64&$p.MAX_ULONG;return[$p.mixStafford13(t),$p.mixStafford13(n)]}static rotateLeft(e,t){return e<>$p.BIGINT_64-t}setSeed(e){this.seed=$p.upgradeSeedTo128bit(e)}fork(){return new $p([this.next(),this.next()])}forkPositional(){return new jp(this.next(),this.next())}next(){const e=this.seed[0];let t=this.seed[1];const n=$p.rotateLeft(e+t&$p.MAX_ULONG,$p.BIGINT_17)+e&$p.MAX_ULONG;return t^=e,this.seed=[$p.rotateLeft(e,$p.BIGINT_49)^t^t<<$p.BIGINT_21&$p.MAX_ULONG,$p.rotateLeft(t,$p.BIGINT_28)],n}nextLong(){let e=this.next();return e>$p.POW2_63&&(e-=$p.POW2_60),e}consume(e){let t=this.seed[0],n=this.seed[1];for(let i=0;i>BigInt(64-e)}nextInt(e){let t=this.next()&$p.MAX_UINT;if(e){const n=BigInt(e);let i=t*n,r=i&$p.MAX_UINT;if(r>$p.BIGINT_32;return Number(o)}{let e=Number(t);return e>=2147483648&&(e-=4294967296),e}}nextFloat(){return Number(this.nextBits(24))*$p.FLOAT_MULTIPLIER}nextDouble(){return Number(this.nextBits(53))*$p.DOUBLE_MULTIPLIER}parityConfigString(){return"seedLo: "+this.seed[0]+", seedHi: "+this.seed[1]}};let Ip=$p;Ip.SILVER_RATIO_64=BigInt("7640891576956012809"),Ip.GOLDEN_RATIO_64=BigInt("-7046029254386353131"),Ip.FLOAT_MULTIPLIER=1/Math.pow(2,24),Ip.DOUBLE_MULTIPLIER=11102230246251565e-32,Ip.BIGINT_1=BigInt(1),Ip.BIGINT_17=BigInt(17),Ip.BIGINT_21=BigInt(21),Ip.BIGINT_27=BigInt(27),Ip.BIGINT_28=BigInt(28),Ip.BIGINT_30=BigInt(30),Ip.BIGINT_31=BigInt(31),Ip.BIGINT_32=BigInt(32),Ip.BIGINT_49=BigInt(49),Ip.BIGINT_64=BigInt(64),Ip.STAFFORD_1=BigInt("-4658895280553007687"),Ip.STAFFORD_2=BigInt("-7723592293110705685"),Ip.MAX_ULONG=BigInt("0xFFFFFFFFFFFFFFFF"),Ip.POW2_60=BigInt("0x10000000000000000"),Ip.POW2_63=BigInt("0x8000000000000000"),Ip.MAX_UINT=BigInt(4294967295);class jp{constructor(e,t){this.seedLo=e,this.seedHi=t}at(e,t,n){const i=Dp(e,t,n)^this.seedLo;return new Ip([i,this.seedHi])}fromHashOf(e){const t=qh(e,{asBytes:!0}),n=Bp(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),i=Bp(t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]);return new Ip([n^this.seedLo,i^this.seedHi])}seedKey(){return[this.seedLo,this.seedHi]}}const Pp=class{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 n=e.nextInt(256-t),i=this.p[t];this.p[t]=this.p[t+n],this.p[t+n]=i}}sample2D(e,t){let n,i,r;const o=(e+t)*Pp.F2,a=Math.floor(e+o),s=e-(a-(n=(a+(i=Math.floor(t+o)))*Pp.G2));let c,l;s>(r=t-(i-n))?(c=1,l=0):(c=0,l=1);const u=s-c+Pp.G2,d=r-l+Pp.G2,h=s-1+2*Pp.G2,p=r-1+2*Pp.G2,m=255&a,f=255&i,g=this.P(m+this.P(f))%12,_=this.P(m+c+this.P(f+l))%12,b=this.P(m+1+this.P(f+1))%12;return 70*(this.getCornerNoise3D(g,s,r,0,.5)+this.getCornerNoise3D(_,u,d,0,.5)+this.getCornerNoise3D(b,h,p,0,.5))}sample(e,t,n){const i=.3333333333333333*(e+t+n),r=Math.floor(e+i),o=Math.floor(t+i),a=Math.floor(n+i),s=.16666666666666666*(r+o+a),c=e-(r-s),l=t-(o-s),u=n-(a-s);let d,h,p,m,f,g;c>=l?l>=u?(d=1,h=0,p=0,m=1,f=1,g=0):c>=u?(d=1,h=0,p=0,m=1,f=0,g=1):(d=0,h=0,p=1,m=1,f=0,g=1):l127?t-256:t;for(let t=0;t<256;t+=1){const n=e.nextInt(256-t),i=this.p[t];this.p[t]=this.p[t+n],this.p[t+n]=i}}sample(e,t,n,i=0,r=0){const o=e+this.xo,a=t+this.yo,s=n+this.zo,c=Math.floor(o),l=Math.floor(a),u=Math.floor(s),d=o-c,h=a-l,p=s-u;let m=0;if(0!==i){const e=r>=0&&r=0;i-=1)i0&&(i=this.maxLimitNoise.getOctaveNoise(c))&&(s+=i.sample(d,h,p,u,t*u)/o),o/=2}return Cp(a/512,s/512,r)/128}}var Vp;(Vp||(Vp={})).fromJson=function(e){var t,n,i,r,o;const a=null!=(t=Zh.readObject(e))?t:{};return{xzScale:null!=(n=Zh.readNumber(a.xz_scale))?n:1,yScale:null!=(i=Zh.readNumber(a.y_scale))?i:1,xzFactor:null!=(r=Zh.readNumber(a.xz_factor))?r:80,yFactor:null!=(o=Zh.readNumber(a.y_factor))?o:80}};const Gp=class{constructor(e,{firstOctave:t,amplitudes:n}){this.first=new Wp(e,t,n),this.second=new Wp(e,t,n);let i=1/0,r=-1/0;for(let a=0;a{var t;return null!=(t=Zh.readNumber(e))?t:0})))?i:[]}},(Jp||(Jp={})).rotate=function(e,t,n){let{up:i,down:r,north:o,east:a,south:s,west:c}=e;switch(n){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,r,s]=[o,r,s,i];break;case 180:[i,o,r,s]=[r,s,i,o];break;case 270:[i,o,r,s]=[s,i,o,r]}return{up:i,down:r,north:o,east:a,south:s,west:c}};const Yp=class{constructor(e,t,n){this.offsetSampler=e,this.factorSampler=t,this.jaggednessSampler=n}static extractor(e){return{compute:t=>t[e]}}static fromJson(e){var t;const n=null!=(t=Zh.readObject(e))?t:{};return new Yp(Lp.fromJson(n.offset,this.EXTRACTOR),Lp.fromJson(n.factor,this.EXTRACTOR),Lp.fromJson(n.jaggedness,this.EXTRACTOR))}offset(e){return this.offsetSampler.compute(e)+Yp.GLOBAL_OFFSET}factor(e){return this.factorSampler.compute(e)}jaggedness(e){return this.jaggednessSampler.compute(e)}static point(e,t,n){return{continents:e,erosion:t,weirdness:n,ridges:this.peaksAndValleys(n)}}static peaksAndValleys(e){return 3*-(Math.abs(Math.abs(e)-.6666667)-.33333334)}};let Zp=Yp;var Qp,em,tm,nm,im,rm,om;Zp.GLOBAL_OFFSET=-.50375,Zp.EXTRACTOR=e=>{var t;const n=null!=(t=Zh.readString(e))?t:"continents";return Yp.extractor(n)},Zp.CONTINENTS=Yp.extractor("continents"),Zp.EROSION=Yp.extractor("erosion"),Zp.WEIRDNESS=Yp.extractor("weirdness"),Zp.RIDGES=Yp.extractor("ridges"),function(e){function t(e){return e.ySize<<2}e.fromJson=function(e){var t,n,i,r,o;const a=null!=(t=Zh.readObject(e))?t:{};return{minY:null!=(n=Zh.readInt(a.min_y))?n:0,height:null!=(i=Zh.readInt(a.height))?i:256,xzSize:null!=(r=Zh.readInt(a.size_horizontal))?r:1,ySize:null!=(o=Zh.readInt(a.size_vertical))?o:1,sampling:Vp.fromJson(a.sampling),topSlide:em.fromJson(a.top_slide),bottomSlide:em.fromJson(a.bottom_slide),terrainShaper:Zp.fromJson(a.terrain_shaper)}},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))},e.applySlides=function(n,i,r){const o=Math.floor(r/t(n))-e.minCellY(n);return i=em.apply(n.topSlide,i,e.cellCountY(n)-o),em.apply(n.bottomSlide,i,o)}}(Qp||(Qp={})),(tm=em||(em={})).fromJson=function(e){var t,n,i,r;const o=null!=(t=Zh.readObject(e))?t:{};return{target:null!=(n=Zh.readNumber(o.target))?n:0,size:null!=(i=Zh.readInt(o.size))?i:0,offset:null!=(r=Zh.readInt(o.offset))?r:0}},tm.apply=function(e,t,n){if(e.size<=0)return t;const i=(n-e.offset)/e.size;return Cp(e.target,t,i)},function(e){function t(e){const t=new vp(ip.create(e));return vp.REGISTRY.register(t.key,t),t}e.NOISE=t("worldgen/noise"),e.DENSITY_FUNCTION=t("worldgen/density_function")}(nm||(nm={}));class am{minValue(){return-this.maxValue()}mapAll(e){return e.map(this)}}!function(e){e.context=function(e,t,n){return{x:e,y:t,z:n}};class t extends e{constructor(e){super(),this.input=e}compute(e){return this.transform(e,this.input.compute(e))}}const n=_p.parser(nm.NOISE,Kp.fromJson);e.fromJson=function e(t,i=e){var c,_,w,E,R,$,I,j,P,z,U,W,H,V,G,q,K,X,J;if("string"==typeof t)return new o(_p.reference(nm.DENSITY_FUNCTION,ip.parse(t)));if("number"==typeof t)return new r(t);const Y=null!=(c=Zh.readObject(t))?c:{},Z=null==(_=Zh.readString(Y.type))?void 0:_.replace(/^minecraft:/,"");switch(Z){case"blend_alpha":return new a(1,0,1);case"blend_offset":case"beardifier":return new a(0,-1/0,1/0);case"old_blended_noise":return new s;case"flat_cache":return new l(i(Y.argument));case"interpolated":return new p(i(Y.argument));case"cache_2d":return new d(i(Y.argument));case"cache_once":return new h(i(Y.argument));case"cache_all_in_cell":return new u(i(Y.argument));case"noise":return new m(null!=(w=Zh.readNumber(Y.xz_scale))?w:1,null!=(E=Zh.readNumber(Y.y_scale))?E:1,n(Y.noise));case"end_islands":return new f;case"weird_scaled_sampler":return new b(i(Y.input),Zh.readEnum(Y.rarity_value_mapper,g),n(Y.noise));case"shifted_noise":return new v(i(Y.shift_x),i(Y.shift_y),i(Y.shift_z),null!=(R=Zh.readNumber(Y.xz_scale))?R:1,null!=($=Zh.readNumber(Y.y_scale))?$:1,n(Y.noise));case"range_choice":return new y(i(Y.input),null!=(I=Zh.readNumber(Y.min_inclusive))?I:0,null!=(j=Zh.readNumber(Y.max_exclusive))?j:1,i(Y.when_in_range),i(Y.when_out_of_range));case"shift_a":return new x(n(Y.argument));case"shift_b":return new A(n(Y.argument));case"shift":return new N(n(Y.argument));case"blend_density":return new k(i(Y.argument));case"clamp":return new C(i(Y.input),null!=(P=Zh.readNumber(Y.min))?P:0,null!=(z=Zh.readNumber(Y.max))?z:1);case"abs":case"square":case"cube":case"half_negative":case"quarter_negative":case"squeeze":return new S(Z,i(Y.argument));case"slide":return new O(i(Y.argument));case"add":case"mul":case"min":case"max":return new D(Zh.readEnum(Z,F),i(Y.argument1),i(Y.argument2));case"spline":return new B(Lp.fromJson(Y.spline,i),null!=(U=Zh.readNumber(Y.min_value))?U:0,null!=(W=Zh.readNumber(Y.max_value))?W:1);case"terrain_shaper_spline":return new M(i(Y.continentalness),i(Y.erosion),i(Y.weirdness),Zh.readEnum(Y.spline,L),null!=(H=Zh.readNumber(Y.min_value))?H:0,null!=(V=Zh.readNumber(Y.max_value))?V:1);case"constant":return new r(null!=(G=Zh.readNumber(Y.argument))?G:0);case"y_clamped_gradient":return new T(null!=(q=Zh.readInt(Y.from_y))?q:-4064,null!=(K=Zh.readInt(Y.to_y))?K:4062,null!=(X=Zh.readNumber(Y.from_value))?X:-4064,null!=(J=Zh.readNumber(Y.to_value))?J:4062)}return r.ZERO};const i=class extends e{constructor(e){super(),this.value=e}compute(){return this.value}minValue(){return this.value}maxValue(){return this.value}};let r=i;r.ZERO=new i(0),r.ONE=new i(1),e.Constant=r;class o extends e{constructor(e){super(),this.holder=e}compute(e){return this.holder.value().compute(e)}minValue(){return this.holder.value().minValue()}maxValue(){return this.holder.value().maxValue()}}e.HolderHolder=o;class a extends e.Constant{constructor(e,t,n){super(e),this.min=t,this.max=n}minValue(){return this.min}maxValue(){return this.max}}e.ConstantMinMax=a;class s extends e{constructor(e){super(),this.blendedNoise=null!=e?e:new Hp(Ip.create(BigInt(0)),{xzScale:1,yScale:1,xzFactor:80,yFactor:160},4,8)}compute(e){return this.blendedNoise.sample(e.x,e.y,e.z)}maxValue(){return this.blendedNoise.maxValue}}e.OldBlendedNoise=s;class c extends e{constructor(e){super(),this.wrapped=e}minValue(){return this.wrapped.minValue()}maxValue(){return this.wrapped.maxValue()}}class l extends c{constructor(e){super(e),this.lastValue=0}compute(t){const n=t.x>>2,i=t.z>>2;return this.lastQuartX===n&&this.lastQuartZ===i||(this.lastValue=this.wrapped.compute(e.context(n<<2,0,i<<2)),this.lastQuartX=n,this.lastQuartZ=i),this.lastValue}mapAll(e){return e.map(new l(this.wrapped.mapAll(e)))}}e.FlatCache=l;class u extends c{constructor(e){super(e)}compute(e){return this.wrapped.compute(e)}mapAll(e){return e.map(new u(this.wrapped.mapAll(e)))}}e.CacheAllInCell=u;class d extends c{constructor(e){super(e),this.lastValue=0}compute(e){const t=e.x,n=e.z;return this.lastBlockX===t&&this.lastBlockZ===n||(this.lastValue=this.wrapped.compute(e),this.lastBlockX=t,this.lastBlockZ=n),this.lastValue}mapAll(e){return e.map(new d(this.wrapped.mapAll(e)))}}e.Cache2D=d;class h extends c{constructor(e){super(e),this.lastValue=0}compute(e){const t=e.x,n=e.y,i=e.z;return this.lastBlockX===t&&this.lastBlockY===n&&this.lastBlockZ===i||(this.lastValue=this.wrapped.compute(e),this.lastBlockX=t,this.lastBlockY=n,this.lastBlockZ=i),this.lastValue}mapAll(e){return e.map(new h(this.wrapped.mapAll(e)))}}e.CacheOnce=h;class p extends c{constructor(e,t=4,n=4){super(e),this.cellWidth=t,this.cellHeight=n,this.values=new Map}compute({x:e,y:t,z:n}){const i=this.cellWidth,r=this.cellHeight,o=(e%i+i)%i/i,a=(t%r+r)%r/r,s=(n%i+i)%i/i,c=Math.floor(e/i)*i,l=Math.floor(t/r)*r,u=Math.floor(n/i)*i;return function(e,t,n,i,r,o,a,s,c,l,u){return Np(n,(()=>kp(e,t,i,r,o,a)),(()=>kp(e,t,s,c,l,u)))}(o,a,s,(()=>this.computeCorner(c,l,u)),(()=>this.computeCorner(c+i,l,u)),(()=>this.computeCorner(c,l+r,u)),(()=>this.computeCorner(c+i,l+r,u)),(()=>this.computeCorner(c,l,u+i)),(()=>this.computeCorner(c+i,l,u+i)),(()=>this.computeCorner(c,l+r,u+i)),(()=>this.computeCorner(c+i,l+r,u+i)))}computeCorner(t,n,i){return tp(this.values,`${t} ${n} ${i}`,(()=>this.wrapped.compute(e.context(t,n,i))))}mapAll(e){return e.map(new p(this.wrapped.mapAll(e)))}withCellSize(e,t){return new p(this.wrapped,e,t)}}e.Interpolated=p;class m extends e{constructor(e,t,n,i){super(),this.xzScale=e,this.yScale=t,this.noiseData=n,this.noise=i}compute(e){var t,n;return null!=(n=null==(t=this.noise)?void 0:t.sample(e.x*this.xzScale,e.y*this.yScale,e.z*this.xzScale))?n:0}maxValue(){var e,t;return null!=(t=null==(e=this.noise)?void 0:e.maxValue)?t:2}}e.Noise=m;class f extends e{compute(){return 0}minValue(){return-.84375}maxValue(){return.5625}}const g=["type_1","type_2"],_=class extends t{constructor(e,t,n,i){super(e),this.rarityValueMapper=t,this.noiseData=n,this.noise=i,this.mapper=_.ValueMapper[this.rarityValueMapper]}transform(e,t){if(!this.noise)return 0;const n=this.mapper(t);return n*Math.abs(this.noise.sample(e.x/n,e.y/n,e.z/n))}mapAll(e){return e.map(new _(this.input.mapAll(e),this.rarityValueMapper,this.noiseData,this.noise))}minValue(){return 0}maxValue(){return"type_1"===this.rarityValueMapper?2:3}static rarityValueMapper1(e){return e<-.5?.75:e<0?1:e<.5?1.5:2}static rarityValueMapper2(e){return e<-.75?.5:e<-.5?.75:e<.5?1:e<.75?2:3}};let b=_;b.ValueMapper={type_1:_.rarityValueMapper1,type_2:_.rarityValueMapper2},e.WeirdScaledSampler=b;class v extends m{constructor(e,t,n,i,r,o,a){super(i,r,o,a),this.shiftX=e,this.shiftY=t,this.shiftZ=n}compute(e){var t,n;const i=e.x*this.xzScale+this.shiftX.compute(e),r=e.y*this.yScale+this.shiftY.compute(e),o=e.z*this.xzScale+this.shiftZ.compute(e);return null!=(n=null==(t=this.noise)?void 0:t.sample(i,r,o))?n:0}mapAll(e){return e.map(new v(this.shiftX.mapAll(e),this.shiftY.mapAll(e),this.shiftZ.mapAll(e),this.xzScale,this.yScale,this.noiseData,this.noise))}}e.ShiftedNoise=v;class y extends e{constructor(e,t,n,i,r){super(),this.input=e,this.minInclusive=t,this.maxExclusive=n,this.whenInRange=i,this.whenOutOfRange=r}compute(e){const t=this.input.compute(e);return this.minInclusive<=t&&tMath.abs(e),square:e=>e*e,cube:e=>e*e*e,half_negative:e=>e>0?e:.5*e,quarter_negative:e=>e>0?e:.25*e,squeeze:e=>{const t=wp(e,-1,1);return t/2-t*t*t/24}},e.Mapped=S;class O extends t{constructor(e,t){super(e),this.settings=t}transform(e,t){return this.settings?Qp.applySlides(this.settings,t,e.y):t}mapAll(e){return e.map(new O(this.input.mapAll(e),this.settings))}minValue(){return this.settings?Math.min(this.input.minValue(),this.settings.bottomSlide.target,this.settings.topSlide.target):this.input.minValue()}maxValue(){return this.settings?Math.max(this.input.maxValue(),this.settings.bottomSlide.target,this.settings.topSlide.target):this.input.maxValue()}}e.Slide=O;const F=["add","mul","min","max"];class D extends e{constructor(e,t,n,i,r){super(),this.type=e,this.argument1=t,this.argument2=n,this.min=i,this.max=r}compute(e){const t=this.argument1.compute(e);switch(this.type){case"add":return t+this.argument2.compute(e);case"mul":return 0===t?0:t*this.argument2.compute(e);case"min":return tthis.argument2.maxValue()?t:Math.max(t,this.argument2.compute(e))}}mapAll(e){return e.map(new D(this.type,this.argument1.mapAll(e),this.argument2.mapAll(e)))}minValue(){var e;return null!=(e=this.min)?e:-1/0}maxValue(){var e;return null!=(e=this.max)?e:1/0}withMinMax(){const e=this.argument1.minValue(),t=this.argument2.minValue(),n=this.argument1.maxValue(),i=this.argument2.maxValue();let r,o;switch("min"!==this.type&&"max"!==this.type||!(e>=i||t>=n)||console.warn(`Creating a ${this.type} function between two non-overlapping inputs`),this.type){case"add":r=e+t,o=n+i;break;case"mul":r=e>0&&t>0?e*t||0:n<0&&i<0?n*i||0:Math.min(e*i||0,t*n||0),o=e>0&&t>0?n*i||0:n<0&&i<0?e*t||0:Math.max(e*t||0,n*i||0);break;case"min":r=Math.min(e,t),o=Math.min(n,i);break;case"max":r=Math.max(e,t),o=Math.max(n,i)}return new D(this.type,this.argument1,this.argument2,r,o)}}e.Ap2=D;class B extends e{constructor(e,t,n){super(),this.spline=e,this.min=t,this.max=n}compute(e){return wp(this.spline.compute(e),this.min,this.max)}mapAll(t){return t.map(new B(this.spline.mapAll((n=>n instanceof e?n.mapAll(t):n)),this.min,this.max))}minValue(){return this.min}maxValue(){return this.max}}e.Spline=B;const L=["offset","factor","jaggedness"];class M extends e{constructor(e,t,n,i,r,o,a){super(),this.continentalness=e,this.erosion=t,this.weirdness=n,this.spline=i,this.min=r,this.max=o,this.shaper=a}compute(e){if(!this.shaper)return 0;const t=Zp.point(this.continentalness.compute(e),this.erosion.compute(e),this.weirdness.compute(e));return wp(this.shaper[this.spline](t),this.min,this.max)}mapAll(e){return e.map(new M(this.continentalness.mapAll(e),this.erosion.mapAll(e),this.weirdness.mapAll(e),this.spline,this.min,this.max,this.shaper))}minValue(){return this.min}maxValue(){return this.max}}e.TerrainShaperSpline=M;class T extends e{constructor(e,t,n,i){super(),this.fromY=e,this.toY=t,this.fromValue=n,this.toValue=i}compute(e){return Fp(e.y,this.fromY,this.toY,this.fromValue,this.toValue)}minValue(){return Math.min(this.fromValue,this.toValue)}maxValue(){return Math.max(this.fromValue,this.toValue)}}e.YClampedGradient=T}(am||(am={}));class sm{constructor(e,t){this.level=e,this.type=t}at(e){return e0))return e(t,n,i).at(n)}}},function(e){function t(e,t){return"number"==typeof e?new n(e,null!=t?t:e):e}e.target=function(e,t,n,i,o,a){return new r(e,t,n,i,o,a)},e.parameters=function(e,n,r,o,a,s,c){return new i(t(e),t(n),t(r),t(o),t(a),t(s),c)},e.param=t;class n{constructor(e,t){this.min=e,this.max=t}distance(e){const t=("number"==typeof e?e:e.min)-this.max,n=this.min-("number"==typeof e?e:e.max);return t>0?t:Math.max(n,0)}union(e){return new n(Math.min(this.min,e.min),Math.max(this.max,e.max))}static fromJson(e){var t;if("number"==typeof e)return new n(e,e);const[i,r]=null!=(t=Zh.readArray(e,(e=>Zh.readNumber(e))))?t:[];return new n(null!=i?i:0,null!=r?r:0)}}e.Param=n;class i{constructor(e,t,n,i,r,o,a){this.temperature=e,this.humidity=t,this.continentalness=n,this.erosion=i,this.depth=r,this.weirdness=o,this.offset=a}fittness(e){return yp(this.temperature.distance(e.temperature))+yp(this.humidity.distance(e.humidity))+yp(this.continentalness.distance(e.continentalness))+yp(this.erosion.distance(e.erosion))+yp(this.depth.distance(e.depth))+yp(this.weirdness.distance(e.weirdness))+yp(this.offset-e.offset)}space(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,new n(this.offset,this.offset)]}static fromJson(e){var t,r;const o=null!=(t=Zh.readObject(e))?t:{};return new i(n.fromJson(o.temperature),n.fromJson(o.humidity),n.fromJson(o.continentalness),n.fromJson(o.erosion),n.fromJson(o.depth),n.fromJson(o.weirdness),null!=(r=Zh.readInt(o.offset))?r:0)}}e.ParamPoint=i;class r{constructor(e,t,n,i,r,o){this.temperature=e,this.humidity=t,this.continentalness=n,this.erosion=i,this.depth=r,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=r,e.Parameters=class{constructor(e){this.things=e,this.index=new a(e)}find(e){return this.index.search(e,((e,t)=>e.distance(t)))}},e.Sampler=class{constructor(e,t,n,i,r,o){this.temperature=e,this.humidity=t,this.continentalness=n,this.erosion=i,this.depth=r,this.weirdness=o}static fromRouter(t){return new e.Sampler(t.temperature,t.vegetation,t.continents,t.erosion,t.depth,t.ridges)}sample(t,n,i){const r=am.context(t<<2,n<<2,i<<2);return e.target(this.temperature.compute(r),this.humidity.compute(r),this.continentalness.compute(r),this.erosion.compute(r),this.depth.compute(r),this.weirdness.compute(r))}};const o=class{constructor(e){this.root=o.build(e.map((([e,t])=>new l(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 n=0;n<7;n+=1){const i=e.space[n];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 c(t)}let t=1/0,n=-1,i=[];for(let r=0;r<7;++r){e=o.sort(e,r,!1),i=o.bucketize(e);let a=0;for(const e of i)a+=o.area(e.space);t>a&&(t=a,n=r)}return e=o.sort(e,n,!1),i=o.bucketize(e),i=o.sort(i,n,!0),new c(i.map((e=>o.build(e.children))))}static sort(e,t,n){return e.map((e=>{const i=e.space[t],r=(i.min+i.max)/2;return{key:n?Math.abs(r):r,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e))}static bucketize(e){const t=[];let n=[];const i=Math.pow(10,Math.floor(Math.log(e.length-.01)/Math.log(10)));for(const r of e)n.push(r),n.lengthnew n(1/0,-1/0)));for(const n of e)t=[...Array(7)].map(((e,i)=>t[i].union(n.space[i])));return t}search(e,t){let n=1/0,i=null;for(const r of this.children){const o=t(r,e);if(n<=o)continue;const a=r.search(e,t),s=r==a?o:t(a,e);n<=s||(n=s,i=a)}return i}}e.RSubTree=c;class l extends s{constructor(e,t){super(e.space()),this.thing=t}search(){return this}}e.RLeaf=l}(rm||(rm={}));class cm{constructor(e){this.biome=e}getBiome(){return this.biome}static fromJson(e){var t,n;const i=null!=(t=Zh.readObject(e))?t:{},r=ip.parse(null!=(n=Zh.readString(i.biome))?n:"minecraft:the_void");return new cm(r)}}!function(e){function t(e,t,n){return nm.NOISE.register(ip.create(e),Kp.create(t,n))}e.TEMPERATURE=t("temperature",-10,[1.5,0,1,0,0,0]),e.VEGETATION=t("vegetation",-8,[1,1,0,0,0,0]),e.CONTINENTALNESS=t("continentalness",-9,[1,1,2,2,2,1,1,1,1]),e.EROSION=t("erosion",-9,[1,1,0,1,1]),e.TEMPERATURE_LARGE=t("temperature_large",-12,[1.5,0,1,0,0,0]),e.VEGETATION_LARGE=t("vegetation_large",-10,[1,1,0,0,0,0]),e.CONTINENTALNESS_LARGE=t("continentalness_large",-11,[1,1,2,2,2,1,1,1,1]),e.EROSION_LARGE=t("erosion_large",-11,[1,1,0,1,1]),e.RIDGE=t("ridge",-7,[1,2,1,0,0,0]),e.SHIFT=t("offset",-3,[1,1,1,0]),e.AQUIFER_BARRIER=t("aquifer_barrier",-3,[1]),e.AQUIFER_FLUID_LEVEL_FLOODEDNESS=t("aquifer_fluid_level_floodedness",-7,[1]),e.AQUIFER_FLUID_LEVEL_SPREAD=t("aquifer_fluid_level_spread",-5,[1]),e.AQUIFER_LAVA=t("aquifer_lava",-1,[1]),e.PILLAR=t("pillar",-7,[1,1]),e.PILLAR_RARENESS=t("pillar_rareness",-8,[1]),e.PILLAR_THICKNESS=t("pillar_thickness",-8,[1]),e.SPAGHETTI_2D=t("spaghetti_2d",-8,[1]),e.SPAGHETTI_2D_ELEVATION=t("spaghetti_2d_elevation",-8,[1]),e.SPAGHETTI_2D_MODULATOR=t("spaghetti_2d_modulator",-8,[1]),e.SPAGHETTI_2D_THICKNESS=t("spaghetti_2d_thickness",-8,[1]),e.SPAGHETTI_3D_1=t("spaghetti_3d_1",-8,[1]),e.SPAGHETTI_3D_2=t("spaghetti_3d_2",-8,[1]),e.SPAGHETTI_3D_RARITY=t("spaghetti_3d_rarity",-8,[1]),e.SPAGHETTI_3D_THICKNESS=t("spaghetti_3d_thickness",-8,[1]),e.SPAGHETTI_ROUGHNESS=t("spaghetti_roughness",-8,[1]),e.SPAGHETTI_ROUGHNESS_MODULATOR=t("spaghetti_roughness_modulator",-8,[1]),e.CAVE_ENTRANCE=t("cave_entrance",-7,[.4,.5,1]),e.CAVE_LAYER=t("cave_layer",-8,[1]),e.CAVE_CHEESE=t("cave_cheese",-8,[.5,1,2,1,2,1,0,2,0]),e.NOODLE=t("noodle",-8,[1]),e.NOODLE_THICKNESS=t("noodle_thickness",-8,[1]),e.NOODLE_RIDGE_A=t("noodle_ridge_a",-7,[1]),e.NOODLE_RIDGE_B=t("noodle_ridge_b",-7,[1]),e.JAGGED=t("jagged",-16,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),e.SURFACE=t("surface",-6,[1,1,1]),e.SURFACE_SECONDARY=t("surface_secondary",-6,[1,1,0,1]);const n=new Map;e.instantiate=function(e,t){var i;const r=null==(i=t.key())?void 0:i.toString();if(!r)throw new Error("Cannot instantiate noise from direct holder");const o=e.seedKey(),a=n.get(r);if(a&&a[0]===o[0]&&a[1]===o[1])return a[2];const s=new qp(e.fromHashOf(r),t.value());return n.set(r,[o[0],o[1],s]),s}}(om||(om={}));var lm,um,dm,hm,pm,mm,fm,gm=Object.defineProperty,_m=Object.defineProperties,bm=Object.getOwnPropertyDescriptors,vm=Object.getOwnPropertySymbols,ym=Object.prototype.hasOwnProperty,wm=Object.prototype.propertyIsEnumerable,xm=(e,t,n)=>t in e?gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Am=(e,t)=>{for(var n in t||(t={}))ym.call(t,n)&&xm(e,n,t[n]);if(vm)for(var n of vm(t))wm.call(t,n)&&xm(e,n,t[n]);return e};!function(e){const t=e=>_p.parser(nm.DENSITY_FUNCTION,am.fromJson)(e).value();e.fromJson=function(e){var n;const i=null!=(n=Zh.readObject(e))?n:{};return{barrier:t(i.barrier),fluidLevelFloodedness:t(i.fluid_level_floodedness),fluidLevelSpread:t(i.fluid_level_spread),lava:t(i.lava),temperature:t(i.temperature),vegetation:t(i.vegetation),continents:t(i.continents),erosion:t(i.erosion),depth:t(i.depth),ridges:t(i.ridges),initialDensityWithoutJaggedness:t(i.initial_density_without_jaggedness),finalDensity:t(i.final_density),veinToggle:t(i.vein_toggle),veinRidged:t(i.vein_ridged),veinGap:t(i.vein_gap)}},e.create=function(e){return Am({barrier:am.Constant.ZERO,fluidLevelFloodedness:am.Constant.ZERO,fluidLevelSpread:am.Constant.ZERO,lava:am.Constant.ZERO,temperature:am.Constant.ZERO,vegetation:am.Constant.ZERO,continents:am.Constant.ZERO,erosion:am.Constant.ZERO,depth:am.Constant.ZERO,ridges:am.Constant.ZERO,initialDensityWithoutJaggedness:am.Constant.ZERO,finalDensity:am.Constant.ZERO,veinToggle:am.Constant.ZERO,veinRidged:am.Constant.ZERO,veinGap:am.Constant.ZERO},e)},e.withSettings=function(e,t,i,r=!1){const o=(r?new Tp(i):Ip.create(i)).forkPositional(),a=new n(o,t);return s=Am({},a.mapAll(e)),c={aquiferPositionalRandomFactory:o.fromHashOf(ip.create("aquifer").toString()).forkPositional(),oreVeinsPositionalRandomFactory:o.fromHashOf(ip.create("ore").toString()).forkPositional()},_m(s,bm(c));var s,c};class n{constructor(e,t){this.random=e,this.settings=t,this.mapped=new Map}map(e){if(e instanceof am.HolderHolder){const t=e.holder.key();if(void 0!==t&&this.mapped.has(t.toString()))return this.mapped.get(t.toString());{const n=e.holder.value().mapAll(this);return void 0!==t&&this.mapped.set(t.toString(),n),n}}if(e instanceof am.Interpolated)return e.withCellSize(Qp.cellWidth(this.settings),Qp.cellHeight(this.settings));if(e instanceof am.Noise)return new am.Noise(e.xzScale,e.yScale,e.noiseData,om.instantiate(this.random,e.noiseData));if(e instanceof am.ShiftNoise)return e.withNewNoise(om.instantiate(this.random,e.noiseData));if(e instanceof am.ShiftedNoise){const t=om.instantiate(this.random,e.noiseData);return new am.ShiftedNoise(e.shiftX,e.shiftY,e.shiftZ,e.xzScale,e.yScale,e.noiseData,t)}return e instanceof am.WeirdScaledSampler?new am.WeirdScaledSampler(e.input,e.rarityValueMapper,e.noiseData,om.instantiate(this.random,e.noiseData)):e instanceof am.OldBlendedNoise?new am.OldBlendedNoise(new Hp(this.random.fromHashOf(ip.create("terrain").toString()),this.settings.sampling,Qp.cellWidth(this.settings),Qp.cellHeight(this.settings))):e instanceof am.Mapped||e instanceof am.Ap2?e.withMinMax():e instanceof am.TerrainShaperSpline?new am.TerrainShaperSpline(e.continentalness,e.erosion,e.weirdness,e.spline,e.min,e.max,this.settings.terrainShaper):e instanceof am.Slide?new am.Slide(e.input,this.settings):e}mapAll(e){return{barrier:e.barrier.mapAll(this),fluidLevelFloodedness:e.fluidLevelFloodedness.mapAll(this),fluidLevelSpread:e.fluidLevelSpread.mapAll(this),lava:e.lava.mapAll(this),temperature:e.temperature.mapAll(this),vegetation:e.vegetation.mapAll(this),continents:e.continents.mapAll(this),erosion:e.erosion.mapAll(this),depth:e.depth.mapAll(this),ridges:e.ridges.mapAll(this),initialDensityWithoutJaggedness:e.initialDensityWithoutJaggedness.mapAll(this),finalDensity:e.finalDensity.mapAll(this),veinToggle:e.veinToggle.mapAll(this),veinRidged:e.veinRidged.mapAll(this),veinGap:e.veinGap.mapAll(this)}}}e.Visitor=n,e.computePreliminarySurfaceLevelScanning=function(e,t,n,i){const r=Qp.minCellY(e)+Qp.cellCountY(e),o=Qp.minCellY(e),a=Qp.cellHeight(e);for(let s=r;s>=o;s-=1){const r=s*a,o=wp(t.compute(am.context(n,r,i)),-64,64);if(Qp.applySlides(e,o,r)>=.390625)return r}return Number.MAX_SAFE_INTEGER}}(lm||(lm={}));class Nm{constructor(e,t,n,i,r,o,a,s,c){this.cellCountXZ=e,this.cellCountY=t,this.cellNoiseMinY=n,this.router=i,this.minX=r,this.minZ=o,this.settings=a,this.preliminarySurfaceLevel=new Map,this.cellWidth=Qp.cellWidth(a),this.cellHeight=Qp.cellHeight(a),this.firstCellX=Math.floor(r/this.cellWidth),this.firstCellZ=Math.floor(o/this.cellWidth),this.firstNoiseX=r>>2,this.firstNoiseZ=o>>2,this.noiseSizeXZ=e*this.cellWidth>>2,this.aquifer=im.createDisabled(c);const l=this.router.finalDensity;this.materialRule=um.fromList([e=>this.aquifer.compute(e,l.compute(e))]),this.initialDensityWithoutJaggedness=this.router.initialDensityWithoutJaggedness}getFinalState(e,t,n){return this.materialRule({x:e,y:t,z:n})}getPreliminarySurfaceLevel(e,t){return tp(this.preliminarySurfaceLevel,gp.asLong(e,t),(()=>lm.computePreliminarySurfaceLevelScanning(this.settings,this.initialDensityWithoutJaggedness,e<<2,t<<2)))}getAquifer(){return this.aquifer}}(um||(um={})).fromList=function(e){return t=>{for(const n of e){const e=n(t);if(e)return e}}},(dm||(dm={})).fromJson=function(e){var t,n,i,r;const o=null!=(t=Zh.readObject(e))?t:{};return void 0!==o.absolute?(s=null!=(n=Zh.readNumber(o.absolute))?n:0,()=>s):void 0!==o.above_bottom?(a=null!=(i=Zh.readNumber(o.above_bottom))?i:0,e=>e.minY+a):void 0!==o.below_top?function(e){return t=>t.maxY-e}(null!=(r=Zh.readNumber(o.below_top))?r:0):()=>0;var a,s},(hm||(hm={})).create=function(e,t){return{minY:e,height:t,maxY:e+t-1}};class km{constructor(e,t,n){this.rule=e,this.defaultBlock=t,this.random=Ip.create(n).forkPositional(),this.surfaceNoise=om.instantiate(this.random,om.SURFACE),this.surfaceSecondaryNoise=om.instantiate(this.random,om.SURFACE_SECONDARY),this.positionalRandoms=new Map}buildSurface(e,t,n,i){const r=gp.minBlockX(e.pos),o=gp.minBlockZ(e.pos),a=new Cm(this,e,t,n,i),s=this.rule(a);for(let c=0;c<16;c+=1){const t=r+c;for(let n=0;n<1;n+=1){const i=o+n;a.updateXZ(t,i);let r=0,c=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER;for(let n=e.maxY;n>=e.minY;n-=1){const o=Xh.create(t,n,i),u=e.getBlockState(o);if(u.equals(hp.AIR)){r=0,c=Number.MIN_SAFE_INTEGER;continue}if(u.isFluid()){c===Number.MIN_SAFE_INTEGER&&(c=n+1);continue}if(l>=n){l=Number.MIN_SAFE_INTEGER;for(let r=n-1;r>=e.minY;r-=1){const n=e.getBlockState(Xh.create(t,r,i));if(n.equals(hp.AIR)||n.isFluid()){l=r+1;break}}}r+=1;const d=n-l+1;if(!u.equals(this.defaultBlock))continue;a.updateY(r,d,c,n);const h=s(t,n,i);h&&e.setBlockState(o,h)}}}}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 tp(this.positionalRandoms,e,(()=>this.random.fromHashOf(e)))}}class Cm{constructor(e,t,n,i,r){this.system=e,this.chunk=t,this.noiseChunk=n,this.context=i,this.getBiome=r,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=ep((()=>this.system.getSurfaceSecondary(e,t))),this.minSurfaceLevel=ep((()=>this.calculateMinSurfaceLevel(e,t)))}updateY(e,t,n,i){this.blockY=i,this.stoneDepthAbove=e,this.stoneDepthBelow=t,this.waterHeight=n,this.biome=ep((()=>this.getBiome(Xh.create(this.blockX,this.blockY,this.blockZ))))}calculateMinSurfaceLevel(e,t){const n=e>>4,i=t>>4,r=this.noiseChunk.getPreliminarySurfaceLevel(n<<4,i<<4),o=this.noiseChunk.getPreliminarySurfaceLevel(n+1<<4,i<<4),a=this.noiseChunk.getPreliminarySurfaceLevel(n<<4,i+1<<4),s=this.noiseChunk.getPreliminarySurfaceLevel(n+1<<4,i+1<<4);return Math.floor(Ap((15&e)/16,(15&t)/16,r,o,a,s))+this.surfaceDepth-8}}!function(e){function t(e){return()=>()=>e}function n(e){return t=>{const n=e.map((e=>e(t)));return(e,t,i)=>{for(const r of n){const n=r(e,t,i);if(n)return n}}}}function i(e,t){return n=>(i,r,o)=>{if(e(n))return t(n)(i,r,o)}}e.NOOP=()=>()=>{},e.fromJson=function(r){var o,a,s;const c=null!=(o=Zh.readObject(r))?o:{};switch(null==(a=Zh.readString(c.type))?void 0:a.replace(/^minecraft:/,"")){case"block":return t(hp.fromJson(c.result_state));case"sequence":return n(null!=(s=Zh.readArray(c.sequence,e.fromJson))?s:[]);case"condition":return i(mm.fromJson(c.if_true),e.fromJson(c.then_run))}return e.NOOP},e.block=t,e.sequence=n,e.condition=i}(pm||(pm={})),function(e){function t(e){const t=new Set(e);return e=>t.has(e.biome())}function n(e){return t=>!e(t)}function i(e,t,n,i){return r=>{const o=i?r.stoneDepthBelow:r.stoneDepthAbove,a=t?r.surfaceDepth:0,s=0===n?0:Op(r.surfaceSecondary(),-1,1,0,n);return o<=1+e+a+s}}function r(e,t,n){return i=>{const r=t(i.context),o=n(i.context);if(i.blockY<=r)return!0;if(i.blockY>=o)return!1;const a=i.system.getRandom(e),s=Op(i.blockY,r,o,1,0);return a.nextFloat(){if(i.waterHeight===Number.MIN_SAFE_INTEGER)return!0;const r=n?i.stoneDepthAbove:0;return i.blockY+r>=i.waterHeight+e+i.surfaceDepth*t}}function a(e,t,n){return i=>{const r=n?i.stoneDepthAbove:0;return i.blockY+r>=e(i.context)+i.surfaceDepth*t}}e.FALSE=()=>!1,e.TRUE=()=>!0,e.fromJson=function(s){var c,l,u,d,h,p,m,f,g,_,b,v;const y=null!=(c=Zh.readObject(s))?c:{};switch(null==(l=Zh.readString(y.type))?void 0:l.replace(/^minecraft:/,"")){case"above_preliminary_surface":return e=>e.blockY>=e.minSurfaceLevel();case"biome":return t(null!=(u=Zh.readArray(y.biome_is,(e=>{var t;return null!=(t=Zh.readString(e))?t:""})))?u:[]);case"not":return n(e.fromJson(y.invert));case"stone_depth":return i(null!=(d=Zh.readInt(y.offset))?d:0,null!=(h=Zh.readBoolean(y.add_surface_depth))&&h,null!=(p=Zh.readInt(y.secondary_depth_range))?p:0,"ceiling"===Zh.readString(y.surface_type));case"vertical_gradient":return r(null!=(m=Zh.readString(y.random_name))?m:"",dm.fromJson(y.true_at_and_below),dm.fromJson(y.false_at_and_above));case"water":return o(null!=(f=Zh.readInt(y.offset))?f:0,null!=(g=Zh.readInt(y.surface_depth_multiplier))?g:0,null!=(_=Zh.readBoolean(y.add_surface_depth))&&_);case"y_above":return a(dm.fromJson(y.anchor),null!=(b=Zh.readInt(y.surface_depth_multiplier))?b:0,null!=(v=Zh.readBoolean(y.add_surface_depth))&&v)}return e.FALSE},e.abovePreliminarySurface=function(){return e=>e.blockY>=e.minSurfaceLevel()},e.biome=t,e.not=n,e.stoneDepth=i,e.verticalGradient=r,e.water=o,e.yAbove=a}(mm||(mm={}));class Em{constructor(e,t,n){this.biomeSource=t,this.settings=n,this.router=lm.withSettings(n.noiseRouter,n.noise,e,n.legacyRandomSource),this.noiseChunkCache=new Map,this.surfaceSystem=new km(n.surfaceRule,n.defaultBlock,e);const i=new sm(-54,hp.LAVA),r=new sm(n.seaLevel,n.defaultFluid);this.globalFluidPicker=(e,t,o)=>t=0;s-=1)for(let l=a-1;l>=0;l-=1){const m=(c+s)*a+l,f=15&m,g=e.getSectionIndex(m);e.getSectionIndex(r.minBlockY)!==g&&(r=e.getOrCreateSection(g));for(let e=0;et))}getNoiseChunk(e){return tp(this.noiseChunkCache,gp.toLong(e.pos),(()=>{const t=Math.max(e.minY,this.settings.noise.minY),n=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),i=Qp.cellWidth(this.settings.noise),r=Qp.cellHeight(this.settings.noise),o=Math.floor(16/i),a=Math.floor(t/r),s=Math.floor((n-t)/r),c=gp.minBlockX(e.pos),l=gp.minBlockZ(e.pos);return new Nm(o,s,a,this.router,c,l,this.settings.noise,this.settings.aquifersEnabled,this.globalFluidPicker)}))}}let Sm;(fm||(fm={})).fromJson=function(e){var t,n,i,r,o,a;const s=null!=(t=Zh.readObject(e))?t:{};return{surfaceRule:pm.fromJson(s.surface_rule),noise:Qp.fromJson(s.noise),defaultBlock:hp.fromJson(s.default_block),defaultFluid:hp.fromJson(s.default_fluid),noiseRouter:lm.fromJson(s.noise_router),seaLevel:null!=(n=Zh.readInt(s.sea_level))?n:0,disableMobGeneration:null!=(i=Zh.readBoolean(s.disable_mob_generation))&&i,aquifersEnabled:null!=(r=Zh.readBoolean(s.aquifers_enabled))&&r,oreVeinsEnabled:null!=(o=Zh.readBoolean(s.ore_veins_enabled))&&o,legacyRandomSource:null!=(a=Zh.readBoolean(s.legacy_random_source))&&a}};let Om=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Om.decode();let Fm=null;function Dm(e,t){return Om.decode((null!==Fm&&Fm.buffer===Sm.memory.buffer||(Fm=new Uint8Array(Sm.memory.buffer)),Fm).subarray(e,e+t))}const Bm=new Uint32Array(2),Lm=new BigInt64Array(Bm.buffer);let Mm=null;function Tm(){return null!==Mm&&Mm.buffer===Sm.memory.buffer||(Mm=new Int32Array(Sm.memory.buffer)),Mm}let Rm=null;function $m(){return null!==Rm&&Rm.buffer===Sm.memory.buffer||(Rm=new Float64Array(Sm.memory.buffer)),Rm}let Im=0;function jm(e,t){const n=t(8*e.length);return $m().set(e,n/8),Im=e.length,n}let Pm=null;function zm(e,t){const n=t(4*e.length);return(null!==Pm&&Pm.buffer===Sm.memory.buffer||(Pm=new Uint32Array(Sm.memory.buffer)),Pm).set(e,n/4),Im=e.length,n}function Um(e,t,n,i,r,o,a,s,c,l,u,d,h,p){var m=jm(e,Sm.__wbindgen_malloc),f=Im,g=jm(t,Sm.__wbindgen_malloc),_=Im,b=jm(n,Sm.__wbindgen_malloc),v=Im,y=jm(i,Sm.__wbindgen_malloc),w=Im,x=jm(r,Sm.__wbindgen_malloc),A=Im,N=jm(o,Sm.__wbindgen_malloc),k=Im,C=jm(a,Sm.__wbindgen_malloc),E=Im,S=jm(s,Sm.__wbindgen_malloc),O=Im,F=jm(c,Sm.__wbindgen_malloc),D=Im,B=jm(l,Sm.__wbindgen_malloc),L=Im,M=jm(u,Sm.__wbindgen_malloc),T=Im,R=jm(d,Sm.__wbindgen_malloc),$=Im,I=jm(h,Sm.__wbindgen_malloc),j=Im,P=zm(p,Sm.__wbindgen_malloc),z=Im,U=Sm.biome_parameters(m,f,g,_,b,v,y,w,x,A,N,k,C,E,S,O,F,D,B,L,M,T,R,$,I,j,P,z);return qm.__wrap(U)}function Wm(e,t,n,i,r,o,a,s,c,l,u,d,h){Lm[0]=e;const p=Bm[0],m=Bm[1];var f=jm(n,Sm.__wbindgen_malloc),g=Im,_=jm(r,Sm.__wbindgen_malloc),b=Im,v=jm(a,Sm.__wbindgen_malloc),y=Im,w=jm(c,Sm.__wbindgen_malloc),x=Im,A=jm(u,Sm.__wbindgen_malloc),N=Im,k=jm(h,Sm.__wbindgen_malloc),C=Im,E=Sm.climate_sampler(p,m,t,f,g,i,_,b,o,v,y,s,w,x,l,A,N,d,k,C);return Km.__wrap(E)}function Hm(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}function Vm(e,t,n,i,r,o,a,s,c,l,u){try{const m=Sm.__wbindgen_add_to_stack_pointer(-16);Hm(e,qm),Hm(t,Km),Sm.multi_noise(m,e.ptr,t.ptr,n,i,r,o,a,s,c,l,u);var d=Tm()[m/4+0],h=Tm()[m/4+1],p=function(e,t){return Tm().subarray(e/4,e/4+t)}(d,h).slice();return Sm.__wbindgen_free(d,4*h),p}finally{Sm.__wbindgen_add_to_stack_pointer(16)}}function Gm(e,t,n,i,r,o,a,s,c,l){try{const p=Sm.__wbindgen_add_to_stack_pointer(-16);Hm(e,Km),Sm.climate_noise(p,e.ptr,t,n,i,r,o,a,s,c,l);var u=Tm()[p/4+0],d=Tm()[p/4+1],h=function(e,t){return $m().subarray(e/8,e/8+t)}(u,d).slice();return Sm.__wbindgen_free(u,8*d),h}finally{Sm.__wbindgen_add_to_stack_pointer(16)}}class qm{static __wrap(e){const t=Object.create(qm.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();Sm.__wbg_parameterlist_free(e)}}class Km{static __wrap(e){const t=Object.create(Km.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();Sm.__wbg_sampler_free(e)}}async function Xm(e){void 0===e&&(e=new URL("deepslate_rs_bg.wasm",u.url));const t={wbg:{}};t.wbg.__wbindgen_throw=function(e,t){throw new Error(Dm(e,t))},("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:n,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(n){if("application/wasm"==e.headers.get("Content-Type"))throw n;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",n)}const i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await e,t);return Sm=n.exports,Xm.__wbindgen_wasm_module=i,Sm}var Jm,Ym="/assets/deepslate_rs_bg.4990c219.wasm";!function(e){e.UP="up",e.DOWN="down",e.NORTH="north",e.EAST="east",e.SOUTH="south",e.WEST="west"}(Jm||(Jm={}));const Zm={[Jm.UP]:[0,1,0],[Jm.DOWN]:[0,-1,0],[Jm.NORTH]:[0,0,-1],[Jm.EAST]:[1,0,0],[Jm.SOUTH]:[0,0,1],[Jm.WEST]:[-1,0,0]};var Qm,ef,tf,nf,rf,of,af,sf,cf,lf,uf,df,hf,pf,mf,ff,gf,_f,bf,vf;function yf(e,t,n){if(!e[t])throw new Error(`Missing ${t} tag`);if(e[t].type!==n)throw new Error(`Expected ${t} to be of type ${n}, 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 Zm[e]}}(Jm||(Jm={})),function(e){e.create=function(e,t,n){return[e,t,n]},e.offset=function(e,t,n,i){return[e[0]+t,e[1]+n,e[2]+i]},e.towards=function(t,n){return e.offset(t,...Jm.normal(n))}}(Qm||(Qm={})),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,n){var i;const r=null!==(i=t(e))&&void 0!==i?i:{};return Object.fromEntries(Object.entries(r).map((([e,t])=>[e,n(t)])))},e.compose=function(e,t,n){const i=t(e);return i?n(i):void 0}}(ef||(ef={}));class wf{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=yf(e.value,"Name","string"),n=function(e,t){try{return e()}catch(n){return t}}((()=>yf(e.value,"Properties","compound")),{}),i=Object.keys(n).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:yf(n,t,"string")})),{});return new wf(t,i)}static fromJson(e){var t,n;const i=null!==(t=ef.readObject(e))&&void 0!==t?t:{},r=null!==(n=ef.readString(i.Name))&&void 0!==n?n:"minecraft:stone",o=ef.readMap(i.Properties,(e=>{var t;return null!==(t=ef.readString(e))&&void 0!==t?t:""}));return new wf(r,o)}}function xf(e){let t=null;return()=>(null==t&&(t=e()),t)}function Af(e,t,n){const i=e.get(t);if(i)return i;const r=n(t);return e.set(t,r),r}function Nf(e){return e*e}function kf(e,t,n){return Math.max(t,Math.min(n,e))}function Cf(e,t,n){return t+e*(n-t)}function Ef(e,t,n,i,r,o){return Cf(t,Cf(e,n,i),Cf(e,r,o))}function Sf(e,t,n){return n<0?e:n>1?t:Cf(n,e,t)}function Of(e,t,n){return(e-t)/(n-t)}function Ff(e){return e*e*e*(e*(6*e-15)+10)}function Df(e,t,n,i,r){return Cf(Of(e,t,n),i,r)}function Bf(e,t,n){let i=BigInt(3129871*e)^BigInt(n)*BigInt(116129781)^BigInt(t);return i=i*i*BigInt(42317861)+i*BigInt(11),i>>BigInt(16)}function Lf(e,t,n,i,r,o,a,s){return BigInt(e)<>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)}}(tf||(tf={}));class Mf{constructor(e){this.seed=BigInt(0),this.setSeed(e)}fork(){return new Mf(this.nextLong())}forkPositional(){return new Tf(this.seed)}setSeed(e){this.seed=e^Mf.MULTIPLIER&Mf.MODULUS_MASK}advance(){this.seed=this.seed*Mf.MULTIPLIER+Mf.INCREMENT&Mf.MODULUS_MASK}consume(e){for(let t=0;t>BigInt(Mf.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,n;for(;(t=this.next(31))-(n=t%e)+(e-1)<0;);return n}nextLong(){return(BigInt(this.next(32))<>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^Rf.SILVER_RATIO_64,n=t+Rf.GOLDEN_RATIO_64&BigInt("0xFFFFFFFFFFFFFFFF");return[Rf.mixStafford13(t),Rf.mixStafford13(n)]}static rotateLeft(e,t){return e<>BigInt(64)-t}setSeed(e){this.seed=Rf.upgradeSeedTo128bit(e)}fork(){return new Rf([this.next(),this.next()])}forkPositional(){return new $f(this.next(),this.next())}next(){const e=this.seed[0];let t=this.seed[1];const n=Rf.rotateLeft(e+t&BigInt("0xFFFFFFFFFFFFFFFF"),BigInt(17))+e&BigInt("0xFFFFFFFFFFFFFFFF");return t^=e,this.seed=[Rf.rotateLeft(e,BigInt(49))^t^t<BigInt("0x8000000000000000")&&(e-=BigInt("0x10000000000000000")),e}consume(e){let t=this.seed[0],n=this.seed[1];for(let i=0;i>BigInt(64-e)}nextInt(e){let t=this.next()&BigInt(4294967295);if(e){const n=BigInt(e);let i=t*n,r=i&BigInt(4294967295);if(r>BigInt(32);return Number(o)}{let e=Number(t);return e>=2147483648&&(e-=4294967296),e}}nextFloat(){return Number(this.nextBits(24))*Rf.FLOAT_MULTIPLIER}nextDouble(){return Number(this.nextBits(53))*Rf.DOUBLE_MULTIPLIER}parityConfigString(){return"seedLo: "+this.seed[0]+", seedHi: "+this.seed[1]}}Rf.SILVER_RATIO_64=BigInt("7640891576956012809"),Rf.GOLDEN_RATIO_64=BigInt("-7046029254386353131"),Rf.FLOAT_MULTIPLIER=1/Math.pow(2,24),Rf.DOUBLE_MULTIPLIER=11102230246251565e-32;class $f{constructor(e,t){this.seedLo=e,this.seedHi=t}at(e,t,n){const i=Bf(e,t,n)^this.seedLo;return new Rf([i,this.seedHi])}fromHashOf(e){const t=qh(e,{asBytes:!0}),n=Lf(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),i=Lf(t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]);return new Rf([n^this.seedLo,i^this.seedHi])}}class If{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 n=e.nextInt(256-t),i=this.p[t];this.p[t]=this.p[t+n],this.p[t+n]=i}}sample2D(e,t){let n,i,r;const o=(e+t)*If.F2,a=Math.floor(e+o),s=e-(a-(n=(a+(i=Math.floor(t+o)))*If.G2));let c,l;s>(r=t-(i-n))?(c=1,l=0):(c=0,l=1);const u=s-c+If.G2,d=r-l+If.G2,h=s-1+2*If.G2,p=r-1+2*If.G2,m=255&a,f=255&i,g=this.P(m+this.P(f))%12,_=this.P(m+c+this.P(f+l))%12,b=this.P(m+1+this.P(f+1))%12;return 70*(this.getCornerNoise3D(g,s,r,0,.5)+this.getCornerNoise3D(_,u,d,0,.5)+this.getCornerNoise3D(b,h,p,0,.5))}sample(e,t,n){const i=.3333333333333333*(e+t+n),r=Math.floor(e+i),o=Math.floor(t+i),a=Math.floor(n+i),s=.16666666666666666*(r+o+a),c=e-(r-s),l=t-(o-s),u=n-(a-s);let d,h,p,m,f,g;c>=l?l>=u?(d=1,h=0,p=0,m=1,f=1,g=0):c>=u?(d=1,h=0,p=0,m=1,f=0,g=1):(d=0,h=0,p=1,m=1,f=0,g=1):l127?t-256:t;for(let t=0;t<256;t+=1){const n=e.nextInt(256-t),i=this.p[t];this.p[t]=this.p[t+n],this.p[t+n]=i}}sample(e,t,n,i=0,r=0){const o=e+this.xo,a=t+this.yo,s=n+this.zo,c=Math.floor(o),l=Math.floor(a),u=Math.floor(s),d=o-c,h=a-l,p=s-u;let m=0;if(0!==i){const e=r>=0&&r=0;i-=1)i0&&(i=this.maxLimitNoise.getOctaveNoise(c))&&(s+=i.sample(d,h,p,u,t*u)/o),o/=2}return Sf(a/512,s/512,r)/128}}(nf||(nf={})).fromJson=function(e){var t,n,i,r,o;const a=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return{xzScale:null!==(n=ef.readNumber(a.xz_scale))&&void 0!==n?n:1,yScale:null!==(i=ef.readNumber(a.y_scale))&&void 0!==i?i:1,xzFactor:null!==(r=ef.readNumber(a.xz_factor))&&void 0!==r?r:80,yFactor:null!==(o=ef.readNumber(a.y_factor))&&void 0!==o?o:80}};class Uf{constructor(e,{firstOctave:t,amplitudes:n}){this.first=new Pf(e,t,n),this.second=new Pf(e,t,n);let i=1/0,r=-1/0;for(let a=0;a{var t;return null!==(t=ef.readNumber(e))&&void 0!==t?t:0})))&&void 0!==i?i:[]}}}(rf||(rf={})),function(e){e.fromJson=function(t,n){var i,r,o,a;if("number"==typeof t)return new Wf(t);const s=null!==(i=ef.readObject(t))&&void 0!==i?i:{},c=new Hf(n(s.coordinate)),l=null!==(r=ef.readArray(s.points,(e=>{var t;return null!==(t=ef.readObject(e))&&void 0!==t?t:{}})))&&void 0!==r?r:[];if(0===l.length)return new Wf(0);for(const u of l){const t=null!==(o=ef.readNumber(u.location))&&void 0!==o?o:0,i=e.fromJson(u.value,n),r=null!==(a=ef.readNumber(u.derivative))&&void 0!==a?a:0;c.addPoint(t,i,r)}return c}}(of||(of={}));class Wf{constructor(e){this.value=e}apply(){return this.value}toJson(){return this.value}}class Hf{constructor(e,t=[],n=[],i=[]){this.coordinate=e,this.locations=t,this.values=n,this.derivatives=i}apply(e){const t=this.coordinate.apply(e),n=function(e,t,n){let i=t-e;for(;i>0;){const t=Math.floor(i/2),r=e+t;n(r)?i=t:(e=r+1,i-=t+1)}return e}(0,this.locations.length,(e=>t({location:e,value:this.values[t].toJson(),derivative:this.derivatives[t]})))}}}(af||(af={})).rotate=function(e,t,n){let{up:i,down:r,north:o,east:a,south:s,west:c}=e;switch(n){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,r,s]=[o,r,s,i];break;case 180:[i,o,r,s]=[r,s,i,o];break;case 270:[i,o,r,s]=[s,i,o,r]}return{up:i,down:r,north:o,east:a,south:s,west:c}},function(e){function t(e,t){return"number"==typeof e?new n(e,null!=t?t:e):e}e.target=function(e,t,n,i,o,a){return new r(e,t,n,i,o,a)},e.parameters=function(e,n,r,o,a,s,c){return new i(t(e),t(n),t(r),t(o),t(a),t(s),c)},e.param=t;class n{constructor(e,t){this.min=e,this.max=t}distance(e){const t=("number"==typeof e?e:e.min)-this.max,n=this.min-("number"==typeof e?e:e.max);return t>0?t:Math.max(n,0)}union(e){return new n(Math.min(this.min,e.min),Math.max(this.max,e.max))}static fromJson(e){var t;if("number"==typeof e)return new n(e,e);const[i,r]=null!==(t=ef.readArray(e,(e=>ef.readNumber(e))))&&void 0!==t?t:[];return new n(null!=i?i:0,null!=r?r:0)}}e.Param=n;class i{constructor(e,t,n,i,r,o,a){this.temperature=e,this.humidity=t,this.continentalness=n,this.erosion=i,this.depth=r,this.weirdness=o,this.offset=a}fittness(e){return Nf(this.temperature.distance(e.temperature))+Nf(this.humidity.distance(e.humidity))+Nf(this.continentalness.distance(e.continentalness))+Nf(this.erosion.distance(e.erosion))+Nf(this.depth.distance(e.depth))+Nf(this.weirdness.distance(e.weirdness))+Nf(this.offset-e.offset)}space(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,new n(this.offset,this.offset)]}static fromJson(e){var t,r;const o=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return new i(n.fromJson(o.temperature),n.fromJson(o.humidity),n.fromJson(o.continentalness),n.fromJson(o.erosion),n.fromJson(o.depth),n.fromJson(o.weirdness),null!==(r=ef.readInt(o.offset))&&void 0!==r?r:0)}}e.ParamPoint=i;class r{constructor(e,t,n,i,r,o){this.temperature=e,this.humidity=t,this.continentalness=n,this.erosion=i,this.depth=r,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=r,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 n=0;n<7;n+=1){const i=e.space[n];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,n=-1,i=[];for(let r=0;r<7;++r){e=o.sort(e,r,!1),i=o.bucketize(e);let a=0;for(const e of i)a+=o.area(e.space);t>a&&(t=a,n=r)}return e=o.sort(e,n,!1),i=o.bucketize(e),i=o.sort(i,n,!0),new s(i.map((e=>o.build(e.children))))}static sort(e,t,n){return e.map((e=>{const i=e.space[t],r=(i.min+i.max)/2;return{key:n?Math.abs(r):r,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e))}static bucketize(e){const t=[];let n=[];const i=Math.pow(10,Math.floor(Math.log(e.length-.01)/Math.log(10)));for(const r of e)n.push(r),n.lengthnew n(1/0,-1/0)));for(const n of e)t=[...Array(7)].map(((e,i)=>t[i].union(n.space[i])));return t}search(e,t){let n=1/0,i=null;for(const r of this.children){const o=t(r,e);if(n<=o)continue;const a=r.search(e,t),s=r==a?o:t(a,e);n<=s||(n=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}(sf||(sf={}));class Vf{constructor(e){this.biome=e}getBiome(){return this.biome}static fromJson(e){var t,n;const i=null!==(t=ef.readObject(e))&&void 0!==t?t:{},r=null!==(n=ef.readString(i.biome))&&void 0!==n?n:"minecraft:the_void";return new Vf(r)}}class Gf{constructor(e,t,n){this.offsetSampler=e,this.factorSampler=t,this.jaggednessSampler=n}static extractor(e){return{apply:t=>t[e],toJson:()=>e}}static fromJson(e){var t;const n=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return new Gf(of.fromJson(n.offset,this.EXTRACTOR),of.fromJson(n.factor,this.EXTRACTOR),of.fromJson(n.jaggedness,this.EXTRACTOR))}toJson(){return{offset:this.offsetSampler.toJson(),factor:this.factorSampler.toJson(),jaggedness:this.jaggednessSampler.toJson()}}offset(e){return this.offsetSampler.apply(e)+Gf.GLOBAL_OFFSET}factor(e){return this.factorSampler.apply(e)}jaggedness(e){return this.jaggednessSampler.apply(e)}static point(e,t,n){return{continents:e,erosion:t,weirdness:n,ridges:this.peaksAndValleys(n)}}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),n=this.buildErosionOffsetSpline(-.1,.03,.1,.7,.01,-.03,!0,!0),i=this.buildErosionOffsetSpline(.3,.03,.1,1,.01,.01,!0,!0),r=new Hf(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,n).addPoint(1,i),o=new Hf(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 Hf(this.CONTINENTS).addPoint(.11,0).addPoint(.03,this.buildErosionJaggednessSpline(1,.5,0,0)).addPoint(.65,this.buildErosionJaggednessSpline(1,1,1,0));return new Gf(r,o,a)}static getErosionFactor(e,t){const n=new Hf(this.WEIRDNESS).addPoint(-.2,6.3).addPoint(.2,e),i=new Hf(this.EROSION).addPoint(-.6,n).addPoint(-.5,new Hf(this.WEIRDNESS).addPoint(-.05,6.3).addPoint(.05,2.67)).addPoint(-.35,n).addPoint(-.25,n).addPoint(-.1,new Hf(this.WEIRDNESS).addPoint(-.05,2.67).addPoint(.05,6.3)).addPoint(.03,n);if(t){const t=new Hf(this.WEIRDNESS).addPoint(0,e).addPoint(.1,.625),n=new Hf(this.RIDGES).addPoint(-.9,e).addPoint(-.69,t);i.addPoint(.35,e).addPoint(.45,n).addPoint(.55,n).addPoint(.62,e)}else{const t=new Hf(this.RIDGES).addPoint(-.7,n).addPoint(-.15,1.37),r=new Hf(this.RIDGES).addPoint(.45,n).addPoint(.7,1.56);i.addPoint(.05,r).addPoint(.4,r).addPoint(.45,t).addPoint(.55,t).addPoint(.58,e)}return i}static buildErosionOffsetSpline(e,t,n,i,r,o,a,s){const c=this.buildMountainRidgeSplineWithPoints(Cf(i,.6,1.5),s),l=this.buildMountainRidgeSplineWithPoints(Cf(i,.6,1),s),u=this.buildMountainRidgeSplineWithPoints(i,s),d=this.ridgeSpline(e-.15,.5*i,Cf(.5,.5,.5)*i,.5*i,.6*i,.5),h=this.ridgeSpline(e,r*i,t*i,.5*i,.6*i,.5),p=this.ridgeSpline(e,r,r,t,n,.5),m=this.ridgeSpline(e,r,r,t,n,.5),f=new Hf(this.RIDGES).addPoint(-1,e).addPoint(-.4,p).addPoint(0,n+.07),g=this.ridgeSpline(-.02,o,o,t,n,0),_=new Hf(this.EROSION).addPoint(-.85,c).addPoint(-.7,l).addPoint(-.4,u).addPoint(-.35,d).addPoint(-.1,h).addPoint(.2,p);return a&&_.addPoint(.4,m).addPoint(.45,f).addPoint(.55,f).addPoint(.58,m),_.addPoint(.7,g),_}static buildMountainRidgeSplineWithPoints(e,t){const n=new Hf(this.RIDGES),i=this.mountainContinentalness(-1,e,-.7),r=this.mountainContinentalness(1,e,-.7),o=this.calculateMountainRidgeZeroContinentalnessPoint(e);if(-.650?this.buildWeirdnessJaggednessSpline(t):0).addPoint(1,e>0?this.buildWeirdnessJaggednessSpline(e):0)}static buildWeirdnessJaggednessSpline(e){return new Hf(Gf.WEIRDNESS).addPoint(-.01,.63*e).addPoint(.01,.3*e)}}Gf.GLOBAL_OFFSET=-.50375,Gf.EXTRACTOR=e=>{var t;const n=null!==(t=ef.readString(e))&&void 0!==t?t:"continents";return Gf.extractor(n)},Gf.CONTINENTS=Gf.extractor("continents"),Gf.EROSION=Gf.extractor("erosion"),Gf.WEIRDNESS=Gf.extractor("weirdness"),Gf.RIDGES=Gf.extractor("ridges"),(cf||(cf={})).fromList=function(e){return(t,n,i,r)=>{for(const o of e){const e=o(t,n,i,r);if(e)return e}return null}},function(e){function t(e){return e.ySize<<2}e.fromJson=function(e){var t,n,i,r,o,a,s,c;const l=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return{minY:null!==(n=ef.readInt(l.min_y))&&void 0!==n?n:0,height:null!==(i=ef.readInt(l.height))&&void 0!==i?i:256,xzSize:null!==(r=ef.readInt(l.size_horizontal))&&void 0!==r?r:1,ySize:null!==(o=ef.readInt(l.size_vertical))&&void 0!==o?o:1,sampling:nf.fromJson(l.sampling),topSlide:uf.fromJson(l.top_slide),bottomSlide:uf.fromJson(l.bottom_slide),terrainShaper:Gf.fromJson(l.terrain_shaper),islandNoiseOverride:null!==(a=ef.readBoolean(l.island_noise_override))&&void 0!==a&&a,isAmplified:null!==(s=ef.readBoolean(l.amplified))&&void 0!==s&&s,hasLargeBiomes:null!==(c=ef.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))}}(lf||(lf={})),function(e){e.fromJson=function(e){var t,n,i,r;const o=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return{target:null!==(n=ef.readNumber(o.target))&&void 0!==n?n:0,size:null!==(i=ef.readInt(o.size))&&void 0!==i?i:0,offset:null!==(r=ef.readInt(o.offset))&&void 0!==r?r:0}},e.apply=function(e,t,n){if(e.size<=0)return t;const i=(n-e.offset)/e.size;return Sf(e.target,t,i)}}(uf||(uf={}));class qf{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=qf.allocateSlice(e.cellCountY,e.cellCountXZ),this.slice1=qf.allocateSlice(e.cellCountY,e.cellCountXZ)}static allocateSlice(e,t){const n=Array(t+1);for(let i=0;i>2,this.firstNoiseZ=o>>2,this.interpolators=[];const l=e*c>>2;this.noiseData=Array(l+1);for(let u=0;u<=l;u+=1){const e=this.firstNoiseX+u;this.noiseData[u]=Array(l+1);for(let t=0;t<=l;t+=1){const n=this.firstNoiseZ+t;this.noiseData[u][t]=i.noiseData(e,n)}}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 Af(this.preliminarySurfaceLevel,tf.asLong(e,t),(()=>{const n=e-this.firstNoiseX,i=t-this.firstNoiseZ,r=this.noiseData.length,o=n>=0&&i>=0&&ne.initializeForFirstCellX()))}advanceCellX(e){this.interpolators.forEach((t=>t.advanceCellX(e)))}selectCellYZ(e,t){this.interpolators.forEach((n=>n.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,n){return this.baseNoise(e,t,n)}}(df||(df={})).create=function(e,t,n){return{offset:e,factor:t,jaggedness:n}},function(e){const t=new Map;function n(e,n,i){const r=Object.assign({name:`minecraft:${e}`},rf.create(n,i));return t.set(e,r),r}e.TEMPERATURE=n("temperature",-10,[1.5,0,1,0,0,0]),e.VEGETATION=n("vegetation",-8,[1,1,0,0,0,0]),e.CONTINENTALNESS=n("continentalness",-9,[1,1,2,2,2,1,1,1,1]),e.EROSION=n("erosion",-9,[1,1,0,1,1]),e.TEMPERATURE_LARGE=n("temperature_large",-12,[1.5,0,1,0,0,0]),e.VEGETATION_LARGE=n("vegetation_large",-10,[1,1,0,0,0,0]),e.CONTINENTALNESS_LARGE=n("continentalness_large",-11,[1,1,2,2,2,1,1,1,1]),e.EROSION_LARGE=n("erosion_large",-11,[1,1,0,1,1]),e.RIDGE=n("ridge",-7,[1,2,1,0,0,0]),e.SHIFT=n("offset",-3,[1,1,1,0]),e.PILLAR=n("pillar",-7,[1,1]),e.PILLAR_RARENESS=n("pillar_rareness",-8,[1]),e.PILLAR_THICKNESS=n("pillar_thickness",-8,[1]),e.SPAGHETTI_2D=n("spaghetti_2d",-8,[1]),e.SPAGHETTI_2D_ELEVATION=n("spaghetti_2d_elevation",-8,[1]),e.SPAGHETTI_2D_MODULATOR=n("spaghetti_2d_modulator",-8,[1]),e.SPAGHETTI_2D_THICKNESS=n("spaghetti_2d_thickness",-8,[1]),e.SPAGHETTI_3D_1=n("spaghetti_3d_1",-8,[1]),e.SPAGHETTI_3D_2=n("spaghetti_3d_2",-8,[1]),e.SPAGHETTI_3D_RARITY=n("spaghetti_3d_rarity",-8,[1]),e.SPAGHETTI_3D_THICKNESS=n("spaghetti_3d_thickness",-8,[1]),e.SPAGHETTI_ROUGHNESS=n("spaghetti_roughness",-8,[1]),e.SPAGHETTI_ROUGHNESS_MODULATOR=n("spaghetti_roughness_modulator",-8,[1]),e.CAVE_ENTRANCE=n("cave_entrance",-7,[.4,.5,1]),e.CAVE_LAYER=n("cave_layer",-8,[1]),e.CAVE_CHEESE=n("cave_cheese",-8,[.5,1,2,1,2,1,0,2,0]),e.NOODLE=n("noodle",-8,[1]),e.NOODLE_THICKNESS=n("noodle_thickness",-8,[1]),e.NOODLE_RIDGE_A=n("noodle_ridge_a",-7,[1]),e.NOODLE_RIDGE_B=n("noodle_ridge_b",-7,[1]),e.JAGGED=n("jagged",-16,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),e.SURFACE=n("surface",-6,[1,1,1]),e.SURFACE_SECONDARY=n("surface_secondary",-6,[1,1,0,1]),e.instantiate=function(e,t){return new Uf(e.fromHashOf(t.name),t)}}(hf||(hf={}));class Xf{constructor(e,t,n,i=!1){this.settings=e,this.isNoiseCavesEnabled=t;const r=e.hasLargeBiomes,o=(i?new Mf(n):Rf.create(n)).forkPositional();i?(this.blendedNoise=new zf(new Mf(n),e.sampling,lf.cellWidth(e),lf.cellHeight(e)),this.temperatureNoise=new Uf(new Mf(n),rf.create(-7,[1,1])),this.humidityNoise=new Uf(new Mf(n+BigInt(1)),rf.create(-7,[1,1])),this.offsetNoise=new Uf(new Mf(n+BigInt(5)),rf.create(0,[0]))):(this.blendedNoise=new zf(o.fromHashOf("minecraft:terrain"),e.sampling,lf.cellWidth(e),lf.cellHeight(e)),this.temperatureNoise=hf.instantiate(o,r?hf.TEMPERATURE_LARGE:hf.TEMPERATURE),this.humidityNoise=hf.instantiate(o,r?hf.VEGETATION_LARGE:hf.VEGETATION),this.offsetNoise=hf.instantiate(o,hf.SHIFT)),this.continentalnessNoise=hf.instantiate(o,r?hf.CONTINENTALNESS_LARGE:hf.CONTINENTALNESS),this.erosionNoise=hf.instantiate(o,r?hf.EROSION_LARGE:hf.EROSION),this.weirdnessNoise=hf.instantiate(o,hf.RIDGE),this.pillarNoise=hf.instantiate(o,hf.PILLAR),this.pillarRarenessModulator=hf.instantiate(o,hf.PILLAR_RARENESS),this.pillarThicknessModulator=hf.instantiate(o,hf.PILLAR_THICKNESS),this.spaghetti2DNoise=hf.instantiate(o,hf.SPAGHETTI_2D),this.spaghetti2DElevationModulator=hf.instantiate(o,hf.SPAGHETTI_2D_ELEVATION),this.spaghetti2DRarityModulator=hf.instantiate(o,hf.SPAGHETTI_2D_MODULATOR),this.spaghetti2DThicknessModulator=hf.instantiate(o,hf.SPAGHETTI_2D_THICKNESS),this.spaghetti3DNoise1=hf.instantiate(o,hf.SPAGHETTI_3D_1),this.spaghetti3DNoise2=hf.instantiate(o,hf.SPAGHETTI_3D_2),this.spaghetti3DRarityModulator=hf.instantiate(o,hf.SPAGHETTI_3D_RARITY),this.spaghetti3DThicknessModulator=hf.instantiate(o,hf.SPAGHETTI_3D_THICKNESS),this.spaghettiRoughnessNoise=hf.instantiate(o,hf.SPAGHETTI_ROUGHNESS),this.spaghettiRoughnessModulator=hf.instantiate(o,hf.SPAGHETTI_ROUGHNESS_MODULATOR),this.bigEntranceNoise=hf.instantiate(o,hf.CAVE_ENTRANCE),this.layerNoise=hf.instantiate(o,hf.CAVE_LAYER),this.cheeseNoise=hf.instantiate(o,hf.CAVE_CHEESE);const a=e.minY+4,s=a+e.height;this.noodleToggleNoise=this.yLimitedInterpolatable(hf.instantiate(o,hf.NOODLE),a,s,-1,1),this.noodleThicknessNoise=this.yLimitedInterpolatable(hf.instantiate(o,hf.NOODLE_THICKNESS),a,s,0,1),this.noodleRidgeANoise=this.yLimitedInterpolatable(hf.instantiate(o,hf.NOODLE_RIDGE_A),a,s,0,8/3),this.noodleRidgeBNoise=this.yLimitedInterpolatable(hf.instantiate(o,hf.NOODLE_RIDGE_B),a,s,0,8/3),this.jaggedNoise=hf.instantiate(o,hf.JAGGED),this.shaper=e.terrainShaper,this.baseNoise=e=>e.createNoiseInterpolator(((t,n,i)=>this.calculateBlendedBaseNoise(t,n,i,e.getNoiseData(t>>2,i>>2).terrainInfo)))}yLimitedInterpolatable(e,t,n,i,r){const o=(o,a,s)=>a>n||ae.createNoiseInterpolator(o)}noiseData(e,t){const n=e+this.getOffset(e,0,t),i=t+this.getOffset(t,e,0),r=this.getContinentalness(n,i),o=this.getErosion(n,i),a=this.getWeirdness(n,i),s=this.terrainInfo(r,o,a);return pf.create(n,i,r,o,a,s)}sample(e,t,n){return this.target(e,t,n,this.noiseData(e,n))}target(e,t,n,i){const r=i.shiftedX,o=t+this.getOffset(t,n,e),a=i.shiftedZ,s=this.getTemperature(r,o,a),c=this.getHumidity(r,o,a),l=this.computeDimensionDensity(t<<2,i.terrainInfo);return sf.target(s,c,i.continentalness,i.erosion,l,i.weirdness)}terrainInfo(e,t,n){const i=Gf.point(e,t,n),r=this.shaper.offset(i),o=this.shaper.factor(i),a=this.shaper.jaggedness(i);return df.create(r,o,a)}getOffset(e,t,n){return 4*this.offsetNoise.sample(e,t,n)}getTemperature(e,t,n){return this.temperatureNoise.sample(e,t,n)}getHumidity(e,t,n){return this.humidityNoise.sample(e,t,n)}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,n){const i=this.baseNoise(e),r=n?this.noodleToggleNoise(e):()=>-1,o=n?this.noodleThicknessNoise(e):()=>0,a=n?this.noodleRidgeANoise(e):()=>0,s=n?this.noodleRidgeBNoise(e):()=>0;return(e,n,c)=>{let l=i();if(l=kf(.64*l,-1,1),l=l/2-l*l*l/24,r()>=0){const e=function(e,t,n,i,r){return Sf(i,r,Of(e,t,n))}(o(),-1,1,.05,.1),t=Math.abs(1.5*a())-e,n=Math.abs(1.5*s())-e;l=Math.min(l,Math.max(t,n))}return l+=t(e,n,c),l>0?null:wf.AIR}}calculateBlendedBaseNoise(e,t,n,i){const r=this.blendedNoise.sample(e,t,n);return this.calculateBaseNoise(e,t,n,i,r,!this.isNoiseCavesEnabled,!0)}calculateBaseNoise(e,t,n,i,r,o,a){if(!this.settings.islandNoiseOverride){const o=a?this.sampleJaggedNoise(i.jaggedness,e,n):0,s=this.computeDimensionDensity(t,i),c=i.factor*(o+s);r+=c>0?4*c:c}let s=-64,c=64;if(!o&&r>=-64){const i=r-1.5625,o=this.getBigEntrances(e,t,n),a=this.getSpaghettiRoughness(e,t,n),l=this.getSpaghetti3D(e,t,n),u=Math.min(o,l+a);if(i<0)c=u;else{const o=this.getLayerizedCaverns(e,t,n);r=o>64?64:this.getCheese(e,t,n)+o+Sf(.5,0,1.28*i);const l=this.getSpaghetti2D(e,t,n);s=this.getPillars(e,t,n),c=Math.min(u,l+a)}}return r=kf(r,s,c),kf(r=this.applySlide(r,t/lf.cellHeight(this.settings)),-64,64)}sampleJaggedNoise(e,t,n){if(0===e)return 0;const i=this.jaggedNoise.sample(1500*t,0,1500*n);return i>0?e*i:e/2*i}computeDimensionDensity(e,t){return 1-e/128+t.offset}getBigEntrances(e,t,n){return this.bigEntranceNoise.sample(.75*e,.5*t,.75*n)+.37+Sf(.3,0,(t+10)/40)}getSpaghettiRoughness(e,t,n){const i=this.spaghettiRoughnessNoise.sample(e,t,n),r=Df(this.spaghettiRoughnessModulator.sample(e,t,n),-1,1,0,1);return(.4-Math.abs(i))*r}getSpaghetti2D(e,t,n){const i=this.quantizeSpaghettiRarity2D(this.spaghetti2DRarityModulator.sample(2*e,t,2*n)),r=Df(this.spaghetti2DThicknessModulator.sample(2*e,t,2*n),-1,1,.6,1.3),o=this.sampleWithRarity(this.spaghetti2DNoise,e,t,n,i),a=Math.abs(i*o)-.083*r,s=lf.minCellY(this.settings),c=Df(this.spaghetti2DElevationModulator.sample(e,0,n),-1,1,s,8),l=Math.abs(c-t/8)-1*r;return kf(Math.max(l,a),-1,1)}getSpaghetti3D(e,t,n){const i=this.quantizeSpaghettiRarity3D(this.spaghetti3DRarityModulator.sample(2*e,t,2*n)),r=Df(this.spaghetti3DThicknessModulator.sample(e,t,n),-1,1,.065,.088),o=this.sampleWithRarity(this.spaghetti3DNoise1,e,t,n,i),a=Math.abs(i*o)-r,s=this.sampleWithRarity(this.spaghetti3DNoise2,e,t,n,i),c=Math.abs(i*s)-r;return kf(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,n,i,r){return e.sample(t/r,n/r,i/r)}getLayerizedCaverns(e,t,n){return 4*Nf(this.layerNoise.sample(e,8*t,n))}getCheese(e,t,n){return kf(this.cheeseNoise.sample(e,t/1.5,n)+.27,-1,1)}getPillars(e,t,n){const i=Df(this.pillarRarenessModulator.sample(e,t,n),-1,1,0,2),r=Df(this.pillarThicknessModulator.sample(e,t,n),-1,1,0,1.1),o=this.pillarNoise.sample(25*e,.3*t,25*n),a=Math.pow(r,3)*(2*o-i);return a<=.03?Number.MIN_SAFE_INTEGER:a}applySlide(e,t){const n=t-lf.minCellY(this.settings);return e=uf.apply(this.settings.topSlide,e,lf.cellCountY(this.settings)-n),uf.apply(this.settings.bottomSlide,e,n)}getPreliminarySurfaceLevel(e,t,n){const i=lf.minCellY(this.settings)+lf.cellCountY(this.settings),r=lf.minCellY(this.settings),o=lf.cellHeight(this.settings);for(let a=i;a>=r;a-=1){const i=a*o;if(this.calculateBaseNoise(e,i,t,n,-.703125,!0,!1)>=.390625)return i}return Number.MAX_SAFE_INTEGER}}(pf||(pf={})).create=function(e,t,n,i,r,o){return{shiftedX:e,shiftedZ:t,continentalness:n,weirdness:i,erosion:r,terrainInfo:o}},(mf||(mf={})).fromJson=function(e){var t,n,i,r;const o=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return void 0!==o.absolute?(s=null!==(n=ef.readNumber(o.absolute))&&void 0!==n?n:0,()=>s):void 0!==o.above_bottom?(a=null!==(i=ef.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!==(r=ef.readNumber(o.below_top))&&void 0!==r?r:0):()=>0;var a,s},(ff||(ff={})).create=function(e,t){return{minY:e,height:t,maxY:e+t-1}};class Jf{constructor(e,t,n){this.rule=e,this.defaultBlock=t,this.random=Rf.create(n).forkPositional(),this.surfaceNoise=hf.instantiate(this.random,hf.SURFACE),this.surfaceSecondaryNoise=hf.instantiate(this.random,hf.SURFACE_SECONDARY),this.positionalRandoms=new Map}buildSurface(e,t,n,i){const r=tf.minBlockX(e.pos),o=tf.minBlockZ(e.pos),a=new Yf(this,e,t,n,i),s=this.rule(a);for(let c=0;c<16;c+=1){const t=r+c;for(let n=0;n<1;n+=1){const i=o+n;a.updateXZ(t,i);let r=0,c=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER;for(let n=e.maxY;n>=e.minY;n-=1){const o=Qm.create(t,n,i),u=e.getBlockState(o);if(u.equals(wf.AIR)){r=0,c=Number.MIN_SAFE_INTEGER;continue}if(u.isFluid()){c===Number.MIN_SAFE_INTEGER&&(c=n+1);continue}if(l>=n){l=Number.MIN_SAFE_INTEGER;for(let r=n-1;r>=e.minY;r-=1){const n=e.getBlockState(Qm.create(t,r,i));if(n.equals(wf.AIR)||n.isFluid()){l=r+1;break}}}r+=1;const d=n-l+1;if(!u.equals(this.defaultBlock))continue;a.updateY(r,d,c,n);const h=s(t,n,i);h&&e.setBlockState(o,h)}}}}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 Af(this.positionalRandoms,e,(()=>this.random.fromHashOf(e)))}}class Yf{constructor(e,t,n,i,r){this.system=e,this.chunk=t,this.noiseChunk=n,this.context=i,this.getBiome=r,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=xf((()=>this.system.getSurfaceSecondary(e,t))),this.minSurfaceLevel=xf((()=>this.calculateMinSurfaceLevel(e,t)))}updateY(e,t,n,i){this.blockY=i,this.stoneDepthAbove=e,this.stoneDepthBelow=t,this.waterHeight=n,this.biome=xf((()=>this.getBiome(Qm.create(this.blockX,this.blockY,this.blockZ))))}calculateMinSurfaceLevel(e,t){const n=e>>4,i=t>>4,r=this.noiseChunk.getPreliminarySurfaceLevel(n<<4,i<<4),o=this.noiseChunk.getPreliminarySurfaceLevel(n+1<<4,i<<4),a=this.noiseChunk.getPreliminarySurfaceLevel(n<<4,i+1<<4),s=this.noiseChunk.getPreliminarySurfaceLevel(n+1<<4,i+1<<4);return Math.floor(Ef((15&e)/16,(15&t)/16,r,o,a,s))+this.surfaceDepth-8}}!function(e){function t(e){return()=>()=>e}function n(e){return t=>{const n=e.map((e=>e(t)));return(e,t,i)=>{for(const r of n){const n=r(e,t,i);if(n)return n}}}}function i(e,t){return n=>(i,r,o)=>{if(e(n))return t(n)(i,r,o)}}e.NOOP=()=>()=>{},e.fromJson=function(r){var o,a,s;const c=null!==(o=ef.readObject(r))&&void 0!==o?o:{};switch(null===(a=ef.readString(c.type))||void 0===a?void 0:a.replace(/^minecraft:/,"")){case"block":return t(wf.fromJson(c.result_state));case"sequence":return n(null!==(s=ef.readArray(c.sequence,e.fromJson))&&void 0!==s?s:[]);case"condition":return i(_f.fromJson(c.if_true),e.fromJson(c.then_run))}return e.NOOP},e.block=t,e.sequence=n,e.condition=i}(gf||(gf={})),function(e){function t(e){const t=new Set(e);return e=>t.has(e.biome())}function n(e){return t=>!e(t)}function i(e,t,n,i){return r=>{const o=i?r.stoneDepthBelow:r.stoneDepthAbove,a=t?r.surfaceDepth:0,s=0===n?0:Df(r.surfaceSecondary(),-1,1,0,n);return o<=1+e+a+s}}function r(e,t,n){return i=>{const r=t(i.context),o=n(i.context);if(i.blockY<=r)return!0;if(i.blockY>=o)return!1;const a=i.system.getRandom(e),s=Df(i.blockY,r,o,1,0);return a.nextFloat(){if(i.waterHeight===Number.MIN_SAFE_INTEGER)return!0;const r=n?i.stoneDepthAbove:0;return i.blockY+r>=i.waterHeight+e+i.surfaceDepth*t}}function a(e,t,n){return i=>{const r=n?i.stoneDepthAbove:0;return i.blockY+r>=e(i.context)+i.surfaceDepth*t}}e.FALSE=()=>!1,e.TRUE=()=>!0,e.fromJson=function(s){var c,l,u,d,h,p,m,f,g,_,b,v;const y=null!==(c=ef.readObject(s))&&void 0!==c?c:{};switch(null===(l=ef.readString(y.type))||void 0===l?void 0:l.replace(/^minecraft:/,"")){case"above_preliminary_surface":return e=>e.blockY>=e.minSurfaceLevel();case"biome":return t(null!==(u=ef.readArray(y.biome_is,(e=>{var t;return null!==(t=ef.readString(e))&&void 0!==t?t:""})))&&void 0!==u?u:[]);case"not":return n(e.fromJson(y.invert));case"stone_depth":return i(null!==(d=ef.readInt(y.offset))&&void 0!==d?d:0,null!==(h=ef.readBoolean(y.add_surface_depth))&&void 0!==h&&h,null!==(p=ef.readInt(y.secondary_depth_range))&&void 0!==p?p:0,"ceiling"===ef.readString(y.surface_type));case"vertical_gradient":return r(null!==(m=ef.readString(y.random_name))&&void 0!==m?m:"",mf.fromJson(y.true_at_and_below),mf.fromJson(y.false_at_and_above));case"water":return o(null!==(f=ef.readInt(y.offset))&&void 0!==f?f:0,null!==(g=ef.readInt(y.surface_depth_multiplier))&&void 0!==g?g:0,null!==(_=ef.readBoolean(y.add_surface_depth))&&void 0!==_&&_);case"y_above":return a(mf.fromJson(y.anchor),null!==(b=ef.readInt(y.surface_depth_multiplier))&&void 0!==b?b:0,null!==(v=ef.readBoolean(y.add_surface_depth))&&void 0!==v&&v)}return e.FALSE},e.abovePreliminarySurface=function(){return e=>e.blockY>=e.minSurfaceLevel()},e.biome=t,e.not=n,e.stoneDepth=i,e.verticalGradient=r,e.water=o,e.yAbove=a}(_f||(_f={}));class Zf{constructor(e,t,n){this.biomeSource=t,this.settings=n,this.sampler=new Xf(n.noise,n.noiseCavesEnabled,e,n.legacyRandomSource),this.noiseChunkCache=new Map,this.materialRule=cf.fromList([(e,t,n,i)=>e.updateNoiseAndGenerateBaseState(t,n,i)]),this.surfaceSystem=new Jf(n.surfaceRule,n.defaultBlock,e)}fill(e){var t;const n=Math.max(e.minY,this.settings.noise.minY),i=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),r=lf.cellWidth(this.settings.noise),o=lf.cellHeight(this.settings.noise),a=Math.floor(16/r),s=Math.floor(n/o),c=Math.floor((i-n)/o),l=tf.minBlockX(e.pos),u=tf.minBlockZ(e.pos),d=this.getNoiseChunk(e);d.initializeForFirstCellX();for(let h=0;h=0;a-=1){d.selectCellYZ(a,n);for(let c=o-1;c>=0;c-=1){const p=(s+a)*o+c,m=15&p,f=e.getSectionIndex(p);e.getSectionIndex(i.minBlockY)!==f&&(i=e.getOrCreateSection(f));const g=c/o;d.updateForY(g);for(let e=0;et))}getNoiseChunk(e){return Af(this.noiseChunkCache,tf.toLong(e.pos),(()=>{const t=Math.max(e.minY,this.settings.noise.minY),n=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),i=lf.cellWidth(this.settings.noise),r=lf.cellHeight(this.settings.noise),o=Math.floor(16/i),a=Math.floor(t/r),s=Math.floor((n-t)/r),c=tf.minBlockX(e.pos),l=tf.minBlockZ(e.pos);return new Kf(o,s,a,this.sampler,c,l,(()=>0),this.settings)}))}}(bf||(bf={})).fromJson=function(e){var t,n,i,r,o,a,s,c,l,u,d;const h=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return{structures:vf.fromJson(h.structures),surfaceRule:gf.fromJson(h.surface_rule),noise:lf.fromJson(h.noise),defaultBlock:wf.fromJson(h.default_block),defaultFluid:wf.fromJson(h.default_fluid),bedrockRoofPosition:null!==(n=ef.readInt(h.bedrock_roof_position))&&void 0!==n?n:0,bedrockFloorPosition:null!==(i=ef.readInt(h.bedrock_floor_position))&&void 0!==i?i:0,seaLevel:null!==(r=ef.readInt(h.sea_level))&&void 0!==r?r:0,disableMobGeneration:null!==(o=ef.readBoolean(h.disable_mob_generation))&&void 0!==o&&o,aquifersEnabled:null!==(a=ef.readBoolean(h.aquifers_enabled))&&void 0!==a&&a,noiseCavesEnabled:null!==(s=ef.readBoolean(h.noise_caves_enabled))&&void 0!==s&&s,deepslateEnabled:null!==(c=ef.readBoolean(h.deepslate_enabled))&&void 0!==c&&c,oreVeinsEnabled:null!==(l=ef.readBoolean(h.ore_veins_enabled))&&void 0!==l&&l,noodleCavesEnabled:null!==(u=ef.readBoolean(h.noodle_caves_enabled))&&void 0!==u&&u,legacyRandomSource:null!==(d=ef.readBoolean(h.legacy_random_source))&&void 0!==d&&d}},(vf||(vf={})).fromJson=function(e){var t;const n=null!==(t=ef.readObject(e))&&void 0!==t?t:{};return{stronghold:ef.compose(n.stronghold,ef.readObject,(e=>{var t,n,i;return{distance:null!==(t=ef.readInt(e.distance))&&void 0!==t?t:0,spread:null!==(n=ef.readInt(e.spread))&&void 0!==n?n:0,count:null!==(i=ef.readInt(e.count))&&void 0!==i?i:0}})),structures:ef.readMap(n.structures,(e=>{var t,n,i,r,o;return n=null!==(t=ef.readObject(e))&&void 0!==t?t:{},{spacing:null!==(i=ef.readInt(n.spacing))&&void 0!==i?i:0,separation:null!==(r=ef.readInt(n.separation))&&void 0!==r?r:0,salt:null!==(o=ef.readInt(n.salt))&&void 0!==o?o:0}}))}},function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,i){"string"==typeof e?(2==arguments.length&&(i=n),t.modules[e]||(t.payloads[e]=i,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,i,r=function(e,t,n){if("string"==typeof t){var i=s(e,t);if(null!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var r=[],a=0,c=t.length;a1&&c(i,"")>-1&&(n=RegExp(this.source,r.replace.call(s(this),"g","")),r.replace.call(e.slice(i.index),n,(function(){for(var e=1;ei.index&&this.lastIndex--}return i},a||(RegExp.prototype.test=function(e){var t=r.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function i(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=h.call(arguments,1),r=function(){if(this instanceof r){var i=t.apply(this,n.concat(h.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(h.call(arguments)))};return t.prototype&&(i.prototype=t.prototype,r.prototype=new i,i.prototype=null),r});var r,o,a,s,c,l=Function.prototype.call,u=Array.prototype,d=Object.prototype,h=u.slice,p=l.bind(d.toString),m=l.bind(d.hasOwnProperty);if((c=m(d,"__defineGetter__"))&&(r=l.bind(d.__defineGetter__),o=l.bind(d.__defineSetter__),a=l.bind(d.__lookupGetter__),s=l.bind(d.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var f=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?f.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(h.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+ts)for(d=l;d--;)this[c+d]=this[s+d];if(o&&e===u)this.length=u,this.push.apply(this,r);else for(this.length=u+o,d=0;d>>0;if("[object Function]"!=p(e))throw new TypeError;for(;++r>>0,r=Array(i),o=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var a=0;a>>0,o=[],a=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var s=0;s>>0,r=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o>>0,r=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,o=0;if(arguments.length>=2)r=arguments[1];else for(;;){if(o in n){r=n[o++];break}if(++o>=i)throw new TypeError("reduce of empty array with no initial value")}for(;o>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,o=i-1;if(arguments.length>=2)r=arguments[1];else for(;;){if(o in n){r=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(r=e.call(void 0,r,n[o],o,t))}while(o--);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=v&&"[object String]"==p(this)?this.split(""):B(this),n=t.length>>>0;if(!n)return-1;var i=0;for(arguments.length>1&&(i=D(arguments[1])),i=i>=0?i:Math.max(0,n+i);i>>0;if(!n)return-1;var i=n-1;for(arguments.length>1&&(i=Math.min(i,D(arguments[1]))),i=i>=0?i:n-Math.abs(i);i>=0;i--)if(i in t&&e===t[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:d)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(m(e,t)){var n;if(n={enumerable:!0,configurable:!0},c){var i=e.__proto__;e.__proto__=d;var r=a(e,t),o=s(e,t);if(e.__proto__=i,r||o)return r&&(n.get=r),o&&(n.set=o),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(g=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=g();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var i=function(){};i.prototype=e,(n=new i).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function y(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}if(Object.defineProperty){var w=y({}),x="undefined"==typeof document||y(document.createElement("div"));if(!w||!x)var A=Object.defineProperty}if(!Object.defineProperty||A){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(A)try{return A.call(Object,e,t,n)}catch(l){}if(m(n,"value"))if(c&&(a(e,t)||s(e,t))){var i=e.__proto__;e.__proto__=d,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!c)throw new TypeError("getters & setters can not be defined on this javascript engine");m(n,"get")&&r(e,t,n.get),m(n,"set")&&o(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)m(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(L){Object.freeze=(_=Object.freeze,function(e){return"function"==typeof e?e:_(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";m(e,t);)t+="?";e[t]=!0;var n=m(e,t);return delete e[t],n}),!Object.keys){var N=!0,k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],C=k.length;for(var E in{toString:null})N=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)m(e,n)&&t.push(n);if(N)for(var i=0,r=C;i0||-1)*Math.floor(Math.abs(e))),e}var B=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var r=n.indexOf(t);if(-1==r)break;i=!1,n.splice(r,1)}return i&&n.push(t),e.className=n.join(" "),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if((t=t||document).createStyleSheet&&(n=t.styleSheets)){for(;i=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((r.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isIPad=r.indexOf("iPad")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){var i=e("./keys"),r=e("./useragent"),o=null,a=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var i=function(){n.call(e,window.event)};n._wrapper=i,e.attachEvent("on"+t,i)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,i){function r(e){n&&n(e),i&&i(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",r,!0),t.removeListener(document,"dragstart",r,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",r,!0),t.addListener(document,"dragstart",r,!0),r},t.addTouchMoveListener=function(e,n){var i,r;t.addListener(e,"touchstart",(function(e){var t=e.touches[0];i=t.clientX,r=t.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.touches;if(!(t.length>1)){var o=t[0];e.wheelX=i-o.clientX,e.wheelY=r-o.clientY,i=o.clientX,r=o.clientY,n(e)}}))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,i,o){var a,s,c,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(e){if(0!==t.getButton(e)?l=0:e.detail>1?++l>4&&(l=1):l=1,r.isIE){var d=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-s)>5;c&&!d||(l=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),1==l&&(a=e.clientX,s=e.clientY)}if(e._clicks=l,i[o]("mousedown",e),l>4)l=0;else if(l>1)return i[o](u[l],e)}function h(e){l=2,c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),i[o]("mousedown",e),i[o](u[l],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){t.addListener(e,"mousedown",d),r.isOldIE&&t.addListener(e,"dblclick",h)}))};var s=r.isMac&&r.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function c(e,t,n){var c=s(t);if(!r.isMac&&o){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(c|=8),o.altGr){if(3==(3&c))return;o.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==o[n]&&(a=t.timeStamp);else if(18===n&&3===c&&2===l){t.timeStamp-a<50&&(o.altGr=!0)}}}if((n in i.MODIFIER_KEYS&&(n=-1),8&c&&n>=91&&n<=93&&(n=-1),!c&&13===n)&&(3===(l="location"in t?t.location:t.keyLocation)&&(e(t,c,-n),t.defaultPrevented)))return;if(r.isChromeOS&&8&c){if(e(t,c,n),t.defaultPrevented)return;c&=-9}return!!(c||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,c,n)}function l(){o=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[s(e)]},t.addCommandKeyListener=function(e,n){var i=t.addListener;if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var a=null;i(e,"keydown",(function(e){a=e.keyCode})),i(e,"keypress",(function(e){return c(n,e,a)}))}else{var s=null;i(e,"keydown",(function(e){o[e.keyCode]=(o[e.keyCode]||0)+1;var t=c(n,e,e.keyCode);return s=e.defaultPrevented,t})),i(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)})),i(e,"keyup",(function(e){o[e.keyCode]=null})),o||(l(),i(window,"focus",l))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){t.nextTick=function(e,n){n=n||window;var i="zero-timeout-message-1";t.addListener(n,"message",(function r(o){o.data==i&&(t.stopPropagation(o),t.removeListener(n,"message",r),e())})),n.postMessage(i,"*")}}t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;nd.length?e=e.substr(9):e.substr(0,4)==d.substr(0,4)?e=e.substr(4,e.length-d.length+1):e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e==d.charAt(0)||e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),h&&(h=!1),N&&(N=!1))},C=function(e){if(!f){var t=n.value;k(t),x()}},E=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!l){var r=u||n?"Text":"text/plain";try{return t?!1!==i.setData(r,t):i.getData(r)}catch(o){if(!n)return E(o,t,!0)}}},S=function(e,o){var a=t.getCopyText();if(!a)return i.preventDefault(e);E(e,a)?(r.isIOS&&(p=o,n.value="\n aa"+a+"a a\n",n.setSelectionRange(4,4+a.length),h={value:a}),o?t.onCut():t.onCopy(),r.isIOS||i.preventDefault(e)):(h=!0,n.value=a,n.select(),setTimeout((function(){h=!1,x(),w(),o?t.onCut():t.onCopy()})))};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",(function(e){var i;0===(i=n).selectionStart&&i.selectionEnd===i.value.length?(t.selectAll(),w()):A&&w(t.selection.isEmpty())})),i.addListener(n,"input",C),i.addListener(n,"cut",(function(e){S(e,!0)})),i.addListener(n,"copy",(function(e){S(e,!1)})),i.addListener(n,"paste",(function(e){var o=E(e);"string"==typeof o?(o&&t.onPaste(o,e),r.isIE&&setTimeout(w),i.preventDefault(e)):(n.value="",m=!0)}));var O,F=function(){if(f&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\x01/g,"");if(f.lastValue!==e&&(t.onCompositionUpdate(e),f.lastValue&&t.undo(),f.canUndo&&(f.lastValue=e),f.lastValue)){var i=t.selection.getRange();t.insert(f.lastValue),t.session.markUndoGroup(),f.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},D=function(e){if(t.onCompositionEnd&&!t.$readOnly){var i=f;f=!1;var o=setTimeout((function(){o=null;var e=n.value.replace(/\x01/g,"");f||(e==i.lastValue?x():!i.lastValue&&e&&(x(),k(e)))}));A=function(e){return o&&clearTimeout(o),(e=e.replace(/\x01/g,""))==i.lastValue?"":(i.lastValue&&o&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",D),"compositionend"==e.type&&i.range&&t.selection.setRange(i.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&C()}},B=a.delayedCall(F,50);function L(){clearTimeout(O),O=setTimeout((function(){g&&(n.style.cssText=g,g=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}i.addListener(n,"compositionstart",(function(e){f||!t.onCompositionStart||t.$readOnly||((f={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(F,0),t.on("mousedown",D),f.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())})),r.isGecko?i.addListener(n,"text",(function(){B.schedule()})):(i.addListener(n,"keyup",(function(){B.schedule()})),i.addListener(n,"keydown",(function(){B.schedule()}))),i.addListener(n,"compositionend",D),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){N=!0,w(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){g||(g=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var s=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=s.top+(parseInt(c.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-l-n.clientHeight-2,h=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,d)+"px"};h(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(O),r.isWin&&i.capture(t.container,h,L))},this.onContextMenuClose=L;var M=function(e){t.textInput.onContextMenu(e),L()};if(i.addListener(n,"mouseup",M),i.addListener(n,"mousedown",(function(e){e.preventDefault(),L()})),i.addListener(t.renderer.scroller,"contextmenu",M),i.addListener(n,"contextmenu",M),r.isIOS){var T=null,R=!1;e.addEventListener("keydown",(function(e){T&&clearTimeout(T),R=!0})),e.addEventListener("keyup",(function(e){T=setTimeout((function(){R=!1}),100)}));var $=function(e){if(document.activeElement===n&&!R){if(p)return setTimeout((function(){p=!1}),100);var i=n.selectionStart,r=n.selectionEnd;if(n.setSelectionRange(4,5),i==r)switch(i){case 0:t.onCommandKey(null,0,s.up);break;case 1:t.onCommandKey(null,0,s.home);break;case 2:t.onCommandKey(null,c.option,s.left);break;case 4:t.onCommandKey(null,0,s.left);break;case 5:t.onCommandKey(null,0,s.right);break;case 7:t.onCommandKey(null,c.option,s.right);break;case 8:t.onCommandKey(null,0,s.end);break;case 9:t.onCommandKey(null,0,s.down)}else{switch(r){case 6:t.onCommandKey(null,c.shift,s.right);break;case 7:t.onCommandKey(null,c.shift|c.option,s.right);break;case 8:t.onCommandKey(null,c.shift,s.end);break;case 9:t.onCommandKey(null,c.shift,s.down)}switch(i){case 0:t.onCommandKey(null,c.shift,s.up);break;case 1:t.onCommandKey(null,c.shift,s.home);break;case 2:t.onCommandKey(null,c.shift|c.option,s.left);break;case 3:t.onCommandKey(null,c.shift,s.left)}}}};document.addEventListener("selectionchange",$),t.on("destroy",(function(){document.removeEventListener("selectionchange",$)}))}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],(function(e,t,n){var i=e("../lib/event"),r=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=r.isChrome<18,c=r.isIE,l=e("./textinput_ios").TextInput;t.TextInput=function(e,t){if(r.isIOS)return l.call(this,e,t);var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var u="\u2028\u2028",d=!1,h=!1,p=!1,m="",f=!0;try{var g=document.activeElement===n}catch(R){}i.addListener(n,"blur",(function(e){t.onBlur(e),g=!1})),i.addListener(n,"focus",(function(e){g=!0,t.onFocus(e),v()})),this.focus=function(){if(m)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="0px",n.focus(),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return g};var _=a.delayedCall((function(){g&&v(f)})),b=a.delayedCall((function(){p||(n.value=u,g&&v())}));function v(e){if(!p){if(p=!0,w)var t=0,i=e?0:n.value.length-1;else t=e?2:1,i=2;try{n.setSelectionRange(t,i)}catch(R){}p=!1}}function y(){p||(n.value=u,r.isWebKit&&b.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=f&&(f=!f,_.schedule())})),y(),g&&t.onFocus();var w=null;this.setInputHandler=function(e){w=e},this.getInputHandler=function(){return w};var x=!1,A=function(e){w&&(e=w(e),w=null),h?(v(),e&&t.onPaste(e),h=!1):e==u.charAt(0)?x?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==u?e=e.substr(2):e.charAt(0)==u.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),x&&(x=!1)},N=function(e){if(!p){var t=n.value;A(t),y()}},k=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!s){var r=c||n?"Text":"text/plain";try{return t?!1!==i.setData(r,t):i.getData(r)}catch(o){if(!n)return k(o,t,!0)}}},C=function(e,r){var o=t.getCopyText();if(!o)return i.preventDefault(e);k(e,o)?(r?t.onCut():t.onCopy(),i.preventDefault(e)):(d=!0,n.value=o,n.select(),setTimeout((function(){d=!1,y(),v(),r?t.onCut():t.onCopy()})))},E=function(e){C(e,!0)},S=function(e){C(e,!1)},O=function(e){var o=k(e);"string"==typeof o?(o&&t.onPaste(o,e),r.isIE&&setTimeout(v),i.preventDefault(e)):(n.value="",h=!0)};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",(function(e){var i;d?d=!1:0===(i=n).selectionStart&&i.selectionEnd===i.value.length?(t.selectAll(),v()):w&&v(t.selection.isEmpty())})),i.addListener(n,"input",N),i.addListener(n,"cut",E),i.addListener(n,"copy",S),i.addListener(n,"paste",O),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:S(e);break;case 86:O(e);break;case 88:E(e)}}));var F,D=function(){if(p&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(p.lastValue!==e&&(t.onCompositionUpdate(e),p.lastValue&&t.undo(),p.canUndo&&(p.lastValue=e),p.lastValue)){var i=t.selection.getRange();t.insert(p.lastValue),t.session.markUndoGroup(),p.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},B=function(e){if(t.onCompositionEnd&&!t.$readOnly){var i=p;p=!1;var o=setTimeout((function(){o=null;var e=n.value.replace(/\u2028/g,"");p||(e==i.lastValue?y():!i.lastValue&&e&&(y(),A(e)))}));w=function(e){return o&&clearTimeout(o),(e=e.replace(/\u2028/g,""))==i.lastValue?"":(i.lastValue&&o&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",B),"compositionend"==e.type&&i.range&&t.selection.setRange(i.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&N()}},L=a.delayedCall(D,50);function M(){clearTimeout(F),F=setTimeout((function(){m&&(n.style.cssText=m,m=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}i.addListener(n,"compositionstart",(function(e){p||!t.onCompositionStart||t.$readOnly||((p={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(D,0),t.on("mousedown",B),p.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())})),r.isGecko?i.addListener(n,"text",(function(){L.schedule()})):(i.addListener(n,"keyup",(function(){L.schedule()})),i.addListener(n,"keydown",(function(){L.schedule()}))),i.addListener(n,"compositionend",B),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){x=!0,v(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){m||(m=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var s=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=s.top+(parseInt(c.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-l-n.clientHeight-2,h=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,d)+"px"};h(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(F),r.isWin&&i.capture(t.container,h,M))},this.onContextMenuClose=M;var T=function(e){t.textInput.onContextMenu(e),M()};i.addListener(n,"mouseup",T),i.addListener(n,"mousedown",(function(e){e.preventDefault(),M()})),i.addListener(t.renderer.scroller,"contextmenu",T),i.addListener(n,"contextmenu",T)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){e("../lib/dom"),e("../lib/event");var i=e("../lib/useragent");function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,o=e.getButton();if(0!==o){var a=r.getSelectionRange().isEmpty();return r.$blockScrolling++,(a||1==o)&&r.selection.moveToPosition(n),r.$blockScrolling--,void(2==o&&(r.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||r.isFocused()||(r.focus(),!this.$focusTimout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var r=o(this.$clickSelection,n);n=r.cursor,e=r.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),r=n.selection[e](i.row,i.column);if(n.$blockScrolling++,this.$clickSelection){var a=this.$clickSelection.comparePoint(r.start),s=this.$clickSelection.comparePoint(r.end);if(-1==a&&s<=0)t=this.$clickSelection.end,r.end.row==i.row&&r.end.column==i.column||(i=r.start);else if(1==s&&a>=0)t=this.$clickSelection.start,r.start.row==i.row&&r.start.column==i.column||(i=r.end);else if(-1==a&&1==s)i=r.end,t=r.start;else{var c=o(this.$clickSelection,i);i=c.cursor,t=c.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,i,r=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,i=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))),o=Date.now();(r>0||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,r=i-n.t,o=e.wheelX/r,a=e.wheelY/r;r<250&&(o=(o+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(o/a),c=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=i;else if(i-n.allowed<250){Math.abs(o)<=1.1*Math.abs(n.vx)&&Math.abs(a)<=1.1*Math.abs(n.vy)?(c=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=o,n.vy=a,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(r.prototype),t.DefaultHandlers=r})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){e("./lib/oop");var i=e("./lib/dom");function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){i.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){var i=e("../lib/dom"),r=e("../lib/oop"),o=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){a.call(this,e)}r.inherits(s,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),o=this.getHeight();(e+=15)+r>n&&(e-=e+r-n),(t+=15)+o>i&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(s.prototype),t.GutterHandler=function(e){var t,n,r,a=e.editor,c=a.renderer.$gutterLayer,l=new s(a.container);function u(){t&&(t=clearTimeout(t)),r&&(l.hide(),r=null,a._signal("hideGutterTooltip",l),a.removeEventListener("mousewheel",u))}function d(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()&&"foldWidgets"!=c.getRegion(t)){var n=t.getDocumentPosition().row,i=a.session.selection;if(t.getShiftKey())i.selectTo(n,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(o){var s=o.domEvent.target||o.domEvent.srcElement;if(i.hasCssClass(s,"ace_fold-widget"))return u();r&&e.$tooltipFollowsMouse&&d(o),n=o,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,i=c.$annotations[t];if(!i)return u();if(t==a.session.getLength()){var o=a.renderer.pixelToScreenCoordinates(0,n.y).row,s=n.$pos;if(o>a.session.documentToScreenRow(s.row,s.column))return u()}if(r!=i)if(r=i.text.join("
"),l.setHtml(r),l.show(),a._signal("showGutterTooltip",l),a.on("mousewheel",u),e.$tooltipFollowsMouse)d(n);else{var h=n.domEvent.target.getBoundingClientRect(),p=l.getElement().style;p.left=h.right+"px",p.top=h.bottom+"px"}}():u()}),50))})),o.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,r&&!t&&(t=setTimeout((function(){t=null,u()}),50))})),a.on("changeSession",u)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),r=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/dom"),r=e("../lib/event"),o=e("../lib/useragent");function a(e){var t=e.editor,n=i.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var a,c,l,u,d,h,p,m,f,g,_,b=t.container,v=0;function y(){var e=h;(function(e,n){var i=Date.now(),r=!n||e.row!=n.row,o=!n||e.column!=n.column;!g||r||o?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,g=i,_={x:c,y:l}):s(_.x,_.y,c,l)>5?g=null:i-g>=200&&(t.renderer.scrollCursorIntoView(),g=null)})(h=t.renderer.screenToTextCoordinates(c,l),e),function(e,n){var i=Date.now(),r=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),s={x:{left:c-a.left,right:a.right-c},y:{top:l-a.top,bottom:a.bottom-l}},u=Math.min(s.x.left,s.x.right),d=Math.min(s.y.top,s.y.bottom),h={row:e.row,column:e.column};u/o<=2&&(h.column+=s.x.left=200&&t.renderer.scrollCursorIntoView(h):f=i:f=null}(h,e)}function w(){d=t.selection.toOrientedRange(),a=t.session.addMarker(d,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),y(),u=setInterval(y,20),v=0,r.addListener(document,"mousemove",N)}function x(){clearInterval(u),t.session.removeMarker(a),a=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(d),t.$blockScrolling-=1,t.isFocused()&&!m&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),d=null,h=null,v=0,f=null,g=null,r.removeListener(document,"mousemove",N)}this.onDragStart=function(e){if(this.cancelDrag||!b.draggable){var i=this;return setTimeout((function(){i.startSelect(),i.captureMouse(e)}),0),e.preventDefault()}d=t.getSelectionRange();var r=e.dataTransfer;r.effectAllowed=t.getReadOnly()?"copy":"copyMove",o.isOpera&&(t.container.appendChild(n),n.scrollTop=0),r.setDragImage&&r.setDragImage(n,0,0),o.isOpera&&t.container.removeChild(n),r.clearData(),r.setData("Text",t.session.getTextRange()),m=!0,this.setState("drag")},this.onDragEnd=function(e){if(b.draggable=!1,m=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;p||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return c=e.clientX,l=e.clientY,a||w(),v++,e.dataTransfer.dropEffect=p=C(e),r.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return c=e.clientX,l=e.clientY,a||(w(),v++),null!==A&&(A=null),e.dataTransfer.dropEffect=p=C(e),r.preventDefault(e)},this.onDragLeave=function(e){if(--v<=0&&a)return x(),p=null,r.preventDefault(e)},this.onDrop=function(e){if(h){var n=e.dataTransfer;if(m)switch(p){case"move":d=d.contains(h.row,h.column)?{start:h,end:h}:t.moveText(d,h);break;case"copy":d=t.moveText(d,h,!0)}else{var i=n.getData("Text");d={start:h,end:t.session.insert(h,i)},t.focus(),p=null}return x(),r.preventDefault(e)}},r.addListener(b,"dragstart",this.onDragStart.bind(e)),r.addListener(b,"dragend",this.onDragEnd.bind(e)),r.addListener(b,"dragenter",this.onDragEnter.bind(e)),r.addListener(b,"dragover",this.onDragOver.bind(e)),r.addListener(b,"dragleave",this.onDragLeave.bind(e)),r.addListener(b,"drop",this.onDrop.bind(e));var A=null;function N(){null==A&&(A=setTimeout((function(){null!=A&&a&&x()}),20))}function k(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function C(e){var t=["copy","copymove","all","uninitialized"],n=o.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(a){}var r="none";return n&&t.indexOf(i)>=0?r="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(i)>=0?r="move":t.indexOf(i)>=0&&(r="copy"),r}}function s(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in r&&(r.unselectable="on"),t.getDragDelay()){if(o.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(a.prototype),t.DragdropHandler=a})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){var i=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=i.getDocumentHead(),r=document.createElement("script");r.src=e,n.appendChild(r),r.onload=r.onreadystatechange=function(e,n){!n&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){var i={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var a=0;a1&&(r=n[n.length-2]);var a=s[t+"Path"];return null==a?a=s.basePath:"/"==i&&(t=i=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+i+r+this.get("suffix")},t.setModuleUrl=function(e,t){return s.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,i){var o,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{o=e(n)}catch(c){}if(o&&!t.$loading[n])return i&&i(o);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(i),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var i=t.$loading[n];t.$loading[n]=null,i.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();r.loadScript(t.moduleUrl(n,a),s)}},c(!0),t.init=c})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){var i=e("../lib/event"),r=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,s=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,l=e("../config"),u=function(e){var t=this;this.editor=e,new o(this),new a(this),new c(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus()},s=e.renderer.getMouseEventTarget();i.addListener(s,"click",this.onMouseEvent.bind(this,"click")),i.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove")),i.addMultiMouseDownListener([s,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),i.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var l=e.renderer.$gutter;i.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),i.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),i.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),i.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),i.addListener(s,"mousedown",n),i.addListener(l,"mousedown",n),r.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n),i.addListener(e.renderer.scrollBarH.element,"mousedown",n)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),r=e.session.selection.getRange(),o=e.renderer;!r.isEmpty()&&r.insideStart(i.row,i.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new s(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new s(t,this.editor))},this.onMouseWheel=function(e,t){var n=new s(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new s(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var o=this,a=function(e){if(e){if(r.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new s(e,o.editor),o.$mouseMoved=!0}},c=function(e){clearInterval(u),l(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),o.isMousePressed=!1,o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e)},l=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(r.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));o.$onCaptureMouseMove=a,o.releaseMouse=i.capture(this.editor.container,a,c);var u=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(u.prototype),l.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),i=e.session,r=i.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?i.removeFold(r):i.expandFold(r),t.stop())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session,r=i.getParentFoldRangeData(n,!0),o=r.range||r.firstRange;if(o){n=o.start.row;var a=i.getFoldAt(n,i.getLine(n).length,1);a?i.removeFold(a):(i.addFold("...",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){var i=e("../lib/keys"),r=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var o,a=!1,s=this.$editor.commands,c=this.$handlers.length;c--&&!((o=this.$handlers[c].handleKeyboard(this.$data,e,t,n,i))&&o.command&&((a="null"==o.command||s.exec(o.command,this.$editor,o.args,i))&&i&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&r.stopEvent(i),a)););return a||-1!=e||(o={command:"insertstring"},a=s.exec("insertstring",this.$editor,t)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),a},this.onCommandKey=function(e,t,n){var r=i.keyCodeToString(n);this.$callKeyboardHandlers(t,r,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){var i=0,r=0,o=!1,a=!1,s=!1,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=11,d=18,h=[d,d,d,d,d,d,d,d,d,6,5,6,8,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,5,5,5,6,8,4,4,u,u,u,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,d,d,d,d,d,d,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,9,4,u,u,u,u,4,4,4,4,0,4,4,d,4,4,u,u,2,2,4,0,4,4,4,2,0,4,4,4,4,4],p=[8,8,8,8,8,8,8,8,8,8,8,d,d,d,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,u,u,u,u,u,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function m(e,t,n){if(!(r=e){for(o=d+1;o=e;)o++;for(s=d,c=o-1;s=t.length||2!=(c=n[r-1])&&3!=c||2!=(l=t[r+1])&&3!=l?4:(o&&(l=3),l==c?l:4);case 10:return 2==(c=r>0?n[r-1]:5)&&r+10&&2==n[r-1])return 2;if(o)return 4;for(p=r+1,h=t.length;p=1425&&f<=2303||64286==f;if(c=t[p],g&&(1==c||7==c))return 1}return r<1||5==(c=t[r-1])?4:n[r-1];case 5:return o=!1,a=!0,i;case 6:return s=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case d:return 4}}function g(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:h[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?u:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?p[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="·",t.doBidiReorder=function(e,n,u){if(e.length<2)return{};var h=e.split(""),p=new Array(h.length),_=new Array(h.length),b=[];i=u?1:0,function(e,t,n,u){var d=i?l:c,h=null,p=null,m=null,_=0,b=null,v=-1,y=null,w=null,x=[];if(!u)for(y=0,u=[];y0)if(16==b){for(y=v;y-1){for(y=v;y=0&&8==u[A];A--)t[A]=i}}(h,b,h.length,n);for(var v=0;v7&&n[v]<13||4===n[v]||n[v]===d)?b[v]=t.ON_R:v>0&&"ل"===h[v-1]&&/\u0622|\u0623|\u0625|\u0627/.test(h[v])&&(b[v-1]=b[v]=t.R_H,v++);h[h.length-1]===t.DOT&&(b[h.length-1]=t.B);for(v=0;v=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var n=this.session.$wrapData[e];n&&(void 0===t&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.line=t0?e-1:0,this.bidiMap),n=this.bidiMap.bidiLevels,r=0;0===e&&n[t]%2!=0&&t++;for(var o=0;o=l&&rn+a/2;){if(n+=a,r===o.length-1){a=0;break}a=this.charWidths[o[++r]]}return r>0&&o[r-1]%2!=0&&o[r]%2==0?(e0&&o[r-1]%2==0&&o[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===o.length-1&&0===a&&o[r-1]%2==0||!this.isRtlDir&&0===r&&o[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&o[r-1]%2!=0&&0!==a&&r--,t=this.bidiMap.logicalFromVisual[r]),t+this.wrapIndent}}).call(s.prototype),t.BidiHandler=s})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){var i=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var r={row:t+1,column:0};else if(this.start.rowt.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,r=this.session.getFoldLine(i);return r?(i=r.start.row,n=r.end.row):n=i,!0===t?new a(i,0,n,this.session.getLine(n).length):new a(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,r=e.column+t;return n<0&&(i=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(e,t,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(r.lastIndex=0;(t=e[n])&&!r.test(t);)if(r.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(n>2)break}}return r.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),r=this.session.getFoldAt(e,t,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var o=r.stringReverse(i),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(r.charAt(t))&&r.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(i){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){var i=e("./config"),r=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],r=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:l.token),d>1&&(/\\\d/.test(l.regex)?u=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+r+1)})):(d=1,u=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||s.push(l)),o[r]=c,r+=d,i.push(u),l.onMatch||(l.onMatch=null)}}i.length||(o[0]=0,i.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){r=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],r=0,o=n.length;ru){var _=e.substring(u,g-f.length);h.type==p?h.value+=_:(h.type&&l.push(h),h={type:p,value:_})}for(var b=0;br){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:l,state:n.length?n:i}},this.reportError=i.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){var i=e("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],r=0;r=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(r.prototype),t.TokenIterator=r})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){var i,r=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),c=["text","paren.rparen","punctuation.operator"],l=["text","paren.rparen","punctuation.operator","comment"],u={},d={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return i=u[t];i=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},p=function(e,t,n,i){var r=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,r,e.end.column+(r?0:1)]}},m=function(e){this.add("braces","insertion",(function(t,n,r,o,a){var c=r.getCursorPosition(),l=o.doc.getLine(c.row);if("{"==a){h(r);var u=r.getSelectionRange(),d=o.doc.getTextRange(u);if(""!==d&&"{"!==d&&r.getWrapBehavioursEnabled())return p(u,d,"{","}");if(m.isSaneInsertion(r,o))return/[\]\}\)]/.test(l[c.column])||r.inMultiSelectMode||e&&e.braces?(m.recordAutoInsert(r,o,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(r,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(h(r),"}"==l.substring(c.column,c.column+1))if(null!==o.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&m.isAutoInsertedClosing(c,l,a))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){h(r);var f="";if(m.isMaybeInsertedClosing(c,l)&&(f=s.stringRepeat("}",i.maybeInsertedBrackets),m.clearMaybeInsertedClosing()),"}"===l.substring(c.column,c.column+1)){var g=o.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!g)return null;var _=this.$getIndent(o.getLine(g.row))}else{if(!f)return void m.clearMaybeInsertedClosing();_=this.$getIndent(l)}var b=_+o.getTabString();return{text:"\n"+b+"\n"+_+f,selection:[1,b.length,1,b.length]}}m.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,r,o){var a=r.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){if(h(n),"}"==r.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;i.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,i,r){if("("==r){h(n);var o=n.getSelectionRange(),a=i.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return p(o,a,"(",")");if(m.isSaneInsertion(n,i))return m.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==r){h(n);var s=n.getCursorPosition(),c=i.doc.getLine(s.row);if(")"==c.substring(s.column,s.column+1))if(null!==i.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&m.isAutoInsertedClosing(s,c,r))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,i,r){var o=i.doc.getTextRange(r);if(!r.isMultiLine()&&"("==o&&(h(n),")"==i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("brackets","insertion",(function(e,t,n,i,r){if("["==r){h(n);var o=n.getSelectionRange(),a=i.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return p(o,a,"[","]");if(m.isSaneInsertion(n,i))return m.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){h(n);var s=n.getCursorPosition(),c=i.doc.getLine(s.row);if("]"==c.substring(s.column,s.column+1))if(null!==i.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&m.isAutoInsertedClosing(s,c,r))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,i,r){var o=i.doc.getTextRange(r);if(!r.isMultiLine()&&"["==o&&(h(n),"]"==i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("string_dquotes","insertion",(function(e,t,n,i,r){var o=i.$mode.$quotes||d;if(1==r.length&&o[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;h(n);var a=r,s=n.getSelectionRange(),c=i.doc.getTextRange(s);if(!(""===c||1==c.length&&o[c])&&n.getWrapBehavioursEnabled())return p(s,c,a,a);if(!c){var l=n.getCursorPosition(),u=i.doc.getLine(l.row),m=u.substring(l.column-1,l.column),f=u.substring(l.column,l.column+1),g=i.getTokenAt(l.row,l.column),_=i.getTokenAt(l.row,l.column+1);if("\\"==m&&g&&/escape/.test(g.type))return null;var b,v=g&&/string|escape/.test(g.type),y=!_||/string|escape/.test(_.type);if(f==a)(b=v!==y)&&/string\.end/.test(_.type)&&(b=!1);else{if(v&&!y)return null;if(v&&y)return null;var w=i.$mode.tokenRe;w.lastIndex=0;var x=w.test(m);w.lastIndex=0;var A=w.test(m);if(x||A)return null;if(f&&!/[\s;,.})\]\\]/.test(f))return null;b=!0}return{text:b?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,r){var o=i.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==o||"'"==o)&&(h(n),i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==o))return r.end.column++,r}))};m.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new a(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",c)){var r=new a(t,n.row,n.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",c))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",l)},m.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},m.recordAutoInsert=function(e,t,n){var r=e.getCursorPosition(),o=t.doc.getLine(r.row);this.isAutoInsertedClosing(r,o,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=r.row,i.autoInsertedLineEnd=n+o.substr(r.column),i.autoInsertedBrackets++},m.recordMaybeInsert=function(e,t,n){var r=e.getCursorPosition(),o=t.doc.getLine(r.row);this.isMaybeInsertedClosing(r,o)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=r.row,i.maybeInsertedLineStart=o.substr(0,r.column)+n,i.maybeInsertedLineEnd=o.substr(r.column),i.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},r.inherits(m,o),t.CstyleBehaviour=m})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){t.packages={},function(e){var n=/\w{4}/g;for(var i in e)t.packages[i]=e[i].replace(n,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){var i=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),s=e("../lib/lang"),c=e("../token_iterator").TokenIterator,l=e("../range").Range,u=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var r=t.doc,o=!0,a=!0,c=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))f=this.lineCommentStart.map(s.escapeRegExp).join("|"),p=this.lineCommentStart[0];else f=s.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart;f=new RegExp("^(\\s*)(?:"+f+") ?"),u=t.getUseSoftTabs();b=function(e,t){var n=e.match(f);if(n){var i=n[1].length,o=n[0].length;h(e,i,o)||" "!=n[0][o-1]||o--,r.removeInLine(t,i,o)}};var d=p+" ",h=(_=function(e,t){o&&!/\S/.test(e)||(h(e,c,c)?r.insertInLine({row:t,column:c},d):r.insertInLine({row:t,column:c},p))},v=function(e,t){return f.test(e)},function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%l!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return l>2?i%l!=l-1:i%l==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,m=this.blockComment.end,f=new RegExp("^(\\s*)(?:"+s.escapeRegExp(p)+")"),g=new RegExp("(?:"+s.escapeRegExp(m)+")\\s*$"),_=function(e,t){v(e,t)||o&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},m),r.insertInLine({row:t,column:c},p))},b=function(e,t){var n;(n=e.match(g))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(f))&&r.removeInLine(t,n[1].length,n[0].length)},v=function(e,n){if(f.test(e))return!0;for(var i=t.getTokens(n),r=0;re.length&&(w=e.length)})),c==1/0&&(c=w,o=!1,a=!1),u&&c%l!=0&&(c=Math.floor(c/l)*l),y(a?b:_)},this.toggleBlockComment=function(e,t,n,i){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var o=(f=new c(t,i.row,i.column)).getCurrentToken();t.selection;var a,s,u=t.selection.toOrientedRange();if(o&&/comment/.test(o.type)){for(var d,h;o&&/comment/.test(o.type);){if(-1!=(g=o.value.indexOf(r.start))){var p=f.getCurrentTokenRow(),m=f.getCurrentTokenColumn()+g;d=new l(p,m,p,m+r.start.length);break}o=f.stepBackward()}var f;for(o=(f=new c(t,i.row,i.column)).getCurrentToken();o&&/comment/.test(o.type);){var g;if(-1!=(g=o.value.indexOf(r.end))){p=f.getCurrentTokenRow(),m=f.getCurrentTokenColumn()+g;h=new l(p,m,p,m+r.end.length);break}o=f.stepForward()}h&&t.remove(h),d&&(t.remove(d),a=d.start.row,s=-r.start.length)}else s=r.start.length,a=n.start.row,t.insert(n.end,r.end),t.insert(n.start,r.start);u.start.row==a&&(u.start.column+=s),u.end.row==a&&(u.end.column+=s),t.selection.fromOrientedRange(u)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var n=function(t,n,i){var r="insert"==t.action,o=(r?1:-1)*(t.end.row-t.start.row),a=(r?1:-1)*(t.end.column-t.start.column),s=t.start,c=r?s:t.end;if(e(n,s,i))return{row:n.row,column:n.column};if(e(c,n,!i))return{row:n.row+o,column:n.column+(n.row==c.row?a:0)};return{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var r={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:r,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){var i=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))0,i=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),r(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length,r=e.start.row,o=e.start.column,a=0,s=0;;){a=s,s+=t-1;var c=n.slice(a,s);if(s>i){e.lines=c,e.start.row=r+a,e.start.column=o;break}c.push(""),this.applyDelta({start:this.pos(r+a,o),end:this.pos(r+s,o=0),action:e.action,lines:c},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=t||0,o=n.length;r20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),o<=i&&n.fireUpdateEvent(o,i)}}};(function(){i.implement(this,r),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){var i=e("./lib/lang");e("./lib/oop");var r=e("./range").Range,o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,c=a;c<=s;c++){var l=this.cache[c];null==l&&((l=i.getMatchOffsets(n.getLine(c),this.regExp)).length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new r(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var u=l.length;u--;)t.drawSingleLineMarker(e,l[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range;function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,r,o=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c0)){var c=i(e,a.start);return 0===s?t&&0!==c?-o-2:o:c>0||0===c&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,r=(n=n.sort((function(e,t){return i(e.start,t.start)})))[0],o=1;o=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.rowi)break;if(l.start.row==i&&l.start.column>=t.column&&(l.start.column==t.column&&this.$insertRight||(l.start.column+=o,l.start.row+=r)),l.end.row==i&&l.end.column>=t.column){if(l.end.column==t.column&&this.$insertRight)continue;l.end.column==t.column&&o>0&&sl.start.column&&l.end.column==a[s+1].start.column&&(l.end.column-=o),l.end.column+=o,l.end.row+=r}}}if(0!=r&&s=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,r=0;r=t){s=e?i-=t-s:i=0);break}a>=e&&(i-=s>=e?a-s:a-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,c=n.start.column,l=n.end.row,u=n.end.column;if(!(s0&&(this.removeFolds(p),p.forEach((function(e){n.addSubFold(e)})));for(var m=0;m0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,r;if(null==e?(n=new i(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new i(e,0,e,this.getLine(e).length):"row"in e?i.fromPoints(e,e):e,r=this.getFoldsInRangeList(n),t)this.removeFolds(r);else for(var o=r;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,r){null==i&&(i=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk((function(e,t,n,s){if(!(tu)break}while(o&&c.test(o.type));o=r.stepBackward()}else o=r.getCurrentToken();return l.end.row=r.getCurrentTokenRow(),l.end.column=r.getCurrentTokenColumn()+o.value.length-2,l}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var r=e=e||0;r=e){r=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=n)}catch(s){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i,r=e-1;r>=0;){var o=n[r];if(null==o&&(o=n[r]=this.getFoldWidget(r)),"start"==o){var a=this.getFoldWidgetRange(r);if(i||(i=a),a&&a.end.row>=e)break}r--}return{range:-1!==r&&a,firstRange:i}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),r="end"===n?-1:1,o=this.getFoldAt(e,-1===r?0:i.length,r);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var c=s.range.start.row+1,l=s.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=a?a.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange){t=n.start.row;var r=this.getFoldAt(t,this.getLine(t).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){var i=e("../token_iterator").TokenIterator,r=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=r.fromPoints(e,s),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=r.fromPoints(s,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],o=1,a=new i(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-a.getCurrentTokenColumn()-2,l=s.value;;){for(;c>=0;){var u=l.charAt(c);if(u==r){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else u==e&&(o+=1);c-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;c=(l=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],o=1,a=new i(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-a.getCurrentTokenColumn();;){for(var l=s.value,u=l.length;cn&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var r=n+i>>1,o=e[r];if(t>o)n=r+1;else{if(!(t=t);o++);return(n=i[o])?(n.index=o,n.start=r-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var r=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))r=/\s/;else r=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(r));o++}for(var a=t;ae&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,r=0,o=this.$foldData[r],a=o?o.start.row:1/0,s=t.length,c=0;ca){if((c=o.end.row+1)>=s)break;a=(o=this.$foldData[r++])?o.start.row:1/0}null==n[c]&&(n[c]=this.$getStringScreenWidth(t[c])[0]),n[c]>i&&(i=n[c])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=e.length-1;-1!=i;i--){var r=e[i];"doc"==r.group?(this.doc.revertDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!0,n)):r.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=0;ie.end.column&&(o.start.column+=l),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=l)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,i),r.length){var s=e.start,c=o.start,l=(a=c.row-s.row,c.column-s.column);this.addFolds(r.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=l),e.end.row==s.row&&(e.end.column+=l),e.start.row+=a,e.end.row+=a,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),i=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var o=this.getLine(r);n.start.row=r,n.end.row=r;for(var a=0;a0){var r;if((r=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=r-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var o=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,s),a.length&&this.addFolds(a),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,r=e.end,o=i.row,a=r.row,s=a-o,c=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var u=0;if(f=this.getFoldLine(r.row)){f.addRemoveChars(r.row,r.column,i.column-r.column),f.shiftRow(-s);var d=this.getFoldLine(o);d&&d!==f&&(d.merge(f),f=d),u=l.indexOf(f)+1}for(;u=r.row&&f.shiftRow(-s)}a=o}else{var h=Array(s);h.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,h);l=this.$foldData,u=0;if(f=this.getFoldLine(o)){var m=f.range.compareInside(i.row,i.column);0==m?(f=f.split(i.row,i.column))&&(f.shiftRow(s),f.addRemoveChars(a,0,r.column-i.column)):-1==m&&(f.addRemoveChars(o,0,r.column-i.column),f.shiftRow(s)),u=l.indexOf(f)+1}for(;u=o&&f.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),s=-s),(f=this.getFoldLine(o))&&f.addRemoveChars(o,i.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),c},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,i){var r,o,a=this.doc.getAllLines(),s=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,u=n;for(i=Math.min(i,a.length-1);u<=i;)(o=this.getFoldLine(u,o))?(r=[],o.walk(function(n,i,o,s){var c;if(null!=n){(c=this.$getDisplayTokens(n,r.length))[0]=e;for(var l=1;l=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,i,r){if(0==n.length)return[];var o=[],a=n.length,s=0,c=0,l=this.$wrapAsCode,u=this.$indentedSoftWrap,d=i<=Math.max(2*r,8)||!1===u?0:Math.floor(i/2);function h(e){var t=n.slice(s,e),i=t.length;t.join("").replace(/12/g,(function(){i-=1})).replace(/2/g,(function(){i-=1})),o.length||(p=function(){var e=0;if(0===d)return e;if(u)for(var t=0;ti-p;){var m=s+i-p;if(n[m-1]>=10&&n[m]>=10)h(m);else if(n[m]!=e&&n[m]!=t){for(var f=Math.max(m-(i-(i>>2)),s-1);m>f&&n[m]f&&n[m]f&&9==n[m];)m--}else for(;m>f&&n[m]<10;)m--;m>f?h(++m):(2==n[m=s+i]&&m--,h(m-p))}else{for(;m!=s-1&&n[m]!=e;m--);if(m>s){h(m);continue}for(m=s+i;m39&&a<48||a>57&&a<64?r.push(9):a>=4352&&n(a)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,t,i){if(0==t)return[0,0];var r,o;for(null==t&&(t=1/0),i=i||0,o=0;o=4352&&n(r)?i+=2:i+=1,!(i>t));o++);return[i,o]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=l[u],o=this.$docRowCache[u];var h=e>l[d-1]}else h=!d;for(var p=this.getLength()-1,m=this.getNextFoldLine(o),f=m?m.start.row:1/0;s<=e&&!(s+(c=this.getRowLength(o))>e||o>=p);)s+=c,++o>f&&(o=m.end.row+1,f=(m=this.getNextFoldLine(o,m))?m.start.row:1/0),h&&(this.$docRowCache.push(o),this.$screenRowCache.push(s));if(m&&m.start.row<=o)i=this.getFoldDisplayLine(m),o=m.start.row;else{if(s+c<=e||o>p)return{row:p,column:this.getLine(p).length};i=this.getLine(o),m=null}var g=0,_=Math.floor(e-s);if(this.$useWrapMode){var b=this.$wrapData[o];b&&(r=b[_],_>0&&b.length&&(g=b.indent,a=b[_-1]||b[b.length-1],i=i.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+_,o,_)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(i,t-g)[1],this.$useWrapMode&&a>=r&&(a=r-1),m?m.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i,r=0,o=null;(i=this.getFoldAt(e,t,1))&&(e=i.start.row,t=i.start.column);var a,s=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){s=c[l],r=this.$screenRowCache[l];var d=e>c[u-1]}else d=!u;for(var h=this.getNextFoldLine(s),p=h?h.start.row:1/0;s=p){if((a=h.end.row+1)>e)break;p=(h=this.getNextFoldLine(a,h))?h.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,d&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var m="";h&&s>=p?(m=this.getFoldDisplayLine(h,e,t),o=h.start.row):(m=this.getLine(e).substring(0,t),o=e);var f=0;if(this.$useWrapMode){var g=this.$wrapData[o];if(g){for(var _=0;m.length>=g[_];)r++,_++;m=m.substring(g[_-1]||0,m.length),f=_>0?g.indent:0}}return{row:r,column:f+this.$getStringScreenWidth(m)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,r=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);ir&&(i=t.end.row+1,r=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;sn);o++);return[i,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=n}.call(m.prototype),e("./edit_session/folding").Folding.call(m.prototype),e("./edit_session/bracket_match").BracketMatch.call(m.prototype),a.defineOptions(m.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=m})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){var i=e("./lib/lang"),r=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,r,a){return i=new o(e,n,r,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var c,l=s.length,u=r.length-l;e:for(var d=s.offset||0;d<=u;d++){for(var h=0;hf||(a.push(c=new o(d,f,d+l-1,g)),l>2&&(d=d+l-2))}}else for(var _=0;_w&&a[h].end.row==n.end.row;)h--;for(a=a.slice(_,h+1),_=0,h=a.length;_=s;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=c,s=a.row;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return}};else l=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=c;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=s,c=a.row;n<=c;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var u=n.length,d=function(t,r,o){var a=i?t-u+1:t;if(!(a<0)){var s=e.getLine(a),c=s.search(n[0]);if(!(!i&&cr))return!!o(a,c,a+u-1,d)||void 0}}};else if(i)d=function(t,i,r){var o,a=e.getLine(t),s=[],c=0;for(n.lastIndex=0;o=n.exec(a);){var l=o[0].length;if(c=o.index,!l){if(c>=a.length)break;n.lastIndex=c+=1}if(o.index+l>i)break;s.push(o.index,l)}for(var u=s.length-1;u>=0;u-=2){var d=s[u-1];if(r(t,d,t,d+(l=s[u])))return!0}};else d=function(t,i,r){var o,a=e.getLine(t),s=i;for(n.lastIndex=i;o=n.exec(a);){var c=o[0].length;if(r(t,s=o.index,t,s+c))return!0;if(!c&&(n.lastIndex=s+=1,s>=a.length))return!1}};return{forEach:l}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/keys"),r=e("../lib/useragent"),o=i.KEY_MODS;function a(e,t){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var r in i){var o=i[r];if(o==e)delete i[r];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(i[r]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var r=e.split(/\s+/);e=r.pop(),r.forEach((function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var a=this.parseKeys(e),s=o[a.hashId]+a.key;this._addCommandToBinding(i+s,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var r,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(r=o[t].indexOf(n))&&o[t].splice(r,1):o[t]=[o[t]],"number"!=typeof i&&(i=e(n));var a=o[t];for(r=0;ri)break}a.splice(r,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=i.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var r=o[t]+n,a=this.commandKeyBinding[r];return e.$keyChain&&(e.$keyChain+=" "+r,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-r.length-1)),{command:a}):(e.$keyChain=e.$keyChain||r,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){r.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};i.inherits(a,r),function(){i.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var r={editor:t,command:e,args:n};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){var i=e("../lib/lang"),r=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){r.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),l=n.row+1;l<=r.row+1;l++){var u=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(l)));0!==u.length&&(u=" "+u),c+=u}r.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,r=[];i.length<1&&(i=[e.selection.getRange()]);for(var a=0;a0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),r=this.renderer.layerConfig;(i.start.row>=r.lastRow||i.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var r=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e){this.$keybindingId=e;var n=this;_.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var i=new p(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)i=t.$mode.getMatching(e.session);i&&(t.$bracketHighlight=t.addMarker(i,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),i=new b(e.session,n.row,n.column),r=i.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=i.stepForward())){var o=r.value,a=0,s=i.stepBackward();if("<"==s.value)do{s=r,(r=i.stepForward())&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?a++:"=0);else{do{r=s,s=i.stepBackward(),r&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?a++:"1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,i=t.end.column+1,r=e.getLine(t.start.row),o=r.length,a=r.substring(Math.max(n,0),Math.min(i,o));if(!(n>=0&&/^[\w\d]/.test(a)||i<=o&&/[\w\d]$/.test(a)))if(a=r.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(a))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:a})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges;if(n.length>i.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var r=i.length;r--;){var o=i[r];o.isEmpty()||this.session.remove(o),this.session.insert(o.start,n[r])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=i.transformAction(n.getState(r.row),"insertion",this,n,e);o&&(e!==o.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(a=new p.fromPoints(r,r)).end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();r=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(r.row);if(r.column>s.search(/\S|$/)){var c=s.substr(r.column).search(/\S|$/);n.doc.removeInLine(r.row,r.column,r.column+c)}}this.clearSelection();var l=r.column,u=n.getState(r.row),d=(s=n.getLine(r.row),i.checkOutdent(u,s,e));if(n.insert(r,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new p(r.row,l+o.selection[0],r.row,l+o.selection[1])):this.selection.setSelectionRange(new p(r.row+o.selection[0],o.selection[1],r.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var h=i.getNextLineIndent(u,s.slice(0,r.column),n.getTabString());n.insert({row:r.row+1,column:0},h)}d&&i.autoOutdent(u,n,r.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),r=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}r&&(t=r)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,r=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var r=new p(0,0,0,0);for(i=e.first;i<=e.last;i++){var o=t.getLine(i);r.start.row=i,r.end.row=i,r.end.column=o.length,t.replace(r,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex=t)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new p(t,n-1,t,n),r=this.session.getTextRange(i);if(!isNaN(parseFloat(r))&&isFinite(r)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,c=parseFloat(o.value);c*=Math.pow(10,s),a!==o.end&&np+1)break;p=m.last}for(u--,s=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(d=u+1);d<=u;)a[d].moveBy(s,0),d++;t||(s=0),c+=s}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,r=e*Math.floor(i.height/i.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),this.$blockScrolling--;var o=n.scrollTop;n.scrollBy(0,r*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new b(this.session,n.row,n.column),r=i.getCurrentToken(),o=r||i.stepForward();if(o){var a,s,c=!1,l={},u=n.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u=0;--o)this.$tryReplace(n[o],e)&&i++;return this.selection.setSelectionRange(r),this.$blockScrolling-=1,i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var r=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var o=this.on("changeSelection",(function(){i=!0})),a=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;null!=(i=o.top>=0&&s+t.top<0||!(o.topwindow.innerHeight)&&null)&&(r.style.top=s+"px",r.style.left=o.left+"px",r.style.height=a.lineHeight+"px",r.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(v.prototype),_.defineOptions(v.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=v})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){var i=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),i=0;i0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(i.prototype),t.UndoManager=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/dom"),r=e("../lib/oop"),o=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,s=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){r.implement(this,a),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;ta&&(f=o.end.row+1,a=(o=t.getNextFoldLine(f,o))?o.start.row:1/0),f>r){for(;this.$cells.length>m+1;)p=this.$cells.pop(),this.element.removeChild(p.element);break}(p=this.$cells[++m])||((p={element:null,textNode:null,foldWidget:null}).element=i.createElement("div"),p.textNode=document.createTextNode(""),p.element.appendChild(p.textNode),this.element.appendChild(p.element),this.$cells[m]=p);var g="ace_gutter-cell ";if(c[f]&&(g+=c[f]),l[f]&&(g+=l[f]),this.$annotations[f]&&(g+=this.$annotations[f].className),p.element.className!=g&&(p.element.className=g),(b=t.getRowLength(f)*e.lineHeight+"px")!=p.element.style.height&&(p.element.style.height=b),s){var _=s[f];null==_&&(_=s[f]=t.getFoldWidget(f))}if(_){p.foldWidget||(p.foldWidget=i.createElement("span"),p.element.appendChild(p.foldWidget));g="ace_fold-widget ace_"+_;"start"==_&&f==a&&fn.right-t.right?"foldWidgets":void 0}}).call(s.prototype),t.Gutter=s})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){var i=e("../range").Range,r=e("../lib/dom"),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var n in this.markers){var i=this.markers[n];if(i.range){var r=i.range.clipRows(e.firstRow,e.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),i.renderer){var o=this.$getTop(r.start.row,e),a=this.$padding+(this.session.$bidiHandler.isBidiRow(r.start.row)?this.session.$bidiHandler.getPosLeft(r.start.column):r.start.column*e.characterWidth);i.renderer(t,r,a,o,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,r,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,r,i.clazz,e):r.isMultiLine()?"text"==i.type?this.drawTextMarker(t,r,i.clazz,e):this.drawMultiLineMarker(t,r,i.clazz,e):this.session.$bidiHandler.isBidiRow(r.start.row)?this.drawBidiSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,r,o){for(var a=this.session,s=t.start.row,c=t.end.row,l=s,u=0,d=0,h=a.getScreenLastRowColumn(l),p=null,m=new i(l,t.start.column,l,d);l<=c;l++)m.start.row=m.end.row=l,m.start.column=l==s?t.start.column:a.getRowWrapIndent(l),m.end.column=h,u=d,d=h,h=l+1h?4:0)|(l==c?8:0)),this.session.$bidiHandler.isBidiRow(l)?this.drawBidiSingleLineMarker(e,m,p,r,l==c?0:1,o):this.drawSingleLineMarker(e,m,p,r,l==c?0:1,o)},this.drawMultiLineMarker=function(e,t,n,i,r){var o,a,s,c=this.$padding;(r=r||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((l=t.clone()).end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(e,l,n+" ace_br1 ace_start",i,null,r)):(o=i.lineHeight,a=this.$getTop(t.start.row,i),s=c+t.start.column*i.characterWidth,e.push("
"));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var l;(l=t.clone()).start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(e,l,n+" ace_br12",i,null,r)}else{var u=t.end.column*i.characterWidth;o=i.lineHeight,a=this.$getTop(t.end.row,i),e.push("
")}if(!((o=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){a=this.$getTop(t.start.row+1,i);var d=(t.start.column?1:0)|(t.end.column?0:8);e.push("
")}},this.drawSingleLineMarker=function(e,t,n,i,r,o){var a=i.lineHeight,s=(t.end.column+(r||0)-t.start.column)*i.characterWidth,c=this.$getTop(t.start.row,i),l=this.$padding+t.start.column*i.characterWidth;e.push("
")},this.drawBidiSingleLineMarker=function(e,t,n,i,r,o){var a=i.lineHeight,s=this.$getTop(t.start.row,i),c=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(t){e.push("
")}))},this.drawFullLineMarker=function(e,t,n,i,r){var o=this.$getTop(t.start.row,i),a=i.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,i)-o),e.push("
")},this.drawScreenLineMarker=function(e,t,n,i,r){var o=this.$getTop(t.start.row,i),a=i.lineHeight;e.push("
")}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),r=e("../lib/dom"),o=e("../lib/lang");e("../lib/useragent");var a=e("../lib/event_emitter").EventEmitter,s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){i.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n"+o.stringRepeat(this.TAB_CHAR,n)+""):t.push(o.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i="ace_indent-guide",r="",a="";if(this.showInvisibles){i+=" ace_invisible",r=" ace_invisible_space",a=" ace_invisible_tab";var s=o.stringRepeat(this.SPACE_CHAR,this.tabSize),c=o.stringRepeat(this.TAB_CHAR,this.tabSize)}else c=s=o.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]=""+s+"",this.$tabStrings["\t"]=""+c+""}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var i=Math.max(t,e.firstRow),r=Math.min(n,e.lastRow),o=this.element.childNodes,a=0,s=e.firstRow;sl&&(s=c.end.row+1,l=(c=this.session.getNextFoldLine(s,c))?c.start.row:1/0),!(s>r);){var u=o[a++];if(u){var d=[];this.$renderLine(d,s,!this.$useLineGroups(),s==l&&c),u.style.height=e.lineHeight*this.session.getRowLength(s)+"px",u.innerHTML=d.join("")}s++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow0;i--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)n.removeChild(n.lastChild);if(e.firstRowt.lastRow){r=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(r)}},this.$renderLinesFragment=function(e,t,n){for(var i=this.element.ownerDocument.createDocumentFragment(),o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>n);){var c=r.createElement("div"),l=[];if(this.$renderLine(l,o,!1,o==s&&a),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",i.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(o)+"px";else for(;c.firstChild;)i.appendChild(c.firstChild);o++}return i},this.update=function(e){this.config=e;for(var t=[],n=e.firstRow,i=e.lastRow,r=n,o=this.session.getNextFoldLine(r),a=o?o.start.row:1/0;r>a&&(r=o.end.row+1,a=(o=this.session.getNextFoldLine(r,o))?o.start.row:1/0),!(r>i);)this.$useLineGroups()&&t.push("
"),this.$renderLine(t,r,!1,r==a&&o),this.$useLineGroups()&&t.push("
"),r++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){var r=this,a=i.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,i,a,s){if(n)return r.showInvisibles?""+o.stringRepeat(r.SPACE_CHAR,e.length)+"":e;if("&"==e)return"&";if("<"==e)return"<";if(">"==e)return">";if("\t"==e){var c=r.session.getScreenTabSize(t+a);return t+=c-1,r.$tabStrings[c]}if(" "==e){var l=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=r.showInvisibles?r.SPACE_CHAR:"";return t+=1,""+u+""}return i?""+r.SPACE_CHAR+"":(t+=1,""+e+"")}));if(this.$textToken[n.type])e.push(a);else{var s="ace_"+n.type.replace(/\./g," ace_"),c="";"fold"==n.type&&(c=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("",a,"")}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);return i<=0||i>=n?t:" "==t[0]?(i-=i%this.tabSize,e.push(o.stringRepeat(this.$tabStrings[" "],i/this.tabSize)),t.substr(i)):"\t"==t[0]?(e.push(o.stringRepeat(this.$tabStrings["\t"],i)),t.substr(i)):t},this.$renderWrappedLine=function(e,t,n,i){for(var r=0,a=0,s=n[0],c=0,l=0;l=s;)c=this.$renderToken(e,c,u,d.substring(0,s-r)),d=d.substring(s-r),r=s,i||e.push("","
"),e.push(o.stringRepeat(" ",n.indent)),c=0,s=n[++a]||Number.MAX_VALUE;0!=d.length&&(r+=d.length,c=this.$renderToken(e,c,u,d))}}},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],r=i.value;this.displayIndentGuides&&(r=this.renderIndentGuide(e,r)),r&&(n=this.$renderToken(e,n,i,r));for(var o=1;o"),r.length){var o=this.session.getRowSplitData(t);o&&o.length?this.$renderWrappedLine(e,r,o,n):this.$renderSimpleLine(e,r)}this.showInvisibles&&(i&&(t=i.end.row),e.push("",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),n||e.push("
")},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];var r=n.getTokens(e);return t.walk((function(e,t,o,a,s){null!=e?i.push({type:"fold",value:e}):(s&&(r=n.getTokens(t)),r.length&&function(e,t,n){for(var r=0,o=0;o+e[r].value.lengthn-t&&(a=a.substring(0,n-t)),i.push({type:e[r].type,value:a}),o=t+a.length,r+=1);on?i.push({type:e[r].type,value:a.substring(0,n-o)}):i.push(e[r]),o+=a.length,r+=1}}(r,a,o))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(s.prototype),t.Text=s})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){var i,r=e("../lib/dom"),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===i&&(i=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(i?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||i||(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;ne.height+e.offset||o.top<0)&&n>1)){var a=(this.cursors[i++]||this.addCursor()).style;this.drawCursor?this.drawCursor(a,o,e,t[n],this.session):(a.left=o.left+"px",a.top=o.top+"px",a.width=e.characterWidth+"px",a.height=e.lineHeight+"px")}}for(;this.cursors.length>i;)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){var i=e("./lib/oop"),r=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,c=function(e){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){i.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(c.prototype);var l=function(e,t){c.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=r.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(l,c),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var u=function(e,t){c.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(u,c),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=u,t.VScrollBar=l,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){var i=e("./lib/event"),r=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;i.nextFrame((function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)}),this.window)}}}).call(r.prototype),t.RenderLoop=r})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),r=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),c||this.$testFractionalRect(),this.$measureNode.innerHTML=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){i.implement(this,s),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=r.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(n){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=o.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){var i=e("./lib/oop"),r=e("./lib/dom"),o=e("./config"),a=e("./lib/useragent"),s=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,m=e("./layer/font_metrics").FontMetrics,f=e("./lib/event_emitter").EventEmitter;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}',"ace_editor.css");var g=function(e,t){var n=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,f),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var r=this.container;i||(i=r.clientHeight||r.scrollHeight),n||(n=r.clientWidth||r.scrollWidth);var o=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,o=this.$size,a={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};return i&&(e||o.height!=i)&&(o.height=i,r|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||o.width!=n)&&(r|=this.CHANGE_SIZE,o.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",o.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)),o.$dirty=!n||!i,r&&this._signal("resize",a),r},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var i=this.textarea.style,r=this.lineHeight;if(t<0||t>e.height-r)i.top=i.left="0";else{var o=this.characterWidth;if(this.$composition){var a=this.textarea.value.replace(/^\x01+/,"");o*=this.session.$getStringScreenWidth(a)[0]+2,r+=2}(n-=this.scrollLeft)>this.$size.scrollerWidth-o&&(n=this.$size.scrollerWidth-o),n+=this.gutterWidth,i.height=r+"px",i.width=o+"px",i.left=Math.min(n,this.$size.scrollerWidth-o)+"px",i.top=Math.min(t,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=this.scrollTop%this.lineHeight,l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=u;var d=this.scrollMargin;this.session.setScrollTop(Math.max(-d.top,Math.min(this.scrollTop,i-t.scrollerHeight+d.bottom))),this.session.setScrollLeft(Math.max(-d.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+d.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+u<0||this.scrollTop>d.top),p=s!==h;p&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var m,f,g=Math.ceil(l/this.lineHeight)-1,_=Math.max(0,Math.round((this.scrollTop-c)/this.lineHeight)),b=_+g,v=this.lineHeight;_=e.screenToDocumentRow(_,0);var y=e.getFoldLine(_);y&&(_=y.start.row),m=e.documentToScreenRow(_,0),f=e.getRowLength(_)*v,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(b)*v+f,c=this.scrollTop-m*v;var w=0;return this.layerConfig.width!=r&&(w=this.CHANGE_H_SCROLL),(a||p)&&(w=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:_,firstRowScreen:m,lastRow:b,lineHeight:v,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:c,gutterOffset:v?Math.max(0,Math.ceil((c+t.height-t.scrollerHeight)/v)):0,height:this.$size.scrollerHeight},w},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||to?(t&&c+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):c+this.$size.scrollerHeight-sr?(r=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,o=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=Math.round(r);return{row:o,column:a,side:r-a>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=Math.round(i/this.characterWidth),o=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(o,Math.max(r,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),r=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),o=i.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)a(e);else{var i=e||this.$options.theme.initialValue;o.loadModule(["theme",i],a)}function a(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.importCssString(i.cssText,i.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var o="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=i.cssClass,n.theme=i,r.addCssClass(n.container,i.cssClass),r.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(g.prototype),o.defineOptions(g.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=g})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){var i=e("../lib/oop"),r=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,a=e("../config");function s(e,t){var n=function(e,t){var n=t.src;r.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(o){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(n),i.getBlob("application/javascript")}}(e,t),i=(window.URL||window.webkitURL).createObjectURL(n);return new Worker(i)}var c=function(t,n,i,r,o){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)r=r||a.moduleUrl(n.id,"worker");else{var c=this.$normalizePath;r=r||c(e.toUrl("ace/worker/worker.js",null,"_"));var l={};t.forEach((function(t){l[t]=c(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=s(r,n),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:l,module:n.id,classname:i}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,o),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var l=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var i=null,r=!1,s=Object.create(o),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),i&&(r?setTimeout(l):l())},this.setEmitSync=function(e){r=e};var l=function(){var e=c.messageBuffer.shift();e.command?i[e.command].apply(i,e.args):e.event&&s._signal(e.event,e.data)};s.postMessage=function(e){c.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){for(i=new e[n](s);c.messageBuffer.length;)l()}))};l.prototype=c.prototype,t.UIWorkerClient=l,t.WorkerClient=c,t.createWorker=s})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){var i=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,i,r,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new i(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),r&&(this.length+=n),r&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(c=this.others[a]).row,column:c.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var c;s={row:(c=this.others[a]).row,column:c.column+o};this.doc.remove(new i(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,r){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),r,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var i=this.isBackwards(),o=n.start.row,a=n.end.row;if(o==a){if(i)var s=n.end,c=n.start;else s=n.start,c=n.end;return this.addRange(r.fromPoints(c,c)),void this.addRange(r.fromPoints(s,s))}var l=[],u=this.getLineRange(o,!0);u.start.column=n.start.column,l.push(u);for(var d=o+1;d1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.selectionLead),o=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(i,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],o=e.column0;)b--;if(b>0)for(var v=0;i[v].isEmpty();)v++;for(var y=b;y>=v;y--)i[y].isEmpty()&&i.splice(y,1)}return i}}.call(o.prototype);var h=e("./editor").Editor;function p(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(l.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var r=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&r?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()})),s.addListener(t,"keyup",i),s.addListener(t,"blur",i)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var r=t.indexOf(i);-1!=r&&t.splice(r,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,r=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,c=this.selection,l=c.rangeList,u=(r?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=c._eventRegistry;c._eventRegistry={};var h=new o(s);this.inVirtualSelectionMode=!0;for(var p=u.length;p--;){if(a)for(;p>0&&u[p].start.row==u[p-1].end.row;)p--;h.fromOrientedRange(u[p]),h.index=p,this.selection=s.selection=h;var m=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===m||(i=m),h.toOrientedRange(u[p])}h.detach(),this.selection=s.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=d,c.mergeOverlappingRanges();var f=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),f&&f.from==f.to&&this.renderer.animateScrolling(f.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;ia&&(a=n.column),iu?e.insert(i,c.stringRepeat(" ",o-u)):e.remove(new r(i.row,i.column,i.row,i.column-o+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),d=u.start.row,h=u.end.row,p=d==h;if(p){var m,f=this.session.getLength();do{m=this.session.getLine(h)}while(/[=:]/.test(m)&&++h0);d<0&&(d=0),h>=f&&(h=f-1)}var g=this.session.removeFullLines(d,h);g=this.$reAlignText(g,p),this.session.insert({row:d,column:0},g.join("\n")+"\n"),p||(u.start.column=0,u.end.column=g[g.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,i,r,o=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,r=t[3].length,t):(n+i+r!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),it[3].length&&(r=t[3].length),t):[e]})).map(t?l:o?a?function(e){return e[2]?s(n+i-e[2].length)+e[2]+s(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?s(n)+e[2]+s(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function s(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?s(n)+e[2]+s(i-e[2].length+r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(h.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=p,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){p(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../../range").Range,r=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var r=/\S/,o=e.getLine(t),a=o.search(r);if(-1!=a){for(var s=n||o.length,c=e.getLength(),l=t,u=t;++tl){var h=e.getLine(u).length;return new i(l,s,u,h)}}},this.openingBracketBlock=function(e,t,n,r,o){var a={row:n,column:r+1},s=e.$findClosingBracket(t,a,o);if(s){var c=e.foldWidgets[s.row];return null==c&&(c=e.getFoldWidget(s.row)),"start"==c&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),i.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,r,o){var a={row:n,column:r},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,i.fromPoints(s,a)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){e("./lib/oop");var i=e("./lib/dom");function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}e("./range").Range,function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,r=i.start.row,o=i.end.row,a="add"==e.action,s=r+1;s0&&!i[r];)r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=r;a<=o;a++){var s=i[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var c=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=c-n.offset+"px";var l=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(l-=t.scrollLeft),s.el.style.left=l+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}.call(r.prototype),t.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){var i=e("../line_widgets").LineWidgets,r=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,c=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():s-=t;var l,u=function(e,t,n){var i=e.getAnnotations().sort(o.comparePoints);if(i.length){var r=function(e,t,n){for(var i=0,r=e.length-1;i<=r;){var o=i+r>>1,a=n(t,e[o]);if(a>0)i=o+1;else{if(!(a<0))return o;r=o-1}}return-(i+1)}(i,{row:t,column:-1},o.comparePoints);r<0&&(r=-r-1),r>=i.length?r=n>0?0:i.length-1:0===r&&n<0&&(r=i.length-1);var a=i[r];if(a&&n){if(a.row===t){do{a=i[r+=n]}while(a&&a.row===t);if(!a)return i.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=i[r+=n]}while(a&&a.row==t);return s.length&&s}}}(n,s,t);if(u){var d=u[0];a.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,a.row=d.row,l=e.renderer.$gutterLayer.$annotations[a.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var h={row:a.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},p=h.el.appendChild(r.createElement("div")),m=h.el.appendChild(r.createElement("div"));m.className="error_widget_arrow "+l.className;var f=e.renderer.$cursorLayer.getPixelPosition(a).left;m.style.left=f+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",p.className="error_widget "+l.className,p.innerHTML=l.text.join("
"),p.appendChild(r.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},r.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,n){e("./lib/fixoldbrowsers");var i=e("./lib/dom"),r=e("./lib/event"),o=e("./editor").Editor,a=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,c=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.edit=function(e){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var s=e;a=s.value,e=i.createElement("pre"),s.parentNode.replaceChild(e,s)}else e&&(a=i.getInnerText(e),e.innerHTML="");var l=t.createEditSession(a),u=new o(new c(e));u.setSession(l);var d={document:l,editor:u,onResize:u.resize.bind(u,null)};return s&&(d.textarea=s),r.addListener(window,"resize",d.onResize),u.on("destroy",(function(){r.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),u.container.env=u.env=d,u},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new s),n},t.EditSession=a,t.UndoManager=s,t.version="1.2.9"})),ace.acequire(["ace/ace"],(function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}));var Qf=window.ace.acequire("ace/ace"),eg={id:"ace/mode/json_worker",src:'"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/\'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={\'"\':\'"\',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:"\t"},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected \'"+c+"\' instead of \'"+ch+"\'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if(\'"\'===ch)for(;next();){if(\'"\'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected \'"+ch+"\'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error(\'Duplicate key "\'+key+\'"\'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case\'"\':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0\n}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'};ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){var i=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};i.inherits(o,r),t.JsonHighlightRules=o})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,r=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var r=n[1].length,o=e.findMatchingBracket({row:t,column:r});if(!o||o.row==t)return 0;var a=this.$getIndent(e.getLine(o.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){var i=e("../../lib/oop"),r=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(e,t,n);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(e,t,n,i){var r,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(r=o.match(this.foldingStartMarker)){var a=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,a);var s=e.getCommentFoldRange(n,a+r[0].length,1);return s&&!s.isMultiLine()&&(i?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(r=o.match(this.foldingStopMarker))){a=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,a):e.getCommentFoldRange(n,a,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++tl)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(i==l)break}s=t}}return new r(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++na)return new r(a,i,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){var i=e("../lib/oop"),r=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new c};i.inherits(u,r),function(){this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t);"start"==e&&(t.match(/^.*[\{\(\[]\s*$/)&&(i+=n));return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new l(["ace"],eg,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u})),ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){var i=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(e,t,n,i){var r=/^\s*/.exec(i)[0];return n.length<1?n.push(this.next):n[0]="mlString",n.length<2?n.push(r.length):n[1]=r.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(e,t,n){return n[1]>=e.length?(this.next="start",n.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};i.inherits(o,r),t.YamlHighlightRules=o})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,r=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var r=n[1].length,o=e.findMatchingBracket({row:t,column:r});if(!o||o.row==t)return 0;var a=this.$getIndent(e.getLine(o.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r})),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],(function(e,t,n){var i=e("../../lib/oop"),r=e("./fold_mode").FoldMode,o=e("../../range").Range,a=t.FoldMode=function(){};i.inherits(a,r),function(){this.getFoldWidgetRange=function(e,t,n){var i=this.indentationBlock(e,n);if(i)return i;var r=/\S/,a=e.getLine(n),s=a.search(r);if(-1!=s&&"#"==a[s]){for(var c=a.length,l=e.getLength(),u=n,d=n;++nu){var p=e.getLine(d).length;return new o(u,c,d,p)}}},this.getFoldWidget=function(e,t,n){var i=e.getLine(n),r=i.search(/\S/),o=e.getLine(n+1),a=e.getLine(n-1),s=a.search(/\S/),c=o.search(/\S/);if(-1==r)return e.foldWidgets[n-1]=-1!=s&&s=0;--r){var o=this.leading[r];t.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var i=this.trailing[n];i.start>=e.end.offset&&t.unshift(i.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var o=r.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];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 r=t.leadingComments[i];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(i,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(i=this.leading.length-1;i>=0;--i){var o;(o=this.leading[i]).start<=e.start.offset&&(n.unshift(o.comment),this.leading.splice(i,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===i.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",i={type:n,value:e.value};if(e.range&&(i.range=e.range),e.loc&&(i.loc=e.loc),this.comments.push(i),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},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=r},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,n){var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),a=n(5),s=n(6),c=n(7),l=n(8),u=n(13),d=n(14);function h(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:t=e.name;break;case s.JSXSyntax.JSXNamespacedName:var n=e;t=h(n.namespace)+":"+h(n.name);break;case s.JSXSyntax.JSXMemberExpression:var i=e;t=h(i.object)+"."+h(i.property)}return t}u.TokenName[100]="JSXIdentifier",u.TokenName[101]="JSXText";var p=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return r(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="&",n=!0,i=!1,r=!1,a=!1;!this.scanner.eof()&&n&&!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:r="#"===s;break;case 3:r&&(n=(a="x"===s)||o.Character.isDecimalDigit(s.charCodeAt(0)),r=r&&!a);break;default:n=(n=n&&!(r&&!o.Character.isDecimalDigit(s.charCodeAt(0))))&&!(a&&!o.Character.isHexDigit(s.charCodeAt(0)))}}if(n&&i&&t.length>2){var c=t.substr(1,t.length-2);r&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):a&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):r||a||!d.XHTMLEntities[c]||(t=d.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:s=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],i="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==n;)i+="&"===c?this.scanXHTMLEntity(n):c;return{type:8,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),s=46===r&&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 n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,o.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\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 n=t;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,i))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(r,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(i,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,n))},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(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},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(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,i,n))},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 n=this.parseJSXElementName(),i=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(n,r,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(),n=this.nextJSXText();if(n.start0))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(),n=[],i=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:i,children:n});n=r.children,i=r.closing}return this.finalize(e,new a.JSXElement(t,n,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=p},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={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&&n.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&&n.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,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=function(e){this.type=i.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=r;var o=function(e,t,n){this.type=i.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};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 u=function(e,t){this.type=i.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=u;var d=function(e,t){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=d;var h=function(e,t,n){this.type=i.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXOpeningElement=h;var p=function(e){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=p;var m=function(e,t){this.type=i.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=m},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,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){this.type=i.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=r;var o=function(e){this.type=i.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=o;var a=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.ArrowFunctionExpression=a;var s=function(e,t,n){this.type=i.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};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,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncArrowFunctionExpression=l;var u=function(e,t,n){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=u;var d=function(e,t,n){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=d;var h=function(e){this.type=i.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=h;var p=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BinaryExpression=p;var m=function(e){this.type=i.Syntax.BlockStatement,this.body=e};t.BlockStatement=m;var f=function(e){this.type=i.Syntax.BreakStatement,this.label=e};t.BreakStatement=f;var g=function(e,t){this.type=i.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=g;var _=function(e,t){this.type=i.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=_;var b=function(e){this.type=i.Syntax.ClassBody,this.body=e};t.ClassBody=b;var v=function(e,t,n){this.type=i.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassDeclaration=v;var y=function(e,t,n){this.type=i.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=y;var w=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=w;var x=function(e,t,n){this.type=i.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ConditionalExpression=x;var A=function(e){this.type=i.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=A;var N=function(){this.type=i.Syntax.DebuggerStatement};t.DebuggerStatement=N;var k=function(e,t){this.type=i.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=k;var C=function(e,t){this.type=i.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=C;var E=function(){this.type=i.Syntax.EmptyStatement};t.EmptyStatement=E;var S=function(e){this.type=i.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=S;var O=function(e){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=O;var F=function(e,t,n){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportNamedDeclaration=F;var D=function(e,t){this.type=i.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=D;var B=function(e){this.type=i.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=B;var L=function(e,t,n){this.type=i.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForInStatement=L;var M=function(e,t,n){this.type=i.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForOfStatement=M;var T=function(e,t,n,r){this.type=i.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.ForStatement=T;var R=function(e,t,n,r){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionDeclaration=R;var $=function(e,t,n,r){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=$;var I=function(e){this.type=i.Syntax.Identifier,this.name=e};t.Identifier=I;var j=function(e,t,n){this.type=i.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.IfStatement=j;var P=function(e,t){this.type=i.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=P;var z=function(e){this.type=i.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=z;var U=function(e){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=U;var W=function(e,t){this.type=i.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=W;var H=function(e,t){this.type=i.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=H;var V=function(e,t){this.type=i.Syntax.Literal,this.value=e,this.raw=t};t.Literal=V;var G=function(e,t){this.type=i.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=G;var q=function(e,t,n,r,o){this.type=i.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this.static=o};t.MethodDefinition=q;var K=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=K;var X=function(e,t){this.type=i.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=X;var J=function(e){this.type=i.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=J;var Y=function(e){this.type=i.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=Y;var Z=function(e,t,n,r,o,a){this.type=i.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=o,this.shorthand=a};t.Property=Z;var Q=function(e,t,n,r){this.type=i.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};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 ne=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=ne;var ie=function(e){this.type=i.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=ie;var re=function(e){this.type=i.Syntax.SpreadElement,this.argument=e};t.SpreadElement=re;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 ue=function(e,t){this.type=i.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=ue;var de=function(e,t){this.type=i.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=de;var he=function(){this.type=i.Syntax.ThisExpression};t.ThisExpression=he;var pe=function(e){this.type=i.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=pe;var me=function(e,t,n){this.type=i.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.TryStatement=me;var fe=function(e,t){this.type=i.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=fe;var ge=function(e,t,n){this.type=i.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.UpdateExpression=ge;var _e=function(e,t){this.type=i.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=_e;var be=function(e,t){this.type=i.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=be;var ve=function(e,t){this.type=i.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=ve;var ye=function(e,t){this.type=i.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=ye;var we=function(e,t){this.type=i.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=we},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(10),o=n(11),a=n(7),s=n(12),c=n(2),l=n(13),u="ArrowParameterPlaceHolder",d=function(){function e(e,t,n){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=n,this.errorHandler=new r.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=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=i,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,r},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,n,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(),n=this.getTokenRaw(t),e=this.finalize(i,new a.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new a.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new a.Literal(null,n));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(),n=this.getTokenRaw(t),e=this.finalize(i,new a.RegexLiteral(t.regex,n,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 n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}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,n=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=n,i},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,i,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var i=this.parseFormalParameters(),r=this.parsePropertyMethod(i);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new a.AsyncFunctionExpression(null,i.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,o.Messages.StrictOctalLiteral);var i=this.getTokenRaw(n);e=this.finalize(t,new a.Literal(n.value,i));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}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,n=this.createNode(),i=this.lookahead,r=null,s=null,c=!1,l=!1,u=!1,d=!1;if(3===i.type){var h=i.value;this.nextToken(),c=this.match("["),r=(d=!(this.hasLineTerminator||"async"!==h||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new a.Identifier(h))}else this.match("*")?this.nextToken():(c=this.match("["),r=this.parseObjectPropertyKey());var p=this.qualifiedPropertyName(this.lookahead);if(3===i.type&&!d&&"get"===i.value&&p)t="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(3===i.type&&!d&&"set"===i.value&&p)t="set",c=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(7===i.type&&"*"===i.value&&p)t="init",c=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!d)!c&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===i.type)if(h=this.finalize(n,new a.Identifier(i.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),u=!0;var m=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(n,new a.AssignmentPattern(h,m))}else u=!0,s=h;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new a.Property(t,r,c,s,l,u))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),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(),n=t.value,r=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],i=this.parseTemplateHead();for(n.push(i);!i.tail;)t.push(this.parseExpression()),i=this.parseTemplateElement(),n.push(i);return this.finalize(e,new a.TemplateLiteral(n,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")||this.expect("=>"),e={type:u,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:u,params:[e],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(i=!0,e={type:u,params:[e],async:!1}),!i)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(o=0;o")){for(var c=0;c0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],o=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[o,n.value,s],l=[i];!((i=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&i<=l[l.length-1];){s=c.pop();var u=c.pop();l.pop(),o=c.pop(),r.pop();var d=this.startNode(r[r.length-1]);c.push(this.finalize(d,new a.BinaryExpression(u,o,s)))}c.push(this.nextToken().value),l.push(i),r.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var h=c.length-1;t=c[h];for(var p=r.pop();h>1;){var m=r.pop(),f=p&&p.lineStart;d=this.startNode(m,f),u=c[h-1],t=this.finalize(d,new a.BinaryExpression(u,c[h-2],t)),h-=2,p=m}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,i,r)),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 n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var h=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var m=this.startNode(t);this.expect("=>");var f=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,f=this.parseFunctionSourceElements(),this.context.allowIn=g}else f=this.isolateCoverGrammar(this.parseAssignmentExpression);var _=f.type!==c.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=r?this.finalize(m,new a.AsyncArrowFunctionExpression(s.params,f,_)):this.finalize(m,new a.ArrowFunctionExpression(s.params,f,_)),this.context.strict=l,this.context.allowStrictDirective=d,this.context.allowYield=h,this.context.await=p}}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(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(b.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var v=(n=this.nextToken()).value,y=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(v,e,y)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(n))}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 n=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 r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&i.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new a.VariableDeclarator(i,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},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(),n=this.nextToken().value;i.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var i=this.parsePattern(e,t);return this.finalize(n,new a.RestElement(i))},e.prototype.parseArrayPattern=function(e,t){var n=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(n,new a.ArrayPattern(i))},e.prototype.parsePropertyPattern=function(e,t){var n,i,r=this.createNode(),o=!1,s=!1;if(3===this.lookahead.type){var c=this.lookahead;n=this.parseVariableIdentifier();var l=this.finalize(r,new a.Identifier(c.value));if(this.match("=")){e.push(c),s=!0,this.nextToken();var u=this.parseAssignmentExpression();i=this.finalize(this.startNode(c),new a.AssignmentPattern(l,u))}else this.match(":")?(this.expect(":"),i=this.parsePatternWithDefault(e,t)):(e.push(c),s=!0,i=l)}else o=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),i=this.parsePatternWithDefault(e,t);return this.finalize(r,new a.Property("init",n,o,i,!1,s))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new a.ObjectPattern(i))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,i=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,i=this.finalize(this.startNode(n),new a.AssignmentPattern(i,o))}return i},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new a.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(n,i))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},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(),n=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(),n=this.parseIfClause())),this.finalize(t,new a.IfStatement(i,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=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(n,i))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=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(n,e))},e.prototype.parseForStatement=function(){var e,t,n,i=null,r=null,s=null,l=!0,u=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var d=this.context.allowIn;this.context.allowIn=!1;var h=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=d,1===h.length&&this.matchKeyword("in")){var p=h[0];p.init&&(p.id.type===c.Syntax.ArrayPattern||p.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),i=this.finalize(i,new a.VariableDeclaration(h,"var")),this.nextToken(),e=i,t=this.parseExpression(),i=null}else 1===h.length&&null===h[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new a.VariableDeclaration(h,"var")),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,l=!1):(i=this.finalize(i,new a.VariableDeclaration(h,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var m=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(d=this.context.allowIn,this.context.allowIn=!1,h=this.parseBindingList(m,{inFor:!0}),this.context.allowIn=d,1===h.length&&null===h[0].init&&this.matchKeyword("in")?(i=this.finalize(i,new a.VariableDeclaration(h,m)),this.nextToken(),e=i,t=this.parseExpression(),i=null):1===h.length&&null===h[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new a.VariableDeclaration(h,m)),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,l=!1):(this.consumeSemicolon(),i=this.finalize(i,new a.VariableDeclaration(h,m)))):(i=this.finalize(i,new a.Identifier(m)),this.nextToken(),e=i,t=this.parseExpression(),i=null)}else{var f=this.lookahead;if(d=this.context.allowIn,this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=d,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 g=[i];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(f),new a.SequenceExpression(g))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(s=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var _=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=_}return void 0===e?this.finalize(u,new a.ForStatement(i,r,s,n)):l?this.finalize(u,new a.ForInStatement(e,t,n)):this.finalize(u,new a.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.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 n=this.parseVariableIdentifier(),i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}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 n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(n,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 n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var i=[],r=!1;for(this.expect("{");!this.match("}");){var s=this.parseSwitchCase();null===s.test&&(r&&this.throwError(o.Messages.MultipleDefaultsInSwitch),r=!0),i.push(s)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new a.SwitchStatement(t,i))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var i=n,r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(o.Messages.Redeclaration,"Label",i.name),this.context.labelSet[r]=!0;var s=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword("function")){var l=this.lookahead,u=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,o.Messages.StrictFunction):u.generator&&this.tolerateUnexpectedToken(l,o.Messages.GeneratorInLegacyContext),s=u}else s=this.parseStatement();delete this.context.labelSet[r],e=new a.LabeledStatement(i,s)}else this.consumeSemicolon(),e=new a.ExpressionStatement(n);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=[],n=this.parsePattern(t),i={},r=0;r0&&this.tolerateError(o.Messages.BadGetterArity);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,i,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(o.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,i,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.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,n=!1;if(!this.hasLineTerminator){var i=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(e,new a.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),i="",r=null,s=null,c=!1,l=!1,u=!1,d=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,u=!0,c=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var h=this.lookahead.value;":"!==h&&"("!==h&&"*"!==h&&(d=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var p=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&p?(i="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):"set"===t.value&&p&&(i="set",c=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):7===t.type&&"*"===t.value&&p&&(i="init",c=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0),!i&&r&&this.match("(")&&(i="init",s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),i||this.throwUnexpectedToken(this.lookahead),"init"===i&&(i="method"),c||(u&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!u&&this.isPropertyKey(r,"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(n,new a.MethodDefinition(r,c,s,i,u))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(t,new a.ClassDeclaration(i,r,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(n,i,r))},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(),n=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=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(n,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 n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.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(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,n))},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 n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(n)));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 r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(n,[],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=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=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 n=new Error(e);try{throw n}catch(i){Object.create&&Object.defineProperty&&(n=Object.create(i),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,i){var r="Line "+t+": "+i,o=this.constructError(r,n);return o.index=e,o.lineNumber=t,o.description=i,o},e.prototype.throwError=function(e,t,n,i){throw this.createError(e,t,n,i)},e.prototype.tolerateError=function(e,t,n,i){var r=this.createError(e,t,n,i);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},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,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(4),o=n(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,n,i=[];for(this.trackComment&&(i=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(o)){if(this.trackComment){n.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:n};i.push(a)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,i}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},i.push(a)),i},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],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(r.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};n.push(o)}return n}++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},n.push(o)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=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!==n)break;this.index+=2,i=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(i))}else if(t&&45===n){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!==n||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 n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,i=0;i1114111||"}"!==e)&&this.throwUnexpectedToken(),r.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(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.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&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.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&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=s(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+s(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+s(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var i=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=i}return{type:e,value:n,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()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.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,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",i=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(i=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return i||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,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=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&i.throwUnexpectedToken(o.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(r){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++],n=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){a=!0;break}"["===e&&(n=!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(!r.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 n=this.index,i=this.scanHexEscape("u");if(null!==i)for(e+=i;n=55296&&e<57343&&r.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]="",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,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(12),o=n(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 n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;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 r.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;t0?r-4:r;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=ag[e.charCodeAt(n)]<<2|ag[e.charCodeAt(n+1)]>>4,a[s++]=255&t);1===o&&(t=ag[e.charCodeAt(n)]<<10|ag[e.charCodeAt(n+1)]<<4|ag[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},fromByteArray:function(e){for(var t,n=e.length,i=n%3,r=[],o=16383,a=0,s=n-i;as?s:a+o));1===i?(t=e[n-1],r.push(og[t>>2]+og[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],r.push(og[t>>10]+og[t>>4&63]+og[t<<2&63]+"="));return r.join("")}},og=[],ag=[],sg="undefined"!=typeof Uint8Array?Uint8Array:Array,cg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lg=0,ug=cg.length;lg0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function hg(e,t,n){for(var i,r,o=[],a=t;a>18&63]+og[r>>12&63]+og[r>>6&63]+og[63&r]);return o.join("")}ag["-".charCodeAt(0)]=62,ag["_".charCodeAt(0)]=63;var pg={}; /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */function mg(e){return Object.prototype.toString.call(e)}pg.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,c=(1<>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=l}return(p?-1:1)*a*Math.pow(2,o-i)},pg.write=function(e,t,n,i,r,o){var a,s,c,l=8*o-r-1,u=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,m=i?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=m,s/=256,r-=8);for(a=a<0;e[n+p]=255&a,p+=m,a/=256,l-=8);e[n+p-m]|=128*f}, /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ function(e){const t=rg,n=pg,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 r=2147483647;function o(e){if(e>r)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,n){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,n)}function s(e,t,n){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 n=0|p(e,t);let i=o(n);const r=i.write(e,t);r!==n&&(i=i.slice(0,r));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return d(e,t,n);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,n);const r=function(e){if(a.isBuffer(e)){const t=0|h(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?o(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);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|h(e))}function u(e){const t=e.length<0?0:0|h(e.length),n=o(t);for(let i=0;i=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(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 n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return i?-1:H(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function f(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function g(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:_(e,t,n,i,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,i,r){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,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){let i=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let i=0;ir&&(i=r):i=r;const o=t.length;let a;for(i>o/2&&(i=o/2),a=0;a>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function A(e,n,i){return 0===n&&i===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,i))}function N(e,t,n){n=Math.min(e.length,n);const i=[];let r=t;for(;r239?4:t>223?3:t>191?2:1;if(r+a<=n){let n,i,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[r+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[r+1],i=e[r+2],128==(192&n)&&128==(192&i)&&(c=(15&t)<<12|(63&n)<<6|63&i,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[r+1],i=e[r+2],s=e[r+3],128==(192&n)&&128==(192&i)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<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),r+=a}return function(e){const t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);let n="",i=0;for(;ii.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(i,r)):Uint8Array.prototype.set.call(i,t,r);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,r)}r+=t.length}return i},a.byteLength=p,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;tn&&(t+=" ... "),""},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,n,i,r){if(q(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===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0);const c=Math.min(o,s),l=this.slice(i,r),u=e.slice(t,n);for(let a=0;a>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<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,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":case"latin1":case"binary":return y(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);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 k=4096;function C(e,t,n){let i="";n=Math.min(e.length,n);for(let r=t;ri)&&(n=i);let r="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,r,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function B(e,t,n,i,r){P(t,i,r,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function L(e,t,n,i,r){P(t,i,r,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,i,r,o){return t=+t,i>>>=0,o||M(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function R(e,t,i,r,o){return t=+t,i>>>=0,o||M(e,0,i,8),n.write(e,t,i,r,52,8),i+8}a.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||F(e,t,this.length);let i=this[e],r=1,o=0;for(;++o>>=0,t>>>=0,n||F(e,t,this.length);let i=this[e+--t],r=1;for(;t>0&&(r*=256);)i+=this[e+--t]*r;return i},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(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||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=J((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(i)+(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(i)<>>=0,t>>>=0,n||F(e,t,this.length);let i=this[e],r=1,o=0;for(;++o=r&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let i=t,r=1,o=this[e+--i];for(;i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(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||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=J((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<>>=0,t||F(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){D(this,e,t,n,Math.pow(2,8*n)-1,0)}let r=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!i){D(this,e,t,n,Math.pow(2,8*n)-1,0)}let r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(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,n){return e=+e,t>>>=0,n||D(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,n){return e=+e,t>>>=0,n||D(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,n){return e=+e,t>>>=0,n||D(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=J((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=J((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}let r=0,o=1,a=0;for(this[t]=255&e;++r>0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}let r=n-1,o=1,a=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/o>>0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(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,n){return e=+e,t>>>=0,n||D(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=J((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=J((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,i){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=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>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r=i+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function P(e,t,n,i,r,o){if(e>n||e3?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 <= ${n}${i}`,new $.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||U(t,e.length-(n+1))}(i,r,o)}function z(e,t){if("number"!=typeof e)throw new $.ERR_INVALID_ARG_TYPE(t,"number",e)}function U(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new $.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?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,n){let i=`The value of "${e}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=j(String(n)):"bigint"==typeof n&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=j(r)),r+="n"),i+=` It must be ${t}. Received ${r}`,i}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const i=e.length;let r=null;const o=[];for(let a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,i){let r;for(r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let r=0;r<16;++r)t[i+r]=e[n]+e[r]}return t}();function J(e){return"undefined"==typeof BigInt?Y:e}function Y(){throw new Error("BigInt not supported")}}(ig),ng.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===mg(e)},ng.isBoolean=function(e){return"boolean"==typeof e},ng.isNull=function(e){return null===e},ng.isNullOrUndefined=function(e){return null==e},ng.isNumber=function(e){return"number"==typeof e},ng.isString=function(e){return"string"==typeof e},ng.isSymbol=function(e){return"symbol"==typeof e},ng.isUndefined=function(e){return void 0===e},ng.isRegExp=function(e){return"[object RegExp]"===mg(e)},ng.isObject=function(e){return"object"==typeof e&&null!==e},ng.isDate=function(e){return"[object Date]"===mg(e)},ng.isError=function(e){return"[object Error]"===mg(e)||e instanceof Error},ng.isFunction=function(e){return"function"==typeof e},ng.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},ng.isBuffer=ig.Buffer.isBuffer;const fg=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];let gg;const _g=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 bg(e,t){if(e===t)return 0;if(~~e===e&&~~t===t){if(0===e||0===t)return e=0)return-1;if(e>=0)return 1;e=-e,t=-t}const n=_g(e),i=_g(t);let r=0;return ni&&(t*=fg[n-i-1],e/=10,r=1),e===t?r:e=0;)r++;return r-t}function yg(e,t,n){for(n--;t>>1;r(n,e[t])<0?s=t:a=t+1}let c=i-a;switch(c){case 3:e[a+3]=e[a+2],gg[a+3]=gg[a+2];case 2:e[a+2]=e[a+1],gg[a+2]=gg[a+1];case 1:e[a+1]=e[a],gg[a+1]=gg[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],gg[a+c]=gg[a+c-1],c--}e[a]=n,gg[a]=o}}function xg(e,t,n,i,r,o){let a=0,s=0,c=1;if(o(e,t[n+r])>0){for(s=i-r;c0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}else{for(s=r+1;cs&&(c=s);const i=a;a=r-c,c=r-i}for(a++;a>>1);o(e,t[n+i])>0?a=i+1:c=i}return c}function Ag(e,t,n,i,r,o){let a=0,s=0,c=1;if(o(e,t[n+r])<0){for(s=r+1;cs&&(c=s);const i=a;a=r-c,c=r-i}else{for(s=i-r;c=0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}for(a++;a>>1);o(e,t[n+i])<0?c=i:a=i+1}return c}class Ng{constructor(e,t){this.array=e,this.compare=t;const{length:n}=e;this.length=n,this.minGallop=7,this.tmpStorageLength=n<512?n>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=n<120?5:n<1542?10:n<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])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]=7||n>=7);if(p)break;h<0&&(h=0),h+=2}if(this.minGallop=h,h<1&&(this.minGallop=1),1===t){for(c=0;c=0;c--)o[p+c]=o[h+c],gg[p+c]=gg[h+c];return o[d]=a[u],void(gg[d]=s[u])}let{minGallop:m}=this;for(;;){let n=0,f=0,g=!1;do{if(r(a[u],o[l])<0){if(o[d]=o[l],gg[d]=gg[l],d--,l--,n++,f=0,0==--t){g=!0;break}}else if(o[d]=a[u],gg[d]=s[u],d--,u--,f++,n=0,1==--i){g=!0;break}}while((n|f)=0;c--)o[p+c]=o[h+c],gg[p+c]=gg[h+c];if(0===t){g=!0;break}}if(o[d]=a[u],gg[d]=s[u],d--,u--,1==--i){g=!0;break}if(f=i-xg(o[l],a,0,i,i-1,r),0!==f){for(d-=f,u-=f,i-=f,p=d+1,h=u+1,c=0;c=7||f>=7);if(g)break;m<0&&(m=0),m+=2}if(this.minGallop=m,m<1&&(this.minGallop=1),1===i){for(d-=t,l-=t,p=d+1,h=l+1,c=t-1;c>=0;c--)o[p+c]=o[h+c],gg[p+c]=gg[h+c];o[d]=a[u],gg[d]=s[u]}else{if(0===i)throw new Error("mergeHigh preconditions were not respected");for(h=d-(i-1),c=0;c=32;)t|=1&e,e>>=1;return e+t}(a);do{if(s=vg(e,n,i,t),sl&&(i=l),wg(e,n,n+i,n+s,t),s=i}c.pushRun(n,s),c.mergeRuns(),a-=s,n+=s}while(0!==a);return c.forceMergeRuns(),gg}};const Cg=Object.prototype.hasOwnProperty;const Eg=(e,t)=>Cg.call(e,t),{isObject:Sg,isArray:Og}=ng,Fg="before",Dg="before-all",Bg="after-all",Lg=[Fg,"after-prop","after-colon","after-value","after"],Mg=[Fg,Dg,Bg].map(Symbol.for),Tg=(e,t)=>Symbol.for(e+":"+t),Rg=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$g=(e,t,n,i,r,o)=>{const a=Tg(r,i);if(!Eg(t,a))return;const s=n===i?a:Tg(r,n);Rg(e,s,t[a]),o&&delete t[a]},Ig=(e,t,n,i,r)=>{Lg.forEach((o=>{$g(e,t,n,i,o,r)}))},jg=(e,t)=>{Mg.forEach((n=>{const i=t[n];i&&Rg(e,n,i)}))};var Pg={SYMBOL_PREFIXES:Lg,PREFIX_BEFORE:Fg,PREFIX_AFTER_PROP:"after-prop",PREFIX_AFTER_COLON:"after-colon",PREFIX_AFTER_VALUE:"after-value",PREFIX_AFTER:"after",PREFIX_BEFORE_ALL:Dg,PREFIX_AFTER_ALL:Bg,BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:undefined,symbol:Tg,define:Rg,copy_comments:Ig,swap_comments:(e,t,n)=>{t!==n&&Lg.forEach((i=>{const r=Tg(i,n);if(!Eg(e,r))return void $g(e,e,n,t,i,!0);const o=e[r];delete e[r],$g(e,e,n,t,i,!0),Rg(e,Tg(i,t),o)}))},assign_non_prop_comments:jg,assign(e,t,n){if(!Sg(e))throw new TypeError("Cannot convert undefined or null to object");if(!Sg(t))return e;if(undefined===n)n=Object.keys(t),jg(e,t);else{if(!Og(n))throw new TypeError("keys must be array or undefined");0===n.length&&jg(e,t)}return((e,t,n)=>(n.forEach((n=>{Eg(t,n)&&(e[n]=t[n],Ig(e,t,n,n))})),e))(e,t,n)}};const{isArray:zg}=ng,{sort:Ug}=kg,{SYMBOL_PREFIXES:Wg,UNDEFINED:Hg,symbol:Vg,copy_comments:Gg,swap_comments:qg}=Pg,Kg=(e,t,n,i,r)=>{Gg(e,t,n+i,n,r)},Xg=(e,t,n,i,r,o)=>{if(r>0){let a=i;for(;a-- >0;)Kg(e,t,n+a,r,o);return}let a=0;for(;a{Wg.forEach((n=>{const i=Vg(n,t);delete e[i]}))};class Yg extends Array{splice(...e){const{length:t}=this,n=super.splice(...e);let[i,r,...o]=e;i<0&&(i+=t),r=1===arguments.length?t-i:Math.min(t-i,r);const{length:a}=o,s=i+r;return Xg(this,this,s,t-s,a-r,!0),n}slice(...e){const{length:t}=this,n=super.slice(...e);if(!n.length)return new Yg;let[i,r]=e;return r===Hg?r=t:r<0&&(r+=t),i<0?i+=t:i===Hg&&(i=0),Xg(n,this,i,r-i,-i),n}unshift(...e){const{length:t}=this,n=super.unshift(...e),{length:i}=e;return i>0&&Xg(this,this,0,t,i,!0),n}shift(){const e=super.shift(),{length:t}=this;return Jg(this,0),Xg(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),(e=>{const{length:t}=e;let n=0;const i=t/2;for(;n{const i=t;t+=zg(e)?e.length:1,e instanceof Yg&&Xg(n,e,0,e.length,i)})),n):n}sort(...e){const t=Ug(this,...e.slice(0,1)),n=Object.create(null);return t.forEach(((e,t)=>{if(e===t)return;const i=((e,t)=>{let n=t;for(;n in e;)n=e[n];return n})(n,e);i!==t&&(n[t]=i,qg(this,t,i))})),this}}var Zg={CommentArray:Yg};const Qg=tg.exports,{CommentArray:e_}=Zg,{PREFIX_BEFORE:t_,PREFIX_AFTER_PROP:n_,PREFIX_AFTER_COLON:i_,PREFIX_AFTER_VALUE:r_,PREFIX_AFTER:o_,PREFIX_BEFORE_ALL:a_,PREFIX_AFTER_ALL:s_,BRACKET_OPEN:c_,BRACKET_CLOSE:l_,CURLY_BRACKET_OPEN:u_,CURLY_BRACKET_CLOSE:d_,COLON:h_,COMMA:p_,MINUS:m_,EMPTY:f_,UNDEFINED:g_,define:__,assign_non_prop_comments:b_}=Pg,v_=e=>Qg.tokenize(e,{comment:!0,loc:!0}),y_=[];let w_=null,x_=null;const A_=[];let N_,k_,C_=!1,E_=!1,S_=null,O_=null,F_=null,D_=null;const B_=()=>{A_.length=y_.length=0,O_=null,N_=g_},L_=e=>Symbol.for(N_!==g_?e+h_+N_:e),M_=(e,t)=>D_?D_(e,t):t,T_=()=>{const e=new SyntaxError(`Unexpected token ${F_.value.slice(0,1)}`);throw Object.assign(e,F_.loc.start),e},R_=()=>{const e=new SyntaxError("Unexpected end of JSON input");throw Object.assign(e,O_?O_.loc.end:{line:1,column:0}),e},$_=()=>{const e=S_[++k_];E_=F_&&e&&F_.loc.end.line===e.loc.start.line||!1,O_=F_,F_=e},I_=()=>(F_||R_(),"Punctuator"===F_.type?F_.value:F_.type),j_=e=>I_()===e,P_=e=>{j_(e)||T_()},z_=e=>{y_.push(w_),w_=e},U_=()=>{w_=y_.pop()},W_=()=>{if(!x_)return;const e=[];for(const n of x_){if(!n.inline)break;e.push(n)}const{length:t}=e;t&&(t===x_.length?x_=null:x_.splice(0,t),__(w_,L_(o_),e))},H_=e=>{x_&&(__(w_,L_(e),x_),x_=null)},V_=e=>{const t=[];for(;F_&&(j_("LineComment")||j_("BlockComment"));){const e=c(s({},F_),{inline:E_});t.push(e),$_()}C_||t.length&&(e?__(w_,L_(e),t):x_=t)},G_=(e,t)=>{t&&A_.push(N_),N_=e},q_=()=>{N_=A_.pop()};function K_(){let e=I_();if(e===u_)return $_(),(()=>{const e={};z_(e),G_(g_,!0);let t,n=!1;for(V_();!(j_(d_)||n&&(H_(r_),P_(p_),$_(),V_(),W_(),j_(d_)));)n=!0,P_("String"),t=JSON.parse(F_.value),G_(t),H_(t_),$_(),V_(n_),P_(h_),$_(),V_(i_),e[t]=M_(t,K_()),V_();return n&&H_(o_),$_(),N_=void 0,n||H_(t_),U_(),q_(),e})();if(e===c_)return $_(),(()=>{const e=new e_;z_(e),G_(g_,!0);let t=!1,n=0;for(V_();!(j_(l_)||t&&(H_(r_),P_(p_),$_(),V_(),W_(),j_(l_)));)t=!0,G_(n),H_(t_),e[n]=M_(n,K_()),n++,V_();return t&&H_(o_),$_(),N_=void 0,t||H_(t_),U_(),q_(),e})();let t,n=f_;switch(e===m_&&($_(),e=I_(),n=m_),e){case"String":case"Boolean":case"Null":case"Numeric":return t=F_.value,$_(),JSON.parse(n+t)}}var X_,J_={parse:(e,t,n)=>{B_(),S_=v_(e),D_=t,C_=n,S_.length||R_(),k_=-1,$_(),z_({}),V_(a_);let i=K_();var r;return V_(s_),F_&&T_(),n||null===i||(r=i,Object(r)!==r&&(i=new Object(i)),b_(i,w_)),U_(),i=M_("",i),B_(),S_.length=0,x_=w_=S_=O_=F_=D_=null,i},tokenize:v_},Y_="",Z_=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 n=e.length*t;if(X_!==e||void 0===X_)X_=e,Y_="";else if(Y_.length>=n)return Y_.substr(0,n);for(;n>Y_.length&&t>1;)1&t&&(Y_+=e),t>>=1,e+=e;return Y_=(Y_+=e).substr(0,n)}; /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */const{isArray:Q_,isObject:eb,isFunction:tb,isNumber:nb,isString:ib}=ng,rb=Z_,{PREFIX_BEFORE_ALL:ob,PREFIX_BEFORE:ab,PREFIX_AFTER_PROP:sb,PREFIX_AFTER_COLON:cb,PREFIX_AFTER_VALUE:lb,PREFIX_AFTER:ub,PREFIX_AFTER_ALL:db,BRACKET_OPEN:hb,BRACKET_CLOSE:pb,CURLY_BRACKET_OPEN:mb,CURLY_BRACKET_CLOSE:fb,COLON:gb,COMMA:_b,EMPTY:bb,UNDEFINED:vb}=Pg,yb=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,wb=e=>`${ab}:${e}`,xb=e=>`${lb}:${e}`,Ab=e=>`${ub}:${e}`,Nb={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},kb=e=>`"${(e=>(yb.lastIndex=0,yb.test(e)?e.replace(yb,(e=>{const t=Nb[e];return"string"==typeof t?t:e})):e))(e)}"`,Cb=(e,t,n,i)=>{const r=e[Symbol.for(t)];if(!r||!r.length)return bb;let o=!1;const a=r.reduce(((e,{inline:t,type:i,value:r})=>(o="LineComment"===i,e+(t?" ":"\n"+n)+((e,t)=>t?`//${e}`:`/*${e}*/`)(r,o))),bb);return i||o?a+"\n"+n:a};let Eb=null,Sb=bb;const Ob=(e,t,n)=>e?t?e+t.trim()+"\n"+n:e.trimRight()+"\n"+n:t?t.trimRight()+"\n"+n:bb,Fb=(e,t,n)=>{const i=Cb(t,ab,n+Sb,!0);return Ob(i,e,n)},Db=(e,t)=>{if(!e)return"null";const n=t+Sb;let i=bb,r=bb,o=!0;return(Q_(Eb)?Eb:Object.keys(e)).forEach((t=>{const a=Bb(t,e,n);if(a===vb)return;o||(i+=_b),o=!1;const s=Ob(r,Cb(e,wb(t),n),n);i+=s||"\n"+n,i+=kb(t)+Cb(e,`${sb}:${t}`,n)+gb+Cb(e,(e=>`${cb}:${e}`)(t),n)+" "+a+Cb(e,xb(t),n),r=Cb(e,Ab(t),n)})),i+=Ob(r,Cb(e,ub,n),n),mb+Fb(i,e,t)+fb};function Bb(e,t,n){let i=t[e];switch(eb(i)&&tb(i.toJSON)&&(i=i.toJSON(e)),tb(Eb)&&(i=Eb.call(t,e,i)),typeof i){case"string":return kb(i);case"number":return Number.isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":return Q_(i)?((e,t)=>{const n=t+Sb,{length:i}=e;let r=bb,o=bb;for(let a=0;a{const i=(e=>ib(e)?e:nb(e)?rb(" ",e):bb)(n);if(!i)return JSON.stringify(e,t);tb(t)||Q_(t)||(t=null),Eb=t,Sb=i;const r=(e=>{if("object"!=typeof e)return!1;const t=Lb.call(e);return Mb.includes(t)})(e)?JSON.stringify(e):Bb("",{"":e},bb);return Eb=null,Sb=bb,eb(e)?Cb(e,ob,bb).trimLeft()+r+Cb(e,db,bb).trimRight():r},{CommentArray:Ib}=Zg,{assign:jb}=Pg;var Pb={parse:Tb,stringify:$b,tokenize:Rb,CommentArray:Ib,assign:jb},zb={},Ub={},Wb={};function Hb(e){return null==e}function Vb(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||""}Wb.isNothing=Hb,Wb.isObject=function(e){return"object"==typeof e&&null!==e},Wb.toArray=function(e){return Array.isArray(e)?e:Hb(e)?[]:[e]},Wb.repeat=function(e,t){var n,i="";for(n=0;n0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(r="",o=this.position;ot/2-1){r=" ... ",o-=5;break}return a=this.buffer.slice(i,o),qb.repeat(" ",e)+n+a+r+"\n"+qb.repeat(" ",e+this.position-i+n.length)+"^"},Kb.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n};var Xb=Kb,Jb=Gb,Yb=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Zb=["scalar","sequence","mapping"];var Qb=function(e,t){var n,i;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Yb.indexOf(t))throw new Jb('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=(n=t.styleAliases||null,i={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){i[String(t)]=e}))})),i),-1===Zb.indexOf(this.kind))throw new Jb('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')},ev=Wb,tv=Gb,nv=Qb;function iv(e,t,n){var i=[];return e.include.forEach((function(e){n=iv(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&i.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===i.indexOf(t)}))}function rv(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 tv("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=iv(this,"implicit",[]),this.compiledExplicit=iv(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function i(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;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"]}}),pv=Wb,mv=Qb,fv=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 gv=/^[-+]?[0-9]+e/;var _v=new ov({include:[av],implicit:[sv,cv,hv,new mv("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!fv.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,i,r;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){r.unshift(parseFloat(e,10))})),t=0,i=1,r.forEach((function(e){t+=e*i,i*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||pv.isNegativeZero(e))},represent:function(e,t){var n;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(pv.isNegativeZero(e))return"-0.0";return n=e.toString(10),gv.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})]}),bv=new ov({include:[_v]}),vv=Qb,yv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),wv=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 xv=new vv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==yv.exec(e)||null!==wv.exec(e))},construct:function(e){var t,n,i,r,o,a,s,c,l=0,u=null;if(null===(t=yv.exec(e))&&(t=wv.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,s,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var Av,Nv=new Qb("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}});try{var kv=require;Av=kv("buffer").Buffer}catch(jx){}var Cv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Ev=new Qb("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=Cv;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=Cv,a=0,s=[];for(t=0;t>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),Av?Av.from?Av.from(s):new Av(s):s},predicate:function(e){return Av&&Av.isBuffer(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=Cv;for(t=0;t>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),Sv=Qb,Ov=Object.prototype.hasOwnProperty,Fv=Object.prototype.toString;var Dv=new Sv("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],s=e;for(t=0,n=s.length;t3)return!1;if("/"!==t[t.length-i.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),i="";return"/"===t[0]&&(n&&(i=n[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 zv=require;jv=zv("esprima")}catch(Px){"undefined"!=typeof window&&(jv=window.esprima)}var Uv=new Qb("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=jv.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(i){return!1}},construct:function(e){var t,n="("+e+")",i=jv.parse(n,{range:!0}),r=[];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){r.push(e.name)})),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(r,n.slice(t[0]+1,t[1]-1)):new Function(r,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}}),Wv=ov,Hv=Wv.DEFAULT=new Wv({include:[$v],explicit:[Iv,Pv,Uv]}),Vv=Wb,Gv=Gb,qv=Xb,Kv=$v,Xv=Hv,Jv=Object.prototype.hasOwnProperty,Yv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zv=/[\x85\u2028\u2029]/,Qv=/[,\[\]\{\}]/,ey=/^(?:!|!!|![a-z\-]+!)$/i,ty=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ny(e){return Object.prototype.toString.call(e)}function iy(e){return 10===e||13===e}function ry(e){return 9===e||32===e}function oy(e){return 9===e||32===e||10===e||13===e}function ay(e){return 44===e||91===e||93===e||123===e||125===e}function sy(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function cy(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 ly(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var uy=new Array(256),dy=new Array(256),hy=0;hy<256;hy++)uy[hy]=cy(hy)?1:0,dy[hy]=cy(hy);function py(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Xv,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 my(e,t){return new Gv(t,new qv(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function fy(e,t){throw my(e,t)}function gy(e,t){e.onWarning&&e.onWarning.call(null,my(e,t))}var _y={YAML:function(e,t,n){var i,r,o;null!==e.version&&fy(e,"duplication of %YAML directive"),1!==n.length&&fy(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&fy(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&fy(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&gy(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&fy(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],ey.test(i)||fy(e,"ill-formed tag handle (first argument) of the TAG directive"),Jv.call(e.tagMap,i)&&fy(e,'there is a previously declared suffix for "'+i+'" tag handle'),ty.test(r)||fy(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=r}};function by(e,t,n,i){var r,o,a,s;if(t1&&(e.result+=Vv.repeat("\n",t-1))}function ky(e,t){var n,i,r=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&&oy(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,xy(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,Sy(e,t,3,!1,!0),a.push(e.result),xy(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)fy(e,"bad indentation of a sequence entry");else if(e.lineIndentt?p=1:e.lineIndent===t?p=0:e.lineIndentt?p=1:e.lineIndent===t?p=0:e.lineIndentt)&&(Sy(e,t,4,!0,r)&&(f?p=e.result:m=e.result),f||(yy(e,u,d,h,p,m,o,a),h=p=m=null),xy(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)fy(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===r?fy(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?fy(e,"repeat of an indentation width identifier"):(u=t+r-1,l=!0)}if(ry(o)){do{o=e.input.charCodeAt(++e.position)}while(ry(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!iy(o)&&0!==o)}for(;0!==o;){for(wy(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!l||e.lineIndentu&&(u=e.lineIndent),iy(o))d++;else{if(e.lineIndent0){for(r=a,o=0;r>0;r--)(a=sy(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:fy(e,"expected hexadecimal character");e.result+=ly(o),e.position++}else fy(e,"unknown escape sequence");n=i=e.position}else iy(s)?(by(e,n,i,!0),Ny(e,xy(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ay(e)?fy(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}fy(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?f=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!oy(i)&&!ay(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&fy(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Jv.call(e.anchorMap,n)||fy(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],xy(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,s,c,l,u,d=e.kind,h=e.result;if(oy(u=e.input.charCodeAt(e.position))||ay(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(oy(i=e.input.charCodeAt(e.position+1))||n&&ay(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(oy(i=e.input.charCodeAt(e.position+1))||n&&ay(i))break}else if(35===u){if(oy(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ay(e)||n&&ay(u))break;if(iy(u)){if(s=e.line,c=e.lineStart,l=e.lineIndent,xy(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(by(e,r,o,!1),Ny(e,e.line-s),r=o=e.position,a=!1),ry(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return by(e,r,o,!1),!!e.result||(e.kind=d,e.result=h,!1)}(e,d,1===n)&&(f=!0,null===e.tag&&(e.tag="?")):(f=!0,null===e.tag&&null===e.anchor||fy(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===p&&(f=s&&ky(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&fy(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result)?(e.result=u.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):fy(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):fy(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||f}function Oy(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(r=e.input.charCodeAt(e.position))&&(xy(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!oy(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&fy(e,"directive name must not be less than one character in length");0!==r;){for(;ry(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!iy(r));break}if(iy(r))break;for(t=e.position;0!==r&&!oy(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&wy(e),Jv.call(_y,n)?_y[n](e,n,i):gy(e,'unknown document directive "'+n+'"')}xy(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,xy(e,!0,-1)):a&&fy(e,"directives end mark is expected"),Sy(e,e.lineIndent-1,4,!1,!0),xy(e,!0,-1),e.checkLineBreaks&&Zv.test(e.input.slice(o,e.position))&&gy(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ay(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,xy(e,!0,-1)):e.position0?e.charCodeAt(o-1):null,p=p&&Ky(a,s)}else{for(o=0;oi&&" "!==e[h+1],h=o);else if(!qy(a))return 5;s=o>0?e.charCodeAt(o-1):null,p=p&&Ky(a,s)}u=u||d&&o-h-1>i&&" "!==e[h+1]}return l||u?n>9&&Xy(e)?5:u?4:3:p&&!r(e)?1:2}function Yy(e,t,n,i){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==zy.indexOf(t))return"'"+t+"'";var r=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r),a=i||e.flowLevel>-1&&n>=e.flowLevel;switch(Jy(t,a,e.indent,o,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+Zy(t,e.indent)+Qy(Hy(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,r.lastIndex=s,ew(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;i=r.exec(e);){var c=i[1],l=i[2];n=" "===l[0],o+=c+(a||n||""===l?"":"\n")+ew(l,t),a=n}return o}(t,o),r));case 5:return'"'+function(e){for(var t,n,i,r="",o=0;o=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343?(r+=Uy(1024*(t-55296)+n-56320+65536),o++):r+=!(i=Py[t])&&qy(t)?e[o]:i||Uy(t);return r}(t)+'"';default:throw new Ty("impossible error: invalid scalar style")}}()}function Zy(e,t){var n=Xy(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function Qy(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ew(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,s=0,c="";n=r.exec(e);)(s=n.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 tw(e,t,n){var i,r,o,a,s,c;for(o=0,a=(r=n?e.explicitTypes:e.implicitTypes).length;o tag resolver accepts not "'+c+'" style');i=s.represent[c](t,c)}e.dump=i}return!0}return!1}function nw(e,t,n,i,r,o){e.tag=null,e.dump=n,tw(e,n,!1)||tw(e,n,!0);var a=Iy.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(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(r=!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,n,i){var r,o,a,s,c,l,u="",d=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new Ty("sortKeys must be a boolean or a function");for(r=0,o=h.length;r1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Vy(e,t)),nw(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,r),c&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,n){var i,r,o,a,s,c="",l=e.tag,u=Object.keys(n);for(i=0,r=u.length;i1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),nw(e,t,a,!1,!1)&&(c+=s+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===a){var u=e.noArrayIndent&&t>0?t-1:t;i&&0!==e.dump.length?(!function(e,t,n,i){var r,o,a="",s=e.tag;for(r=0,o=n.length;r "+e.dump)}return!0}function iw(e,t){var n,i,r=[],o=[];for(rw(e,r,o),n=0,i=o.length;n3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),U(w(Nw,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(xw.prototype=new N).__e=function(e){var t=this,n=ww(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),Aw(t,e,i)):r()};n?n(o):o()}},xw.prototype.render=function(e){this.u=null,this.o=new Map;var t=D(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},xw.prototype.componentDidUpdate=xw.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Aw(e,n,t)}))};var Cw="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ew=/^(?: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]/,Sw=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};N.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(N.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ow=d.event;function Fw(){}function Dw(){return this.cancelBubble}function Bw(){return this.defaultPrevented}d.event=function(e){return Ow&&(e=Ow(e)),e.persist=Fw,e.isPropagationStopped=Dw,e.isDefaultPrevented=Bw,e.nativeEvent=e};var Lw,Mw={configurable:!0,get:function(){return this.class}},Tw=d.vnode;d.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Sw(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():Ew.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=D(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=D(n.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&&n.class!=n.className&&(Mw.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Mw)),e.$$typeof=Cw,Tw&&Tw(e)};var Rw=d.__r;d.__r=function(e){Rw&&Rw(e),Lw=e.__c};var $w={ReactCurrentDispatcher:{current:{readContext:function(e){return Lw.__n[e.__c].props.value}}}};function Iw(e){return!!e&&e.$$typeof===Cw}"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var jw={useState:Ne,useReducer:ke,useEffect:Ce,useLayoutEffect:Ee,useRef:Se,useImperativeHandle:function(e,t,n){ge=6,Ee((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Oe,useCallback:Fe,useContext:De,useDebugValue:function(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)},version:"16.8.0",Children:_w,render:function(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return W(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(U(null,e),!0)},createPortal:function(e,t){return w(kw,{__v:e,i:t})},createElement:w,createContext:V,createFactory:function(e){return w.bind(null,e)},cloneElement:function(e){return Iw(e)?H.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:A,isValidElement:Iw,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:N,PureComponent:hw,memo:pw,forwardRef:function(e){function t(t,n){var i=uw({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=fw,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:A,Suspense:yw,SuspenseList:xw,lazy:function(e){var t,n,i;function r(r){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw t;return w(n,r)}return r.displayName="Lazy",r.__f=!0,r},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$w},Pw=Object.defineProperty,zw=Object.defineProperties,Uw=Object.getOwnPropertyDescriptors,Ww=Object.getOwnPropertySymbols,Hw=Object.prototype.hasOwnProperty,Vw=Object.prototype.propertyIsEnumerable,Gw=(e,t,n)=>t in e?Pw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qw=(e,t)=>{for(var n in t||(t={}))Hw.call(t,n)&&Gw(e,n,t[n]);if(Ww)for(var n of Ww(t))Vw.call(t,n)&&Gw(e,n,t[n]);return e};const Kw="Please consider reporting this error at https://github.com/laymonage/giscus/issues/new.";function Xw(e){return`[giscus] An error occurred. Error message: "${e}".`}function Jw(e){const t=document.querySelector(`meta[property='og:${e}'],meta[name='${e}']`);return t?t.content:""}function Yw(){const e=document.getElementById("giscus-css")||document.createElement("style");e.id="giscus-css",e.textContent="\n .giscus, .giscus-frame {\n width: 100%;\n }\n .giscus-frame {\n border: none;\n color-scheme: normal;\n }\n ",document.head.prepend(e)}function Zw(e){const[t,n]=Ne(""),i=function({repo:e,repoId:t,category:n="",categoryId:i="",mapping:r,term:o="",theme:a="light",reactionsEnabled:s="1",emitMetadata:c="0",inputPosition:l="bottom",lang:u="en",session:d,origin:h}){const p=new URL(location.href);p.searchParams.delete("giscus");const m=p.toString(),f={origin:h=h||m,session:d,theme:a,reactionsEnabled:s,emitMetadata:c,inputPosition:l,repo:e,repoId:t,category:n,categoryId:i,description:Jw("description")};switch(r){case"url":f.term=m;break;case"title":f.term=document.title;break;case"og:title":f.term=Jw("title");break;case"specific":f.term=o;break;case"number":f.number=o;break;case"pathname":default:f.term=location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}return`https://giscus.app/${u}/widget?${new URLSearchParams(f)}`}((r=qw({},e),zw(r,Uw({session:t}))));var r;const o=Se(null);return Ce((()=>{const e=location.href,t=new URL(e),i=localStorage.getItem("giscus-session"),r=t.searchParams.get("giscus")||"";if(r)return localStorage.setItem("giscus-session",JSON.stringify(r)),n(r),t.searchParams.delete("giscus"),void history.replaceState(void 0,document.title,t.toString());if(i)try{n(JSON.parse(i||"")||"")}catch(o){n(""),localStorage.removeItem("giscus-session"),console.warn(`${Xw(null==o?void 0:o.message)} Session has been cleared.`)}}),[]),Ce(Yw,[]),Ce((()=>{const e=function(e,t=null){return function(n){if("https://giscus.app"!==n.origin)return;const{data:i}=n;if("object"!=typeof i||!i.giscus)return;if(t&&i.giscus.resizeHeight&&(t.style.height=`${i.giscus.resizeHeight}px`),!i.giscus.error)return;const r=i.giscus.error;if(r.includes("Bad credentials")||r.includes("Invalid state value")){if(null!==localStorage.getItem("giscus-session"))return localStorage.removeItem("giscus-session"),e(),void console.warn(`${Xw(r)} Session has been cleared.`);console.error(`${Xw(r)} No session is stored initially. ${Kw}`)}r.includes("Discussion not found")?console.warn(`[giscus] ${r}. A new discussion will be created if a comment/reaction is submitted.`):console.error(`${Xw(r)} ${Kw}`)}}((()=>n("")),o.current);return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),[]),jw.createElement("div",{className:"giscus"},jw.createElement("iframe",{className:"giscus-frame",title:"Comments",scrolling:"no",src:i,ref:o}))}function Qw(e){const[t,n]=Ne(!1);return Ce((()=>n(!0)),[]),t?jw.createElement(Zw,qw({},e)):null}var ex={}; /*! * howler.js v2.2.3 * howlerjs.com * * (c) 2013-2020, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */function tx(){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||n;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||n;if(e=parseFloat(e),t.ctx||u(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var i=0;i=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,u()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;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||n,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(u){return e}if(!t||"function"!=typeof t.canPlayType)return e;var i=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",o=r.match(/OPR\/([0-6].)/g),a=o&&parseInt(o[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),c=r.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||n;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(n){for(;e._html5AudioPool.length0?s._seek:i._sprite[e][0]/1e3),u=Math.max(0,(i._sprite[e][0]+i._sprite[e][1])/1e3-l),d=1e3*u/Math.abs(s._rate),h=i._sprite[e][0]/1e3,p=(i._sprite[e][0]+i._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var m=function(){s._paused=!1,s._seek=l,s._start=h,s._stop=p,s._loop=!(!s._loop&&!i._sprite[e][2])};if(!(l>=p)){var f=s._node;if(i._webAudio){var g=function(){i._playLock=!1,m(),i._refreshBuffer(s);var e=s._muted||i._muted?0:s._volume;f.gain.setValueAtTime(e,n.ctx.currentTime),s._playStart=n.ctx.currentTime,void 0===f.bufferSource.start?s._loop?f.bufferSource.noteGrainOn(0,l,86400):f.bufferSource.noteGrainOn(0,l,u):s._loop?f.bufferSource.start(0,l,86400):f.bufferSource.start(0,l,u),d!==1/0&&(i._endTimers[s._id]=setTimeout(i._ended.bind(i,s),d)),t||setTimeout((function(){i._emit("play",s._id),i._loadQueue()}),0)};"running"===n.state&&"interrupted"!==n.ctx.state?g():(i._playLock=!0,i.once("resume",g),i._clearTimer(s._id))}else{var _=function(){f.currentTime=l,f.muted=s._muted||i._muted||n._muted||f.muted,f.volume=s._volume*n.volume(),f.playbackRate=s._rate;try{var r=f.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(i._playLock=!0,m(),r.then((function(){i._playLock=!1,f._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,m(),i._emit("play",s._id)),f.playbackRate=s._rate,f.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),d):(i._endTimers[s._id]=function(){i._ended(s),f.removeEventListener("ended",i._endTimers[s._id],!1)},f.addEventListener("ended",i._endTimers[s._id],!1))}catch(o){i._emit("playerror",s._id,o)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===f.src&&(f.src=i._src,f.load());var b=window&&window.ejecta||!f.readyState&&n._navigator.isCocoonJS;if(f.readyState>=3||b)_();else{i._playLock=!0,i._state="loading";var v=function(){i._state="loaded",_(),f.removeEventListener(n._canPlayEvent,v,!1)};f.addEventListener(n._canPlayEvent,v,!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 n=t._getSoundIds(e),i=0;i=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?r._soundById(t):r._sounds[0])?i._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,o)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var c=0;c0?i/l:i),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var r=(Date.now()-d)/i;d=Date.now(),s+=c*r,s=Math.round(100*s)/100,s=c<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(nt&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),u)},_stopFade:function(e){var t=this,i=t._soundById(e);return i&&i._interval&&(t._webAudio&&i._node.gain.cancelScheduledValues(n.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,n,i=this,r=arguments;if(0===r.length)return i._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=i._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],i._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var o=i._getSoundIds(t),a=0;a=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=r._soundById(t))?i._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,o)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var c=0;c=0?t=parseInt(r[0],10):i._sounds.length&&(t=i._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[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,r)}}),i;var s=i._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(i._webAudio){var c=i.playing(t)?n.ctx.currentTime-s._playStart:0,l=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(l+c*Math.abs(s._rate))}return s._node.currentTime}var u=i.playing(t);u&&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 d=function(){u&&i.play(t,!0),i._emit("seek",t)};if(u&&!i._webAudio){var h=function(){i._playLock?setTimeout(h,0):d()};setTimeout(h,0)}else d()}return i},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var i=0;i=0&&n._howls.splice(r,1);var a=!0;for(i=0;i=0){a=!1;break}return o&&a&&delete o[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,i){var r=this["_on"+e];return"function"==typeof t&&r.push(i?{id:n,fn:t,once:i}:{id:n,fn:t}),this},off:function(e,t,n){var i=this,r=i["_on"+e],o=0;if("number"==typeof t&&(n=t,t=null),t||n)for(o=0;o=0;o--)r[o].id&&r[o].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(i,r[o].fn),0),r[o].once&&i.off(e,r[o].fn,r[o].id));return i._loadQueue(e),i},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.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=0;i--){if(n<=t)return;e._sounds[i]._ended&&(e._webAudio&&e._sounds[i]._node&&e._sounds[i]._node.disconnect(0),e._sounds.splice(i,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n=0;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(i){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var r=function(e){this._parent=e,this.init()};r.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=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,i=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(i,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._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*n.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=++n._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(n._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 n=atob(t.split(",")[1]),i=new Uint8Array(n.length),r=0;r0?(o[t._src]=e,l(t,e)):i()};"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(r).catch(i):n.ctx.decodeAudioData(e,r,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())},u=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(o){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i=t?parseInt(t[1],10):null;if(e&&i&&i<9){var r=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!r&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};e.Howler=n,e.Howl=i,void 0!==je?(je.HowlerGlobal=t,je.Howler=n,je.Howl=i,je.Sound=r):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=i,window.Sound=r)}(), /*! * 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 n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var i=this;return i.ctx&&i.ctx.listener?(t="number"!=typeof t?i._pos[1]:t,n="number"!=typeof n?i._pos[2]:n,"number"!=typeof e?i._pos:(i._pos=[e,t,n],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,n,i,r,o){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,i="number"!=typeof i?s[3]:i,r="number"!=typeof r?s[4]:r,o="number"!=typeof o?s[5]:o,"number"!=typeof e?s:(a._orientation=[e,t,n,i,r,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(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(i,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,i,r,o),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._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},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(e,n)}}),i;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return i._stereo;i._stereo=e,i._pos=[e,0,0]}for(var o=i._getSoundIds(n),a=0;a"']/,rx=/[&<>"']/g,ox=/[<>"']|&(?!#?\w+;)/,ax=/[<>"']|&(?!#?\w+;)/g,sx={"&":"&","<":"<",">":">",'"':""","'":"'"},cx=e=>sx[e];function lx(e,t){if(t){if(ix.test(e))return e.replace(rx,cx)}else if(ox.test(e))return e.replace(ax,cx);return e}const ux=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function dx(e){return e.replace(ux,((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 hx=/(^|[^\[])\^/g;function px(e,t){e=e.source||e,t=t||"";const n={replace:(t,i)=>(i=(i=i.source||i).replace(hx,"$1"),e=e.replace(t,i),n),getRegex:()=>new RegExp(e,t)};return n}const mx=/[^\w:]/g,fx=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function gx(e,t,n){if(e){let e;try{e=decodeURIComponent(dx(n)).replace(mx,"").toLowerCase()}catch(i){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!fx.test(n)&&(n=function(e,t){_x[" "+e]||(bx.test(e)?_x[" "+e]=e+"/":_x[" "+e]=Nx(e,"/",!0));const n=-1===(e=_x[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(vx,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(yx,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}const _x={},bx=/^[^:]+:\/*[^/]*$/,vx=/^([^:]+:)[\s\S]*$/,yx=/^([^:]+:\/*[^/]*)[\s\S]*$/;const wx={exec:function(){}};function xx(e){let t,n,i=1;for(;i{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Ex(e,t,n,i){const r=t.href,o=t.title?lx(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;const e={type:"link",raw:n,href:r,title:o,text:a,tokens:i.inlineTokens(a,[])};return i.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:o,text:lx(a)}}class Sx{constructor(e){this.options=e||nx}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:Nx(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const i=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.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:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Nx(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}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 n,i,r,o,a,s,c,l,u,d,h,p,m=t[1].trim();const f=m.length>1,g={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=f?m:"[*+-]");const _=new RegExp(`^( {0,3}${m})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,t=_.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,h=l.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,h=l.slice(o),o+=t[1].length),s=!1,!l&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),p=!0),!p){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split("\n",1)[0],l=d,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(l));){if(l.search(/[^ ]/)>=o||!l.trim())h+="\n"+l.slice(o);else{if(s)break;h+="\n"+l}s||l.trim()||(s=!0),n+=d+"\n",e=e.substring(d.length+1)}}g.loose||(c?g.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();const b=g.items.length;for(a=0;a"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const i of t)if("\n"===i&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[a].loose=!0)}return g}}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]):lx(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:Ax(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 n,i,r,o,a=e.align.length;for(n=0;n({text:e})));for(a=e.header.length,i=0;i/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]):lx(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))return;const t=Nx(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 n=e.length;let i=0,r=0;for(;r-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),Ex(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:i?i.replace(this.rules.inline._escapes,"$1"):i},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Ex(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=i[0].length-1;let r,o,a=n,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+n);null!=(i=c.exec(t));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=r.length,i[3]||i[4]){a+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(a-=o,a>0)continue;if(o=Math.min(o,o+a+s),Math.min(n,o)%2){const t=e.slice(1,n+i.index+o);return{type:"em",raw:e.slice(0,n+i.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+i.index+o-1);return{type:"strong",raw:e.slice(0,n+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 n=/[^ ]/.test(e),i=/^ /.test(e)&&/ $/.test(e);return n&&i&&(e=e.substring(1,e.length-1)),e=lx(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 n=this.rules.inline.autolink.exec(e);if(n){let e,i;return"@"===n[2]?(e=lx(this.options.mangle?t(n[1]):n[1]),i="mailto:"+e):(e=lx(n[1]),i=e),{type:"link",raw:n[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,i;if("@"===n[2])e=lx(this.options.mangle?t(n[0]):n[0]),i="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=lx(n[0]),i="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):lx(n[0]):n[0]:lx(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Ox={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:wx,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?'|\([^()]*\))/};Ox.def=px(Ox.def).replace("label",Ox._label).replace("title",Ox._title).getRegex(),Ox.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ox.listItemStart=px(/^( *)(bull) */).replace("bull",Ox.bullet).getRegex(),Ox.list=px(Ox.list).replace(/bull/g,Ox.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ox.def.source+")").getRegex(),Ox._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",Ox._comment=/|$)/,Ox.html=px(Ox.html,"i").replace("comment",Ox._comment).replace("tag",Ox._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ox.paragraph=px(Ox._paragraph).replace("hr",Ox.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ox._tag).getRegex(),Ox.blockquote=px(Ox.blockquote).replace("paragraph",Ox.paragraph).getRegex(),Ox.normal=xx({},Ox),Ox.gfm=xx({},Ox.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ox.gfm.table=px(Ox.gfm.table).replace("hr",Ox.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ox._tag).getRegex(),Ox.gfm.paragraph=px(Ox._paragraph).replace("hr",Ox.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ox.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ox._tag).getRegex(),Ox.pedantic=xx({},Ox.normal,{html:px("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ox._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wx,paragraph:px(Ox.normal._paragraph).replace("hr",Ox.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ox.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Fx={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wx,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:wx,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}Fx._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Fx.punctuation=px(Fx.punctuation).replace(/punctuation/g,Fx._punctuation).getRegex(),Fx.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Fx.escapedEmSt=/\\\*|\\_/g,Fx._comment=px(Ox._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Fx.emStrong.lDelim=px(Fx.emStrong.lDelim).replace(/punct/g,Fx._punctuation).getRegex(),Fx.emStrong.rDelimAst=px(Fx.emStrong.rDelimAst,"g").replace(/punct/g,Fx._punctuation).getRegex(),Fx.emStrong.rDelimUnd=px(Fx.emStrong.rDelimUnd,"g").replace(/punct/g,Fx._punctuation).getRegex(),Fx._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Fx._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Fx._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])?)+(?![-_])/,Fx.autolink=px(Fx.autolink).replace("scheme",Fx._scheme).replace("email",Fx._email).getRegex(),Fx._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Fx.tag=px(Fx.tag).replace("comment",Fx._comment).replace("attribute",Fx._attribute).getRegex(),Fx._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fx._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Fx._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Fx.link=px(Fx.link).replace("label",Fx._label).replace("href",Fx._href).replace("title",Fx._title).getRegex(),Fx.reflink=px(Fx.reflink).replace("label",Fx._label).replace("ref",Ox._label).getRegex(),Fx.nolink=px(Fx.nolink).replace("ref",Ox._label).getRegex(),Fx.reflinkSearch=px(Fx.reflinkSearch,"g").replace("reflink",Fx.reflink).replace("nolink",Fx.nolink).getRegex(),Fx.normal=xx({},Fx),Fx.pedantic=xx({},Fx.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:px(/^!?\[(label)\]\((.*?)\)/).replace("label",Fx._label).getRegex(),reflink:px(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fx._label).getRegex()}),Fx.gfm=xx({},Fx.normal,{escape:px(Fx.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]*?(?:(?=[\\!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startBlock.forEach((function(e){i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))i=t[t.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),o=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);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 n,i,r,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)+"["+Cx("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)+"["+Cx("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=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Bx))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Bx))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startInline.forEach((function(e){i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r,Dx))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);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(n.raw.length),t.push(n);return t}}class Mx{constructor(e){this.options=e||nx}code(e,t,n){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,i);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",i?'
'+(n?e:lx(e,!0))+"
\n":"
"+(n?e:lx(e,!0))+"
\n"}blockquote(e){return"
\n"+e+"
\n"}html(e){return e}heading(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • "+e+"
  • \n"}checkbox(e){return" "}paragraph(e){return"

    "+e+"

    \n"}table(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n"+e+"\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
    ":"
    "}del(e){return""+e+""}link(e,t,n){if(null===(e=gx(this.options.sanitize,this.options.baseUrl,e)))return n;let i='",i}image(e,t,n){if(null===(e=gx(this.options.sanitize,this.options.baseUrl,e)))return n;let i=''+n+'":">",i}text(e){return e}}class Tx{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,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Rx{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 n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{i++,n=e+"-"+i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class $x{constructor(e){this.options=e||nx,this.options.renderer=this.options.renderer||new Mx,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Tx,this.slugger=new Rx}static parse(e,t){return new $x(t).parse(e)}static parseInline(e,t){return new $x(t).parseInline(e)}parse(e,t=!0){let n,i,r,o,a,s,c,l,u,d,h,p,m,f,g,_,b,v,y,w="";const x=e.length;for(n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=v+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=v+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:v}):f+=v),f+=this.parse(g.tokens,m),u+=this.renderer.listitem(f,b,_);w+=this.renderer.list(u,h,p);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;n+1{r(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),s--,0===s&&a()}))}),0))})),void(0===s&&a())}try{const n=Lx.lex(e,t);return t.walkTokens&&Ix.walkTokens(n,t.walkTokens),$x.parse(n,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+lx(i.message+"",!0)+"
    ";throw i}}Ix.options=Ix.setOptions=function(e){var t;return xx(Ix.defaults,e),t=Ix.defaults,nx=t,Ix},Ix.getDefaults=tx,Ix.defaults=nx,Ix.use=function(...e){const t=xx({},...e),n=Ix.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=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let i=e.renderer.apply(this,n);return!1===i&&(i=t.apply(this,n)),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'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Ix.defaults.renderer||new Mx;for(const t in e.renderer){const i=n[t];n[t]=(...r)=>{let o=e.renderer[t].apply(n,r);return!1===o&&(o=i.apply(n,r)),o}}t.renderer=n}if(e.tokenizer){const n=Ix.defaults.tokenizer||new Sx;for(const t in e.tokenizer){const i=n[t];n[t]=(...r)=>{let o=e.tokenizer[t].apply(n,r);return!1===o&&(o=i.apply(n,r)),o}}t.tokenizer=n}if(e.walkTokens){const n=Ix.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}i&&(t.extensions=n),Ix.setOptions(t)}))},Ix.walkTokens=function(e,t){for(const n of e)switch(t.call(Ix,n),n.type){case"table":for(const e of n.header)Ix.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Ix.walkTokens(n.tokens,t);break;case"list":Ix.walkTokens(n.items,t);break;default:Ix.defaults.extensions&&Ix.defaults.extensions.childTokens&&Ix.defaults.extensions.childTokens[n.type]?Ix.defaults.extensions.childTokens[n.type].forEach((function(e){Ix.walkTokens(n[e],t)})):n.tokens&&Ix.walkTokens(n.tokens,t)}},Ix.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");kx(t=xx({},Ix.defaults,t||{}));try{const n=Lx.lexInline(e,t);return t.walkTokens&&Ix.walkTokens(n,t.walkTokens),$x.parseInline(n,t)}catch(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+lx(n.message+"",!0)+"
    ";throw n}},Ix.Parser=$x,Ix.parser=$x.parse,Ix.Renderer=Mx,Ix.TextRenderer=Tx,Ix.Lexer=Lx,Ix.lexer=Lx.lex,Ix.Tokenizer=Sx,Ix.Slugger=Rx,Ix.parse=Ix,$x.parse,Lx.lex;export{Ix as $,Fe as A,am as B,ip as C,Fp as D,Ip as E,De as F,Qp as G,lm as H,qp as I,vp as J,nm as K,fm as L,Em as M,Zf as N,fp as O,Kp as P,Qf as Q,Pb as R,lw as S,pw as T,Be as U,Qw as V,he as W,gp as X,ex as Y,Vf as Z,Wp as _,w as a,de as a0,U as a1,re as b,Ne as c,St as d,Oe as e,A as f,ie as g,fr as h,la as i,En as j,nc as k,Pe as l,iu as m,Um as n,Wm as o,Vm as p,V as q,Ct as r,Se as s,Gm as t,Tp as u,cm as v,Xm as w,Ym as x,Ce as y,Xh as z}; //# sourceMappingURL=vendor.ae3ccf68.js.map