!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).CherryEngine={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var a,o,i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},l=!c((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=Function.prototype,f=u.apply,d=u.call,p="object"==typeof Reflect&&Reflect.apply||(l?d.bind(f):function(){return d.apply(f,arguments)}),h=Function.prototype,g=h.bind,m=h.call,b=l&&g.bind(m,m),v=l?function(e){return e&&b(e)}:function(e){return e&&function(){return m.apply(e,arguments)}},y=function(e){return"function"==typeof e},_=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=Function.prototype.call,w=l?k.bind(k):function(){return k.apply(k,arguments)},E={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,S={f:x&&!E.call({1:2},1)?function(e){var t=x(this,e);return!!t&&t.enumerable}:E},A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=v({}.toString),T=v("".slice),O=function(e){return T(C(e),8,-1)},$=s.Object,R=v("".split),P=c((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?R(e,""):$(e)}:$,I=s.TypeError,L=function(e){if(null==e)throw I("Can't call method on "+e);return e},N=function(e){return P(L(e))},M=function(e){return"object"==typeof e?null!==e:y(e)},j={},D=function(e){return y(e)?e:void 0},B=function(e,t){return arguments.length<2?D(j[e])||D(s[e]):j[e]&&j[e][t]||s[e]&&s[e][t]},F=v({}.isPrototypeOf),H=B("navigator","userAgent")||"",z=s.process,U=s.Deno,W=z&&z.versions||U&&U.version,q=W&&W.v8;q&&(o=(a=q.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&H&&(!(a=H.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=H.match(/Chrome\/(\d+)/))&&(o=+a[1]);var G=o,K=!!Object.getOwnPropertySymbols&&!c((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&G&&G<41})),Z=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=s.Object,X=Z?function(e){return"symbol"==typeof e}:function(e){var t=B("Symbol");return y(t)&&F(t.prototype,Y(e))},V=s.String,J=function(e){try{return V(e)}catch(e){return"Object"}},Q=s.TypeError,ee=function(e){if(y(e))return e;throw Q(J(e)+" is not a function")},te=function(e,t){var n=e[t];return null==n?void 0:ee(n)},ne=s.TypeError,re=Object.defineProperty,ae=s["__core-js_shared__"]||function(e,t){try{re(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}("__core-js_shared__",{}),oe=r((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),ie=s.Object,se=function(e){return ie(L(e))},ce=v({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return ce(se(e),t)},ue=0,fe=Math.random(),de=v(1..toString),pe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+de(++ue+fe,36)},he=oe("wks"),ge=s.Symbol,me=ge&&ge.for,be=Z?ge:ge&&ge.withoutSetter||pe,ve=function(e){if(!le(he,e)||!K&&"string"!=typeof he[e]){var t="Symbol."+e;K&&le(ge,e)?he[e]=ge[e]:he[e]=Z&&me?me(t):be(t)}return he[e]},ye=s.TypeError,_e=ve("toPrimitive"),ke=function(e,t){if(!M(e)||X(e))return e;var n,r=te(e,_e);if(r){if(void 0===t&&(t="default"),n=w(r,e,t),!M(n)||X(n))return n;throw ye("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!M(r=w(n,e)))return r;if(y(n=e.valueOf)&&!M(r=w(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!M(r=w(n,e)))return r;throw ne("Can't convert object to primitive value")}(e,t)},we=function(e){var t=ke(e,"string");return X(t)?t:t+""},Ee=s.document,xe=M(Ee)&&M(Ee.createElement),Se=function(e){return xe?Ee.createElement(e):{}},Ae=!_&&!c((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),Ce=Object.getOwnPropertyDescriptor,Te={f:_?Ce:function(e,t){if(e=N(e),t=we(t),Ae)try{return Ce(e,t)}catch(e){}if(le(e,t))return A(!w(S.f,e,t),e[t])}},Oe=/#|\.prototype\./,$e=function(e,t){var n=Pe[Re(e)];return n==Le||n!=Ie&&(y(t)?c(t):!!t)},Re=$e.normalize=function(e){return String(e).replace(Oe,".").toLowerCase()},Pe=$e.data={},Ie=$e.NATIVE="N",Le=$e.POLYFILL="P",Ne=$e,Me=v(v.bind),je=function(e,t){return ee(e),void 0===t?e:l?Me(e,t):function(){return e.apply(t,arguments)}},De=_&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Be=s.String,Fe=s.TypeError,He=function(e){if(M(e))return e;throw Fe(Be(e)+" is not an object")},ze=s.TypeError,Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,qe={f:_?De?function(e,t,n){if(He(e),t=we(t),He(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=We(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ue(e,t,n)}:Ue:function(e,t,n){if(He(e),t=we(t),He(n),Ae)try{return Ue(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ze("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ge=_?function(e,t,n){return qe.f(e,t,A(1,n))}:function(e,t,n){return e[t]=n,e},Ke=Te.f,Ze=function(e){var t=function(n,r,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,a)}return p(e,this,arguments)};return t.prototype=e.prototype,t},Ye=function(e,t){var n,r,a,o,i,c,l,u,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?s:p?s[f]:(s[f]||{}).prototype,m=d?j:j[f]||Ge(j,f,{})[f],b=m.prototype;for(a in t)n=!Ne(d?a:f+(p?".":"#")+a,e.forced)&&g&&le(g,a),i=m[a],n&&(c=e.dontCallGetSet?(u=Ke(g,a))&&u.value:g[a]),o=n&&c?c:t[a],n&&typeof i==typeof o||(l=e.bind&&n?je(o,s):e.wrap&&n?Ze(o):h&&y(o)?v(o):o,(e.sham||o&&o.sham||i&&i.sham)&&Ge(l,"sham",!0),Ge(m,a,l),h&&(le(j,r=f+"Prototype")||Ge(j,r,{}),Ge(j[r],a,o),e.real&&b&&!b[a]&&Ge(b,a,o)))},Xe=v([].slice),Ve=s.Function,Je=v([].concat),Qe=v([].join),et={},tt=function(e,t,n){if(!le(et,t)){for(var r=[],a=0;a0?xt:Et)(t)},At=function(e){var t=+e;return t!=t||0===t?0:St(t)},Ct=Math.max,Tt=Math.min,Ot=function(e,t){var n=At(e);return n<0?Ct(n+t,0):Tt(n,t)},$t=Math.min,Rt=function(e){return e>0?$t(At(e),9007199254740991):0},Pt=function(e){return Rt(e.length)},It=function(e){return function(t,n,r){var a,o=N(t),i=Pt(o),s=Ot(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Lt={includes:It(!0),indexOf:It(!1)},Nt={},Mt=Lt.indexOf,jt=v([].push),Dt=function(e,t){var n,r=N(e),a=0,o=[];for(n in r)!le(Nt,n)&&le(r,n)&&jt(o,n);for(;t.length>a;)le(r,n=t[a++])&&(~Mt(o,n)||jt(o,n));return o},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=Object.keys||function(e){return Dt(e,Bt)},Ht={f:_&&!De?Object.defineProperties:function(e,t){He(e);for(var n,r=N(t),a=Ft(t),o=a.length,i=0;o>i;)qe.f(e,n=a[i++],r[n]);return e}},zt=B("document","documentElement"),Ut=oe("keys"),Wt=function(e){return Ut[e]||(Ut[e]=pe(e))},qt=Wt("IE_PROTO"),Gt=function(){},Kt=function(e){return"