(self["webpackChunklovely"]=self["webpackChunklovely"]||[]).push([[998],{9662:function(t,e,r){var n=r(7854),i=r(614),o=r(6330),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a function")}},6077:function(t,e,r){var n=r(7854),i=r(614),o=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},5787:function(t,e,r){var n=r(7854),i=r(7976),o=n.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,r){var n=r(7854),i=r(111),o=n.String,s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not an object")}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,e,r){"use strict";var n,i,o,s=r(4019),a=r(9781),u=r(7854),h=r(614),l=r(111),c=r(2597),f=r(648),d=r(6330),p=r(8880),_=r(1320),v=r(3070).f,m=r(7976),y=r(9518),g=r(7674),E=r(5112),T=r(9711),b=u.Int8Array,x=b&&b.prototype,R=u.Uint8ClampedArray,A=R&&R.prototype,I=b&&y(b),S=x&&y(x),O=Object.prototype,P=u.TypeError,N=E("toStringTag"),M=T("TYPED_ARRAY_TAG"),w=T("TYPED_ARRAY_CONSTRUCTOR"),D=s&&!!g&&"Opera"!==f(u.opera),C=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(t){if(!l(t))return!1;var e=f(t);return"DataView"===e||c(L,e)||c(F,e)},G=function(t){if(!l(t))return!1;var e=f(t);return c(L,e)||c(F,e)},B=function(t){if(G(t))return t;throw P("Target is not a typed array")},X=function(t){if(h(t)&&(!g||m(I,t)))return t;throw P(d(t)+" is not a typed array constructor")},k=function(t,e,r,n){if(a){if(r)for(var i in L){var o=u[i];if(o&&c(o.prototype,t))try{delete o.prototype[t]}catch(s){try{o.prototype[t]=e}catch(h){}}}S[t]&&!r||_(S,t,r?e:D&&x[t]||e,n)}},H=function(t,e,r){var n,i;if(a){if(g){if(r)for(n in L)if(i=u[n],i&&c(i,t))try{delete i[t]}catch(o){}if(I[t]&&!r)return;try{return _(I,t,r?e:D&&I[t]||e)}catch(o){}}for(n in L)i=u[n],!i||i[t]&&!r||_(i,t,e)}};for(n in L)i=u[n],o=i&&i.prototype,o?p(o,w,i):D=!1;for(n in F)i=u[n],o=i&&i.prototype,o&&p(o,w,i);if((!D||!h(I)||I===Function.prototype)&&(I=function(){throw P("Incorrect invocation")},D))for(n in L)u[n]&&g(u[n],I);if((!D||!S||S===O)&&(S=I.prototype,D))for(n in L)u[n]&&g(u[n].prototype,S);if(D&&y(A)!==S&&g(A,S),a&&!c(S,N))for(n in C=!0,v(S,N,{get:function(){return l(this)?this[M]:void 0}}),L)u[n]&&p(u[n],M,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_CONSTRUCTOR:w,TYPED_ARRAY_TAG:C&&M,aTypedArray:B,aTypedArrayConstructor:X,exportTypedArrayMethod:k,exportTypedArrayStaticMethod:H,isView:U,isTypedArray:G,TypedArray:I,TypedArrayPrototype:S}},1318:function(t,e,r){var n=r(5656),i=r(1400),o=r(6244),s=function(t){return function(e,r,s){var a,u=n(e),h=o(u),l=i(s,h);if(t&&r!=r){while(h>l)if(a=u[l++],a!=a)return!0}else for(;h>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4326:function(t,e,r){var n=r(1702),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,r){var n=r(7854),i=r(1694),o=r(614),s=r(4326),a=r(5112),u=a("toStringTag"),h=n.Object,l="Arguments"==s(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(r){}};t.exports=i?s:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=c(e=h(t),u))?r:l?s(e):"Object"==(n=s(e))&&o(e.callee)?"Arguments":n}},7741:function(t,e,r){var n=r(1702),i=n("".replace),o=function(t){return String(Error(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,a=s.test(o);t.exports=function(t,e){if(a&&"string"==typeof t)while(e--)t=i(t,s,"");return t}},9920:function(t,e,r){var n=r(2597),i=r(3887),o=r(1236),s=r(3070);t.exports=function(t,e,r){for(var a=i(e),u=s.f,h=o.f,l=0;l0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,r){var n=r(7293),i=r(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2109:function(t,e,r){var n=r(7854),i=r(1236).f,o=r(8880),s=r(1320),a=r(3505),u=r(9920),h=r(4705);t.exports=function(t,e){var r,l,c,f,d,p,_=t.target,v=t.global,m=t.stat;if(l=v?n:m?n[_]||a(_,{}):(n[_]||{}).prototype,l)for(c in e){if(d=e[c],t.noTargetGet?(p=i(l,c),f=p&&p.value):f=l[c],r=h(v?c:_+(m?".":"#")+c,t.forced),!r&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),s(l,c,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},2104:function(t,e,r){var n=r(4374),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},4374:function(t,e,r){var n=r(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,r){var n=r(4374),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,r){var n=r(9781),i=r(2597),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,h=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:h}},1702:function(t,e,r){var n=r(4374),i=Function.prototype,o=i.bind,s=i.call,a=n&&o.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,r){var n=r(7854),i=r(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},8173:function(t,e,r){var n=r(9662);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},7854:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},2597:function(t,e,r){var n=r(1702),i=r(7908),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,r){var n=r(9781),i=r(7293),o=r(317);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,r){var n=r(7854),i=r(1702),o=r(7293),s=r(4326),a=n.Object,u=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):a(t)}:a},9587:function(t,e,r){var n=r(614),i=r(111),o=r(7674);t.exports=function(t,e,r){var s,a;return o&&n(s=e.constructor)&&s!==r&&i(a=s.prototype)&&a!==r.prototype&&o(t,a),t}},2788:function(t,e,r){var n=r(1702),i=r(614),o=r(5465),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},8340:function(t,e,r){var n=r(111),i=r(8880);t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},9909:function(t,e,r){var n,i,o,s=r(8536),a=r(7854),u=r(1702),h=r(111),l=r(8880),c=r(2597),f=r(5465),d=r(6200),p=r(3501),_="Object already initialized",v=a.TypeError,m=a.WeakMap,y=function(t){return o(t)?i(t):n(t,{})},g=function(t){return function(e){var r;if(!h(e)||(r=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return r}};if(s||f.state){var E=f.state||(f.state=new m),T=u(E.get),b=u(E.has),x=u(E.set);n=function(t,e){if(b(E,t))throw new v(_);return e.facade=t,x(E,t,e),e},i=function(t){return T(E,t)||{}},o=function(t){return b(E,t)}}else{var R=d("state");p[R]=!0,n=function(t,e){if(c(t,R))throw new v(_);return e.facade=t,l(t,R,e),e},i=function(t){return c(t,R)?t[R]:{}},o=function(t){return c(t,R)}}t.exports={set:n,get:i,has:o,enforce:y,getterFor:g}},614:function(t){t.exports=function(t){return"function"==typeof t}},4705:function(t,e,r){var n=r(7293),i=r(614),o=/#|\.prototype\./,s=function(t,e){var r=u[a(t)];return r==l||r!=h&&(i(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},h=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},111:function(t,e,r){var n=r(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,r){var n=r(7854),i=r(5005),o=r(614),s=r(7976),a=r(3307),u=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&s(e.prototype,u(t))}},6244:function(t,e,r){var n=r(7466);t.exports=function(t){return n(t.length)}},133:function(t,e,r){var n=r(7392),i=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8536:function(t,e,r){var n=r(7854),i=r(614),o=r(2788),s=n.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},6277:function(t,e,r){var n=r(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},3070:function(t,e,r){var n=r(7854),i=r(9781),o=r(4664),s=r(3353),a=r(9670),u=r(4948),h=n.TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=i?s?function(t,e,r){if(a(t),e=u(e),a(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=c(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(a(t),e=u(e),a(r),o)try{return l(t,e,r)}catch(n){}if("get"in r||"set"in r)throw h("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:function(t,e,r){var n=r(9781),i=r(6916),o=r(5296),s=r(9114),a=r(5656),u=r(4948),h=r(2597),l=r(4664),c=Object.getOwnPropertyDescriptor;e.f=n?c:function(t,e){if(t=a(t),e=u(e),l)try{return c(t,e)}catch(r){}if(h(t,e))return s(!i(o.f,t,e),t[e])}},8006:function(t,e,r){var n=r(6324),i=r(748),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,r){var n=r(7854),i=r(2597),o=r(614),s=r(7908),a=r(6200),u=r(8544),h=a("IE_PROTO"),l=n.Object,c=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=s(t);if(i(e,h))return e[h];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof l?c:null}},7976:function(t,e,r){var n=r(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,r){var n=r(1702),i=r(2597),o=r(5656),s=r(1318).indexOf,a=r(3501),u=n([].push);t.exports=function(t,e){var r,n=o(t),h=0,l=[];for(r in n)!i(a,r)&&i(n,r)&&u(l,r);while(e.length>h)i(n,r=e[h++])&&(~s(l,r)||u(l,r));return l}},5296:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7674:function(t,e,r){var n=r(1702),i=r(9670),o=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(r,[]),e=r instanceof Array}catch(s){}return function(r,n){return i(r),o(n),e?t(r,n):r.__proto__=n,r}}():void 0)},2140:function(t,e,r){var n=r(7854),i=r(6916),o=r(614),s=r(111),a=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&o(r=t.toString)&&!s(n=i(r,t)))return n;if(o(r=t.valueOf)&&!s(n=i(r,t)))return n;if("string"!==e&&o(r=t.toString)&&!s(n=i(r,t)))return n;throw a("Can't convert object to primitive value")}},3887:function(t,e,r){var n=r(5005),i=r(1702),o=r(8006),s=r(5181),a=r(9670),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=s.f;return r?u(e,r(t)):e}},1320:function(t,e,r){var n=r(7854),i=r(614),o=r(2597),s=r(8880),a=r(3505),u=r(2788),h=r(9909),l=r(6530).CONFIGURABLE,c=h.get,f=h.enforce,d=String(String).split("String");(t.exports=function(t,e,r,u){var h,c=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,_=!!u&&!!u.noTargetGet,v=u&&void 0!==u.name?u.name:e;i(r)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(r,"name")||l&&r.name!==v)&&s(r,"name",v),h=f(r),h.source||(h.source=d.join("string"==typeof v?v:""))),t!==n?(c?!_&&t[e]&&(p=!0):delete t[e],p?t[e]=r:s(t,e,r)):p?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return i(this)&&c(this).source||u(this)}))},4488:function(t,e,r){var n=r(7854),i=n.TypeError;t.exports=function(t){if(void 0==t)throw i("Can't call method on "+t);return t}},3505:function(t,e,r){var n=r(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},6200:function(t,e,r){var n=r(2309),i=r(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,r){var n=r(7854),i=r(3505),o="__core-js_shared__",s=n[o]||i(o,{});t.exports=s},2309:function(t,e,r){var n=r(1913),i=r(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(t,e,r){var n=r(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},5656:function(t,e,r){var n=r(8361),i=r(4488);t.exports=function(t){return n(i(t))}},9303:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!==n||0===n?0:(n>0?r:e)(n)}},7466:function(t,e,r){var n=r(9303),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},7908:function(t,e,r){var n=r(7854),i=r(4488),o=n.Object;t.exports=function(t){return o(i(t))}},4590:function(t,e,r){var n=r(7854),i=r(3002),o=n.RangeError;t.exports=function(t,e){var r=i(t);if(r%e)throw o("Wrong offset");return r}},3002:function(t,e,r){var n=r(7854),i=r(9303),o=n.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw o("The argument can't be less than 0");return e}},7593:function(t,e,r){var n=r(7854),i=r(6916),o=r(111),s=r(2190),a=r(8173),u=r(2140),h=r(5112),l=n.TypeError,c=h("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var r,n=a(t,c);if(n){if(void 0===e&&(e="default"),r=i(n,t,e),!o(r)||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,r){var n=r(7593),i=r(2190);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},1694:function(t,e,r){var n=r(5112),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},1340:function(t,e,r){var n=r(7854),i=r(648),o=n.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,r){var n=r(7854),i=n.String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},9711:function(t,e,r){var n=r(1702),i=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},3307:function(t,e,r){var n=r(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,r){var n=r(9781),i=r(7293);t.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(t,e,r){var n=r(7854),i=r(2309),o=r(2597),s=r(9711),a=r(133),u=r(3307),h=i("wks"),l=n.Symbol,c=l&&l["for"],f=u?l:l&&l.withoutSetter||s;t.exports=function(t){if(!o(h,t)||!a&&"string"!=typeof h[t]){var e="Symbol."+t;a&&o(l,t)?h[t]=l[t]:h[t]=u&&c?c(e):f(e)}return h[t]}},9191:function(t,e,r){"use strict";var n=r(5005),i=r(2597),o=r(8880),s=r(7976),a=r(7674),u=r(9920),h=r(9587),l=r(6277),c=r(8340),f=r(7741),d=r(2914),p=r(1913);t.exports=function(t,e,r,_){var v=_?2:1,m=t.split("."),y=m[m.length-1],g=n.apply(null,m);if(g){var E=g.prototype;if(!p&&i(E,"cause")&&delete E.cause,!r)return g;var T=n("Error"),b=e((function(t,e){var r=l(_?e:t,void 0),n=_?new g(t):new g;return void 0!==r&&o(n,"message",r),d&&o(n,"stack",f(n.stack,2)),this&&s(E,this)&&h(n,this,b),arguments.length>v&&c(n,arguments[v]),n}));if(b.prototype=E,"Error"!==y&&(a?a(b,T):u(b,T,{name:!0})),u(b,g),!p)try{E.name!==y&&o(E,"name",y),E.constructor=b}catch(x){}return b}}},1703:function(t,e,r){var n=r(2109),i=r(7854),o=r(2104),s=r(9191),a="WebAssembly",u=i[a],h=7!==Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=s(t,e,h),n({global:!0,forced:h},r)},c=function(t,e){if(u&&u[t]){var r={};r[t]=s(a+"."+t,e,h),n({target:a,stat:!0,forced:h},r)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),c("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),c("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),c("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},8675:function(t,e,r){"use strict";var n=r(260),i=r(6244),o=r(9303),s=n.aTypedArray,a=n.exportTypedArrayMethod;a("at",(function(t){var e=s(this),r=i(e),n=o(t),a=n>=0?n:r+n;return a<0||a>=r?void 0:e[a]}))},3462:function(t,e,r){"use strict";var n=r(7854),i=r(6916),o=r(260),s=r(6244),a=r(4590),u=r(7908),h=r(7293),l=n.RangeError,c=n.Int8Array,f=c&&c.prototype,d=f&&f.set,p=o.aTypedArray,_=o.exportTypedArrayMethod,v=!h((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),m=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&h((function(){var t=new c(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));_("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),r=u(t);if(v)return i(d,this,r,e);var n=this.length,o=s(r),h=0;if(o+e>n)throw l("Wrong length");while(h=0;--i){var o=h[i];if(o.test&&o.test(t,r))return new o(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},c(t,e)};function f(t,e){function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var d=function(){return d=Object.assign||function(t){for(var e,r=arguments,n=1,i=arguments.length;n0&&d>0,s.textureCacheIds=[],s.destroyed=!1,s.resource=null,s._batchEnabled=0,s._batchLocation=0,s.parentTextureArray=null,s.setResource(e),s}return f(e,t),Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(t,e){var r;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,r=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,r=!0),r&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,e,r){return r=r||this.resolution,this.setRealSize(t*r,e*r,r)},e.prototype.setRealSize=function(t,e,r){return this.resolution=r||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=(0,o.wv)(this.realWidth)&&(0,o.wv)(this.realHeight)},e.prototype.setResolution=function(t){var e=this.resolution;return e===t||(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete o.V8[this.cacheId],delete o.kN[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(t,r,i){void 0===i&&(i=n.X.STRICT_TEXTURE_CACHE);var s="string"===typeof t,a=null;if(s)a=t;else{if(!t._pixiId){var u=r&&r.pixiIdPrefix||"pixiid";t._pixiId=u+"_"+(0,o.hQ)()}a=t._pixiId}var h=o.V8[a];if(s&&i&&!h)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return h||(h=new e(t,r),h.cacheId=a,e.addToCache(h,a)),h},e.fromBuffer=function(t,r,n,o){t=t||new Float32Array(r*n*4);var s=new v(t,{width:r,height:n}),a=t instanceof Float32Array?i.vK.FLOAT:i.vK.UNSIGNED_BYTE;return new e(s,Object.assign(m,o||{width:r,height:n,type:a}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),o.V8[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),o.V8[e]=t)},e.removeFromCache=function(t){if("string"===typeof t){var e=o.V8[t];if(e){var r=e.textureCacheIds.indexOf(t);return r>-1&&e.textureCacheIds.splice(r,1),delete o.V8[t],e}}else if(t&&t.textureCacheIds){for(var n=0;n0){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=i.sp.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this},e.prototype.upload=function(t,r,n){for(var i=this.itemDirtyIds,o=0;o)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(T),I=function(t){function e(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),"string"===typeof r&&(r=[r]);var s=r[0].src||r[0];T.crossOrigin(o,s,n.crossorigin);for(var a=0;a0&&!1===t.paused&&!1===t.ended&&t.readyState>2},e.prototype._isSourceReady=function(){var t=this.source;return 3===t.readyState||4===t.readyState},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(a.vB.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var e=this.valid;this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(a.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),e.test=function(t,r){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement||e.TYPES.indexOf(r)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(T),S=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.test=function(t){return!!globalThis.createImageBitmap&&t instanceof ImageBitmap},e}(T);h.push(R,S,b,I,A,v,x,E);var O={__proto__:null,Resource:_,BaseImageResource:T,INSTALLED:h,autoDetectResource:l,AbstractMultiResource:g,ArrayResource:E,BufferResource:v,CanvasResource:b,CubeResource:x,ImageResource:R,SVGResource:A,VideoResource:I,ImageBitmapResource:S},P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.upload=function(t,e,r){var n=t.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===i.iw.UNPACK);var o=e.realWidth,s=e.realHeight;return r.width===o&&r.height===s?n.texSubImage2D(e.target,0,0,0,o,s,e.format,r.type,this.data):(r.width=o,r.height=s,n.texImage2D(e.target,0,r.internalFormat,o,s,0,e.format,r.type,this.data)),!0},e}(v),N=function(){function t(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new s.R("disposeFramebuffer"),this.multisample=i.G5.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(t,e){return void 0===t&&(t=0),this.colorTextures[t]=e||new y(null,{scaleMode:i.aH.NEAREST,resolution:1,mipmap:i.WB.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(t){return this.depthTexture=t||new y(new P(null,{width:this.width,height:this.height}),{scaleMode:i.aH.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:i.WB.OFF,format:i.I2.DEPTH_COMPONENT,type:i.vK.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var r=0;r-1&&e.textureCacheIds.splice(r,1),delete o.kN[t],e}}else if(t&&t.textureCacheIds){for(var n=0;nthis.baseTexture.width,s=r+i>this.baseTexture.height;if(o||s){var a=o&&s?"and":"or",u="X: "+e+" + "+n+" = "+(e+n)+" > "+this.baseTexture.width,h="Y: "+r+" + "+i+" = "+(r+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+a+" "+h)}this.valid=n&&i&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},e}(o.vp);function L(){var t=document.createElement("canvas");t.width=16,t.height=16;var e=t.getContext("2d");return e.fillStyle="white",e.fillRect(0,0,16,16),new C(new y(new b(t)))}function F(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}C.EMPTY=new C(new y),F(C.EMPTY),F(C.EMPTY.baseTexture),C.WHITE=L(),F(C.WHITE),F(C.WHITE.baseTexture);var U=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return f(e,t),Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e,r){void 0===r&&(r=!0);var n=this.baseTexture.resolution,i=Math.round(t*n)/n,o=Math.round(e*n)/n;this.valid=i>0&&o>0,this._frame.width=this.orig.width=i,this._frame.height=this.orig.height=o,r&&this.baseTexture.resize(i,o),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){for(var r=arguments,n=[],i=1;i1?-n:-1:(t=(0,o.a9)(t),e=(0,o.a9)(e),s=((65535&t)<<16|65535&e)>>>0,n>1&&(s+=4294967296*n)),this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,n)),a.filterPoolKey=s,a.setResolution(r),a},t.prototype.getFilterTexture=function(t,e,r){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,r||i.G5.NONE);return n.filterFrame=t.filterFrame,n},t.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},t.prototype.returnFilterTexture=function(t){this.returnTexture(t)},t.prototype.clear=function(t){if(t=!1!==t,t)for(var e in this.texturePool){var r=this.texturePool[e];if(r)for(var n=0;n0&&t.height>0,this.texturePool)if(Number(e)<0){var r=this.texturePool[e];if(r)for(var n=0;n1){for(var h=0;h1&&(c=this.getOptimalFilterTexture(l.width,l.height,e.resolution),c.filterFrame=l.filterFrame),r[f].apply(this,l,c,i.yl.CLEAR,e);var d=l;l=c,c=d}r[f].apply(this,l,h.renderTexture,i.yl.BLEND,e),f>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(c)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(t,e){void 0===e&&(e=i.yl.CLEAR);var r=this.renderer,n=r.renderTexture,o=r.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,n.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var a=1&o.stateId||this.forceClear;(e===i.yl.CLEAR||e===i.yl.BLIT&&a)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(t,e,r,n){var o=this.renderer;o.state.set(t.state),this.bindAndClear(r,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(i.lg.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(i.lg.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(t,e){var r=this.activeState,n=r.sourceFrame,i=r.destinationFrame,o=e._texture.orig,s=t.set(i.width,0,0,i.height,n.x,n.y),a=e.worldTransform.copyTo(u.y3.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(e.anchor.x,e.anchor.y),s},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(t,e,r,n){return void 0===r&&(r=1),void 0===n&&(n=i.G5.NONE),this.texturePool.getOptimalTexture(t,e,r,n)},t.prototype.getFilterTexture=function(t,e,r){if("number"===typeof t){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,r||i.G5.NONE);return o.filterFrame=t.filterFrame,o},t.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(t,e){var r=Q[0],n=Q[1],i=Q[2],o=Q[3];r.set(e.left,e.top),n.set(e.left,e.bottom),i.set(e.right,e.top),o.set(e.right,e.bottom),t.apply(r,r),t.apply(n,n),t.apply(i,i),t.apply(o,o);var s=Math.min(r.x,n.x,i.x,o.x),a=Math.min(r.y,n.y,i.y,o.y),u=Math.max(r.x,n.x,i.x,o.x),h=Math.max(r.y,n.y,i.y,o.y);e.x=s,e.y=a,e.width=u-s,e.height=h-a},t.prototype.roundFrame=function(t,e,r,n,i){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(i){var o=i.a,s=i.b,a=i.c,u=i.d;if((Math.abs(s)>1e-4||Math.abs(a)>1e-4)&&(Math.abs(o)>1e-4||Math.abs(u)>1e-4))return}i=i?tt.copyFrom(i):tt.identity(),i.translate(-r.x,-r.y).scale(n.width/r.width,n.height/r.height).translate(n.x,n.y),this.transformAABB(i,t),t.ceil(e),this.transformAABB(i.invert(),t)}},t}(),rt=function(){function t(t){this.renderer=t}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(t){},t}(),nt=function(){function t(t){this.renderer=t,this.emptyRenderer=new rt(t),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(t,e){for(var r=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=r[n]||null,t[n]&&(t[n]._batchLocation=n)},t.prototype.boundArray=function(t,e,r,n){for(var i=t.elements,o=t.ids,s=t.count,a=0,u=0;u=0&&l=i.Vi.WEBGL2&&(r=t.getContext("webgl2",e)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(t){t.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(t){var e=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),e.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),st=function(){function t(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=i.G5.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return t}(),at=new u.Ae,ut=function(){function t(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new N(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new u.Ae,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion){var e=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;n.X.PREFER_ENV===i.Vi.WEBGL_LEGACY&&(e=null,r=null),e?t.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,t.drawBuffers=function(){}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},t.prototype.bind=function(t,e,r){void 0===r&&(r=0);var n=this.gl;if(t){var i=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer)),i.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,i.mipLevel=r),i.dirtyId!==t.dirtyId&&(i.dirtyId=t.dirtyId,i.dirtyFormat!==t.dirtyFormat?(i.dirtyFormat=t.dirtyFormat,i.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):i.dirtySize!==t.dirtySize&&(i.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var o=0;o>r,u=e.height>>r,h=a/e.width;this.setViewport(e.x*h,e.y*h,a,u)}else{a=t.width>>r,u=t.height>>r;this.setViewport(0,0,a,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(t,e,r,n){var i=this.viewport;t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),i.width===r&&i.height===n&&i.x===t&&i.y===e||(i.x=t,i.y=e,i.width=r,i.height=n,this.gl.viewport(t,e,r,n))},Object.defineProperty(t.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),t.prototype.clear=function(t,e,r,n,o){void 0===o&&(o=i.V0.COLOR|i.V0.DEPTH);var s=this.gl;s.clearColor(t,e,r,n),s.clear(o)},t.prototype.initFramebuffer=function(t){var e=this.gl,r=new st(e.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r},t.prototype.resizeFramebuffer=function(t){var e=this.gl,r=t.glFramebuffers[this.CONTEXT_UID];r.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,r.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,r.multisample,e.RGBA8,t.width,t.height)),r.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,r.stencil),r.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,r.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,i=n.length;e.drawBuffers||(i=Math.min(i,1));for(var o=0;o1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(r.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var s=[],a=0;a1&&r.drawBuffers(s),t.depthTexture){var l=this.writeDepthTexture;if(l){var c=t.depthTexture;this.renderer.texture.bind(c,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}}!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture?n.stencil&&(r.deleteRenderbuffer(n.stencil),n.stencil=null):(n.stencil=n.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,n.stencil))},t.prototype.canMultisampleFramebuffer=function(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture},t.prototype.detectSamples=function(t){var e=this.msaaSamples,r=i.G5.NONE;if(t<=1||null===e)return r;for(var n=0;n=0&&this.managedFramebuffers.splice(i,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&n.deleteRenderbuffer(r.msaaBuffer),r.stencil&&n.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r=i.Vi.WEBGL2&&(e=t.getContext("webgl2",{})),e||(e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),gt=e}return gt}function Tt(){if(!mt){mt=i.cB.MEDIUM;var t=Et();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);mt=e.precision?i.cB.HIGH:i.cB.MEDIUM}}return mt}function bt(t,e,r){if("precision"!==t.substring(0,9)){var n=e;return e===i.cB.HIGH&&r!==i.cB.HIGH&&(n=i.cB.MEDIUM),"precision "+n+" float;\n"+t}return r!==i.cB.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var xt={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Rt(t){return xt[t]}var At=null,It={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function St(t,e){if(!At){var r=Object.keys(It);At={};for(var n=0;n0&&(e+="\nelse "),r1e-4||Math.abs(n)>1e-4)&&(Math.abs(e)>1e-4||Math.abs(i)>1e-4)},e.prototype.testScissor=function(t){var r=t.maskObject;if(!r.isFastRect||!r.isFastRect())return!1;if(e.isMatrixRotated(r.worldTransform))return!1;if(e.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(t);var n=t._scissorRectLocal;return n.width>0&&n.height>0},e.prototype.roundFrameToPixels=function(t,r,n,i,o){e.isMatrixRotated(o)||(o=o?se.copyFrom(o):se.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.renderer.filter.transformAABB(o,t),t.fit(i),t.x=Math.round(t.x*r),t.y=Math.round(t.y*r),t.width=Math.round(t.width*r),t.height=Math.round(t.height*r))},e.prototype.push=function(t){t._scissorRectLocal||this.calcScissorRect(t);var e=this.renderer.gl;t._scissorRect||e.enable(e.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()},e.prototype.pop=function(){var t=this.renderer.gl;this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t,e=this.maskStack[this.maskStack.length-1]._scissorRect;t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)},e}(oe),ue=function(t){function e(e){var r=t.call(this,e)||this;return r.glConst=WebGLRenderingContext.STENCIL_TEST,r}return f(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var e=t.maskObject,r=this.renderer.gl,n=t._stencilCounter;0===n&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++,r.colorMask(!1,!1,!1,!1),r.stencilFunc(r.EQUAL,n,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;0===this.getStackLength()?e.disable(e.STENCIL_TEST):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,this._useCurrent())},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e}(oe),he=function(){function t(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new u.y3,this.transform=null}return t.prototype.update=function(t,e,r,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,n),this.transform&&this.projectionMatrix.append(this.transform);var i=this.renderer;i.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,i.globalUniforms.update(),i.shader.shader&&i.shader.syncUniformGroup(i.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(t,e,r,n){var i=this.projectionMatrix,o=n?-1:1;i.identity(),i.a=1/e.width*2,i.d=o*(1/e.height*2),i.tx=-1-e.x*i.a,i.ty=-o-e.y*i.d},t.prototype.setTransform=function(t){},t.prototype.destroy=function(){this.renderer=null},t}(),le=new u.Ae,ce=new u.Ae,fe=function(){function t(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new u.Ae,this.destinationFrame=new u.Ae,this.viewportFrame=new u.Ae}return t.prototype.bind=function(t,e,r){void 0===t&&(t=null);var n,i,o,s=this.renderer;this.current=t,t?(n=t.baseTexture,o=n.resolution,e||(le.width=t.frame.width,le.height=t.frame.height,e=le),r||(ce.x=t.frame.x,ce.y=t.frame.y,ce.width=e.width,ce.height=e.height,r=ce),i=n.framebuffer):(o=s.resolution,e||(le.width=s.screen.width,le.height=s.screen.height,e=le),r||(r=le,r.width=e.width,r.height=e.height));var a=this.viewportFrame;a.x=r.x*o,a.y=r.y*o,a.width=r.width*o,a.height=r.height*o,t||(a.y=s.view.height-(a.y+a.height)),a.ceil(),this.renderer.framebuffer.bind(i,a),this.renderer.projection.update(r,e,o,!i),t?this.renderer.mask.setMaskStack(n.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(r)},t.prototype.clear=function(t,e){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor;var r=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,i=r.width!==n.width||r.height!==n.height;if(i){var o=this.viewportFrame,s=o.x,a=o.y,u=o.width,h=o.height;s=Math.round(s),a=Math.round(a),u=Math.round(u),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,a,u,h)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),i&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function de(t,e,r,n,i){r.buffer.update(i)}var pe={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},_e={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function ve(t){for(var e=t.map((function(t){return{data:t,offset:0,dataLen:0,dirty:0}})),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*s.data.size),s.dataLen=r,n%r!==0&&n<16){var a=n%r%16;n+=a,i+=a}n+r>16?(i=16*Math.ceil(i/16),s.offset=i,i+=r,n=r):(s.offset=i,n+=r,i+=r)}return i=16*Math.ceil(i/16),{uboElements:e,size:i}}function me(t,e){var r=[];for(var n in t)e[n]&&r.push(e[n]);return r.sort((function(t,e){return t.index-e.index})),r}function ye(t,e){if(!t.autoManage)return{size:0,syncFunc:de};for(var r=me(t.uniforms,e),n=ve(r),i=n.uboElements,o=n.size,s=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],a=0;a1){var p=Rt(u.data.type),_=Math.max(_e[u.data.type]/16,1),v=p/_,m=(4-v%4)%4;s.push("\n cv = ud."+l+".value;\n v = uv."+l+";\n offset = "+u.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+u.data.size*_+"; i++)\n {\n for(var j = 0; j < "+v+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+m+";\n }\n\n ")}else{var y=pe[u.data.type];s.push("\n cv = ud."+l+".value;\n v = uv."+l+";\n offset = "+u.offset/4+";\n "+y+";\n ")}}return s.push("\n renderer.buffer.update(buffer);\n "),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join("\n"))}}(function(){function t(){}})();var ge=function(){function t(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function Ee(t,e){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;ie?1:-1}));for(var s=0;s>=1,r++;this.stateId=t.data}for(r=0;rthis.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,r=!1,n=0;nthis.maxIdle&&(t.destroyTexture(i,!0),e[n]=null,r=!0)}if(r){var o=0;for(n=0;n=0;n--)this.unload(t.children[n])},t.prototype.destroy=function(){this.renderer=null},t}();function Le(t){var e,r,n,o,s,a,u,h,l,c,f,d,p,_,v,m,y,g,E,T,b,x,R;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?(e={},e[i.vK.UNSIGNED_BYTE]=(r={},r[i.I2.RGBA]=t.RGBA8,r[i.I2.RGB]=t.RGB8,r[i.I2.RG]=t.RG8,r[i.I2.RED]=t.R8,r[i.I2.RGBA_INTEGER]=t.RGBA8UI,r[i.I2.RGB_INTEGER]=t.RGB8UI,r[i.I2.RG_INTEGER]=t.RG8UI,r[i.I2.RED_INTEGER]=t.R8UI,r[i.I2.ALPHA]=t.ALPHA,r[i.I2.LUMINANCE]=t.LUMINANCE,r[i.I2.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,r),e[i.vK.BYTE]=(n={},n[i.I2.RGBA]=t.RGBA8_SNORM,n[i.I2.RGB]=t.RGB8_SNORM,n[i.I2.RG]=t.RG8_SNORM,n[i.I2.RED]=t.R8_SNORM,n[i.I2.RGBA_INTEGER]=t.RGBA8I,n[i.I2.RGB_INTEGER]=t.RGB8I,n[i.I2.RG_INTEGER]=t.RG8I,n[i.I2.RED_INTEGER]=t.R8I,n),e[i.vK.UNSIGNED_SHORT]=(o={},o[i.I2.RGBA_INTEGER]=t.RGBA16UI,o[i.I2.RGB_INTEGER]=t.RGB16UI,o[i.I2.RG_INTEGER]=t.RG16UI,o[i.I2.RED_INTEGER]=t.R16UI,o[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,o),e[i.vK.SHORT]=(s={},s[i.I2.RGBA_INTEGER]=t.RGBA16I,s[i.I2.RGB_INTEGER]=t.RGB16I,s[i.I2.RG_INTEGER]=t.RG16I,s[i.I2.RED_INTEGER]=t.R16I,s),e[i.vK.UNSIGNED_INT]=(a={},a[i.I2.RGBA_INTEGER]=t.RGBA32UI,a[i.I2.RGB_INTEGER]=t.RGB32UI,a[i.I2.RG_INTEGER]=t.RG32UI,a[i.I2.RED_INTEGER]=t.R32UI,a[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,a),e[i.vK.INT]=(u={},u[i.I2.RGBA_INTEGER]=t.RGBA32I,u[i.I2.RGB_INTEGER]=t.RGB32I,u[i.I2.RG_INTEGER]=t.RG32I,u[i.I2.RED_INTEGER]=t.R32I,u),e[i.vK.FLOAT]=(h={},h[i.I2.RGBA]=t.RGBA32F,h[i.I2.RGB]=t.RGB32F,h[i.I2.RG]=t.RG32F,h[i.I2.RED]=t.R32F,h[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,h),e[i.vK.HALF_FLOAT]=(l={},l[i.I2.RGBA]=t.RGBA16F,l[i.I2.RGB]=t.RGB16F,l[i.I2.RG]=t.RG16F,l[i.I2.RED]=t.R16F,l),e[i.vK.UNSIGNED_SHORT_5_6_5]=(c={},c[i.I2.RGB]=t.RGB565,c),e[i.vK.UNSIGNED_SHORT_4_4_4_4]=(f={},f[i.I2.RGBA]=t.RGBA4,f),e[i.vK.UNSIGNED_SHORT_5_5_5_1]=(d={},d[i.I2.RGBA]=t.RGB5_A1,d),e[i.vK.UNSIGNED_INT_2_10_10_10_REV]=(p={},p[i.I2.RGBA]=t.RGB10_A2,p[i.I2.RGBA_INTEGER]=t.RGB10_A2UI,p),e[i.vK.UNSIGNED_INT_10F_11F_11F_REV]=(_={},_[i.I2.RGB]=t.R11F_G11F_B10F,_),e[i.vK.UNSIGNED_INT_5_9_9_9_REV]=(v={},v[i.I2.RGB]=t.RGB9_E5,v),e[i.vK.UNSIGNED_INT_24_8]=(m={},m[i.I2.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,m),e[i.vK.FLOAT_32_UNSIGNED_INT_24_8_REV]=(y={},y[i.I2.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,y),R=e):(g={},g[i.vK.UNSIGNED_BYTE]=(E={},E[i.I2.RGBA]=t.RGBA,E[i.I2.RGB]=t.RGB,E[i.I2.ALPHA]=t.ALPHA,E[i.I2.LUMINANCE]=t.LUMINANCE,E[i.I2.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,E),g[i.vK.UNSIGNED_SHORT_5_6_5]=(T={},T[i.I2.RGB]=t.RGB,T),g[i.vK.UNSIGNED_SHORT_4_4_4_4]=(b={},b[i.I2.RGBA]=t.RGBA,b),g[i.vK.UNSIGNED_SHORT_5_5_5_1]=(x={},x[i.I2.RGBA]=t.RGBA,x),R=g),R}var Fe=function(){function t(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=i.vK.UNSIGNED_BYTE,this.internalFormat=i.I2.RGBA,this.samplerType=0}return t}(),Ue=function(){function t(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new y,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Le(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var r=0;r=0;--s){var a=r[s];if(a){var u=a._glTextures[o];u.samplerType!==i.oT.FLOAT&&this.renderer.texture.unbind(a)}}},t.prototype.initTexture=function(t){var e=new Fe(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(t,e){var r,n;e.internalFormat=null!==(n=null===(r=this.internalFormats[t.type])||void 0===r?void 0:r[t.format])&&void 0!==n?n:t.format,2===this.webGLVersion&&t.type===i.vK.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},t.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(e){var r=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(r,t,e))e.samplerType!==i.oT.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,o=t.realHeight,s=r.gl;(e.width!==n||e.height!==o||e.dirtyId<0)&&(e.width=n,e.height=o,s.texImage2D(t.target,0,e.internalFormat,n,o,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},t.prototype.destroyTexture=function(t,e){var r=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);-1!==n&&(0,o.Er)(this.managedTextures,n,1)}},t.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==i.WB.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=t.mipmap>=1:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=i.Nt.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},t.prototype.setStyle=function(t,e){var r=this.gl;if(e.mipmap&&t.mipmap!==i.WB.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,e.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===i.aH.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===i.aH.LINEAR){var o=Math.min(t.anisotropicLevel,r.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===i.aH.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===i.aH.LINEAR?r.LINEAR:r.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Ge={__proto__:null,FilterSystem:et,BatchSystem:nt,ContextSystem:ot,FramebufferSystem:ut,GeometrySystem:lt,MaskSystem:ie,ScissorSystem:ae,StencilSystem:ue,ProjectionSystem:he,RenderTextureSystem:fe,ShaderSystem:Ae,StateSystem:De,TextureGCSystem:Ce,TextureSystem:Ue},Be=new u.y3,Xe=function(t){function e(e,r){void 0===e&&(e=i.N3.UNKNOWN);var s=t.call(this)||this;return r=Object.assign({},n.X.RENDER_OPTIONS,r),s.options=r,s.type=e,s.screen=new u.Ae(0,0,r.width,r.height),s.view=r.view||document.createElement("canvas"),s.resolution=r.resolution||n.X.RESOLUTION,s.useContextAlpha=r.useContextAlpha,s.autoDensity=!!r.autoDensity,s.preserveDrawingBuffer=r.preserveDrawingBuffer,s.clearBeforeRender=r.clearBeforeRender,s._backgroundColor=0,s._backgroundColorRgba=[0,0,0,1],s._backgroundColorString="#000000",s.backgroundColor=r.backgroundColor||s._backgroundColor,s.backgroundAlpha=r.backgroundAlpha,void 0!==r.transparent&&((0,o.a1)("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),s.useContextAlpha=r.transparent,s.backgroundAlpha=r.transparent?0:1),s._lastObjectRendered=null,s.plugins={},s}return f(e,t),e.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(e*this.resolution);var r=this.view.width/this.resolution,n=this.view.height/this.resolution;this.screen.width=r,this.screen.height=n,this.autoDensity&&(this.view.style.width=r+"px",this.view.style.height=n+"px"),this.emit("resize",r,n)},e.prototype.generateTexture=function(t,e,r,n){void 0===e&&(e={}),"number"===typeof e&&((0,o.a1)("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),e={scaleMode:e,resolution:r,region:n});var i=e.region,s=p(e,["region"]);n=i||t.getLocalBounds(null,!0),0===n.width&&(n.width=1),0===n.height&&(n.height=1);var a=U.create(d({width:n.width,height:n.height},s));return Be.tx=-n.x,Be.ty=-n.y,this.render(t,{renderTexture:a,clear:!1,transform:Be,skipUpdateTransform:!!t.parent}),a},e.prototype.destroy=function(t){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var r=this;r.plugins=null,r.type=i.N3.UNKNOWN,r.view=null,r.screen=null,r._tempDisplayObjectParent=null,r.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=(0,o.XN)(t),(0,o.wK)(t,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(t){this._backgroundColorRgba[3]=t},enumerable:!1,configurable:!0}),e}(o.vp),ke=function(){function t(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return t}(),He=function(){function t(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return t.prototype.destroy=function(){this.renderer=null},t.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},t.prototype.bind=function(t){var e=this,r=e.gl,n=e.CONTEXT_UID,i=t._glBuffers[n]||this.createGLBuffer(t);r.bindBuffer(t.type,i.buffer)},t.prototype.bindBufferBase=function(t,e){var r=this,n=r.gl,i=r.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,o.buffer)}},t.prototype.bindBufferRange=function(t,e,r){var n=this,i=n.gl,o=n.CONTEXT_UID;r=r||0;var s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,e||0,s.buffer,256*r,256)},t.prototype.update=function(t){var e=this,r=e.gl,n=e.CONTEXT_UID,i=t._glBuffers[n];if(t._updateID!==i.updateID)if(i.updateID=t._updateID,r.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)r.bufferSubData(t.type,0,t.data);else{var o=t.static?r.STATIC_DRAW:r.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,r.bufferData(t.type,t.data,o)}},t.prototype.dispose=function(t,e){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var r=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),r&&(e||n.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),r=0;r=i.G5.HIGH?this.multisample=i.G5.HIGH:t>=i.G5.MEDIUM?this.multisample=i.G5.MEDIUM:t>=i.G5.LOW?this.multisample=i.G5.LOW:this.multisample=i.G5.NONE},e.prototype.addSystem=function(t,e){var r=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(var n in this[e]=r,this.runners)this.runners[n].add(r);return this},e.prototype.render=function(t,e){var r,n,i,s;if(e&&(e instanceof U?((0,o.a1)("6.0.0","Renderer#render arguments changed, use options instead."),r=e,n=arguments[2],i=arguments[3],s=arguments[4]):(r=e.renderTexture,n=e.clear,i=e.transform,s=e.skipUpdateTransform)),this.renderingToScreen=!r,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=i,!this.context.isLost){if(r||(this._lastObjectRendered=t),!s){var a=t.enableTempParent();t.updateTransform(),t.disableTempParent(a)}this.renderTexture.bind(r),this.batch.currentRenderer.start(),(void 0!==n?n:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),r&&r.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(e,r,n,i){void 0===r&&(r={});var o=t.prototype.generateTexture.call(this,e,r,n,i);return this.framebuffer.blit(),o},e.prototype.resize=function(e,r){t.prototype.resize.call(this,e,r),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(e){for(var r in this.runners.destroy.emit(),this.runners)this.runners[r].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return(0,o.a1)("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(t,r){e.__plugins=e.__plugins||{},e.__plugins[t]=r},e}(Xe);function Ve(t){return je.create(t)}var Ye="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",We="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",ze=Ye,qe=We,Ke=(function(){function t(t){(0,o.a1)("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}t.prototype.destroy=function(){this.renderer=null}}(),function(){function t(){this.texArray=null,this.blend=0,this.type=i.lg.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}()),$e=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this,r=t._bufferedTextures,n=t.MAX_TEXTURES,i=e._textureArrayPool,o=this.renderer.batch,s=this._tempBoundTextures,a=this.renderer.textureGC.count,u=++y._globalBatch,h=0,l=i[0],c=0;o.copyBoundTextures(s,n);for(var f=0;f=n&&(o.boundArray(l,s,u,n),this.buildDrawCalls(l,c,f),c=f,l=i[++h],++u),d._batchEnabled=u,d.touched=a,l.elements[l.count++]=d)}l.count>0&&(o.boundArray(l,s,u,n),this.buildDrawCalls(l,c,this._bufferSize),++h,++u);for(f=0;f0&&(e+="\nelse "),r>0)},Object.defineProperty(e.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(t){this.uniforms.uOffset=t},enumerable:!1,configurable:!0})})(n.wn)},1188:function(t,e,r){"use strict";r.d(e,{AB:function(){return p},Ae:function(){return h},Cd:function(){return l},E9:function(){return a},HS:function(){return n},Lv:function(){return R},Pj:function(){return c},ZX:function(){return s},_b:function(){return i},c9:function(){return d},jl:function(){return o},mg:function(){return f},wx:function(){return A},y3:function(){return _}});r(8675),r(3462);var n,i=2*Math.PI,o=180/Math.PI,s=Math.PI/180;(function(t){t[t["POLY"]=0]="POLY",t[t["RECT"]=1]="RECT",t[t["CIRC"]=2]="CIRC",t[t["ELIP"]=3]="ELIP",t[t["RREC"]=4]="RREC"})(n||(n={}));var a=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},t.prototype.copyTo=function(t){return t.set(this.x,this.y),t},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),u=[new a,new a,new a,new a],h=function(){function t(t,e,r,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=Number(t),this.y=Number(e),this.width=Number(r),this.height=Number(i),this.type=n.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},t.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t=this.y&&et.right?t.right:this.right;if(n<=r)return!1;var i=this.yt.bottom?t.bottom:this.bottom;return o>i}var s=this.left,a=this.right,h=this.top,l=this.bottom;if(a<=s||l<=h)return!1;var c=u[0].set(t.left,t.top),f=u[1].set(t.left,t.bottom),d=u[2].set(t.right,t.top),p=u[3].set(t.right,t.bottom);if(d.x<=c.x||f.y<=c.y)return!1;var _=Math.sign(e.a*e.d-e.b*e.c);if(0===_)return!1;if(e.apply(c,c),e.apply(f,f),e.apply(d,d),e.apply(p,p),Math.max(c.x,f.x,d.x,p.x)<=s||Math.min(c.x,f.x,d.x,p.x)>=a||Math.max(c.y,f.y,d.y,p.y)<=h||Math.min(c.y,f.y,d.y,p.y)>=l)return!1;var v=_*(f.y-c.y),m=_*(c.x-f.x),y=v*s+m*h,g=v*a+m*h,E=v*s+m*l,T=v*a+m*l;if(Math.max(y,g,E,T)<=v*c.x+m*c.y||Math.min(y,g,E,T)>=v*p.x+m*p.y)return!1;var b=_*(c.y-d.y),x=_*(d.x-c.x),R=b*s+x*h,A=b*a+x*h,I=b*s+x*l,S=b*a+x*l;return!(Math.max(R,A,I,S)<=b*c.x+x*c.y||Math.min(R,A,I,S)>=b*p.x+x*p.y)},t.prototype.pad=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.fit=function(t){var e=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),i=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(r-e,0),this.y=n,this.height=Math.max(i-n,0),this},t.prototype.ceil=function(t,e){void 0===t&&(t=1),void 0===e&&(e=.001);var r=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=r-this.x,this.height=n-this.y,this},t.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),i=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=r-e,this.y=n,this.height=i-n,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),l=function(){function t(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),this.x=t,this.y=e,this.radius=r,this.type=n.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,e){if(this.radius<=0)return!1;var r=this.radius*this.radius,n=this.x-t,i=this.y-e;return n*=n,i*=i,n+i<=r},t.prototype.getBounds=function(){return new h(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),c=function(){function t(t,e,r,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=t,this.y=e,this.width=r,this.height=i,this.type=n.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var r=(t-this.x)/this.width,n=(e-this.y)/this.height;return r*=r,n*=n,r+n<=1},t.prototype.getBounds=function(){return new h(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),f=function(){function t(){for(var t=arguments,e=[],r=0;re!==h>e&&t<(e-a)/(h-a)*(u-s)+s;l&&(r=!r)}return r},t.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce((function(t,e){return t+", "+e}),"")+"]"},t}(),d=function(){function t(t,e,r,i,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=20),this.x=t,this.y=e,this.width=r,this.height=i,this.radius=o,this.type=n.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+r&&e<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;var n=t-(this.x+r),i=e-(this.y+r),o=r*r;if(n*n+i*i<=o)return!0;if(n=t-(this.x+this.width-r),n*n+i*i<=o)return!0;if(i=e-(this.y+this.height-r),n*n+i*i<=o)return!0;if(n=t-(this.x+r),n*n+i*i<=o)return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"},t}(),p=function(){function t(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0),this._x=r,this._y=n,this.cb=t,this.scope=e}return t.prototype.clone=function(e,r){return void 0===e&&(e=this.cb),void 0===r&&(r=this.scope),new t(e,r,this._x,this._y)},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(t){return t.set(this._x,this._y),t},t.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),_=function(){function t(t,e,r,n,i,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===o&&(o=0),this.array=null,this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o}return t.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},t.prototype.set=function(t,e,r,n,i,o){return this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var r=e||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},t.prototype.apply=function(t,e){e=e||new a;var r=t.x,n=t.y;return e.x=this.a*r+this.c*n+this.tx,e.y=this.b*r+this.d*n+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new a;var r=1/(this.a*this.d+this.c*-this.b),n=t.x,i=t.y;return e.x=this.d*r*n+-this.c*r*i+(this.ty*this.c-this.tx*this.d)*r,e.y=this.a*r*i+-this.b*r*n+(-this.ty*this.a+this.tx*this.b)*r,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t),n=this.a,i=this.c,o=this.tx;return this.a=n*e-this.b*r,this.b=n*r+this.b*e,this.c=i*e-this.d*r,this.d=i*r+this.d*e,this.tx=o*e-this.ty*r,this.ty=o*r+this.ty*e,this},t.prototype.append=function(t){var e=this.a,r=this.b,n=this.c,i=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*r+t.b*i,this.c=t.c*e+t.d*n,this.d=t.c*r+t.d*i,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*r+t.ty*i+this.ty,this},t.prototype.setTransform=function(t,e,r,n,i,o,s,a,u){return this.a=Math.cos(s+u)*i,this.b=Math.sin(s+u)*i,this.c=-Math.sin(s-a)*o,this.d=Math.cos(s-a)*o,this.tx=t-(r*this.a+n*this.c),this.ty=e-(r*this.b+n*this.d),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var r=this.a,n=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,r=this.b,n=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-n,o),u=Math.atan2(r,e),h=Math.abs(a+u);return h<1e-5||Math.abs(i-h)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=u),t.scale.x=Math.sqrt(e*e+r*r),t.scale.y=Math.sqrt(n*n+o*o),t.position.x=this.tx+(s.x*e+s.y*n),t.position.y=this.ty+(s.x*r+s.y*o),t},t.prototype.invert=function(){var t=this.a,e=this.b,r=this.c,n=this.d,i=this.tx,o=t*n-e*r;return this.a=n/o,this.b=-e/o,this.c=-r/o,this.d=t/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(t*this.ty-e*i)/o,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},t.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),v=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],m=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],y=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],g=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],E=[],T=[],b=Math.sign;function x(){for(var t=0;t<16;t++){var e=[];E.push(e);for(var r=0;r<16;r++)for(var n=b(v[t]*v[r]+y[t]*m[r]),i=b(m[t]*v[r]+g[t]*m[r]),o=b(v[t]*y[r]+y[t]*g[r]),s=b(m[t]*y[r]+g[t]*g[r]),a=0;a<16;a++)if(v[a]===n&&m[a]===i&&y[a]===o&&g[a]===s){e.push(a);break}}for(t=0;t<16;t++){var u=new _;u.set(v[t],m[t],y[t],g[t],0,0),T.push(u)}}x();var R={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return v[t]},uY:function(t){return m[t]},vX:function(t){return y[t]},vY:function(t){return g[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return E[t][e]},sub:function(t,e){return E[t][R.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2===(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?R.S:R.N:2*Math.abs(e)<=Math.abs(t)?t>0?R.E:R.W:e>0?t>0?R.SE:R.SW:t>0?R.NE:R.NW},matrixAppendRotationInv:function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=T[R.inv(e)];i.tx=r,i.ty=n,t.append(i)}},A=function(){function t(){this.worldTransform=new _,this.localTransform=new _,this.position=new p(this.onChange,this,0,0),this.scale=new p(this.onChange,this,1,1),this.pivot=new p(this.onChange,this,0,0),this.skew=new p(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},t.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var r=t.worldTransform,n=this.worldTransform;n.a=e.a*r.a+e.b*r.c,n.b=e.a*r.b+e.b*r.d,n.c=e.c*r.a+e.d*r.c,n.d=e.c*r.b+e.d*r.d,n.tx=e.tx*r.a+e.ty*r.c+r.tx,n.ty=e.tx*r.b+e.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}()},8658:function(t,e,r){"use strict";r.d(e,{R:function(){return n}});r(1703);var n=function(){function t(t){this.items=[],this._name=t,this._aliasCount=0}return t.prototype.emit=function(t,e,r,n,i,o,s,a){if(arguments.length>8)throw new Error("max arguments reached");var u=this,h=u.name,l=u.items;this._aliasCount++;for(var c=0,f=l.length;c0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(n.prototype,{dispatch:{value:n.prototype.emit},run:{value:n.prototype.emit}})},2307:function(t,e,r){"use strict";r.d(e,{t:function(){return X},X:function(){return j}});var n=/iPhone/i,i=/iPod/i,o=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,h=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,l=/Silk/i,c=/Windows Phone/i,f=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,p=/BB10/i,_=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,m=/Mobile(?:.+)Firefox\b/i,y=function(t){return"undefined"!==typeof t&&"MacIntel"===t.platform&&"number"===typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"===typeof MSStream};function g(t){return function(e){return e.test(t)}}function E(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"===typeof navigator?"string"===typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var r=e.userAgent,E=r.split("[FBAN");"undefined"!==typeof E[1]&&(r=E[0]),E=r.split("Twitter"),"undefined"!==typeof E[1]&&(r=E[0]);var T=g(r),b={apple:{phone:T(n)&&!T(c),ipod:T(i),tablet:!T(n)&&(T(o)||y(e))&&!T(c),universal:T(s),device:(T(n)||T(i)||T(o)||T(s)||y(e))&&!T(c)},amazon:{phone:T(h),tablet:!T(h)&&T(l),device:T(h)||T(l)},android:{phone:!T(c)&&T(h)||!T(c)&&T(a),tablet:!T(c)&&!T(h)&&!T(a)&&(T(l)||T(u)),device:!T(c)&&(T(h)||T(l)||T(a)||T(u))||T(/\bokhttp\b/i)},windows:{phone:T(c),tablet:T(f),device:T(c)||T(f)},other:{blackberry:T(d),blackberry10:T(p),opera:T(_),firefox:T(m),chrome:T(v),device:T(d)||T(p)||T(_)||T(m)||T(v)},any:!1,phone:!1,tablet:!1};return b.any=b.apple.device||b.android.device||b.windows.device||b.other.device,b.phone=b.apple.phone||b.android.phone||b.windows.phone,b.tablet=b.apple.tablet||b.android.tablet||b.windows.tablet,b} /*! * @pixi/settings - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/settings is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ var T,b,x,R,A,I,S,O,P,N,M,w,D,C,L,F,U,G,B,X=E(globalThis.navigator);function k(t){var e=!0;if(X.tablet||X.phone){if(X.apple.device){var r=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(r){var n=parseInt(r[1],10);n<11&&(e=!1)}}if(X.android.device){r=navigator.userAgent.match(/Android\s([0-9.]*)/);if(r){n=parseInt(r[1],10);n<7&&(e=!1)}}}return e?t:4}function H(){return!X.apple.device} /*! * @pixi/constants - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/constants is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */(function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"})(T||(T={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(b||(b={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(x||(x={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(R||(R={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(A||(A={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(I||(I={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(S||(S={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(O||(O={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(P||(P={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(N||(N={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(M||(M={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(w||(w={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(D||(D={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(C||(C={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(L||(L={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(F||(F={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(U||(U={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(G||(G={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(B||(B={}));var j={MIPMAP_TEXTURES:w.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:G.NONE,SPRITE_MAX_TEXTURES:k(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:L.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:M.CLAMP,SCALE_MODE:N.LINEAR,PRECISION_VERTEX:F.HIGH,PRECISION_FRAGMENT:X.apple.device?F.HIGH:F.MEDIUM,CAN_UPLOAD_SAME_BUFFER:H(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1}},8466:function(t,e,r){"use strict";r.d(e,{Sb:function(){return a},uF:function(){return n},vB:function(){return s}});var n,i=r(2307); /*! * @pixi/ticker - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/ticker is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */i.X.TARGET_FPMS=.06,function(t){t[t["INTERACTION"]=50]="INTERACTION",t[t["HIGH"]=25]="HIGH",t[t["NORMAL"]=0]="NORMAL",t[t["LOW"]=-25]="LOW",t[t["UTILITY"]=-50]="UTILITY"}(n||(n={}));var o=function(){function t(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=0),void 0===n&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=r,this.once=n}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),s=function(){function t(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new o(null,null,1/0),this.deltaMS=1/i.X.TARGET_FPMS,this.elapsedMS=1/i.X.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,r){return void 0===r&&(r=n.NORMAL),this._addListener(new o(t,e,r))},t.prototype.addOnce=function(t,e,r){return void 0===r&&(r=n.NORMAL),this._addListener(new o(t,e,r,!0))},t.prototype._addListener=function(t){var e=this._head.next,r=this._head;if(e){while(e){if(t.priority>e.priority){t.connect(r);break}r=e,e=e.next}t.previous||t.connect(r)}else t.connect(r);return this._startIfPossible(),this},t.prototype.remove=function(t,e){var r=this._head.next;while(r)r=r.match(t,e)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;var t=0,e=this._head;while(e=e.next)t++;return t},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();var t=this._head.next;while(t)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var r=t-this._lastFrame|0;if(r-1){var r=["\n %c %c %c PixiJS "+d+" - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,r)}else globalThis.console&&globalThis.console.log("PixiJS "+d+" - "+t+" - http://www.pixijs.com/");f=!0}}function _(){return"undefined"===typeof c&&(c=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:n.X.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),i=!(!r||!r.getContextAttributes().stencil);if(r){var o=r.getExtension("WEBGL_lose_context");o&&o.loseContext()}return r=null,i}catch(s){return!1}}()),c}var v="#f0f8ff",m="#faebd7",y="#00ffff",g="#7fffd4",E="#f0ffff",T="#f5f5dc",b="#ffe4c4",x="#000000",R="#ffebcd",A="#0000ff",I="#8a2be2",S="#a52a2a",O="#deb887",P="#5f9ea0",N="#7fff00",M="#d2691e",w="#ff7f50",D="#6495ed",C="#fff8dc",L="#dc143c",F="#00ffff",U="#00008b",G="#008b8b",B="#b8860b",X="#a9a9a9",k="#006400",H="#a9a9a9",j="#bdb76b",V="#8b008b",Y="#556b2f",W="#ff8c00",z="#9932cc",q="#8b0000",K="#e9967a",$="#8fbc8f",Z="#483d8b",J="#2f4f4f",Q="#2f4f4f",tt="#00ced1",et="#9400d3",rt="#ff1493",nt="#00bfff",it="#696969",ot="#696969",st="#1e90ff",at="#b22222",ut="#fffaf0",ht="#228b22",lt="#ff00ff",ct="#dcdcdc",ft="#f8f8ff",dt="#daa520",pt="#ffd700",_t="#808080",vt="#008000",mt="#adff2f",yt="#808080",gt="#f0fff0",Et="#ff69b4",Tt="#cd5c5c",bt="#4b0082",xt="#fffff0",Rt="#f0e68c",At="#fff0f5",It="#e6e6fa",St="#7cfc00",Ot="#fffacd",Pt="#add8e6",Nt="#f08080",Mt="#e0ffff",wt="#fafad2",Dt="#d3d3d3",Ct="#90ee90",Lt="#d3d3d3",Ft="#ffb6c1",Ut="#ffa07a",Gt="#20b2aa",Bt="#87cefa",Xt="#778899",kt="#778899",Ht="#b0c4de",jt="#ffffe0",Vt="#00ff00",Yt="#32cd32",Wt="#faf0e6",zt="#ff00ff",qt="#800000",Kt="#66cdaa",$t="#0000cd",Zt="#ba55d3",Jt="#9370db",Qt="#3cb371",te="#7b68ee",ee="#00fa9a",re="#48d1cc",ne="#c71585",ie="#191970",oe="#f5fffa",se="#ffe4e1",ae="#ffe4b5",ue="#ffdead",he="#000080",le="#fdf5e6",ce="#808000",fe="#6b8e23",de="#ffa500",pe="#ff4500",_e="#da70d6",ve="#eee8aa",me="#98fb98",ye="#afeeee",ge="#db7093",Ee="#ffefd5",Te="#ffdab9",be="#cd853f",xe="#ffc0cb",Re="#dda0dd",Ae="#b0e0e6",Ie="#800080",Se="#663399",Oe="#ff0000",Pe="#bc8f8f",Ne="#4169e1",Me="#8b4513",we="#fa8072",De="#f4a460",Ce="#2e8b57",Le="#fff5ee",Fe="#a0522d",Ue="#c0c0c0",Ge="#87ceeb",Be="#6a5acd",Xe="#708090",ke="#708090",He="#fffafa",je="#00ff7f",Ve="#4682b4",Ye="#d2b48c",We="#008080",ze="#d8bfd8",qe="#ff6347",Ke="#40e0d0",$e="#ee82ee",Ze="#f5deb3",Je="#ffffff",Qe="#f5f5f5",tr="#ffff00",er="#9acd32",rr={aliceblue:v,antiquewhite:m,aqua:y,aquamarine:g,azure:E,beige:T,bisque:b,black:x,blanchedalmond:R,blue:A,blueviolet:I,brown:S,burlywood:O,cadetblue:P,chartreuse:N,chocolate:M,coral:w,cornflowerblue:D,cornsilk:C,crimson:L,cyan:F,darkblue:U,darkcyan:G,darkgoldenrod:B,darkgray:X,darkgreen:k,darkgrey:H,darkkhaki:j,darkmagenta:V,darkolivegreen:Y,darkorange:W,darkorchid:z,darkred:q,darksalmon:K,darkseagreen:$,darkslateblue:Z,darkslategray:J,darkslategrey:Q,darkturquoise:tt,darkviolet:et,deeppink:rt,deepskyblue:nt,dimgray:it,dimgrey:ot,dodgerblue:st,firebrick:at,floralwhite:ut,forestgreen:ht,fuchsia:lt,gainsboro:ct,ghostwhite:ft,goldenrod:dt,gold:pt,gray:_t,green:vt,greenyellow:mt,grey:yt,honeydew:gt,hotpink:Et,indianred:Tt,indigo:bt,ivory:xt,khaki:Rt,lavenderblush:At,lavender:It,lawngreen:St,lemonchiffon:Ot,lightblue:Pt,lightcoral:Nt,lightcyan:Mt,lightgoldenrodyellow:wt,lightgray:Dt,lightgreen:Ct,lightgrey:Lt,lightpink:Ft,lightsalmon:Ut,lightseagreen:Gt,lightskyblue:Bt,lightslategray:Xt,lightslategrey:kt,lightsteelblue:Ht,lightyellow:jt,lime:Vt,limegreen:Yt,linen:Wt,magenta:zt,maroon:qt,mediumaquamarine:Kt,mediumblue:$t,mediumorchid:Zt,mediumpurple:Jt,mediumseagreen:Qt,mediumslateblue:te,mediumspringgreen:ee,mediumturquoise:re,mediumvioletred:ne,midnightblue:ie,mintcream:oe,mistyrose:se,moccasin:ae,navajowhite:ue,navy:he,oldlace:le,olive:ce,olivedrab:fe,orange:de,orangered:pe,orchid:_e,palegoldenrod:ve,palegreen:me,paleturquoise:ye,palevioletred:ge,papayawhip:Ee,peachpuff:Te,peru:be,pink:xe,plum:Re,powderblue:Ae,purple:Ie,rebeccapurple:Se,red:Oe,rosybrown:Pe,royalblue:Ne,saddlebrown:Me,salmon:we,sandybrown:De,seagreen:Ce,seashell:Le,sienna:Fe,silver:Ue,skyblue:Ge,slateblue:Be,slategray:Xe,slategrey:ke,snow:He,springgreen:je,steelblue:Ve,tan:Ye,teal:We,thistle:ze,tomato:qe,turquoise:Ke,violet:$e,wheat:Ze,white:Je,whitesmoke:Qe,yellow:tr,yellowgreen:er};function nr(t,e){return void 0===e&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function ir(t){var e=t.toString(16);return e="000000".substring(0,6-e.length)+e,"#"+e}function or(t){return"string"===typeof t&&(t=rr[t.toLowerCase()]||t,"#"===t[0]&&(t=t.slice(1))),parseInt(t,16)}function sr(){for(var t=[],e=[],r=0;r<32;r++)t[r]=r,e[r]=r;t[h.T$.NORMAL_NPM]=h.T$.NORMAL,t[h.T$.ADD_NPM]=h.T$.ADD,t[h.T$.SCREEN_NPM]=h.T$.SCREEN,e[h.T$.NORMAL]=h.T$.NORMAL_NPM,e[h.T$.ADD]=h.T$.ADD_NPM,e[h.T$.SCREEN]=h.T$.SCREEN_NPM;var n=[];return n.push(e),n.push(t),n}var ar=sr();function ur(t,e){return ar[e?1:0][t]}function hr(t,e,r,n){return r=r||new Float32Array(4),n||void 0===n?(r[0]=t[0]*e,r[1]=t[1]*e,r[2]=t[2]*e):(r[0]=t[0],r[1]=t[1],r[2]=t[2]),r[3]=e,r}function lr(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var r=t>>16&255,n=t>>8&255,i=255&t;return r=r*e+.5|0,n=n*e+.5|0,i=i*e+.5|0,(255*e<<24)+(r<<16)+(n<<8)+i}function cr(t,e,r,n){return r=r||new Float32Array(4),r[0]=(t>>16&255)/255,r[1]=(t>>8&255)/255,r[2]=(255&t)/255,(n||void 0===n)&&(r[0]*=e,r[1]*=e,r[2]*=e),r[3]=e,r}function fr(t,e){void 0===e&&(e=null);var r=6*t;if(e=e||new Uint16Array(r),e.length!==r)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+r);for(var n=0,i=0;n>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1}function _r(t){return!(t&t-1)&&!!t}function vr(t){var e=(t>65535?1:0)<<4;t>>>=e;var r=(t>255?1:0)<<3;return t>>>=r,e|=r,r=(t>15?1:0)<<2,t>>>=r,e|=r,r=(t>3?1:0)<<1,t>>>=r,e|=r,e|t>>1}function mr(t,e,r){var n,i=t.length;if(!(e>=i||0===r)){r=e+r>i?i-e:r;var o=i-r;for(n=e;n{const e=new Set(t);return e.w=0,e.n=0,e},u=t=>(t.w&p)>0,h=t=>(t.n&p)>0,l=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{("length"===e||e>=i)&&h.push(t)}));else switch(void 0!==r&&h.push(u.get(r)),e){case"add":(0,n.kJ)(t)?(0,n.S0)(r)&&h.push(u.get("length")):(h.push(u.get(m)),(0,n._N)(t)&&h.push(u.get(y)));break;case"delete":(0,n.kJ)(t)||(h.push(u.get(m)),(0,n._N)(t)&&h.push(u.get(y)));break;case"set":(0,n._N)(t)&&h.push(u.get(m));break}if(1===h.length)h[0]&&O(h[0]);else{const t=[];for(const e of h)e&&t.push(...e);O(a(t))}}function O(t,e){for(const r of(0,n.kJ)(t)?t:[...t])(r!==v||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const P=(0,n.fY)("__proto__,__v_isRef,__isVue"),N=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(n.yk)),M=F(),w=F(!1,!0),D=F(!0),C=L();function L(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const r=St(this);for(let e=0,i=this.length;e{t[e]=function(...t){x();const r=St(this)[e].apply(this,t);return R(),r}})),t}function F(t=!1,e=!1){return function(r,i,o){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_isShallow"===i)return e;if("__v_raw"===i&&o===(t?e?vt:_t:e?pt:dt).get(r))return r;const s=(0,n.kJ)(r);if(!t&&s&&(0,n.RI)(C,i))return Reflect.get(C,i,o);const a=Reflect.get(r,i,o);if((0,n.yk)(i)?N.has(i):P(i))return a;if(t||A(r,"get",i),e)return a;if(Dt(a)){const t=!s||!(0,n.S0)(i);return t?a.value:a}return(0,n.Kn)(a)?t?Tt(a):gt(a):a}}const U=B(),G=B(!0);function B(t=!1){return function(e,r,i,o){let s=e[r];if(Rt(s)&&Dt(s)&&!Dt(i))return!1;if(!t&&!Rt(i)&&(At(i)||(i=St(i),s=St(s)),!(0,n.kJ)(e)&&Dt(s)&&!Dt(i)))return s.value=i,!0;const a=(0,n.kJ)(e)&&(0,n.S0)(r)?Number(r)t,z=t=>Reflect.getPrototypeOf(t);function q(t,e,r=!1,n=!1){t=t["__v_raw"];const i=St(t),o=St(e);e!==o&&!r&&A(i,"get",e),!r&&A(i,"get",o);const{has:s}=z(i),a=n?W:r?Nt:Pt;return s.call(i,e)?a(t.get(e)):s.call(i,o)?a(t.get(o)):void(t!==i&&t.get(e))}function K(t,e=!1){const r=this["__v_raw"],n=St(r),i=St(t);return t!==i&&!e&&A(n,"has",t),!e&&A(n,"has",i),t===i?r.has(t):r.has(t)||r.has(i)}function $(t,e=!1){return t=t["__v_raw"],!e&&A(St(t),"iterate",m),Reflect.get(t,"size",t)}function Z(t){t=St(t);const e=St(this),r=z(e),n=r.has.call(e,t);return n||(e.add(t),S(e,"add",t,t)),this}function J(t,e){e=St(e);const r=St(this),{has:i,get:o}=z(r);let s=i.call(r,t);s||(t=St(t),s=i.call(r,t));const a=o.call(r,t);return r.set(t,e),s?(0,n.aU)(e,a)&&S(r,"set",t,e,a):S(r,"add",t,e),this}function Q(t){const e=St(this),{has:r,get:n}=z(e);let i=r.call(e,t);i||(t=St(t),i=r.call(e,t));const o=n?n.call(e,t):void 0,s=e.delete(t);return i&&S(e,"delete",t,void 0,o),s}function tt(){const t=St(this),e=0!==t.size,r=void 0,n=t.clear();return e&&S(t,"clear",void 0,void 0,r),n}function et(t,e){return function(r,n){const i=this,o=i["__v_raw"],s=St(o),a=e?W:t?Nt:Pt;return!t&&A(s,"iterate",m),o.forEach(((t,e)=>r.call(n,a(t),a(e),i)))}}function rt(t,e,r){return function(...i){const o=this["__v_raw"],s=St(o),a=(0,n._N)(s),u="entries"===t||t===Symbol.iterator&&a,h="keys"===t&&a,l=o[t](...i),c=r?W:e?Nt:Pt;return!e&&A(s,"iterate",h?y:m),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:u?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function nt(t){return function(...e){return"delete"!==t&&this}}function it(){const t={get(t){return q(this,t)},get size(){return $(this)},has:K,add:Z,set:J,delete:Q,clear:tt,forEach:et(!1,!1)},e={get(t){return q(this,t,!1,!0)},get size(){return $(this)},has:K,add:Z,set:J,delete:Q,clear:tt,forEach:et(!1,!0)},r={get(t){return q(this,t,!0)},get size(){return $(this,!0)},has(t){return K.call(this,t,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:et(!0,!1)},n={get(t){return q(this,t,!0,!0)},get size(){return $(this,!0)},has(t){return K.call(this,t,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:et(!0,!0)},i=["keys","values","entries",Symbol.iterator];return i.forEach((i=>{t[i]=rt(i,!1,!1),r[i]=rt(i,!0,!1),e[i]=rt(i,!1,!0),n[i]=rt(i,!0,!0)})),[t,r,e,n]}const[ot,st,at,ut]=it();function ht(t,e){const r=e?t?ut:at:t?st:ot;return(e,i,o)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get((0,n.RI)(r,i)&&i in e?r:e,i,o)}const lt={get:ht(!1,!1)},ct={get:ht(!1,!0)},ft={get:ht(!0,!1)};const dt=new WeakMap,pt=new WeakMap,_t=new WeakMap,vt=new WeakMap;function mt(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:mt((0,n.W7)(t))}function gt(t){return Rt(t)?t:bt(t,!1,j,lt,dt)}function Et(t){return bt(t,!1,Y,ct,pt)}function Tt(t){return bt(t,!0,V,ft,_t)}function bt(t,e,r,i,o){if(!(0,n.Kn)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const s=o.get(t);if(s)return s;const a=yt(t);if(0===a)return t;const u=new Proxy(t,2===a?i:r);return o.set(t,u),u}function xt(t){return Rt(t)?xt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Rt(t){return!(!t||!t["__v_isReadonly"])}function At(t){return!(!t||!t["__v_isShallow"])}function It(t){return xt(t)||Rt(t)}function St(t){const e=t&&t["__v_raw"];return e?St(e):t}function Ot(t){return(0,n.Nj)(t,"__v_skip",!0),t}const Pt=t=>(0,n.Kn)(t)?gt(t):t,Nt=t=>(0,n.Kn)(t)?Tt(t):t;function Mt(t){T&&v&&(t=St(t),I(t.dep||(t.dep=a())))}function wt(t,e){t=St(t),t.dep&&O(t.dep)}function Dt(t){return!(!t||!0!==t.__v_isRef)}function Ct(t){return Dt(t)?t.value:t}const Lt={get:(t,e,r)=>Ct(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Dt(i)&&!Dt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Ft(t){return xt(t)?t:new Proxy(t,Lt)}class Ut{constructor(t,e,r,n){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new g(t,(()=>{this._dirty||(this._dirty=!0,wt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!n,this["__v_isReadonly"]=r}get value(){const t=St(this);return Mt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Gt(t,e,r=!1){let i,o;const s=(0,n.mf)(t);s?(i=t,o=n.dG):(i=t.get,o=t.set);const a=new Ut(i,o,s||!o,r);return a}Promise.resolve()},3396:function(t,e,r){"use strict";r.d(e,{$d:function(){return s},FN:function(){return or},HY:function(){return Re},P$:function(){return st},Q6:function(){return ft},U2:function(){return ut},Us:function(){return me},Wm:function(){return He},Y8:function(){return nt},h:function(){return br},iD:function(){return Le},ic:function(){return St},nK:function(){return ct},wg:function(){return Ne}});r(1703);var n=r(4870),i=r(7139);function o(t,e,r,n){let i;try{i=n?t(...n):t()}catch(o){a(o,e,r)}return i}function s(t,e,r,n){if((0,i.mf)(t)){const s=o(t,e,r,n);return s&&(0,i.tI)(s)&&s.catch((t=>{a(t,e,r)})),s}const u=[];for(let i=0;i>>1,i=w(c[n]);if&&c.splice(e,1)}function S(t,e,r,n){(0,i.kJ)(t)?r.push(...t):e&&e.includes(t,t.allowRecurse?n+1:n)||r.push(t),A()}function O(t){S(t,p,d,_)}function P(t){S(t,m,v,y)}function N(t,e=null){if(d.length){for(T=e,p=[...new Set(d)],d.length=0,_=0;_w(t)-w(e))),y=0;ynull==t.id?1/0:t.id;function D(t){l=!1,h=!0,N(t),c.sort(((t,e)=>w(t)-w(e)));i.dG;try{for(f=0;ft.trim())):e&&(o=r.map(i.He))}let h;let l=n[h=(0,i.hR)(e)]||n[h=(0,i.hR)((0,i._A)(e))];!l&&a&&(l=n[h=(0,i.hR)((0,i.rs)(e))]),l&&s(l,t,6,o);const c=n[h+"Once"];if(c){if(t.emitted){if(t.emitted[h])return}else t.emitted={};t.emitted[h]=!0,s(c,t,6,o)}}function L(t,e,r=!1){const n=e.emitsCache,o=n.get(t);if(void 0!==o)return o;const s=t.emits;let a={},u=!1;if(!(0,i.mf)(t)){const n=t=>{const r=L(t,e,!0);r&&(u=!0,(0,i.l7)(a,r))};!r&&e.mixins.length&&e.mixins.forEach(n),t.extends&&n(t.extends),t.mixins&&t.mixins.forEach(n)}return s||u?((0,i.kJ)(s)?s.forEach((t=>a[t]=null)):(0,i.l7)(a,s),n.set(t,a),a):(n.set(t,null),null)}function F(t,e){return!(!t||!(0,i.F7)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,i.RI)(t,e[0].toLowerCase()+e.slice(1))||(0,i.RI)(t,(0,i.rs)(e))||(0,i.RI)(t,e))}let U=null,G=null;function B(t){const e=U;return U=t,G=t&&t.type.__scopeId||null,e}function X(t,e=U,r){if(!e)return t;if(t._n)return t;const n=(...r)=>{n._d&&De(-1);const i=B(e),o=t(...r);return B(i),n._d&&De(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function k(t){const{type:e,vnode:r,proxy:n,withProxy:o,props:s,propsOptions:[u],slots:h,attrs:l,emit:c,render:f,renderCache:d,data:p,setupState:_,ctx:v,inheritAttrs:m}=t;let y,g;const E=B(t);try{if(4&r.shapeFlag){const t=o||n;y=ze(f.call(t,t,d,s,_,p,v)),g=l}else{const t=e;0,y=ze(t.length>1?t(s,{attrs:l,slots:h,emit:c}):t(s,null)),g=e.props?l:H(l)}}catch(b){Oe.length=0,a(b,t,1),y=He(Ie)}let T=y;if(g&&!1!==m){const t=Object.keys(g),{shapeFlag:e}=T;t.length&&7&e&&(u&&t.some(i.tR)&&(g=j(g,u)),T=Ye(T,g))}return r.dirs&&(T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&(T.transition=r.transition),y=T,B(E),y}const H=t=>{let e;for(const r in t)("class"===r||"style"===r||(0,i.F7)(r))&&((e||(e={}))[r]=t[r]);return e},j=(t,e)=>{const r={};for(const n in t)(0,i.tR)(n)&&n.slice(9)in e||(r[n]=t[n]);return r};function V(t,e,r){const{props:n,children:i,component:o}=t,{props:s,children:a,patchFlag:u}=e,h=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(r&&u>=0))return!(!i&&!a||a&&a.$stable)||n!==s&&(n?!s||Y(n,s,h):!!s);if(1024&u)return!0;if(16&u)return n?Y(n,s,h):!!s;if(8&u){const t=e.dynamicProps;for(let e=0;et.__isSuspense;function q(t,e){e&&e.pendingBranch?(0,i.kJ)(t)?e.effects.push(...t):e.effects.push(t):P(t)}function K(t,e){if(ir){let r=ir.provides;const n=ir.parent&&ir.parent.provides;n===r&&(r=ir.provides=Object.create(n)),r[t]=e}else 0}function $(t,e,r=!1){const n=ir||U;if(n){const o=null==n.parent?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return r&&(0,i.mf)(e)?e.call(n.proxy):e}else 0}const Z={};function J(t,e,r){return Q(t,e,r)}function Q(t,e,{immediate:r,deep:a,flush:u,onTrack:h,onTrigger:l}=i.kT){const c=ir;let f,d,p=!1,_=!1;if((0,n.dq)(t)?(f=()=>t.value,p=(0,n.yT)(t)):(0,n.PG)(t)?(f=()=>t,a=!0):(0,i.kJ)(t)?(_=!0,p=t.some(n.PG),f=()=>t.map((t=>(0,n.dq)(t)?t.value:(0,n.PG)(t)?rt(t):(0,i.mf)(t)?o(t,c,2):void 0))):f=(0,i.mf)(t)?e?()=>o(t,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),s(t,c,3,[v])}:i.dG,e&&a){const t=f;f=()=>rt(t())}let v=t=>{d=E.onStop=()=>{o(t,c,4)}};if(cr)return v=i.dG,e?r&&s(e,c,3,[f(),_?[]:void 0,v]):f(),i.dG;let m=_?[]:Z;const y=()=>{if(E.active)if(e){const t=E.run();(a||p||(_?t.some(((t,e)=>(0,i.aU)(t,m[e]))):(0,i.aU)(t,m)))&&(d&&d(),s(e,c,3,[t,m===Z?void 0:m,v]),m=t)}else E.run()};let g;y.allowRecurse=!!e,g="sync"===u?y:"post"===u?()=>ve(y,c&&c.suspense):()=>{!c||c.isMounted?O(y):y()};const E=new n.qq(f,g);return e?r?y():m=E.run():"post"===u?ve(E.run.bind(E),c&&c.suspense):E.run(),()=>{E.stop(),c&&c.scope&&(0,i.Od)(c.scope.effects,E)}}function tt(t,e,r){const n=this.proxy,o=(0,i.HD)(t)?t.includes(".")?et(n,t):()=>n[t]:t.bind(n,n);let s;(0,i.mf)(e)?s=e:(s=e.handler,r=e);const a=ir;sr(this);const u=Q(o,s.bind(n),r);return a?sr(a):ar(),u}function et(t,e){const r=e.split(".");return()=>{let e=t;for(let t=0;t{rt(t,e)}));else if((0,i.PO)(t))for(const r in t)rt(t[r],e);return t}function nt(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return At((()=>{t.isMounted=!0})),Ot((()=>{t.isUnmounting=!0})),t}const it=[Function,Array],ot={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(t,{slots:e}){const r=or(),i=nt();let o;return()=>{const s=e.default&&ft(e.default(),!0);if(!s||!s.length)return;const a=(0,n.IU)(t),{mode:u}=a;const h=s[0];if(i.isLeaving)return ht(h);const l=lt(h);if(!l)return ht(h);const c=ut(l,a,i,r);ct(l,c);const f=r.subTree,d=f&<(f);let p=!1;const{getTransitionKey:_}=l.type;if(_){const t=_();void 0===o?o=t:t!==o&&(o=t,p=!0)}if(d&&d.type!==Ie&&(!Ue(l,d)||p)){const t=ut(d,a,i,r);if(ct(d,t),"out-in"===u)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,r.update()},ht(h);"in-out"===u&&l.type!==Ie&&(t.delayLeave=(t,e,r)=>{const n=at(i,d);n[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=r})}return h}}},st=ot;function at(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function ut(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:u,onEnter:h,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:v,onAppear:m,onAfterAppear:y,onAppearCancelled:g}=e,E=String(t.key),T=at(r,t),b=(t,e)=>{t&&s(t,n,9,e)},x={mode:o,persisted:a,beforeEnter(e){let n=u;if(!r.isMounted){if(!i)return;n=v||u}e._leaveCb&&e._leaveCb(!0);const o=T[E];o&&Ue(t,o)&&o.el._leaveCb&&o.el._leaveCb(),b(n,[e])},enter(t){let e=h,n=l,o=c;if(!r.isMounted){if(!i)return;e=m||h,n=y||l,o=g||c}let s=!1;const a=t._enterCb=e=>{s||(s=!0,b(e?o:n,[t]),x.delayedLeave&&x.delayedLeave(),t._enterCb=void 0)};e?(e(t,a),e.length<=1&&a()):a()},leave(e,n){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),r.isUnmounting)return n();b(f,[e]);let o=!1;const s=e._leaveCb=r=>{o||(o=!0,n(),b(r?_:p,[e]),e._leaveCb=void 0,T[i]===t&&delete T[i])};T[i]=t,d?(d(e,s),d.length<=1&&s()):s()},clone(t){return ut(t,e,r,n)}};return x}function ht(t){if(pt(t))return t=Ye(t),t.children=null,t}function lt(t){return pt(t)?t.children?t.children[0]:void 0:t}function ct(t,e){6&t.shapeFlag&&t.component?ct(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ft(t,e=!1){let r=[],n=0;for(let i=0;i1)for(let i=0;i!!t.type.__asyncLoader;const pt=t=>t.type.__isKeepAlive;RegExp,RegExp;function _t(t,e){return(0,i.kJ)(t)?t.some((t=>_t(t,e))):(0,i.HD)(t)?t.split(",").includes(e):!!t.test&&t.test(e)}function vt(t,e){yt(t,"a",e)}function mt(t,e){yt(t,"da",e)}function yt(t,e,r=ir){const n=t.__wdc||(t.__wdc=()=>{let e=r;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(bt(e,n,r),r){let t=r.parent;while(t&&t.parent)pt(t.parent.vnode)&>(n,e,r,t),t=t.parent}}function gt(t,e,r,n){const o=bt(e,t,n,!0);Pt((()=>{(0,i.Od)(n[e],o)}),r)}function Et(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function Tt(t){return 128&t.shapeFlag?t.ssContent:t}function bt(t,e,r=ir,i=!1){if(r){const o=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...i)=>{if(r.isUnmounted)return;(0,n.Jd)(),sr(r);const o=s(e,r,t,i);return ar(),(0,n.lk)(),o});return i?o.unshift(a):o.push(a),a}}const xt=t=>(e,r=ir)=>(!cr||"sp"===t)&&bt(t,e,r),Rt=xt("bm"),At=xt("m"),It=xt("bu"),St=xt("u"),Ot=xt("bum"),Pt=xt("um"),Nt=xt("sp"),Mt=xt("rtg"),wt=xt("rtc");function Dt(t,e=ir){bt("ec",t,e)}let Ct=!0;function Lt(t){const e=Bt(t),r=t.proxy,o=t.ctx;Ct=!1,e.beforeCreate&&Ut(e.beforeCreate,t,"bc");const{data:s,computed:a,methods:u,watch:h,provide:l,inject:c,created:f,beforeMount:d,mounted:p,beforeUpdate:_,updated:v,activated:m,deactivated:y,beforeDestroy:g,beforeUnmount:E,destroyed:T,unmounted:b,render:x,renderTracked:R,renderTriggered:A,errorCaptured:I,serverPrefetch:S,expose:O,inheritAttrs:P,components:N,directives:M,filters:w}=e,D=null;if(c&&Ft(c,o,D,t.appContext.config.unwrapInjectedRef),u)for(const n in u){const t=u[n];(0,i.mf)(t)&&(o[n]=t.bind(r))}if(s){0;const e=s.call(r,r);0,(0,i.Kn)(e)&&(t.data=(0,n.qj)(e))}if(Ct=!0,a)for(const n in a){const t=a[n],e=(0,i.mf)(t)?t.bind(r,r):(0,i.mf)(t.get)?t.get.bind(r,r):i.dG;0;const s=!(0,i.mf)(t)&&(0,i.mf)(t.set)?t.set.bind(r):i.dG,u=Tr({get:e,set:s});Object.defineProperty(o,n,{enumerable:!0,configurable:!0,get:()=>u.value,set:t=>u.value=t})}if(h)for(const n in h)Gt(h[n],o,r,n);if(l){const t=(0,i.mf)(l)?l.call(r):l;Reflect.ownKeys(t).forEach((e=>{K(e,t[e])}))}function C(t,e){(0,i.kJ)(e)?e.forEach((e=>t(e.bind(r)))):e&&t(e.bind(r))}if(f&&Ut(f,t,"c"),C(Rt,d),C(At,p),C(It,_),C(St,v),C(vt,m),C(mt,y),C(Dt,I),C(wt,R),C(Mt,A),C(Ot,E),C(Pt,b),C(Nt,S),(0,i.kJ)(O))if(O.length){const e=t.exposed||(t.exposed={});O.forEach((t=>{Object.defineProperty(e,t,{get:()=>r[t],set:e=>r[t]=e})}))}else t.exposed||(t.exposed={});x&&t.render===i.dG&&(t.render=x),null!=P&&(t.inheritAttrs=P),N&&(t.components=N),M&&(t.directives=M)}function Ft(t,e,r=i.dG,o=!1){(0,i.kJ)(t)&&(t=Vt(t));for(const s in t){const r=t[s];let a;a=(0,i.Kn)(r)?"default"in r?$(r.from||s,r.default,!0):$(r.from||s):$(r),(0,n.dq)(a)&&o?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t}):e[s]=a}}function Ut(t,e,r){s((0,i.kJ)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,r)}function Gt(t,e,r,n){const o=n.includes(".")?et(r,n):()=>r[n];if((0,i.HD)(t)){const r=e[t];(0,i.mf)(r)&&J(o,r)}else if((0,i.mf)(t))J(o,t.bind(r));else if((0,i.Kn)(t))if((0,i.kJ)(t))t.forEach((t=>Gt(t,e,r,n)));else{const n=(0,i.mf)(t.handler)?t.handler.bind(r):e[t.handler];(0,i.mf)(n)&&J(o,n,t)}else 0}function Bt(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let u;return a?u=a:i.length||r||n?(u={},i.length&&i.forEach((t=>Xt(u,t,s,!0))),Xt(u,e,s)):u=e,o.set(e,u),u}function Xt(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&Xt(t,o,r,!0),i&&i.forEach((e=>Xt(t,e,r,!0)));for(const s in e)if(n&&"expose"===s);else{const n=kt[s]||r&&r[s];t[s]=n?n(t[s],e[s]):e[s]}return t}const kt={data:Ht,props:Wt,emits:Wt,methods:Wt,computed:Wt,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:Wt,directives:Wt,watch:zt,provide:Ht,inject:jt};function Ht(t,e){return e?t?function(){return(0,i.l7)((0,i.mf)(t)?t.call(this,this):t,(0,i.mf)(e)?e.call(this,this):e)}:e:t}function jt(t,e){return Wt(Vt(t),Vt(e))}function Vt(t){if((0,i.kJ)(t)){const e={};for(let r=0;r0)||16&u){let n;$t(t,e,s,a)&&(c=!0);for(const o in h)e&&((0,i.RI)(e,o)||(n=(0,i.rs)(o))!==o&&(0,i.RI)(e,n))||(l?!r||void 0===r[o]&&void 0===r[n]||(s[o]=Zt(l,h,o,void 0,t,!0)):delete s[o]);if(a!==h)for(const t in a)e&&(0,i.RI)(e,t)||(delete a[t],c=!0)}else if(8&u){const r=t.vnode.dynamicProps;for(let n=0;n{h=!0;const[r,n]=Jt(t,e,!0);(0,i.l7)(a,r),n&&u.push(...n)};!r&&e.mixins.length&&e.mixins.forEach(n),t.extends&&n(t.extends),t.mixins&&t.mixins.forEach(n)}if(!s&&!h)return n.set(t,i.Z6),i.Z6;if((0,i.kJ)(s))for(let c=0;c-1,n[1]=r<0||t-1||(0,i.RI)(n,"default"))&&u.push(e)}}}}const l=[a,u];return n.set(t,l),l}function Qt(t){return"$"!==t[0]}function te(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function ee(t,e){return te(t)===te(e)}function re(t,e){return(0,i.kJ)(e)?e.findIndex((e=>ee(e,t))):(0,i.mf)(e)&&ee(e,t)?0:-1}const ne=t=>"_"===t[0]||"$stable"===t,ie=t=>(0,i.kJ)(t)?t.map(ze):[ze(t)],oe=(t,e,r)=>{const n=X(((...t)=>ie(e(...t))),r);return n._c=!1,n},se=(t,e,r)=>{const n=t._ctx;for(const o in t){if(ne(o))continue;const r=t[o];if((0,i.mf)(r))e[o]=oe(o,r,n);else if(null!=r){0;const t=ie(r);e[o]=()=>t}}},ae=(t,e)=>{const r=ie(e);t.slots.default=()=>r},ue=(t,e)=>{if(32&t.vnode.shapeFlag){const r=e._;r?(t.slots=(0,n.IU)(e),(0,i.Nj)(e,"_",r)):se(e,t.slots={})}else t.slots={},e&&ae(t,e);(0,i.Nj)(t.slots,Ge,1)},he=(t,e,r)=>{const{vnode:n,slots:o}=t;let s=!0,a=i.kT;if(32&n.shapeFlag){const t=e._;t?r&&1===t?s=!1:((0,i.l7)(o,e),r||1!==t||delete o._):(s=!e.$stable,se(e,o)),a=e}else e&&(ae(t,e),a={default:1});if(s)for(const i in o)ne(i)||i in a||delete o[i]};function le(t,e,r,i){const o=t.dirs,a=e&&e.dirs;for(let u=0;upe(t,e&&((0,i.kJ)(e)?e[n]:e),r,s,a)));if(dt(s)&&!a)return;const u=4&s.shapeFlag?yr(s.component)||s.component.proxy:s.el,h=a?null:u,{i:l,r:c}=t;const f=e&&e.r,d=l.refs===i.kT?l.refs={}:l.refs,p=l.setupState;if(null!=f&&f!==c&&((0,i.HD)(f)?(d[f]=null,(0,i.RI)(p,f)&&(p[f]=null)):(0,n.dq)(f)&&(f.value=null)),(0,i.mf)(c))o(c,l,12,[h,d]);else{const e=(0,i.HD)(c),o=(0,n.dq)(c);if(e||o){const o=()=>{if(t.f){const r=e?d[c]:c.value;a?(0,i.kJ)(r)&&(0,i.Od)(r,u):(0,i.kJ)(r)?r.includes(u)||r.push(u):e?d[c]=[u]:(c.value=[u],t.k&&(d[t.k]=c.value))}else e?(d[c]=h,(0,i.RI)(p,c)&&(p[c]=h)):(0,n.dq)(c)&&(c.value=h,t.k&&(d[t.k]=h))};h?(o.id=-1,ve(o,r)):o()}else 0}}function _e(){}const ve=q;function me(t){return ye(t)}function ye(t,e){_e();const r=(0,i.E9)();r.__VUE__=!0;const{insert:o,remove:s,patchProp:a,createElement:u,createText:h,createComment:l,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:_=i.dG,cloneNode:v,insertStaticContent:m}=t,y=(t,e,r,n=null,i=null,o=null,s=!1,a=null,u=!!e.dynamicChildren)=>{if(t===e)return;t&&!Ue(t,e)&&(n=Q(t),q(t,i,o,!0),t=null),-2===e.patchFlag&&(u=!1,e.dynamicChildren=null);const{type:h,ref:l,shapeFlag:c}=e;switch(h){case Ae:g(t,e,r,n);break;case Ie:E(t,e,r,n);break;case Se:null==t&&T(e,r,n,s);break;case Re:L(t,e,r,n,i,o,s,a,u);break;default:1&c?A(t,e,r,n,i,o,s,a,u):6&c?F(t,e,r,n,i,o,s,a,u):(64&c||128&c)&&h.process(t,e,r,n,i,o,s,a,u,et)}null!=l&&i&&pe(l,t&&t.ref,o,e||t,!e)},g=(t,e,r,n)=>{if(null==t)o(e.el=h(e.children),r,n);else{const r=e.el=t.el;e.children!==t.children&&c(r,e.children)}},E=(t,e,r,n)=>{null==t?o(e.el=l(e.children||""),r,n):e.el=t.el},T=(t,e,r,n)=>{[t.el,t.anchor]=m(t.children,e,r,n,t.el,t.anchor)},b=({el:t,anchor:e},r,n)=>{let i;while(t&&t!==e)i=p(t),o(t,r,n),t=i;o(e,r,n)},x=({el:t,anchor:e})=>{let r;while(t&&t!==e)r=p(t),s(t),t=r;s(e)},A=(t,e,r,n,i,o,s,a,u)=>{s=s||"svg"===e.type,null==t?S(e,r,n,i,o,s,a,u):w(t,e,i,o,s,a,u)},S=(t,e,r,n,s,h,l,c)=>{let d,p;const{type:_,props:m,shapeFlag:y,transition:g,patchFlag:E,dirs:T}=t;if(t.el&&void 0!==v&&-1===E)d=t.el=v(t.el);else{if(d=t.el=u(t.type,h,m&&m.is,m),8&y?f(d,t.children):16&y&&P(t.children,d,null,n,s,h&&"foreignObject"!==_,l,c),T&&le(t,null,n,"created"),m){for(const e in m)"value"===e||(0,i.Gg)(e)||a(d,e,null,m[e],h,t.children,n,s,J);"value"in m&&a(d,"value",null,m.value),(p=m.onVnodeBeforeMount)&&Ze(p,n,t)}O(d,t,t.scopeId,l,n)}T&&le(t,null,n,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&g&&!g.persisted;b&&g.beforeEnter(d),o(d,e,r),((p=m&&m.onVnodeMounted)||b||T)&&ve((()=>{p&&Ze(p,n,t),b&&g.enter(d),T&&le(t,null,n,"mounted")}),s)},O=(t,e,r,n,i)=>{if(r&&_(t,r),n)for(let o=0;o{for(let h=u;h{const h=e.el=t.el;let{patchFlag:l,dynamicChildren:c,dirs:d}=e;l|=16&t.patchFlag;const p=t.props||i.kT,_=e.props||i.kT;let v;r&&ge(r,!1),(v=_.onVnodeBeforeUpdate)&&Ze(v,r,e,t),d&&le(e,t,r,"beforeUpdate"),r&&ge(r,!0);const m=o&&"foreignObject"!==e.type;if(c?D(t.dynamicChildren,c,h,r,n,m,s):u||H(t,e,h,null,r,n,m,s,!1),l>0){if(16&l)C(h,e,p,_,r,n,o);else if(2&l&&p.class!==_.class&&a(h,"class",null,_.class,o),4&l&&a(h,"style",p.style,_.style,o),8&l){const i=e.dynamicProps;for(let e=0;e{v&&Ze(v,r,e,t),d&&le(e,t,r,"updated")}),n)},D=(t,e,r,n,i,o,s)=>{for(let a=0;a{if(r!==n){for(const h in n){if((0,i.Gg)(h))continue;const l=n[h],c=r[h];l!==c&&"value"!==h&&a(t,h,c,l,u,e.children,o,s,J)}if(r!==i.kT)for(const h in r)(0,i.Gg)(h)||h in n||a(t,h,r[h],null,u,e.children,o,s,J);"value"in n&&a(t,"value",r.value,n.value)}},L=(t,e,r,n,i,s,a,u,l)=>{const c=e.el=t?t.el:h(""),f=e.anchor=t?t.anchor:h("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:_}=e;_&&(u=u?u.concat(_):_),null==t?(o(c,r,n),o(f,r,n),P(e.children,r,f,i,s,a,u,l)):d>0&&64&d&&p&&t.dynamicChildren?(D(t.dynamicChildren,p,r,i,s,a,u),(null!=e.key||i&&e===i.subTree)&&Ee(t,e,!0)):H(t,e,r,f,i,s,a,u,l)},F=(t,e,r,n,i,o,s,a,u)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?i.ctx.activate(e,r,n,s,u):U(e,r,n,i,o,s,u):G(t,e,u)},U=(t,e,r,n,i,o,s)=>{const a=t.component=nr(t,n,i);if(pt(t)&&(a.ctx.renderer=et),fr(a),a.asyncDep){if(i&&i.registerDep(a,B),!t.el){const t=a.subTree=He(Ie);E(null,t,e,r)}}else B(a,t,e,r,i,o,s)},G=(t,e,r)=>{const n=e.component=t.component;if(V(t,e,r)){if(n.asyncDep&&!n.asyncResolved)return void X(n,e,r);n.next=e,I(n.update),n.update()}else e.component=t.component,e.el=t.el,n.vnode=e},B=(t,e,r,o,s,a,u)=>{const h=()=>{if(t.isMounted){let e,{next:r,bu:n,u:o,parent:h,vnode:l}=t,c=r;0,ge(t,!1),r?(r.el=l.el,X(t,r,u)):r=l,n&&(0,i.ir)(n),(e=r.props&&r.props.onVnodeBeforeUpdate)&&Ze(e,h,r,l),ge(t,!0);const f=k(t);0;const p=t.subTree;t.subTree=f,y(p,f,d(p.el),Q(p),t,s,a),r.el=f.el,null===c&&W(t,f.el),o&&ve(o,s),(e=r.props&&r.props.onVnodeUpdated)&&ve((()=>Ze(e,h,r,l)),s)}else{let n;const{el:u,props:h}=e,{bm:l,m:c,parent:f}=t,d=dt(e);if(ge(t,!1),l&&(0,i.ir)(l),!d&&(n=h&&h.onVnodeBeforeMount)&&Ze(n,f,e),ge(t,!0),u&&nt){const r=()=>{t.subTree=k(t),nt(u,t.subTree,t,s,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&r())):r()}else{0;const n=t.subTree=k(t);0,y(null,n,r,o,t,s,a),e.el=n.el}if(c&&ve(c,s),!d&&(n=h&&h.onVnodeMounted)){const t=e;ve((()=>Ze(n,f,t)),s)}256&e.shapeFlag&&t.a&&ve(t.a,s),t.isMounted=!0,e=r=o=null}},l=t.effect=new n.qq(h,(()=>R(t.update)),t.scope),c=t.update=l.run.bind(l);c.id=t.uid,ge(t,!0),c()},X=(t,e,r)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,Kt(t,e.props,i,r),he(t,e.children,r),(0,n.Jd)(),N(void 0,t.update),(0,n.lk)()},H=(t,e,r,n,i,o,s,a,u=!1)=>{const h=t&&t.children,l=t?t.shapeFlag:0,c=e.children,{patchFlag:d,shapeFlag:p}=e;if(d>0){if(128&d)return void Y(h,c,r,n,i,o,s,a,u);if(256&d)return void j(h,c,r,n,i,o,s,a,u)}8&p?(16&l&&J(h,i,o),c!==h&&f(r,c)):16&l?16&p?Y(h,c,r,n,i,o,s,a,u):J(h,i,o,!0):(8&l&&f(r,""),16&p&&P(c,r,n,i,o,s,a,u))},j=(t,e,r,n,o,s,a,u,h)=>{t=t||i.Z6,e=e||i.Z6;const l=t.length,c=e.length,f=Math.min(l,c);let d;for(d=0;dc?J(t,o,s,!0,!1,f):P(e,r,n,o,s,a,u,h,f)},Y=(t,e,r,n,o,s,a,u,h)=>{let l=0;const c=e.length;let f=t.length-1,d=c-1;while(l<=f&&l<=d){const n=t[l],i=e[l]=h?qe(e[l]):ze(e[l]);if(!Ue(n,i))break;y(n,i,r,null,o,s,a,u,h),l++}while(l<=f&&l<=d){const n=t[f],i=e[d]=h?qe(e[d]):ze(e[d]);if(!Ue(n,i))break;y(n,i,r,null,o,s,a,u,h),f--,d--}if(l>f){if(l<=d){const t=d+1,i=td)while(l<=f)q(t[l],o,s,!0),l++;else{const p=l,_=l,v=new Map;for(l=_;l<=d;l++){const t=e[l]=h?qe(e[l]):ze(e[l]);null!=t.key&&v.set(t.key,l)}let m,g=0;const E=d-_+1;let T=!1,b=0;const x=new Array(E);for(l=0;l=E){q(n,o,s,!0);continue}let i;if(null!=n.key)i=v.get(n.key);else for(m=_;m<=d;m++)if(0===x[m-_]&&Ue(n,e[m])){i=m;break}void 0===i?q(n,o,s,!0):(x[i-_]=l+1,i>=b?b=i:T=!0,y(n,e[i],r,null,o,s,a,u,h),g++)}const R=T?Te(x):i.Z6;for(m=R.length-1,l=E-1;l>=0;l--){const t=_+l,i=e[t],f=t+1{const{el:s,type:a,transition:u,children:h,shapeFlag:l}=t;if(6&l)return void z(t.component.subTree,e,r,n);if(128&l)return void t.suspense.move(e,r,n);if(64&l)return void a.move(t,e,r,et);if(a===Re){o(s,e,r);for(let t=0;tu.enter(s)),i);else{const{leave:t,delayLeave:n,afterLeave:i}=u,a=()=>o(s,e,r),h=()=>{t(s,(()=>{a(),i&&i()}))};n?n(s,a,h):h()}else o(s,e,r)},q=(t,e,r,n=!1,i=!1)=>{const{type:o,props:s,ref:a,children:u,dynamicChildren:h,shapeFlag:l,patchFlag:c,dirs:f}=t;if(null!=a&&pe(a,null,r,t,!0),256&l)return void e.ctx.deactivate(t);const d=1&l&&f,p=!dt(t);let _;if(p&&(_=s&&s.onVnodeBeforeUnmount)&&Ze(_,e,t),6&l)Z(t.component,r,n);else{if(128&l)return void t.suspense.unmount(r,n);d&&le(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,r,i,et,n):h&&(o!==Re||c>0&&64&c)?J(h,e,r,!1,!0):(o===Re&&384&c||!i&&16&l)&&J(u,e,r),n&&K(t)}(p&&(_=s&&s.onVnodeUnmounted)||d)&&ve((()=>{_&&Ze(_,e,t),d&&le(t,null,e,"unmounted")}),r)},K=t=>{const{type:e,el:r,anchor:n,transition:i}=t;if(e===Re)return void $(r,n);if(e===Se)return void x(t);const o=()=>{s(r),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:n}=i,s=()=>e(r,o);n?n(t.el,o,s):s()}else o()},$=(t,e)=>{let r;while(t!==e)r=p(t),s(t),t=r;s(e)},Z=(t,e,r)=>{const{bum:n,scope:o,update:s,subTree:a,um:u}=t;n&&(0,i.ir)(n),o.stop(),s&&(s.active=!1,q(a,t,e,r)),u&&ve(u,e),ve((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},J=(t,e,r,n=!1,i=!1,o=0)=>{for(let s=o;s6&t.shapeFlag?Q(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),tt=(t,e,r)=>{null==t?e._vnode&&q(e._vnode,null,null,!0):y(e._vnode||null,t,e,null,null,null,r),M(),e._vnode=t},et={p:y,um:q,m:z,r:K,mt:U,mc:P,pc:H,pbc:D,n:Q,o:t};let rt,nt;return e&&([rt,nt]=e(et)),{render:tt,hydrate:rt,createApp:de(tt,rt)}}function ge({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Ee(t,e,r=!1){const n=t.children,o=e.children;if((0,i.kJ)(n)&&(0,i.kJ)(o))for(let i=0;i>1,t[r[a]]0&&(e[n]=r[o-1]),r[o]=n)}}o=r.length,s=r[o-1];while(o-- >0)r[o]=s,s=e[s];return r}const be=t=>t.__isTeleport;const xe=Symbol();const Re=Symbol(void 0),Ae=Symbol(void 0),Ie=Symbol(void 0),Se=Symbol(void 0),Oe=[];let Pe=null;function Ne(t=!1){Oe.push(Pe=t?null:[])}function Me(){Oe.pop(),Pe=Oe[Oe.length-1]||null}let we=1;function De(t){we+=t}function Ce(t){return t.dynamicChildren=we>0?Pe||i.Z6:null,Me(),we>0&&Pe&&Pe.push(t),t}function Le(t,e,r,n,i,o){return Ce(ke(t,e,r,n,i,o,!0))}function Fe(t){return!!t&&!0===t.__v_isVNode}function Ue(t,e){return t.type===e.type&&t.key===e.key}const Ge="__vInternal",Be=({key:t})=>null!=t?t:null,Xe=({ref:t,ref_key:e,ref_for:r})=>null!=t?(0,i.HD)(t)||(0,n.dq)(t)||(0,i.mf)(t)?{i:U,r:t,k:e,f:!!r}:t:null;function ke(t,e=null,r=null,n=0,o=null,s=(t===Re?0:1),a=!1,u=!1){const h={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Be(e),ref:e&&Xe(e),scopeId:G,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null};return u?(Ke(h,r),128&s&&t.normalize(h)):r&&(h.shapeFlag|=(0,i.HD)(r)?8:16),we>0&&!a&&Pe&&(h.patchFlag>0||6&s)&&32!==h.patchFlag&&Pe.push(h),h}const He=je;function je(t,e=null,r=null,o=0,s=null,a=!1){if(t&&t!==xe||(t=Ie),Fe(t)){const n=Ye(t,e,!0);return r&&Ke(n,r),n}if(Er(t)&&(t=t.__vccOpts),e){e=Ve(e);let{class:t,style:r}=e;t&&!(0,i.HD)(t)&&(e.class=(0,i.C_)(t)),(0,i.Kn)(r)&&((0,n.X3)(r)&&!(0,i.kJ)(r)&&(r=(0,i.l7)({},r)),e.style=(0,i.j5)(r))}const u=(0,i.HD)(t)?1:z(t)?128:be(t)?64:(0,i.Kn)(t)?4:(0,i.mf)(t)?2:0;return ke(t,e,r,o,s,u,a,!0)}function Ve(t){return t?(0,n.X3)(t)||Ge in t?(0,i.l7)({},t):t:null}function Ye(t,e,r=!1){const{props:n,ref:o,patchFlag:s,children:a}=t,u=e?$e(n||{},e):n,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Be(u),ref:e&&e.ref?r&&o?(0,i.kJ)(o)?o.concat(Xe(e)):[o,Xe(e)]:Xe(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ye(t.ssContent),ssFallback:t.ssFallback&&Ye(t.ssFallback),el:t.el,anchor:t.anchor};return h}function We(t=" ",e=0){return He(Ae,null,t,e)}function ze(t){return null==t||"boolean"===typeof t?He(Ie):(0,i.kJ)(t)?He(Re,null,t.slice()):"object"===typeof t?qe(t):He(Ae,null,String(t))}function qe(t){return null===t.el||t.memo?t:Ye(t)}function Ke(t,e){let r=0;const{shapeFlag:n}=t;if(null==e)e=null;else if((0,i.kJ)(e))r=16;else if("object"===typeof e){if(65&n){const r=e.default;return void(r&&(r._c&&(r._d=!1),Ke(t,r()),r._c&&(r._d=!0)))}{r=32;const n=e._;n||Ge in e?3===n&&U&&(1===U.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=U}}else(0,i.mf)(e)?(e={default:e,_ctx:U},r=32):(e=String(e),64&n?(r=16,e=[We(e)]):r=8);t.children=e,t.shapeFlag|=r}function $e(...t){const e={};for(let r=0;rt?ur(t)?yr(t)||t.proxy:Je(t.parent):null,Qe=(0,i.l7)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Je(t.parent),$root:t=>Je(t.root),$emit:t=>t.emit,$options:t=>Bt(t),$forceUpdate:t=>()=>R(t.update),$nextTick:t=>b.bind(t.proxy),$watch:t=>tt.bind(t)}),tr={get({_:t},e){const{ctx:r,setupState:o,data:s,props:a,accessCache:u,type:h,appContext:l}=t;let c;if("$"!==e[0]){const n=u[e];if(void 0!==n)switch(n){case 1:return o[e];case 2:return s[e];case 4:return r[e];case 3:return a[e]}else{if(o!==i.kT&&(0,i.RI)(o,e))return u[e]=1,o[e];if(s!==i.kT&&(0,i.RI)(s,e))return u[e]=2,s[e];if((c=t.propsOptions[0])&&(0,i.RI)(c,e))return u[e]=3,a[e];if(r!==i.kT&&(0,i.RI)(r,e))return u[e]=4,r[e];Ct&&(u[e]=0)}}const f=Qe[e];let d,p;return f?("$attrs"===e&&(0,n.j)(t,"get",e),f(t)):(d=h.__cssModules)&&(d=d[e])?d:r!==i.kT&&(0,i.RI)(r,e)?(u[e]=4,r[e]):(p=l.config.globalProperties,(0,i.RI)(p,e)?p[e]:void 0)},set({_:t},e,r){const{data:n,setupState:o,ctx:s}=t;return o!==i.kT&&(0,i.RI)(o,e)?(o[e]=r,!0):n!==i.kT&&(0,i.RI)(n,e)?(n[e]=r,!0):!(0,i.RI)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=r,!0))},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:s}},a){let u;return!!r[a]||t!==i.kT&&(0,i.RI)(t,a)||e!==i.kT&&(0,i.RI)(e,a)||(u=s[0])&&(0,i.RI)(u,a)||(0,i.RI)(n,a)||(0,i.RI)(Qe,a)||(0,i.RI)(o.config.globalProperties,a)},defineProperty(t,e,r){return null!=r.get?this.set(t,e,r.get(),null):null!=r.value&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};const er=ce();let rr=0;function nr(t,e,r){const o=t.type,s=(e?e.appContext:t.appContext)||er,a={uid:rr++,vnode:t,type:o,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new n.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jt(o,s),emitsOptions:L(o,s),emit:null,emitted:null,propsDefaults:i.kT,inheritAttrs:o.inheritAttrs,ctx:i.kT,data:i.kT,props:i.kT,attrs:i.kT,slots:i.kT,refs:i.kT,setupState:i.kT,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=C.bind(null,a),t.ce&&t.ce(a),a}let ir=null;const or=()=>ir||U,sr=t=>{ir=t,t.scope.on()},ar=()=>{ir&&ir.scope.off(),ir=null};function ur(t){return 4&t.vnode.shapeFlag}let hr,lr,cr=!1;function fr(t,e=!1){cr=e;const{props:r,children:n}=t.vnode,i=ur(t);qt(t,r,i,e),ue(t,n);const o=i?dr(t,e):void 0;return cr=!1,o}function dr(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=(0,n.Xl)(new Proxy(t.ctx,tr));const{setup:s}=r;if(s){const r=t.setupContext=s.length>1?mr(t):null;sr(t),(0,n.Jd)();const u=o(s,t,0,[t.props,r]);if((0,n.lk)(),ar(),(0,i.tI)(u)){if(u.then(ar,ar),e)return u.then((r=>{pr(t,r,e)})).catch((e=>{a(e,t,0)}));t.asyncDep=u}else pr(t,u,e)}else _r(t,e)}function pr(t,e,r){(0,i.mf)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,i.Kn)(e)&&(t.setupState=(0,n.WL)(e)),_r(t,r)}function _r(t,e,r){const o=t.type;if(!t.render){if(!e&&hr&&!o.render){const e=o.template;if(e){0;const{isCustomElement:r,compilerOptions:n}=t.appContext.config,{delimiters:s,compilerOptions:a}=o,u=(0,i.l7)((0,i.l7)({isCustomElement:r,delimiters:s},n),a);o.render=hr(e,u)}}t.render=o.render||i.dG,lr&&lr(t)}sr(t),(0,n.Jd)(),Lt(t),(0,n.lk)(),ar()}function vr(t){return new Proxy(t.attrs,{get(e,r){return(0,n.j)(t,"get","$attrs"),e[r]}})}function mr(t){const e=e=>{t.exposed=e||{}};let r;return{get attrs(){return r||(r=vr(t))},slots:t.slots,emit:t.emit,expose:e}}function yr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((0,n.WL)((0,n.Xl)(t.exposed)),{get(e,r){return r in e?e[r]:r in Qe?Qe[r](t):void 0}}))}function gr(t){return(0,i.mf)(t)&&t.displayName||t.name}function Er(t){return(0,i.mf)(t)&&"__vccOpts"in t}const Tr=(t,e)=>(0,n.Fl)(t,e,cr);function br(t,e,r){const n=arguments.length;return 2===n?(0,i.Kn)(e)&&!(0,i.kJ)(e)?Fe(e)?He(t,null,[e]):He(t,e):He(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):3===n&&Fe(r)&&(r=[r]),He(t,e,r))}Symbol("");const xr="3.2.31"},9242:function(t,e,r){"use strict";r.d(e,{ri:function(){return rt}});var n=r(7139),i=r(3396);r(4870);const o="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,a=s&&s.createElement("template"),u={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?s.createElementNS(o,t):s.createElement(t,r?{is:r}:void 0);return"select"===t&&n&&null!=n.multiple&&i.setAttribute("multiple",n.multiple),i},createText:t=>s.createTextNode(t),createComment:t=>s.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>s.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,r,n,i,o){const s=r?r.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(e.insertBefore(i.cloneNode(!0),r),i===o||!(i=i.nextSibling))break}else{a.innerHTML=n?`${t}`:t;const i=a.content;if(n){const t=i.firstChild;while(t.firstChild)i.appendChild(t.firstChild);i.removeChild(t)}e.insertBefore(i,r)}return[s?s.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function h(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),null==e?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function l(t,e,r){const i=t.style,o=(0,n.HD)(r);if(r&&!o){for(const t in r)f(i,t,r[t]);if(e&&!(0,n.HD)(e))for(const t in e)null==r[t]&&f(i,t,"")}else{const n=i.display;o?e!==r&&(i.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=n)}}const c=/\s*!important$/;function f(t,e,r){if((0,n.kJ)(r))r.forEach((r=>f(t,e,r)));else if(e.startsWith("--"))t.setProperty(e,r);else{const i=_(t,e);c.test(r)?t.setProperty((0,n.rs)(i),r.replace(c,""),"important"):t[i]=r}}const d=["Webkit","Moz","ms"],p={};function _(t,e){const r=p[e];if(r)return r;let i=(0,n._A)(e);if("filter"!==i&&i in t)return p[e]=i;i=(0,n.kC)(i);for(let n=0;ndocument.createEvent("Event").timeStamp&&(g=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);E=!!(t&&Number(t[1])<=53)}let T=0;const b=Promise.resolve(),x=()=>{T=0},R=()=>T||(b.then(x),T=g());function A(t,e,r,n){t.addEventListener(e,r,n)}function I(t,e,r,n){t.removeEventListener(e,r,n)}function S(t,e,r,n,i=null){const o=t._vei||(t._vei={}),s=o[e];if(n&&s)s.value=n;else{const[r,a]=P(e);if(n){const s=o[e]=N(n,i);A(t,r,s,a)}else s&&(I(t,r,s,a),o[e]=void 0)}}const O=/(?:Once|Passive|Capture)$/;function P(t){let e;if(O.test(t)){let r;e={};while(r=t.match(O))t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[(0,n.rs)(t.slice(2)),e]}function N(t,e){const r=t=>{const n=t.timeStamp||g();(E||n>=r.attached-1)&&(0,i.$d)(M(t,r.value),e,5,[t])};return r.value=t,r.attached=R(),r}function M(t,e){if((0,n.kJ)(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const w=/^on[a-z]/,D=(t,e,r,i,o=!1,s,a,u,c)=>{"class"===e?h(t,i,o):"style"===e?l(t,r,i):(0,n.F7)(e)?(0,n.tR)(e)||S(t,e,r,i,a):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):C(t,e,i,o))?y(t,e,i,s,a,u,c):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),m(t,e,i,o))};function C(t,e,r,i){return i?"innerHTML"===e||"textContent"===e||!!(e in t&&w.test(e)&&(0,n.mf)(r)):"spellcheck"!==e&&"draggable"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!w.test(e)||!(0,n.HD)(r))&&e in t))))}"undefined"!==typeof HTMLElement&&HTMLElement;const L="transition",F="animation",U=(t,{slots:e})=>(0,i.h)(i.P$,k(t),e);U.displayName="Transition";const G={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},B=(U.props=(0,n.l7)({},i.P$.props,G),(t,e=[])=>{(0,n.kJ)(t)?t.forEach((t=>t(...e))):t&&t(...e)}),X=t=>!!t&&((0,n.kJ)(t)?t.some((t=>t.length>1)):t.length>1);function k(t){const e={};for(const n in t)n in G||(e[n]=t[n]);if(!1===t.css)return e;const{name:r="v",type:i,duration:o,enterFromClass:s=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:u=`${r}-enter-to`,appearFromClass:h=s,appearActiveClass:l=a,appearToClass:c=u,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=t,_=H(o),v=_&&_[0],m=_&&_[1],{onBeforeEnter:y,onEnter:g,onEnterCancelled:E,onLeave:T,onLeaveCancelled:b,onBeforeAppear:x=y,onAppear:R=g,onAppearCancelled:A=E}=e,I=(t,e,r)=>{Y(t,e?c:u),Y(t,e?l:a),r&&r()},S=(t,e)=>{Y(t,p),Y(t,d),e&&e()},O=t=>(e,r)=>{const n=t?R:g,o=()=>I(e,t,r);B(n,[e,o]),W((()=>{Y(e,t?h:s),V(e,t?c:u),X(n)||q(e,i,v,o)}))};return(0,n.l7)(e,{onBeforeEnter(t){B(y,[t]),V(t,s),V(t,a)},onBeforeAppear(t){B(x,[t]),V(t,h),V(t,l)},onEnter:O(!1),onAppear:O(!0),onLeave(t,e){const r=()=>S(t,e);V(t,f),J(),V(t,d),W((()=>{Y(t,f),V(t,p),X(T)||q(t,i,m,r)})),B(T,[t,r])},onEnterCancelled(t){I(t,!1),B(E,[t])},onAppearCancelled(t){I(t,!0),B(A,[t])},onLeaveCancelled(t){S(t),B(b,[t])}})}function H(t){if(null==t)return null;if((0,n.Kn)(t))return[j(t.enter),j(t.leave)];{const e=j(t);return[e,e]}}function j(t){const e=(0,n.He)(t);return e}function V(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function Y(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function W(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let z=0;function q(t,e,r,n){const i=t._endId=++z,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:s,timeout:a,propCount:u}=K(t,e);if(!s)return n();const h=s+"end";let l=0;const c=()=>{t.removeEventListener(h,f),o()},f=e=>{e.target===t&&++l>=u&&c()};setTimeout((()=>{l(r[t]||"").split(", "),i=n(L+"Delay"),o=n(L+"Duration"),s=$(i,o),a=n(F+"Delay"),u=n(F+"Duration"),h=$(a,u);let l=null,c=0,f=0;e===L?s>0&&(l=L,c=s,f=o.length):e===F?h>0&&(l=F,c=h,f=u.length):(c=Math.max(s,h),l=c>0?s>h?L:F:null,f=l?l===L?o.length:u.length:0);const d=l===L&&/\b(transform|all)(,|$)/.test(r[L+"Property"]);return{type:l,timeout:c,propCount:f,hasTransform:d}}function $(t,e){while(t.lengthZ(e)+Z(t[r]))))}function Z(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function J(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=(0,n.l7)({patchProp:D},u);let tt;function et(){return tt||(tt=(0,i.Us)(Q))}const rt=(...t)=>{const e=et().createApp(...t);const{mount:r}=e;return e.mount=t=>{const i=nt(t);if(!i)return;const o=e._component;(0,n.mf)(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const s=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function nt(t){if((0,n.HD)(t)){const e=document.querySelector(t);return e}return t}},7139:function(t,e,r){"use strict";function n(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i!!r[t.toLowerCase()]:t=>!!r[t]}r.d(e,{C_:function(){return d},DM:function(){return N},E9:function(){return et},F7:function(){return b},Gg:function(){return H},HD:function(){return D},He:function(){return Q},Kn:function(){return L},NO:function(){return E},Nj:function(){return J},Od:function(){return A},PO:function(){return X},Pq:function(){return a},RI:function(){return S},S0:function(){return k},W7:function(){return B},WV:function(){return _},Z6:function(){return y},_A:function(){return Y},_N:function(){return P},aU:function(){return $},dG:function(){return g},e1:function(){return o},fY:function(){return n},hR:function(){return K},hq:function(){return v},ir:function(){return Z},j5:function(){return h},kC:function(){return q},kJ:function(){return O},kT:function(){return m},l7:function(){return R},mf:function(){return w},rs:function(){return z},tI:function(){return F},tR:function(){return x},yA:function(){return u},yk:function(){return C}});const i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=n(i);const s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=n(s);function u(t){return!!t||""===t}function h(t){if(O(t)){const e={};for(let r=0;r{if(t){const r=t.split(c);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}function d(t){let e="";if(D(t))e=t;else if(O(t))for(let r=0;r_(t,e)))}const m={},y=[],g=()=>{},E=()=>!1,T=/^on[^a-z]/,b=t=>T.test(t),x=t=>t.startsWith("onUpdate:"),R=Object.assign,A=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},I=Object.prototype.hasOwnProperty,S=(t,e)=>I.call(t,e),O=Array.isArray,P=t=>"[object Map]"===G(t),N=t=>"[object Set]"===G(t),M=t=>t instanceof Date,w=t=>"function"===typeof t,D=t=>"string"===typeof t,C=t=>"symbol"===typeof t,L=t=>null!==t&&"object"===typeof t,F=t=>L(t)&&w(t.then)&&w(t.catch),U=Object.prototype.toString,G=t=>U.call(t),B=t=>G(t).slice(8,-1),X=t=>"[object Object]"===G(t),k=t=>D(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,H=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=t=>{const e=Object.create(null);return r=>{const n=e[r];return n||(e[r]=t(r))}},V=/-(\w)/g,Y=j((t=>t.replace(V,((t,e)=>e?e.toUpperCase():"")))),W=/\B([A-Z])/g,z=j((t=>t.replace(W,"-$1").toLowerCase())),q=j((t=>t.charAt(0).toUpperCase()+t.slice(1))),K=j((t=>t?`on${q(t)}`:"")),$=(t,e)=>!Object.is(t,e),Z=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Q=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let tt;const et=()=>tt||(tt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:{})},8745:function(t){"use strict";function e(t,e,n){n=n||2;var o,s,a,u,l,c,f,d=e&&e.length,p=d?e[0]*n:t.length,_=r(t,0,p,n,!0),v=[];if(!_||_.next===_.prev)return v;if(d&&(_=h(t,e,_,n)),t.length>80*n){o=a=t[0],s=u=t[1];for(var m=n;ma&&(a=l),c>u&&(u=c);f=Math.max(a-o,u-s),f=0!==f?1/f:0}return i(_,v,n,o,s,f),v}function r(t,e,r,n,i){var o,s;if(i===w(t,e,r,n)>0)for(o=e;o=e;o-=n)s=P(o,t[o],t[o+1],s);return s&&T(s,s.next)&&(N(s),s=s.next),s}function n(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!T(n,n.next)&&0!==E(n.prev,n,n.next))n=n.next;else{if(N(n),n=e=n.prev,n===n.next)break;r=!0}}while(r||n!==e);return e}function i(t,e,r,h,l,c,f){if(t){!f&&c&&p(t,h,l,c);var d,_,v=t;while(t.prev!==t.next)if(d=t.prev,_=t.next,c?s(t,h,l,c):o(t))e.push(d.i/r),e.push(t.i/r),e.push(_.i/r),N(t),t=_.next,v=_.next;else if(t=_,t===v){f?1===f?(t=a(n(t),e,r),i(t,e,r,h,l,c,2)):2===f&&u(t,e,r,h,l,c):i(n(t),e,r,h,l,c,1);break}}}function o(t){var e=t.prev,r=t,n=t.next;if(E(e,r,n)>=0)return!1;var i=t.next.next;while(i!==t.prev){if(y(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&E(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function s(t,e,r,n){var i=t.prev,o=t,s=t.next;if(E(i,o,s)>=0)return!1;var a=i.xo.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,l=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,c=v(a,u,e,r,n),f=v(h,l,e,r,n),d=t.prevZ,p=t.nextZ;while(d&&d.z>=c&&p&&p.z<=f){if(d!==t.prev&&d!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&E(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==t.prev&&p!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&E(p.prev,p,p.next)>=0)return!1;p=p.nextZ}while(d&&d.z>=c){if(d!==t.prev&&d!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&E(d.prev,d,d.next)>=0)return!1;d=d.prevZ}while(p&&p.z<=f){if(p!==t.prev&&p!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&E(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function a(t,e,r){var i=t;do{var o=i.prev,s=i.next.next;!T(o,s)&&b(o,i,i.next,s)&&I(o,s)&&I(s,o)&&(e.push(o.i/r),e.push(i.i/r),e.push(s.i/r),N(i),N(i.next),i=t=s),i=i.next}while(i!==t);return n(i)}function u(t,e,r,o,s,a){var u=t;do{var h=u.next.next;while(h!==u.prev){if(u.i!==h.i&&g(u,h)){var l=O(u,h);return u=n(u,u.next),l=n(l,l.next),i(u,e,r,o,s,a),void i(l,e,r,o,s,a)}h=h.next}u=u.next}while(u!==t)}function h(t,e,i,o){var s,a,u,h,f,d=[];for(s=0,a=e.length;s=n.next.y&&n.next.y!==n.y){var a=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=i&&a>s){if(s=a,a===i){if(o===n.y)return n;if(o===n.next.y)return n.next}r=n.x=n.x&&n.x>=l&&i!==n.x&&y(or.x||n.x===r.x&&d(r,n)))&&(r=n,f=u)),n=n.next}while(n!==h);return r}function d(t,e){return E(t.prev,t,e.prev)<0&&E(e.next,t,t.next)<0}function p(t,e,r,n){var i=t;do{null===i.z&&(i.z=v(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,_(i)}function _(t){var e,r,n,i,o,s,a,u,h=1;do{r=t,t=null,o=null,s=0;while(r){for(s++,n=r,a=0,e=0;e0||u>0&&n)0!==a&&(0===u||!n||r.z<=n.z)?(i=r,r=r.nextZ,a--):(i=n,n=n.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(s>1);return t}function v(t,e,r,n,i){return t=32767*(t-r)*i,e=32767*(e-n)*i,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function m(t){var e=t,r=t;do{(e.x=0&&(t-s)*(n-a)-(r-s)*(e-a)>=0&&(r-s)*(o-a)-(i-s)*(n-a)>=0}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!A(t,e)&&(I(t,e)&&I(e,t)&&S(t,e)&&(E(t.prev,t,e.prev)||E(t,e.prev,e))||T(t,e)&&E(t.prev,t,t.next)>0&&E(e.prev,e,e.next)>0)}function E(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function T(t,e){return t.x===e.x&&t.y===e.y}function b(t,e,r,n){var i=R(E(t,e,r)),o=R(E(t,e,n)),s=R(E(r,n,t)),a=R(E(r,n,e));return i!==o&&s!==a||(!(0!==i||!x(t,r,e))||(!(0!==o||!x(t,n,e))||(!(0!==s||!x(r,t,n))||!(0!==a||!x(r,e,n)))))}function x(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function R(t){return t>0?1:t<0?-1:0}function A(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function I(t,e){return E(t.prev,t,t.next)<0?E(t,e,t.next)>=0&&E(t,t.prev,e)>=0:E(t,e,t.prev)<0||E(t,t.next,e)<0}function S(t,e){var r=t,n=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!==r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}function O(t,e){var r=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function P(t,e,r,n){var i=new M(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function N(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function w(t,e,r,n){for(var i=0,o=e,s=r-n;o0&&(n+=t[i-1].length,r.holes.push(n))}return r}},7167:function(t,e,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */r(1703);var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==n.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}t.exports=a()?Object.assign:function(t,e){for(var r,a,u=s(t),h=1;h0?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t}),globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array),globalThis.Float32Array||(globalThis.Float32Array=Array),globalThis.Uint32Array||(globalThis.Uint32Array=Array),globalThis.Uint16Array||(globalThis.Uint16Array=Array),globalThis.Uint8Array||(globalThis.Uint8Array=Array),globalThis.Int32Array||(globalThis.Int32Array=Array);var S=r(6908),O=r(2307),P=r(1188); /*! * @pixi/display - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/display is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ O.X.SORTABLE_CHILDREN=!1;var N=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?P.Ae.EMPTY:(t=t||new P.Ae(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},t.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},t.prototype.addPointMatrix=function(t,e){var r=t.a,n=t.b,i=t.c,o=t.d,s=t.tx,a=t.ty,u=r*e.x+i*e.y+s,h=n*e.x+o*e.y+a;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,h),this.maxY=Math.max(this.maxY,h)},t.prototype.addQuad=function(t){var e=this.minX,r=this.minY,n=this.maxX,i=this.maxY,o=t[0],s=t[1];e=on?o:n,i=s>i?s:i,o=t[2],s=t[3],e=on?o:n,i=s>i?s:i,o=t[4],s=t[5],e=on?o:n,i=s>i?s:i,o=t[6],s=t[7],e=on?o:n,i=s>i?s:i,this.minX=e,this.minY=r,this.maxX=n,this.maxY=i},t.prototype.addFrame=function(t,e,r,n,i){this.addFrameMatrix(t.worldTransform,e,r,n,i)},t.prototype.addFrameMatrix=function(t,e,r,n,i){var o=t.a,s=t.b,a=t.c,u=t.d,h=t.tx,l=t.ty,c=this.minX,f=this.minY,d=this.maxX,p=this.maxY,_=o*e+a*r+h,v=s*e+u*r+l;c=_d?_:d,p=v>p?v:p,_=o*n+a*r+h,v=s*n+u*r+l,c=_d?_:d,p=v>p?v:p,_=o*e+a*i+h,v=s*e+u*i+l,c=_d?_:d,p=v>p?v:p,_=o*n+a*i+h,v=s*n+u*i+l,c=_d?_:d,p=v>p?v:p,this.minX=c,this.minY=f,this.maxX=d,this.maxY=p},t.prototype.addVertexData=function(t,e,r){for(var n=this.minX,i=this.minY,o=this.maxX,s=this.maxY,a=e;ao?u:o,s=h>s?h:s}this.minX=n,this.minY=i,this.maxX=o,this.maxY=s},t.prototype.addVertices=function(t,e,r,n){this.addVerticesMatrix(t.worldTransform,e,r,n)},t.prototype.addVerticesMatrix=function(t,e,r,n,i,o){void 0===i&&(i=0),void 0===o&&(o=i);for(var s=t.a,a=t.b,u=t.c,h=t.d,l=t.tx,c=t.ty,f=this.minX,d=this.minY,p=this.maxX,_=this.maxY,v=r;vn?t.maxX:n,this.maxY=t.maxY>i?t.maxY:i},t.prototype.addBoundsMask=function(t,e){var r=t.minX>e.minX?t.minX:e.minX,n=t.minY>e.minY?t.minY:e.minY,i=t.maxXu?i:u,this.maxY=o>h?o:h}},t.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},t.prototype.addBoundsArea=function(t,e){var r=t.minX>e.x?t.minX:e.x,n=t.minY>e.y?t.minY:e.y,i=t.maxXu?i:u,this.maxY=o>h?o:h}},t.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(t,e,r,n,i,o){t-=i,e-=o,r+=i,n+=o,this.minX=this.minXr?this.maxX:r,this.minY=this.minYn?this.maxY:n},t}(),M=function(t,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},M(t,e)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function w(t,e){function r(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var D,C,L,F,U,G,B,X,k,H,j,V,Y,W,z,q,K,$,Z,J=function(t){function e(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new P.wx,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new N,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return w(e,t),e.mixin=function(t){for(var r=Object.keys(t),n=0;n1)for(var n=0;nthis.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var r=this.getChildIndex(t),n=this.getChildIndex(e);this.children[r]=e,this.children[n]=t,this.onChildrenChange(r=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(t);(0,S.Er)(this.children,r,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,e=[],r=0;r1)for(var n=0;n0&&o<=i){r=this.children.splice(n,o);for(var s=0;s1&&this.children.sort(tt),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t0&&r.height>0){var n,i;if(this.cullArea?(n=this.cullArea,i=this.worldTransform):this._render!==e.prototype._render&&(n=this.getBounds(!0)),n&&r.intersects(n,i))this._render(t);else if(this.cullArea)return;for(var o=0,s=this.children.length;o title : "+t.title+"
tabIndex: "+t.tabIndex},t.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var e=this.renderer,r=e.width,n=e.height;t.x+t.width>r&&(t.width=r-t.x),t.y+t.height>n&&(t.height=n-t.y)},t.prototype.addChild=function(t){var e=this.pool.pop();e||(e=document.createElement("button"),e.style.width=it+"px",e.style.height=it+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=at.toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},t.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"click",n),e.dispatchEvent(r,"pointertap",n),e.dispatchEvent(r,"tap",n)},t.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"mouseover",n)},t.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"mouseout",n)},t.prototype._onKeyDown=function(t){t.keyCode===nt&&this.activate()},t.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},t.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t}(),dt=r(8466),pt=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new P.E9,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(t,e,r){return t.worldTransform.applyInverse(r||this.global,e)},t.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var e="buttons"in t&&t.buttons;this.buttons=Number.isInteger(e)?e:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}(),_t=function(t,e){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},_t(t,e)};function vt(t,e){function r(){this.constructor=t}_t(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var mt=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),yt=function(){function t(e){this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(t,e){this._flags=e?this._flags|t:this._flags&~t},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 0!==(this._flags&t.FLAGS.OVER)},set:function(e){this._doSet(t.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return 0!==(this._flags&t.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(t.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return 0!==(this._flags&t.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(t.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),t}(),gt=function(){function t(){this._tempPoint=new P.E9}return t.prototype.recursiveFindHit=function(t,e,r,n,i){if(!e||!e.visible)return!1;var o=t.data.global;i=e.interactive||i;var s=!1,a=i,u=!0;if(e.hitArea?(n&&(e.worldTransform.applyInverse(o,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?s=!0:(n=!1,u=!1)),a=!1):e._mask&&n&&(e._mask.containsPoint&&e._mask.containsPoint(o)||(n=!1)),u&&e.interactiveChildren&&e.children)for(var h=e.children,l=h.length-1;l>=0;l--){var c=h[l],f=this.recursiveFindHit(t,c,r,n,a);if(f){if(!c.parent)continue;a=!1,f&&(t.target&&(n=!1),s=!0)}}return i&&(n&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(o)&&(s=!0),e.interactive&&(s&&!t.target&&(t.target=e),r&&r(t,e,!!s))),s},t.prototype.findHit=function(t,e,r,n){this.recursiveFindHit(t,e,r,n,!1)},t}(),Et={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};J.mixin(Et);var Tt=1,bt={target:null,data:{global:null}},xt=function(t){function e(e,r){var n=t.call(this)||this;return r=r||{},n.renderer=e,n.autoPreventDefault=void 0===r.autoPreventDefault||r.autoPreventDefault,n.interactionFrequency=r.interactionFrequency||10,n.mouse=new pt,n.mouse.identifier=Tt,n.mouse.global.set(-999999),n.activeInteractionData={},n.activeInteractionData[Tt]=n.mouse,n.interactionDataPool=[],n.eventData=new mt,n.interactionDOMElement=null,n.moveWhenInside=!1,n.eventsAdded=!1,n.tickerAdded=!1,n.mouseOverRenderer=!("PointerEvent"in globalThis),n.supportsTouchEvents="ontouchstart"in globalThis,n.supportsPointerEvents=!!globalThis.PointerEvent,n.onPointerUp=n.onPointerUp.bind(n),n.processPointerUp=n.processPointerUp.bind(n),n.onPointerCancel=n.onPointerCancel.bind(n),n.processPointerCancel=n.processPointerCancel.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n.processPointerDown=n.processPointerDown.bind(n),n.onPointerMove=n.onPointerMove.bind(n),n.processPointerMove=n.processPointerMove.bind(n),n.onPointerOut=n.onPointerOut.bind(n),n.processPointerOverOut=n.processPointerOverOut.bind(n),n.onPointerOver=n.onPointerOver.bind(n),n.cursorStyles={default:"inherit",pointer:"pointer"},n.currentCursorMode=null,n.cursor=null,n.resolution=1,n.delayedEvents=[],n.search=new gt,n._tempDisplayObject=new Q,n._eventListenerOptions={capture:!0,passive:!1},n._useSystemTicker=void 0===r.useSystemTicker||r.useSystemTicker,n.setTargetElement(n.renderer.view,n.renderer.resolution),n}return vt(e,t),Object.defineProperty(e.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(t){this._useSystemTicker=t,t?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),e.prototype.hitTest=function(t,e){return bt.target=null,bt.data.global=t,e||(e=this.lastObjectRendered),this.processInteractive(bt,e,null,!0),bt.target},e.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},e.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(dt.vB.system.add(this.tickerUpdate,this,dt.uF.INTERACTION),this.tickerAdded=!0)},e.prototype.removeTickerListener=function(){this.tickerAdded&&(dt.vB.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},e.prototype.addEvents=function(){if(!this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},e.prototype.removeEvents=function(){if(this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},e.prototype.tickerUpdate=function(t){this._deltaTime+=t,this._deltaTime0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?n=Ut:n===Bt&&(n=Gt);var i=n/100|0;if(i===Xt){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=t.TYPE.JSON}catch(a){return void this.abort("Error trying to parse loaded json: "+a)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var s=document.createElement("div");s.innerHTML=r,this.data=s}this.type=t.TYPE.XML}catch(u){return void this.abort("Error trying to parse loaded xml: "+u)}else this.data=e.response||r;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},t.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,Lt||(Lt=document.createElement("a")),Lt.href=t;var r=Dt(Lt.href,{strictMode:!0}),n=!r.port&&""===e.port||r.port===e.port,i=r.protocol?r.protocol+":":"";return r.host===e.hostname&&n&&i===e.protocol?"":"anonymous"},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(t){void 0===t&&(t=this.url);var e="";if(this.isDataUrl){var r=t.indexOf("/");e=t.substring(r+1,t.indexOf(";",r))}else{var n=t.indexOf("?"),i=t.indexOf("#"),o=Math.min(n>-1?n:t.length,i>-1?i:t.length);t=t.substring(0,o),e=t.substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();function Yt(){}function Wt(t){return function(){for(var e=arguments,r=[],n=0;n>2,i[1]=(3&n[0])<<4|n[1]>>4,i[2]=(15&n[1])<<2|n[2]>>6,i[3]=63&n[2];var s=r-(t.length-1);switch(s){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(o=0;o0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},e._createLevelBuffers=function(t,e,r,n,i,o,s){for(var a=new Array(r),u=t.byteOffset,h=o,l=s,c=h+n-1&~(n-1),f=l+i-1&~(i-1),d=c*f*ae[e],p=0;p1?h:c,levelHeight:r>1?l:f,levelBuffer:new Uint8Array(t.buffer,u,d)},u+=d,h=h>>1||1,l=l>>1||1,c=h+n-1&~(n-1),f=l+i-1&~(i-1),d=c*f*ae[e];return a},e}(pe),ve=function(){function t(){}return t.use=function(e,r){var n=e.data,i=this;if(e.type===Vt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,s=void 0,a=void 0,u=0,h=o.length;u>>=1,I>>>=1}var M=b;for(S=0;S1||0!==o?R:I,levelHeight:d>1||0!==o?A:S,levelBuffer:new Uint8Array(r,M,x)},M+=x}O+=N+4,O=O%4!==0?O+4-O%4:O,R=R>>1||1,A=A>>1||1,I=R+v-1&~(v-1),S=A+m-1&~(m-1),x=I*S*_}return 0!==o?{uncompressed:E.map((function(e){var r=e[0].levelBuffer,n=!1;return o===se.vK.FLOAT?r=new Float32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4):o===se.vK.UNSIGNED_INT?(n=!0,r=new Uint32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)):o===se.vK.INT&&(n=!0,r=new Int32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)),{resource:new Rt.qm(r,{width:e[0].levelWidth,height:e[0].levelHeight}),type:o,format:n?t.convertFormatToInteger(s):s}}))}:{compressed:E.map((function(t){return new _e(null,{format:a,width:u,height:h,levels:d,levelBuffers:t})}))}},t.validate=function(t,e){for(var r=0;rs&&(n=s),o._properties=[!1,!0,!1,!1,!1],o._maxSize=e,o._batchSize=n,o._buffers=null,o._bufferUpdateIDs=[],o._updateID=0,o.interactiveChildren=!1,o.blendMode=se.T$.NORMAL,o.autoResize=i,o.roundPixels=!0,o.baseTexture=null,o.setProperties(r),o._tint=0,o.tintRgb=new Float32Array(4),o.tint=16777215,o}tr(e,t),e.prototype.setProperties=function(t){t&&(this._properties[0]="vertices"in t||"scale"in t?!!t.vertices||!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="tint"in t||"alpha"in t?!!t.tint||!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,(0,S.wK)(t,this.tintRgb)},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",(function(){return e.onChildrenChange(0)}))),t.batch.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){var e=Math.floor(t/this._batchSize);while(this._bufferUpdateIDs.lengthr&&!t.autoResize&&(o=r);var s=t._buffers;s||(s=t._buffers=this.generateBuffers(t));var a=e[0]._texture.baseTexture;this.state.blendMode=(0,S.D)(t.blendMode,a.alphaMode),i.state.set(this.state);var u=i.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(i.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=(0,S.Qt)(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,a.alphaMode),this.shader.uniforms.uSampler=a,this.renderer.shader.bind(this.shader);for(var l=!1,c=0,f=0;cn&&(d=n),f>=s.length&&s.push(this._generateOneMoreBuffer(t));var p=s[f];p.uploadDynamic(e,c,d);var _=t._bufferUpdateIDs[f]||0;l=l||p._updateID<_,l&&(p._updateID=t._updateID,p.uploadStatic(e,c,d)),i.geometry.bind(p.geometry),u.drawElements(u.TRIANGLES,6*d,u.UNSIGNED_SHORT,0)}}},e.prototype.generateBuffers=function(t){for(var e=[],r=t._maxSize,n=t._batchSize,i=t._properties,o=0;o0,h=a.alpha,l=h<1&&u?(0,S.rA)(a._tintRGB,h):a._tintRGB+(255*h<<24);n[o]=l,n[o+i]=l,n[o+2*i]=l,n[o+3*i]=l,o+=4*i}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e}(Rt.bO);(function(t){t["MITER"]="miter",t["BEVEL"]="bevel",t["ROUND"]="round"})(er||(er={})),function(t){t["BUTT"]="butt",t["ROUND"]="round",t["SQUARE"]="square"}(rr||(rr={}));var ar={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;var r=Math.ceil(t/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},ur=function(){function t(){this.color=16777215,this.alpha=1,this.texture=Rt.xE.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=Rt.xE.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}(),hr=function(t,e){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},hr(t,e)};function lr(t,e){function r(){this.constructor=t}hr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function cr(t,e){var r,n;void 0===e&&(e=!1);var i=t.length;if(!(i<6)){for(var o=0,s=0,a=t[i-2],u=t[i-1];s0||e&&o<=0){var c=i/2;for(s=c+c%2;s=6){cr(r,!1);for(var s=[],a=0;ac&&(c+=2*Math.PI);var f=l,d=c-l,p=Math.abs(d),_=Math.sqrt(u*u+h*h),v=1+(15*p*Math.sqrt(_)/Math.PI>>0),m=d/v;if(f+=m,a){s.push(t,e),s.push(r,n);for(var y=1,g=f;yy?(X?(f.push(W,z),f.push(T+A*D,b+I*D),f.push(W,z),f.push(T+S*D,b+O*D)):(f.push(T-A*w,b-I*w),f.push(q,K),f.push(T-S*w,b-O*w),f.push(q,K)),p+=2):o.join===er.ROUND?X?(f.push(W,z),f.push(T+A*D,b+I*D),p+=gr(T,b,T+A*D,b+I*D,T+S*D,b+O*D,f,!0)+4,f.push(W,z),f.push(T+S*D,b+O*D)):(f.push(T-A*w,b-I*w),f.push(q,K),p+=gr(T,b,T-A*w,b-I*w,T-S*w,b-O*w,f,!1)+4,f.push(T-S*w,b-O*w),f.push(q,K)):(f.push(W,z),f.push(q,K)):(f.push(T-A*w,b-I*w),f.push(T+A*D,b+I*D),o.join===er.BEVEL||Y/m>y||(o.join===er.ROUND?p+=X?gr(T,b,T+A*D,b+I*D,T+S*D,b+O*D,f,!0)+2:gr(T,b,T-A*w,b-I*w,T-S*w,b-O*w,f,!1)+2:(X?(f.push(q,K),f.push(q,K)):(f.push(W,z),f.push(W,z)),p+=2)),f.push(T-S*w,b-O*w),f.push(T+S*D,b+O*D),p+=2)}}g=n[2*(d-2)],E=n[2*(d-2)+1],T=n[2*(d-1)],b=n[2*(d-1)+1],A=-(E-b),I=g-T,N=Math.sqrt(A*A+I*I),A/=N,I/=N,A*=v,I*=v,f.push(T-A*w,b-I*w),f.push(T+A*D,b+I*D),u||(o.cap===rr.ROUND?p+=gr(T-A*(w-D)*.5,b-I*(w-D)*.5,T-A*w,b-I*w,T+A*D,b+I*D,f,!1)+2:o.cap===rr.SQUARE&&(p+=yr(T,b,A,I,w,D,!1,f)));var tt=e.indices,et=ar.epsilon*ar.epsilon;for(C=_;Cc*u}},t.arc=function(t,e,r,n,i,o,s,a,u){for(var h=s-o,l=ar._segmentsCount(Math.abs(h)*i,40*Math.ceil(Math.abs(h)/P._b)),c=h/(2*l),f=2*c,d=Math.cos(c),p=Math.sin(c),_=l-1,v=_%1/_,m=0;m<=_;++m){var y=m+v*m,g=c+o+f*y,E=Math.cos(g),T=-Math.sin(g);u.push((d*E+p*T)*i+r,(d*-T+p*E)*i+n)}},t}(),Ar=function(){function t(){}return t.curveLength=function(t,e,r,n,i,o,s,a){for(var u=10,h=0,l=0,c=0,f=0,d=0,p=0,_=0,v=0,m=0,y=0,g=0,E=t,T=e,b=1;b<=u;++b)l=b/u,c=l*l,f=c*l,d=1-l,p=d*d,_=p*d,v=_*t+3*p*l*r+3*d*c*i+f*s,m=_*e+3*p*l*n+3*d*c*o+f*a,y=E-v,g=T-m,E=v,T=m,h+=Math.sqrt(y*y+g*g);return h},t.curveTo=function(e,r,n,i,o,s,a){var u=a[a.length-2],h=a[a.length-1];a.length-=2;var l=ar._segmentsCount(t.curveLength(u,h,e,r,n,i,o,s)),c=0,f=0,d=0,p=0,_=0;a.push(u,h);for(var v=1,m=0;v<=l;++v)m=v/l,c=1-m,f=c*c,d=f*c,p=m*m,_=p*m,a.push(d*u+3*f*m*e+3*c*p*n+_*o,d*h+3*f*m*r+3*c*p*i+_*s)},t}(),Ir=function(){function t(){}return t.curveLength=function(t,e,r,n,i,o){var s=t-2*r+i,a=e-2*n+o,u=2*r-2*t,h=2*n-2*e,l=4*(s*s+a*a),c=4*(s*u+a*h),f=u*u+h*h,d=2*Math.sqrt(l+c+f),p=Math.sqrt(l),_=2*l*p,v=2*Math.sqrt(f),m=c/p;return(_*d+p*c*(d-v)+(4*f*l-c*c)*Math.log((2*p+m+d)/(m+v)))/(4*_)},t.curveTo=function(e,r,n,i,o){for(var s=o[o.length-2],a=o[o.length-1],u=ar._segmentsCount(t.curveLength(s,a,e,r,n,i)),h=0,l=0,c=1;c<=u;++c){var f=c/u;h=s+(e-s)*f,l=a+(r-a)*f,o.push(h+(e+(n-e)*f-h)*f,l+(r+(i-r)*f-l)*f)}},t}(),Sr=function(){function t(){this.reset()}return t.prototype.begin=function(t,e,r){this.reset(),this.style=t,this.start=e,this.attribStart=r},t.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),Or=(xr={},xr[P.HS.POLY]=fr,xr[P.HS.CIRC]=dr,xr[P.HS.ELIP]=dr,xr[P.HS.RECT]=pr,xr[P.HS.RREC]=mr,xr),Pr=[],Nr=[],Mr=function(){function t(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=r,this.fillStyle=e,this.matrix=n,this.type=t.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),wr=new P.E9,Dr=new N,Cr=function(t){function e(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new N,e.boundsDirty=-1,e}return lr(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var t=0;t0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null);var i=new Mr(t,e,r,n);return this.graphicsData.push(i),this.dirty++,this},e.prototype.drawHole=function(t,e){if(void 0===e&&(e=null),!this.graphicsData.length)return null;var r=new Mr(t,null,null,e),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e0&&(n=this.batches[this.batches.length-1],i=n.style);for(var o=this.shapeIndex;o65535&&t;this.indicesUint16=y?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}else this.batchable=!0}}else this.batchable=!0},e.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native===!!e.native))},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t131070)return!1;for(var t=this.batches,r=0;r0&&(i=Nr.pop(),i||(i=new Rt.a$,i.texArray=new Rt.Ie),this.drawCalls.push(i)),i.start=l,i.size=0,i.texArray.count=0,i.type=h),p.touched=1,p._batchEnabled=t,p._batchLocation=o,p.wrapMode=se.Nt.REPEAT,i.texArray.elements[i.texArray.count++]=p,o++)),i.size+=c.size,l+=c.size,a=p._batchLocation,this.addColors(r,d.color,d.alpha,c.attribSize,c.attribStart),this.addTextureIds(n,a,c.attribSize,c.attribStart)}Rt.VL._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(3*t.length*4),o=new Float32Array(i),s=new Uint32Array(i),a=0,u=0;u>16)+(65280&e)+((255&e)<<16),s=(0,S.rA)(o,r);t.length=Math.max(t.length,i+n);for(var a=0;a0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new P.mg,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new P.mg,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return n===t&&i===e||r.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,r,n){this._initCurve();var i=this.currentPath.points;return 0===i.length&&this.moveTo(0,0),Ir.curveTo(t,e,r,n,i),this},e.prototype.bezierCurveTo=function(t,e,r,n,i,o){return this._initCurve(),Ar.curveTo(t,e,r,n,i,o,this.currentPath.points),this},e.prototype.arcTo=function(t,e,r,n,i){this._initCurve(t,e);var o=this.currentPath.points,s=Rr.curveTo(t,e,r,n,i,o);if(s){var a=s.cx,u=s.cy,h=s.radius,l=s.startAngle,c=s.endAngle,f=s.anticlockwise;this.arc(a,u,h,l,c,f)}return this},e.prototype.arc=function(t,e,r,n,i,o){if(void 0===o&&(o=!1),n===i)return this;!o&&i<=n?i+=P._b:o&&n<=i&&(n+=P._b);var s=i-n;if(0===s)return this;var a=t+Math.cos(n)*r,u=e+Math.sin(n)*r,h=this._geometry.closePointEps,l=this.currentPath?this.currentPath.points:null;if(l){var c=Math.abs(l[l.length-2]-a),f=Math.abs(l[l.length-1]-u);c0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,r,n){return this.drawShape(new P.Ae(t,e,r,n))},e.prototype.drawRoundedRect=function(t,e,r,n,i){return this.drawShape(new P.c9(t,e,r,n,i))},e.prototype.drawCircle=function(t,e,r){return this.drawShape(new P.Cd(t,e,r))},e.prototype.drawEllipse=function(t,e,r,n){return this.drawShape(new P.Pj(t,e,r,n))},e.prototype.drawPolygon=function(){for(var t,e=arguments,r=[],n=0;n>16&255)/255*i,o.tint[1]=(n>>8&255)/255*i,o.tint[2]=(255&n)/255*i,o.tint[3]=i,t.shader.bind(e),t.geometry.bind(r,e),t.state.set(this.state);for(var a=0,u=s.length;a>16)+(65280&a)+((255&a)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var e=this.transform.worldTransform,r=e.a,n=e.b,i=e.c,o=e.d,s=e.tx,a=e.ty,u=this._geometry.points,h=this.vertexData,l=0,c=0;c=n&&Hr.x=i&&Hr.y>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||Rt.xE.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}(et),Yr=function(t,e){return Yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Yr(t,e)};function Wr(t,e){function r(){this.constructor=t}Yr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){t[t["LINEAR_VERTICAL"]=0]="LINEAR_VERTICAL",t[t["LINEAR_HORIZONTAL"]=1]="LINEAR_HORIZONTAL"})(kr||(kr={}));var zr={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:kr.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},qr=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Kr=function(){function t(t){this.styleID=0,this.reset(),Qr(this,t,t)}return t.prototype.clone=function(){var e={};return Qr(e,this,zr),new t(e)},t.prototype.reset=function(){Qr(this,zr,zr)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var e=Zr(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(t){var e=Zr(t);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){Jr(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var e=Zr(t);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),t.prototype.toFontString=function(){var t="number"===typeof this.fontSize?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var r=e.length-1;r>=0;r--){var n=e[r].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&qr.indexOf(n)<0&&(n='"'+n+'"'),e[r]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},t}();function $r(t){return"number"===typeof t?(0,S.XN)(t):("string"===typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function Zr(t){if(Array.isArray(t)){for(var e=0;ep)if(""!==s&&(a+=t.addLine(s),s="",o=0),t.canBreakWords(m,r.breakWords))for(var T=t.wordWrapSplit(m),b=0;bp&&(a+=t.addLine(s),d=!1,s="",o=0),s+=x,o+=S}else{s.length>0&&(a+=t.addLine(s),s="",o=0);var O=v===_.length-1;a+=t.addLine(m,!O),d=!1,s="",o=0}else E+o>p&&(d=!1,a+=t.addLine(s),s="",o=0),(s.length>0||!t.isBreakingSpace(m)||d)&&(s+=m,o+=E)}return a+=t.addLine(s,!1),a},t.addLine=function(e,r){return void 0===r&&(r=!0),e=t.trimRight(e),e=r?e+"\n":e,e},t.getFromCache=function(t,e,r,n){var i=r[t];if("number"!==typeof i){var o=t.length*e;i=n.measureText(t).width+o,r[t]=i}return i},t.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},t.collapseNewlines=function(t){return"normal"===t},t.trimRight=function(e){if("string"!==typeof e)return"";for(var r=e.length-1;r>=0;r--){var n=e[r];if(!t.isBreakingSpace(n))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return"string"===typeof e&&t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,r){return"string"===typeof e&&t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var r=[],n="";if("string"!==typeof e)return r;for(var i=0;ia;--f){for(_=0;_0&&p>_&&(v=(_+p)/2);var m=_+d,y=r.lineHeight*(f+1),g=m;f+10},t}();function un(t,e){var r=!1;if(t&&t._textures&&t._textures.length)for(var n=0;n=0;e--)this.add(t.children[e]);return this},t.prototype.destroy=function(){this.ticking&&dt.vB.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}();function vn(t,e){return e instanceof Rt.VL&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function mn(t,e){if(!(e instanceof Gr))return!1;var r=e.geometry;e.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i=n&&Rn.x=i&&Rn.y1?Rt.ex.from(On,Pn,e):Rt.ex.from(In,Sn,e)},e.prototype.render=function(t){var e=this.renderer,r=this.quad,n=r.vertices;n[0]=n[6]=t._width*-t.anchor.x,n[1]=n[3]=t._height*-t.anchor.y,n[2]=n[4]=t._width*(1-t.anchor.x),n[5]=n[7]=t._height*(1-t.anchor.y);var i=t.uvRespectAnchor?t.anchor.x:0,o=t.uvRespectAnchor?t.anchor.y:0;n=r.uvs,n[0]=n[6]=-i,n[1]=n[3]=-o,n[2]=n[4]=1-i,n[5]=n[7]=1-o,r.invalidate();var s=t._texture,a=s.baseTexture,u=t.tileTransform.localTransform,h=t.uvMatrix,l=a.isPowerOfTwo&&s.frame.width===a.width&&s.frame.height===a.height;l&&(a._glTextures[e.CONTEXT_UID]?l=a.wrapMode!==se.Nt.CLAMP:a.wrapMode===se.Nt.CLAMP&&(a.wrapMode=se.Nt.REPEAT));var c=l?this.simpleShader:this.shader,f=s.width,d=s.height,p=t._width,_=t._height;Nn.set(u.a*f/p,u.b*f/_,u.c*d/p,u.d*d/_,u.tx/p,u.ty/_),Nn.invert(),l?Nn.prepend(h.mapCoord):(c.uniforms.uMapCoord=h.mapCoord.toArray(!0),c.uniforms.uClampFrame=h.uClampFrame,c.uniforms.uClampOffset=h.uClampOffset),c.uniforms.uTransform=Nn.toArray(!0),c.uniforms.uColor=(0,S.GT)(t.tint,t.worldAlpha,c.uniforms.uColor,a.alphaMode),c.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),c.uniforms.uSampler=s,e.shader.bind(c),e.geometry.bind(r),this.state.blendMode=(0,S.D)(t.blendMode,a.alphaMode),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e}(Rt.bO),wn=function(t,e){return wn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},wn(t,e)};function Dn(t,e){function r(){this.constructor=t}wn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Cn=function(){function t(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(t){if(t||this._bufferUpdateId!==this.uvBuffer._updateID||this._textureUpdateId!==this.uvMatrix._updateID){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),Ln=new P.E9,Fn=new P.mg,Un=function(t){function e(e,r,n,i){void 0===i&&(i=se.lg.TRIANGLES);var o=t.call(this)||this;return o.geometry=e,o.shader=r,o.state=n||Rt.ZM.for2d(),o.drawMode=i,o.start=0,o.size=0,o.uvs=null,o.indices=null,o.vertexData=new Float32Array(1),o.vertexDirty=-1,o._transformID=-1,o._roundPixels=O.X.ROUND_PIXELS,o.batchUvs=null,o}return Dn(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},set:function(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),e.prototype._render=function(t){var r=this.geometry.buffers[0].data,n=this.shader;n.batchable&&this.drawMode===se.lg.TRIANGLES&&r.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},e.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},e.prototype._renderToBatch=function(t){var e=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=r._tintRGB,this._texture=r.texture;var n=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[n]),t.plugins[n].render(this)},e.prototype.calculateVertices=function(){var t=this.geometry,e=t.buffers[0],r=e.data,n=e._updateID;if(n!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==r.length&&(this.vertexData=new Float32Array(r.length));for(var i=this.transform.worldTransform,o=i.a,s=i.b,a=i.c,u=i.d,h=i.tx,l=i.ty,c=this.vertexData,f=0;f>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var t=this.texture.baseTexture;(0,S.GT)(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(Rt.ex),kn=function(t){function e(e,r,n){var i=t.call(this)||this,o=new Rt.lW(e),s=new Rt.lW(r,!0),a=new Rt.lW(n,!0,!0);return i.addAttribute("aVertexPosition",o,2,!1,se.vK.FLOAT).addAttribute("aTextureCoord",s,2,!1,se.vK.FLOAT).addIndex(a),i._updateId=-1,i}return Dn(e,t),Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(Rt.ZX),Hn=function(t,e){return Hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Hn(t,e)};function jn(t,e){function r(){this.constructor=t}Hn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Vn=function(){function t(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return t}(),Yn=function(){function t(){}return t.test=function(t){return"string"===typeof t&&0===t.indexOf("info face=")},t.parse=function(t){var e=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var n in e){var i=e[n].match(/^[a-z]+/gm)[0],o=e[n].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var a in o){var u=o[a].split("="),h=u[0],l=u[1].replace(/"/gm,""),c=parseFloat(l),f=isNaN(c)?l:c;s[h]=f}r[i].push(s)}var d=new Vn;return r.info.forEach((function(t){return d.info.push({face:t.face,size:parseInt(t.size,10)})})),r.common.forEach((function(t){return d.common.push({lineHeight:parseInt(t.lineHeight,10)})})),r.page.forEach((function(t){return d.page.push({id:parseInt(t.id,10),file:t.file})})),r.char.forEach((function(t){return d.char.push({id:parseInt(t.id,10),page:parseInt(t.page,10),x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xoffset:parseInt(t.xoffset,10),yoffset:parseInt(t.yoffset,10),xadvance:parseInt(t.xadvance,10)})})),r.kerning.forEach((function(t){return d.kerning.push({first:parseInt(t.first,10),second:parseInt(t.second,10),amount:parseInt(t.amount,10)})})),r.distanceField.forEach((function(t){return d.distanceField.push({distanceRange:parseInt(t.distanceRange,10),fieldType:t.fieldType})})),d},t}(),Wn=function(){function t(){}return t.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face")},t.parse=function(t){for(var e=new Vn,r=t.getElementsByTagName("info"),n=t.getElementsByTagName("common"),i=t.getElementsByTagName("page"),o=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),a=t.getElementsByTagName("distanceField"),u=0;u")>-1){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Wn.test(e)}return!1},t.parse=function(t){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Wn.parse(e)},t}(),qn=[Yn,Wn,zn];function Kn(t){for(var e=0;e=h-R*a){if(0===y)throw new Error("[BitmapFont] textureHeight "+h+"px is too small for "+c.fontSize+"px fonts");--T,p=null,_=null,v=null,y=0,m=0,g=0}else if(g=Math.max(R+b.fontProperties.descent,g),A*a+m>=f)--T,y+=g*a,y=Math.ceil(y),m=0,g=0;else{Zn(p,_,b,m,y,a,c);var I=ti(b.text);d.char.push({id:I,page:E.length-1,x:m/a,y:y/a,width:A,height:R,xoffset:0,yoffset:0,xadvance:Math.ceil(x-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0))}),m+=(A+2*s)*a,m=Math.ceil(m)}}T=0;for(var S=l.length;T0&&n.x>h&&(++m,(0,S.Er)(i,1+_-m,1+E-_),E=_,_=-1,o.push(v),s.push(i.length>0?i[i.length-1].prevSpaces:0),d=Math.max(d,v),p++,n.x=0,n.y+=e.lineHeight,c=null,g=0)}}else o.push(f),s.push(-1),d=Math.max(d,f),++p,++m,n.x=0,n.y+=e.lineHeight,c=null,g=0}var A=u[u.length-1];"\r"!==A&&"\n"!==A&&(/(?:\s)/.test(A)&&(f=v),o.push(f),d=Math.max(d,f),s.push(-1));var I=[];for(E=0;E<=p;E++){var O=0;"right"===this._align?O=d-o[E]:"center"===this._align?O=(d-o[E])/2:"justify"===this._align&&(O=s[E]<0?0:(d-o[E])/s[E]),I.push(O)}var N=i.length,M={},w=[],D=this._activePagesMeshData;for(E=0;E6*H)||F.vertices.length<2*Un.BATCHABLE_SIZE)F.vertices=new Float32Array(8*H),F.uvs=new Float32Array(8*H),F.indices=new Uint16Array(6*H);else for(var j=F.total,V=F.vertices,Y=4*j*2;Y=n&&(e=t-a-1),u=u.replace("%value%",r[e].toString()),o+=u,o+="\n"}return i=i.replace("%blur%",o),i=i.replace("%size%",t.toString()),i} /*! * @pixi/constants - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/constants is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */(function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"})(_i||(_i={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(vi||(vi={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(mi||(mi={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(yi||(yi={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(gi||(gi={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(Ei||(Ei={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(Ti||(Ti={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(bi||(bi={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(xi||(xi={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(Ri||(Ri={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(Ai||(Ai={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(Ii||(Ii={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(Si||(Si={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(Oi||(Oi={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(Pi||(Pi={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(Ni||(Ni={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(Mi||(Mi={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(wi||(wi={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(Di||(Di={}));var Ui=function(t){function e(e,r,n,i,o){void 0===r&&(r=8),void 0===n&&(n=4),void 0===i&&(i=O.X.FILTER_RESOLUTION),void 0===o&&(o=5);var s=this,a=pi(o,e),u=Fi(o);return s=t.call(this,a,u)||this,s.horizontal=e,s.resolution=i,s._quality=0,s.quality=n,s.blur=r,s}return fi(e,t),e.prototype.apply=function(t,e,r,n){if(r?this.horizontal?this.uniforms.strength=1/r.width*(r.width/e.width):this.uniforms.strength=1/r.height*(r.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,r,n);else{var i=t.getFilterTexture(),o=t.renderer,s=e,a=i;this.state.blend=!1,t.applyFilter(this,s,a,Oi.CLEAR);for(var u=1;u>16&255,n=t>>8&255,i=255&t,o=[r/255,0,0,0,0,0,n/255,0,0,0,0,0,i/255,0,0,0,0,0,1,0];this._loadMatrix(o,e)},e.prototype.greyscale=function(t,e){var r=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.blackAndWhite=function(t){var e=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var r=Math.cos(t),n=Math.sin(t),i=Math.sqrt,o=1/3,s=i(o),a=r+(1-r)*o,u=o*(1-r)-s*n,h=o*(1-r)+s*n,l=o*(1-r)+s*n,c=r+o*(1-r),f=o*(1-r)-s*n,d=o*(1-r)-s*n,p=o*(1-r)+s*n,_=r+o*(1-r),v=[a,u,h,0,0,l,c,f,0,0,d,p,_,0,0,0,0,0,1,0];this._loadMatrix(v,e)},e.prototype.contrast=function(t,e){var r=(t||0)+1,n=-.5*(r-1),i=[r,0,0,0,n,0,r,0,0,n,0,0,r,0,n,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.saturate=function(t,e){void 0===t&&(t=0);var r=2*t/3+1,n=-.5*(r-1),i=[r,n,n,0,0,n,r,n,0,0,n,n,r,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){var e=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.sepia=function(t){var e=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.technicolor=function(t){var e=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.polaroid=function(t){var e=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.toBGR=function(t){var e=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.kodachrome=function(t){var e=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.browni=function(t){var e=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.vintage=function(t){var e=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.colorTone=function(t,e,r,n,i){t=t||.2,e=e||.15,r=r||16770432,n=n||3375104;var o=(r>>16&255)/255,s=(r>>8&255)/255,a=(255&r)/255,u=(n>>16&255)/255,h=(n>>8&255)/255,l=(255&n)/255,c=[.3,.59,.11,0,0,o,s,a,t,0,u,h,l,e,0,o-u,s-h,a-l,0,0];this._loadMatrix(c,i)},e.prototype.night=function(t,e){t=t||.1;var r=[-2*t,-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.predator=function(t,e){var r=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.lsd=function(t){var e=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.reset=function(){var t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(t,!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(Rt.wn);ki.prototype.grayscale=ki.prototype.greyscale; /*! * @pixi/filter-displacement - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/filter-displacement is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var Hi=function(t,e){return Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Hi(t,e)};function ji(t,e){function r(){this.constructor=t}Hi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Vi="varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",Yi="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n",Wi=(function(t){function e(e,r){var n=this,i=new P.y3;return e.renderable=!1,n=t.call(this,Yi,Vi,{mapSampler:e._texture,filterMatrix:i,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,n.maskSprite=e,n.maskMatrix=i,null!==r&&void 0!==r||(r=20),n.scale=new P.E9(r,r),n}ji(e,t),e.prototype.apply=function(t,e,r,n){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var i=this.maskSprite.worldTransform,o=Math.sqrt(i.a*i.a+i.b*i.b),s=Math.sqrt(i.c*i.c+i.d*i.d);0!==o&&0!==s&&(this.uniforms.rotation[0]=i.a/o,this.uniforms.rotation[1]=i.b/o,this.uniforms.rotation[2]=i.c/s,this.uniforms.rotation[3]=i.d/s),t.applyFilter(this,e,r,n)},Object.defineProperty(e.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t},enumerable:!1,configurable:!0})}(Rt.wn),function(t,e){return Wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Wi(t,e)});function zi(t,e){function r(){this.constructor=t}Wi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var qi="\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",Ki='varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n',$i=(function(t){function e(){return t.call(this,qi,Ki)||this}zi(e,t)}(Rt.wn),function(t,e){return $i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},$i(t,e)});function Zi(t,e){function r(){this.constructor=t}$i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Ji,Qi,to,eo,ro,no,io,oo,so,ao,uo,ho,lo,co,fo,po,_o,vo,mo,yo="precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n";(function(t){function e(e,r){void 0===e&&(e=.5),void 0===r&&(r=Math.random());var n=t.call(this,Rt.Y9,yo,{uNoise:0,uSeed:0})||this;return n.noise=e,n.seed=r,n}Zi(e,t),Object.defineProperty(e.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0})})(Rt.wn);(function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"})(Ji||(Ji={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(Qi||(Qi={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(to||(to={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(eo||(eo={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(ro||(ro={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(no||(no={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(io||(io={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(oo||(oo={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(so||(so={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(ao||(ao={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(uo||(uo={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(ho||(ho={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(lo||(lo={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(co||(co={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(fo||(fo={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(po||(po={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(_o||(_o={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(vo||(vo={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(mo||(mo={}));var go=new P.y3;J.prototype._cacheAsBitmap=!1,J.prototype._cacheData=null,J.prototype._cacheAsBitmapResolution=null,J.prototype._cacheAsBitmapMultisample=vo.NONE;var Eo=function(){function t(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return t}();Object.defineProperties(J.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&(this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new Eo),e=this._cacheData,e.originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),J.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},J.prototype._initCachedDisplayObject=function(t){var e;if(!this._cacheData||!this._cacheData.sprite){var r=this.alpha;this.alpha=1,t.batch.flush();var n=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var i=this.filters[0].padding;n.pad(i)}n.ceil(O.X.RESOLUTION);var o=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),a=t.renderTexture.destinationFrame.clone(),u=t.projection.transform,h=Rt.TI.create({width:n.width,height:n.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:null!==(e=this.cacheAsBitmapMultisample)&&void 0!==e?e:t.multisample}),l="cacheAsBitmap_"+(0,S.hQ)();this._cacheData.textureCacheId=l,Rt.VL.addToCache(h.baseTexture,l),Rt.xE.addToCache(h,l);var c=this.transform.localTransform.copyTo(go).invert().translate(-n.x,-n.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:h,clear:!0,transform:c,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=u,t.renderTexture.bind(o,s,a),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var f=new Vr(h);f.transform.worldTransform=this.transform.worldTransform,f.anchor.x=-n.x/n.width,f.anchor.y=-n.y/n.height,f.alpha=r,f._bounds=this._bounds,this._cacheData.sprite=f,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=f.containsPoint.bind(f)}},J.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},J.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(null,!0),r=this.alpha;this.alpha=1;var n=t.context,i=t._projTransform;e.ceil(O.X.RESOLUTION);var o=Rt.TI.create({width:e.width,height:e.height}),s="cacheAsBitmap_"+(0,S.hQ)();this._cacheData.textureCacheId=s,Rt.VL.addToCache(o.baseTexture,s),Rt.xE.addToCache(o,s);var a=go;this.transform.localTransform.copyTo(a),a.invert(),a.tx-=e.x,a.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:o,clear:!0,transform:a,skipUpdateTransform:!1}),t.context=n,t._projTransform=i,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var u=new Vr(o);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-e.x/e.width,u.anchor.y=-e.y/e.height,u.alpha=r,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}},J.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},J.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},J.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Rt.VL.removeFromCache(this._cacheData.textureCacheId),Rt.xE.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},J.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)}, /*! * @pixi/mixin-get-child-by-name - v6.3.0 * Compiled Wed, 23 Mar 2022 18:58:56 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ J.prototype.name=null,et.prototype.getChildByName=function(t,e){for(var r=0,n=this.children.length;r0){var f=a.x-t[l].x,d=a.y-t[l].y,p=Math.sqrt(f*f+d*d);a=t[l],s+=p/u}else s=l/(h-1);i[c]=s,i[c+1]=0,i[c+2]=s,i[c+3]=1}var _=0;for(l=0;l0?this.textureScale*this._width/2:this._width/2;n/=l,i/=l,n*=c,i*=c,o[h]=u.x+n,o[h+1]=u.y+i,o[h+2]=u.x-n,o[h+3]=u.y-i,r=u}this.buffers[0].update()}},e.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},e}(kn),Ao=(function(t){function e(e,r,n){void 0===n&&(n=0);var i=this,o=new Ro(e.height,r,n),s=new Xn(e);return n>0&&(e.baseTexture.wrapMode=se.Nt.REPEAT),i=t.call(this,o,s)||this,i.autoUpdate=!0,i}bo(e,t),e.prototype._render=function(e){var r=this.geometry;(this.autoUpdate||r._width!==this.shader.texture.height)&&(r._width=this.shader.texture.height,r.update()),t.prototype._render.call(this,e)}}(Un),function(t){function e(e,r,n){var i=this,o=new xo(e.width,e.height,r,n),s=new Xn(Rt.xE.WHITE);return i=t.call(this,o,s)||this,i.texture=e,i.autoResize=!0,i}return bo(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var t=this.geometry,e=this.shader.texture,r=e.width,n=e.height;!this.autoResize||t.width===r&&t.height===n||(t.width=this.shader.texture.width,t.height=this.shader.texture.height,t.build())},Object.defineProperty(e.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture!==t&&(this.shader.texture=t,this._textureID=-1,t.baseTexture.valid?this.textureUpdated():t.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},e.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},e}(Un)),Io=(function(t){function e(e,r,n,i,o){void 0===e&&(e=Rt.xE.EMPTY);var s=this,a=new kn(r,n,i);a.getBuffer("aVertexPosition").static=!1;var u=new Xn(e);return s=t.call(this,a,u,null,o)||this,s.autoUpdate=!0,s}bo(e,t),Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)}}(Un),10),So=(function(t){function e(e,r,n,i,o){void 0===r&&(r=Io),void 0===n&&(n=Io),void 0===i&&(i=Io),void 0===o&&(o=Io);var s=t.call(this,Rt.xE.WHITE,4,4)||this;return s._origWidth=e.orig.width,s._origHeight=e.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=r,s._rightWidth=i,s._topHeight=n,s._bottomHeight=o,s.texture=e,s}bo(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype.updateHorizontalVertices=function(){var t=this.vertices,e=this._getMinScale();t[9]=t[11]=t[13]=t[15]=this._topHeight*e,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight*e,t[25]=t[27]=t[29]=t[31]=this._height},e.prototype.updateVerticalVertices=function(){var t=this.vertices,e=this._getMinScale();t[2]=t[10]=t[18]=t[26]=this._leftWidth*e,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth*e,t[6]=t[14]=t[22]=t[30]=this._width},e.prototype._getMinScale=function(){var t=this._leftWidth+this._rightWidth,e=this._width>t?1:this._width/t,r=this._topHeight+this._bottomHeight,n=this._height>r?1:this._height/r,i=Math.min(e,n);return i},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()},enumerable:!1,configurable:!0}),e.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var r=1/this._origWidth,n=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()}}(Ao),r(8658),function(t,e){return So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},So(t,e)});function Oo(t,e){function r(){this.constructor=t}So(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){function e(e,r){void 0===r&&(r=!0);var n=t.call(this,e[0]instanceof Rt.xE?e[0]:e[0].texture)||this;return n._textures=null,n._durations=null,n._autoUpdate=r,n._isConnectedToTicker=!1,n.animationSpeed=1,n.loop=!0,n.updateAnchor=!1,n.onComplete=null,n.onFrameChange=null,n.onLoop=null,n._currentTime=0,n._playing=!1,n._previousFrame=null,n.textures=e,n}Oo(e,t),e.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(dt.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(dt.vB.shared.add(this.update,this,dt.uF.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,r=this.currentFrame;if(null!==this._durations){var n=this._currentTime%1*this._durations[this.currentFrame];n+=e/60*1e3;while(n<0)this._currentTime--,n+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);this._currentTime=Math.floor(this._currentTime);while(n>=this._durations[this.currentFrame])n-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=n/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramer)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var r=[],n=0;n0&&u>a&&(u=a);for(var h=0;h=0?(l=p.substr(0,_),c=p.substr(_+1)):(l=p,c=""),f=decodeURIComponent(l),d=decodeURIComponent(c),e(o,f)?Array.isArray(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o}},8292:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,i){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(r):o+encodeURIComponent(e(t[i]))})).join(r):i?encodeURIComponent(e(i))+n+encodeURIComponent(e(t)):""}},8736:function(t,e,r){"use strict";e.decode=e.parse=r(1538),e.encode=e.stringify=r(8292)},9127:function(t,e,r){var n;t=r.nmd(t),r(1703),function(i){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var s,a=2147483647,u=36,h=1,l=26,c=38,f=700,d=72,p=128,_="-",v=/^xn--/,m=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=u-h,T=Math.floor,b=String.fromCharCode;function x(t){throw RangeError(g[t])}function R(t,e){var r=t.length,n=[];while(r--)n[r]=e(t[r]);return n}function A(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(y,".");var i=t.split("."),o=R(i,e).join(".");return n+o}function I(t){var e,r,n=[],i=0,o=t.length;while(i=55296&&e<=56319&&i65535&&(t-=65536,e+=b(t>>>10&1023|55296),t=56320|1023&t),e+=b(t),e})).join("")}function O(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function N(t,e,r){var n=0;for(t=r?T(t/f):t>>1,t+=T(t/e);t>E*l>>1;n+=u)t=T(t/E);return T(n+(E+1)*t/(t+c))}function M(t){var e,r,n,i,o,s,c,f,v,m,y=[],g=t.length,E=0,b=p,R=d;for(r=t.lastIndexOf(_),r<0&&(r=0),n=0;n=128&&x("not-basic"),y.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=g&&x("invalid-input"),f=O(t.charCodeAt(i++)),(f>=u||f>T((a-E)/s))&&x("overflow"),E+=f*s,v=c<=R?h:c>=R+l?l:c-R,fT(a/m)&&x("overflow"),s*=m}e=y.length+1,R=N(E-o,e,0==o),T(E/e)>a-b&&x("overflow"),b+=T(E/e),E%=e,y.splice(E++,0,b)}return S(y)}function w(t){var e,r,n,i,o,s,c,f,v,m,y,g,E,R,A,S=[];for(t=I(t),g=t.length,e=p,r=0,o=d,s=0;s=e&&yT((a-r)/E)&&x("overflow"),r+=(c-e)*E,e=c,s=0;sa&&x("overflow"),y==e){for(f=r,v=u;;v+=u){if(m=v<=o?h:v>=o+l?l:v-o,f",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(h),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),d=["/","?","#"],p=255,_=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=r(8736);function T(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}function b(t){return i.isString(t)&&(t=T(t)),t instanceof o?t.format():o.prototype.format.call(t)}function x(t,e){return T(t,!1,!0).resolve(e)}function R(t,e){return t?T(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o127?L+="x":L+=C[F];if(!L.match(_)){var G=w.slice(0,P),B=w.slice(P+1),X=C.match(v);X&&(G.push(X[1]),B.unshift(X[2])),B.length&&(T="/"+B.join(".")+T),this.hostname=G.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=n.toASCII(this.hostname));var k=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+k,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!m[R])for(P=0,D=c.length;P0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=x.slice(-1)[0],S=(r.host||t.host||x.length>1)&&("."===I||".."===I)||""===I,O=0,P=x.length;P>=0;P--)I=x[P],"."===I?x.splice(P,1):".."===I?(x.splice(P,1),O++):O&&(x.splice(P,1),O--);if(!T&&!b)for(;O--;O)x.unshift("..");!T||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var N=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(R){r.hostname=r.host=N?"":x.length?x.shift():"";A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return T=T||r.host&&x.length,T&&!N&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},7497:function(t){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},89:function(t,e){"use strict";e.Z=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r}}}]); //# sourceMappingURL=chunk-vendors.4680bb81.js.map