=q&&R("invalid-input"),Ve=$(W.charCodeAt(He++)),(Ve>=u||Ve>S((s-ue)/Ae))&&R("overflow"),ue+=Ve*Ae,Ee=De<=Se?l:De>=Se+c?c:De-Se,!(VeS(s/ct)&&R("overflow"),Ae*=ct;re=L.length+1,Se=U(ue-Qe,re,Qe==0),S(ue/re)>s-ye&&R("overflow"),ye+=S(ue/re),ue%=re,L.splice(ue++,0,ye)}return B(L)}function ie(W){var L,q,re,ue,ye,Se,we,Ue,He,Qe,Ae,De=[],Ve,Ee,ct,ir;for(W=F(W),Ve=W.length,L=v,q=0,ye=d,Se=0;Se =L&&Ae S((s-q)/Ee)&&R("overflow"),q+=(we-L)*Ee,L=we,Se=0;Se s&&R("overflow"),Ae==L){for(Ue=q,He=u;Qe=He<=ye?l:He>=ye+c?c:He-ye,!(Ue "u"||!zt?Re:zt(Uint8Array),Ho={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Re:ArrayBuffer,"%ArrayIteratorPrototype%":Sa&&zt?zt([][Symbol.iterator]()):Re,"%AsyncFromSyncIteratorPrototype%":Re,"%AsyncFunction%":Ia,"%AsyncGenerator%":Ia,"%AsyncGeneratorFunction%":Ia,"%AsyncIteratorPrototype%":Ia,"%Atomics%":typeof Atomics>"u"?Re:Atomics,"%BigInt%":typeof BigInt>"u"?Re:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Q,"%eval%":eval,"%EvalError%":UQ,"%Float32Array%":typeof Float32Array>"u"?Re:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Re:FinalizationRegistry,"%Function%":YR,"%GeneratorFunction%":Ia,"%Int8Array%":typeof Int8Array>"u"?Re:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Re:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sa&&zt?zt(zt([][Symbol.iterator]())):Re,"%JSON%":typeof JSON=="object"?JSON:Re,"%Map%":typeof Map>"u"?Re:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Sa||!zt?Re:zt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Re:Promise,"%Proxy%":typeof Proxy>"u"?Re:Proxy,"%RangeError%":GQ,"%ReferenceError%":zQ,"%Reflect%":typeof Reflect>"u"?Re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Re:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Sa||!zt?Re:zt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sa&&zt?zt(""[Symbol.iterator]()):Re,"%Symbol%":Sa?Symbol:Re,"%SyntaxError%":ps,"%ThrowTypeError%":VQ,"%TypedArray%":qQ,"%TypeError%":rs,"%Uint8Array%":typeof Uint8Array>"u"?Re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Re:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Re:Uint32Array,"%URIError%":HQ,"%WeakMap%":typeof WeakMap>"u"?Re:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Re:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Re:WeakSet};if(zt)try{null.error}catch(e){var XQ=zt(zt(e));Ho["%Error.prototype%"]=XQ}var YQ=function e(t){var r;if(t==="%AsyncFunction%")r=nm("async function () {}");else if(t==="%GeneratorFunction%")r=nm("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=nm("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&zt&&(r=zt(i.prototype))}return Ho[t]=r,r},CT={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},uc=Hx,Th=jQ,KQ=uc.call(Function.call,Array.prototype.concat),ZQ=uc.call(Function.apply,Array.prototype.splice),OT=uc.call(Function.call,String.prototype.replace),Ch=uc.call(Function.call,String.prototype.slice),QQ=uc.call(Function.call,RegExp.prototype.exec),JQ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eJ=/\\(\\)?/g,tJ=function(t){var r=Ch(t,0,1),n=Ch(t,-1);if(r==="%"&&n!=="%")throw new ps("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ps("invalid intrinsic syntax, expected opening `%`");var i=[];return OT(t,JQ,function(o,a,s,u){i[i.length]=s?OT(u,eJ,"$1"):a||o}),i},rJ=function(t,r){var n=t,i;if(Th(CT,n)&&(i=CT[n],n="%"+i[0]+"%"),Th(Ho,n)){var o=Ho[n];if(o===Ia&&(o=YQ(n)),typeof o>"u"&&!r)throw new rs("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new ps("intrinsic "+t+" does not exist!")},Us=function(t,r){if(typeof t!="string"||t.length===0)throw new rs("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new rs('"allowMissing" argument must be a boolean');if(QQ(/^%?[^%]*%?$/,t)===null)throw new ps("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=tJ(t),i=n.length>0?n[0]:"",o=rJ("%"+i+"%",r),a=o.name,s=o.value,u=!1,l=o.alias;l&&(i=l[0],ZQ(n,KQ([0,1],l)));for(var c=1,f=!0;c =n.length){var g=zo(s,h);f=!!g,f&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[h]}else f=Th(s,h),s=s[h];f&&!u&&(Ho[a]=s)}}return s},KR={exports:{}},om,AT;function Vx(){if(AT)return om;AT=1;var e=Us,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return om=t,om}var nJ=Us,Pf=nJ("%Object.getOwnPropertyDescriptor%",!0);if(Pf)try{Pf([],"length")}catch{Pf=null}var ZR=Pf,PT=Vx(),iJ=XR,wa=sc,RT=ZR,oJ=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new wa("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new wa("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new wa("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new wa("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new wa("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new wa("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!RT&&RT(t,r);if(PT)PT(t,r,{configurable:a===null&&u?u.configurable:!a,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:o===null&&u?u.writable:!o});else if(s||!i&&!o&&!a)t[r]=n;else throw new iJ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},vy=Vx(),QR=function(){return!!vy};QR.hasArrayLengthDefineBug=function(){if(!vy)return null;try{return vy([],"length",{value:1}).length!==1}catch{return!0}};var aJ=QR,sJ=Us,IT=oJ,uJ=aJ(),kT=ZR,NT=sc,lJ=sJ("%Math.floor%"),cJ=function(t,r){if(typeof t!="function")throw new NT("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||lJ(r)!==r)throw new NT("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&kT){var a=kT(t,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!n)&&(uJ?IT(t,"length",r,!0,!0):IT(t,"length",r)),t};(function(e){var t=Hx,r=Us,n=cJ,i=sc,o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,o),u=Vx(),l=r("%Math.max%");e.exports=function(h){if(typeof h!="function")throw new i("a function is required");var d=s(t,a,arguments);return n(d,1+l(0,h.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(KR);var fJ=KR.exports,JR=Us,eI=fJ,hJ=eI(JR("String.prototype.indexOf")),dJ=function(t,r){var n=JR(t,!!r);return typeof n=="function"&&hJ(t,".prototype.")>-1?eI(n):n};const pJ={},vJ=Object.freeze(Object.defineProperty({__proto__:null,default:pJ},Symbol.toStringTag,{value:"Module"})),mJ=PM(vJ);var Wx=typeof Map=="function"&&Map.prototype,am=Object.getOwnPropertyDescriptor&&Wx?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Oh=Wx&&am&&typeof am.get=="function"?am.get:null,LT=Wx&&Map.prototype.forEach,qx=typeof Set=="function"&&Set.prototype,sm=Object.getOwnPropertyDescriptor&&qx?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ah=qx&&sm&&typeof sm.get=="function"?sm.get:null,MT=qx&&Set.prototype.forEach,gJ=typeof WeakMap=="function"&&WeakMap.prototype,Qu=gJ?WeakMap.prototype.has:null,yJ=typeof WeakSet=="function"&&WeakSet.prototype,Ju=yJ?WeakSet.prototype.has:null,_J=typeof WeakRef=="function"&&WeakRef.prototype,FT=_J?WeakRef.prototype.deref:null,xJ=Boolean.prototype.valueOf,bJ=Object.prototype.toString,SJ=Function.prototype.toString,wJ=String.prototype.match,Xx=String.prototype.slice,$i=String.prototype.replace,EJ=String.prototype.toUpperCase,DT=String.prototype.toLowerCase,tI=RegExp.prototype.test,BT=Array.prototype.concat,Mn=Array.prototype.join,TJ=Array.prototype.slice,jT=Math.floor,my=typeof BigInt=="function"?BigInt.prototype.valueOf:null,um=Object.getOwnPropertySymbols,gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,vs=typeof Symbol=="function"&&typeof Symbol.iterator=="object",dr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===vs||"symbol")?Symbol.toStringTag:null,rI=Object.prototype.propertyIsEnumerable,$T=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function UT(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||tI.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-jT(-e):jT(e);if(n!==e){var i=String(n),o=Xx.call(t,i.length+1);return $i.call(i,r,"$&_")+"."+$i.call($i.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $i.call(t,r,"$&_")}var yy=mJ,GT=yy.custom,zT=iI(GT)?GT:null,CJ=function e(t,r,n,i){var o=r||{};if(Ii(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ii(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Ii(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ii(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ii(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return aI(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?UT(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?UT(t,l):l}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return _y(t)?"[Array]":"[Object]";var f=HJ(o,n);if(typeof i>"u")i=[];else if(oI(i,t)>=0)return"[Circular]";function h($,Y,U){if(Y&&(i=TJ.call(i),i.push(Y)),U){var z={depth:o.depth};return Ii(o,"quoteStyle")&&(z.quoteStyle=o.quoteStyle),e($,z,n+1,i)}return e($,o,n+1,i)}if(typeof t=="function"&&!HT(t)){var d=MJ(t),v=Mc(t,h);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(v.length>0?" { "+Mn.call(v,", ")+" }":"")}if(iI(t)){var g=vs?$i.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):gy.call(t);return typeof t=="object"&&!vs?vu(g):g}if(UJ(t)){for(var p="<"+DT.call(String(t.nodeName)),m=t.attributes||[],y=0;y ",t.childNodes&&t.childNodes.length&&(p+="..."),p+=""+DT.call(String(t.nodeName))+">",p}if(_y(t)){if(t.length===0)return"[]";var _=Mc(t,h);return f&&!zJ(_)?"["+xy(_,f)+"]":"[ "+Mn.call(_,", ")+" ]"}if(PJ(t)){var x=Mc(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!rI.call(t,"cause")?"{ ["+String(t)+"] "+Mn.call(BT.call("[cause]: "+h(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Mn.call(x,", ")+" }"}if(typeof t=="object"&&a){if(zT&&typeof t[zT]=="function"&&yy)return yy(t,{depth:c-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(FJ(t)){var S=[];return LT&<.call(t,function($,Y){S.push(h(Y,t,!0)+" => "+h($,t))}),VT("Map",Oh.call(t),S,f)}if(jJ(t)){var w=[];return MT&&MT.call(t,function($){w.push(h($,t))}),VT("Set",Ah.call(t),w,f)}if(DJ(t))return lm("WeakMap");if($J(t))return lm("WeakSet");if(BJ(t))return lm("WeakRef");if(IJ(t))return vu(h(Number(t)));if(NJ(t))return vu(h(my.call(t)));if(kJ(t))return vu(xJ.call(t));if(RJ(t))return vu(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===en)return"{ [object globalThis] }";if(!AJ(t)&&!HT(t)){var E=Mc(t,h),R=$T?$T(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",P=!R&&dr&&Object(t)===t&&dr in t?Xx.call(go(t),8,-1):A?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=F+(P||A?"["+Mn.call(BT.call([],P||[],A||[]),": ")+"] ":"");return E.length===0?B+"{}":f?B+"{"+xy(E,f)+"}":B+"{ "+Mn.call(E,", ")+" }"}return String(t)};function nI(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function OJ(e){return $i.call(String(e),/"/g,""")}function _y(e){return go(e)==="[object Array]"&&(!dr||!(typeof e=="object"&&dr in e))}function AJ(e){return go(e)==="[object Date]"&&(!dr||!(typeof e=="object"&&dr in e))}function HT(e){return go(e)==="[object RegExp]"&&(!dr||!(typeof e=="object"&&dr in e))}function PJ(e){return go(e)==="[object Error]"&&(!dr||!(typeof e=="object"&&dr in e))}function RJ(e){return go(e)==="[object String]"&&(!dr||!(typeof e=="object"&&dr in e))}function IJ(e){return go(e)==="[object Number]"&&(!dr||!(typeof e=="object"&&dr in e))}function kJ(e){return go(e)==="[object Boolean]"&&(!dr||!(typeof e=="object"&&dr in e))}function iI(e){if(vs)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!gy)return!1;try{return gy.call(e),!0}catch{}return!1}function NJ(e){if(!e||typeof e!="object"||!my)return!1;try{return my.call(e),!0}catch{}return!1}var LJ=Object.prototype.hasOwnProperty||function(e){return e in this};function Ii(e,t){return LJ.call(e,t)}function go(e){return bJ.call(e)}function MJ(e){if(e.name)return e.name;var t=wJ.call(SJ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function oI(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return aI(Xx.call(e,0,t.maxStringLength),t)+n}var i=$i.call($i.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,GJ);return nI(i,"single",t)}function GJ(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+EJ.call(t.toString(16))}function vu(e){return"Object("+e+")"}function lm(e){return e+" { ? }"}function VT(e,t,r,n){var i=n?xy(r,n):Mn.call(r,", ");return e+" ("+t+") {"+i+"}"}function zJ(e){for(var t=0;t =0)return!1;return!0}function HJ(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Mn.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Mn.call(Array(t+1),r)}}function xy(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+Mn.call(e,","+r)+` +`+t.prev}function Mc(e,t){var r=_y(e),n=[];if(r){n.length=e.length;for(var i=0;i 1;){var r=t.pop(),n=r.obj[r.prop];if(ko(n)){for(var i=[],o=0;o =48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===oee.RFC1738&&(l===40||l===41)){s+=a.charAt(u);continue}if(l<128){s=s+In[l];continue}if(l<2048){s=s+(In[192|l>>6]+In[128|l&63]);continue}if(l<55296||l>=57344){s=s+(In[224|l>>12]+In[128|l>>6&63]+In[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|a.charCodeAt(u)&1023),s+=In[240|l>>18]+In[128|l>>12&63]+In[128|l>>6&63]+In[128|l&63]}return s},fee=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i "u"&&(S=0)}if(typeof c=="function"?_=c(r,_):_ instanceof Date?_=d(_):n==="comma"&&Nn(_)&&(_=Rf.maybeMap(_,function(W){return W instanceof Date?d(W):W})),_===null){if(a)return l&&!p?l(r,Nt.encoder,m,"key",v):r;_=""}if(_ee(_)||Rf.isBuffer(_)){if(l){var R=p?r:l(r,Nt.encoder,m,"key",v);return[g(R)+"="+g(l(_,Nt.encoder,m,"value",v))]}return[g(r)+"="+g(String(_))]}var A=[];if(typeof _>"u")return A;var P;if(n==="comma"&&Nn(_))p&&l&&(_=Rf.maybeMap(_,l)),P=[{value:_.length>0?_.join(",")||null:void 0}];else if(Nn(c))P=c;else{var F=Object.keys(_);P=f?F.sort(f):F}var B=u?r.replace(/\./g,"%2E"):r,$=i&&Nn(_)&&_.length===1?B+"[]":B;if(o&&Nn(_)&&_.length===0)return $+"[]";for(var Y=0;Y "u"?t.encodeDotInKeys===!0?!0:Nt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Nt.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Nt.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Nt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Nt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Nt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Nt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Nt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Nt.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Nt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Nt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Nt.strictNullHandling}},See=function(e,t){var r=e,n=bee(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Nn(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s=fI[n.arrayFormat],u=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var l=cI(),c=0;c 0?d+h:""},ms=lI,by=Object.prototype.hasOwnProperty,wee=Array.isArray,Et={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:ms.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Eee=function(e){return e.replace(/(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},dI=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Tee="utf8=%26%2310003%3B",Cee="utf8=%E2%9C%93",Oee=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,o),s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u -1&&(v=wee(v)?[v]:v);var g=by.call(n,d);g&&r.duplicates==="combine"?n[d]=ms.combine(n[d],v):(!g||r.duplicates==="last")&&(n[d]=v)}return n},Aee=function(e,t,r,n){for(var i=n?t:dI(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&r.parseArrays)a=r.allowEmptyArrays&&i===""?[]:[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(l,10);!r.parseArrays&&l===""?a={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[],a[c]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},Pee=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&a.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&by.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&(u=s.exec(o))!==null&&f "u"?Et.charset:t.charset,n=typeof t.duplicates>"u"?Et.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Et.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Et.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Et.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Et.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Et.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Et.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Et.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Et.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Et.decoder,delimiter:typeof t.delimiter=="string"||ms.isRegExp(t.delimiter)?t.delimiter:Et.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Et.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Et.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Et.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Et.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Et.strictNullHandling}},Iee=function(e,t){var r=Ree(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Oee(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a ",'"',"`"," ","\r",` +`," "],Uee=["{","}","|","\\","^","`"].concat($ee),Sy=["'"].concat(Uee),qT=["%","/","?",";","#"].concat(Sy),XT=["/","?","#"],Gee=255,YT=/^[+a-z0-9A-Z_-]{0,63}$/,zee=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Hee={javascript:!0,"javascript:":!0},wy={javascript:!0,"javascript:":!0},ns={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ey=Mee;function Bd(e,t,r){if(e&&typeof e=="object"&&e instanceof wn)return e;var n=new wn;return n.parse(e,t,r),n}wn.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n 127?S+="x":S+=x[w];if(!S.match(YT)){var R=y.slice(0,d),A=y.slice(d+1),P=x.match(zee);P&&(R.push(P[1]),A.unshift(P[2])),A.length&&(s="/"+A.join(".")+s),this.hostname=R.join(".");break}}}this.hostname.length>Gee?this.hostname="":this.hostname=this.hostname.toLowerCase(),m||(this.hostname=Fee.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!Hee[c])for(var d=0,_=Sy.length;d<_;d++){var $=Sy[d];if(s.indexOf($)!==-1){var Y=encodeURIComponent($);Y===$&&(Y=escape($)),s=s.split($).join(Y)}}var U=s.indexOf("#");U!==-1&&(this.hash=s.substr(U),s=s.slice(0,U));var z=s.indexOf("?");if(z!==-1?(this.search=s.substr(z),this.query=s.substr(z+1),t&&(this.query=Ey.parse(this.query)),s=s.slice(0,z)):t&&(this.search="",this.query={}),s&&(this.pathname=s),ns[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var F=this.pathname||"",ie=this.search||"";this.path=F+ie}return this.href=this.format(),this};function Vee(e){return typeof e=="string"&&(e=Bd(e)),e instanceof wn?e.format():wn.prototype.format.call(e)}wn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Ey.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||ns[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),a&&a.charAt(0)!=="?"&&(a="?"+a),r=r.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),t+i+r+a+n};function Wee(e,t){return Bd(e,!1,!0).resolve(t)}wn.prototype.resolve=function(e){return this.resolveObject(Bd(e,!1,!0)).format()};wn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new wn;t.parse(e,!1,!0),e=t}for(var r=new wn,n=Object.keys(this),i=0;i 0?r.host.split("@"):!1;S&&(r.auth=S.shift(),r.hostname=S.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=y.slice(-1)[0],E=(r.host||e.host||y.length>1)&&(w==="."||w==="..")||w==="",R=0,A=y.length;A>=0;A--)w=y[A],w==="."?y.splice(A,1):w===".."?(y.splice(A,1),R++):R&&(y.splice(A,1),R--);if(!p&&!m)for(;R--;R)y.unshift("..");p&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")&&y.unshift(""),E&&y.join("/").substr(-1)!=="/"&&y.push("");var P=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(x){r.hostname=P?"":y.length?y.shift():"",r.host=r.hostname;var S=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;S&&(r.auth=S.shift(),r.hostname=S.shift(),r.host=r.hostname)}return p=p||r.host&&y.length,p&&!P&&y.unshift(""),y.length>0?r.pathname=y.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};wn.prototype.parseHost=function(){var e=this.host,t=Bee.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var qee=Bd,Xee=Wee,Yee=Vee;/*! + * @pixi/utils - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/utils is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var jo={parse:qee,format:Yee,resolve:Xee};function dn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function KT(e){var t=e.split("?")[0];return t.split("#")[0]}function Kee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zee(e,t,r){return e.replace(new RegExp(Kee(t),"g"),r)}function Qee(e,t){for(var r="",n=0,i=-1,o=0,a,s=0;s<=e.length;++s){if(s 2){var u=r.lastIndexOf("/");if(u!==r.length-1){u===-1?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length===2||r.length===1){r="",n=0,i=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return r}var pI={toPosix:function(e){return Zee(e,"\\","/")},isUrl:function(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:function(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol:function(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol:function(e){dn(e),e=this.toPosix(e);var t="",r=/^file:\/\/\//.exec(e),n=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(r||n||i){var o=(r==null?void 0:r[0])||(n==null?void 0:n[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute:function(e,t,r){if(this.isDataUrl(e))return e;var n=KT(this.toPosix(t??ne.ADAPTER.getBaseUrl())),i=KT(this.toPosix(r??this.rootname(n)));if(dn(e),e=this.toPosix(e),e.startsWith("/"))return pI.join(i,e.slice(1));var o=this.isAbsolute(e)?e:this.join(n,e);return o},normalize:function(e){if(e=this.toPosix(e),dn(e),e.length===0)return".";var t="",r=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));var n=e.endsWith("/");return e=Qee(e,!1),e.length>0&&n&&(e+="/"),r?"/"+e:t+e},isAbsolute:function(e){return dn(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join:function(){for(var e=arguments,t,r=[],n=0;n 0)if(i===void 0)i=a;else{var s=(t=r[o-1])!==null&&t!==void 0?t:"";this.extname(s)?i+="/../"+a:i+="/"+a}}return i===void 0?".":this.normalize(i)},dirname:function(e){if(dn(e),e.length===0)return".";e=this.toPosix(e);var t=e.charCodeAt(0),r=t===47,n=-1,i=!0,o=this.getProtocol(e),a=e;e=e.slice(o.length);for(var s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!i){n=s;break}}else i=!1;return n===-1?r?"/":this.isUrl(a)?o+e:o:r&&n===1?"//":o+e.slice(0,n)},rootname:function(e){dn(e),e=this.toPosix(e);var t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){var r=e.indexOf("/",t.length);r!==-1?t=e.slice(0,r):t=e,t.endsWith("/")||(t+="/")}return t},basename:function(e,t){dn(e),t&&dn(t),e=this.toPosix(e);var r=0,n=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,s=-1;for(o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(u===47){if(!i){r=o+1;break}}else s===-1&&(i=!1,s=o+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(n=o):(a=-1,n=s))}return r===n?n=s:n===-1&&(n=e.length),e.slice(r,n)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){r=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":e.slice(r,n)},extname:function(e){dn(e),e=this.toPosix(e);for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(s===47){if(!i){r=a+1;break}continue}n===-1&&(i=!1,n=a+1),s===46?t===-1?t=a:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||n===-1||o===0||o===1&&t===n-1&&t===r+1?"":e.slice(t,n)},parse:function(e){dn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=this.toPosix(e);var r=e.charCodeAt(0),n=this.isAbsolute(e),i;t.root=this.rootname(e),n||this.hasProtocol(e)?i=1:i=0;for(var o=-1,a=0,s=-1,u=!0,l=e.length-1,c=0;l>=i;--l){if(r=e.charCodeAt(l),r===47){if(!u){a=l+1;break}continue}s===-1&&(u=!1,s=l+1),r===46?o===-1?o=l:c!==1&&(c=1):o!==-1&&(c=-1)}return o===-1||s===-1||c===0||c===1&&o===s-1&&o===a+1?s!==-1&&(a===0&&n?t.base=t.name=e.slice(1,s):t.base=t.name=e.slice(a,s)):(a===0&&n?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"};ne.RETINA_PREFIX=/@([0-9\.]+)x/;ne.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Ty=!1,ZT="6.5.10";function Jee(){Ty=!0}function vI(e){var t;if(!Ty){if(ne.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var r=[` + %c %c %c PixiJS `+ZT+" - ✰ "+e+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ + +`,"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;"];(t=globalThis.console).log.apply(t,r)}else globalThis.console&&globalThis.console.log("PixiJS "+ZT+" - "+e+" - http://www.pixijs.com/");Ty=!0}}var dm;function mI(){return typeof dm>"u"&&(dm=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:ne.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!ne.ADAPTER.getWebGLRenderingContext())return!1;var r=ne.ADAPTER.createCanvas(),n=r.getContext("webgl",t)||r.getContext("experimental-webgl",t),i=!!(n&&n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,i}catch{return!1}}()),dm}var ete="#f0f8ff",tte="#faebd7",rte="#00ffff",nte="#7fffd4",ite="#f0ffff",ote="#f5f5dc",ate="#ffe4c4",ste="#000000",ute="#ffebcd",lte="#0000ff",cte="#8a2be2",fte="#a52a2a",hte="#deb887",dte="#5f9ea0",pte="#7fff00",vte="#d2691e",mte="#ff7f50",gte="#6495ed",yte="#fff8dc",_te="#dc143c",xte="#00ffff",bte="#00008b",Ste="#008b8b",wte="#b8860b",Ete="#a9a9a9",Tte="#006400",Cte="#a9a9a9",Ote="#bdb76b",Ate="#8b008b",Pte="#556b2f",Rte="#ff8c00",Ite="#9932cc",kte="#8b0000",Nte="#e9967a",Lte="#8fbc8f",Mte="#483d8b",Fte="#2f4f4f",Dte="#2f4f4f",Bte="#00ced1",jte="#9400d3",$te="#ff1493",Ute="#00bfff",Gte="#696969",zte="#696969",Hte="#1e90ff",Vte="#b22222",Wte="#fffaf0",qte="#228b22",Xte="#ff00ff",Yte="#dcdcdc",Kte="#f8f8ff",Zte="#daa520",Qte="#ffd700",Jte="#808080",ere="#008000",tre="#adff2f",rre="#808080",nre="#f0fff0",ire="#ff69b4",ore="#cd5c5c",are="#4b0082",sre="#fffff0",ure="#f0e68c",lre="#fff0f5",cre="#e6e6fa",fre="#7cfc00",hre="#fffacd",dre="#add8e6",pre="#f08080",vre="#e0ffff",mre="#fafad2",gre="#d3d3d3",yre="#90ee90",_re="#d3d3d3",xre="#ffb6c1",bre="#ffa07a",Sre="#20b2aa",wre="#87cefa",Ere="#778899",Tre="#778899",Cre="#b0c4de",Ore="#ffffe0",Are="#00ff00",Pre="#32cd32",Rre="#faf0e6",Ire="#ff00ff",kre="#800000",Nre="#66cdaa",Lre="#0000cd",Mre="#ba55d3",Fre="#9370db",Dre="#3cb371",Bre="#7b68ee",jre="#00fa9a",$re="#48d1cc",Ure="#c71585",Gre="#191970",zre="#f5fffa",Hre="#ffe4e1",Vre="#ffe4b5",Wre="#ffdead",qre="#000080",Xre="#fdf5e6",Yre="#808000",Kre="#6b8e23",Zre="#ffa500",Qre="#ff4500",Jre="#da70d6",ene="#eee8aa",tne="#98fb98",rne="#afeeee",nne="#db7093",ine="#ffefd5",one="#ffdab9",ane="#cd853f",sne="#ffc0cb",une="#dda0dd",lne="#b0e0e6",cne="#800080",fne="#663399",hne="#ff0000",dne="#bc8f8f",pne="#4169e1",vne="#8b4513",mne="#fa8072",gne="#f4a460",yne="#2e8b57",_ne="#fff5ee",xne="#a0522d",bne="#c0c0c0",Sne="#87ceeb",wne="#6a5acd",Ene="#708090",Tne="#708090",Cne="#fffafa",One="#00ff7f",Ane="#4682b4",Pne="#d2b48c",Rne="#008080",Ine="#d8bfd8",kne="#ff6347",Nne="#40e0d0",Lne="#ee82ee",Mne="#f5deb3",Fne="#ffffff",Dne="#f5f5f5",Bne="#ffff00",jne="#9acd32",$ne={aliceblue:ete,antiquewhite:tte,aqua:rte,aquamarine:nte,azure:ite,beige:ote,bisque:ate,black:ste,blanchedalmond:ute,blue:lte,blueviolet:cte,brown:fte,burlywood:hte,cadetblue:dte,chartreuse:pte,chocolate:vte,coral:mte,cornflowerblue:gte,cornsilk:yte,crimson:_te,cyan:xte,darkblue:bte,darkcyan:Ste,darkgoldenrod:wte,darkgray:Ete,darkgreen:Tte,darkgrey:Cte,darkkhaki:Ote,darkmagenta:Ate,darkolivegreen:Pte,darkorange:Rte,darkorchid:Ite,darkred:kte,darksalmon:Nte,darkseagreen:Lte,darkslateblue:Mte,darkslategray:Fte,darkslategrey:Dte,darkturquoise:Bte,darkviolet:jte,deeppink:$te,deepskyblue:Ute,dimgray:Gte,dimgrey:zte,dodgerblue:Hte,firebrick:Vte,floralwhite:Wte,forestgreen:qte,fuchsia:Xte,gainsboro:Yte,ghostwhite:Kte,goldenrod:Zte,gold:Qte,gray:Jte,green:ere,greenyellow:tre,grey:rre,honeydew:nre,hotpink:ire,indianred:ore,indigo:are,ivory:sre,khaki:ure,lavenderblush:lre,lavender:cre,lawngreen:fre,lemonchiffon:hre,lightblue:dre,lightcoral:pre,lightcyan:vre,lightgoldenrodyellow:mre,lightgray:gre,lightgreen:yre,lightgrey:_re,lightpink:xre,lightsalmon:bre,lightseagreen:Sre,lightskyblue:wre,lightslategray:Ere,lightslategrey:Tre,lightsteelblue:Cre,lightyellow:Ore,lime:Are,limegreen:Pre,linen:Rre,magenta:Ire,maroon:kre,mediumaquamarine:Nre,mediumblue:Lre,mediumorchid:Mre,mediumpurple:Fre,mediumseagreen:Dre,mediumslateblue:Bre,mediumspringgreen:jre,mediumturquoise:$re,mediumvioletred:Ure,midnightblue:Gre,mintcream:zre,mistyrose:Hre,moccasin:Vre,navajowhite:Wre,navy:qre,oldlace:Xre,olive:Yre,olivedrab:Kre,orange:Zre,orangered:Qre,orchid:Jre,palegoldenrod:ene,palegreen:tne,paleturquoise:rne,palevioletred:nne,papayawhip:ine,peachpuff:one,peru:ane,pink:sne,plum:une,powderblue:lne,purple:cne,rebeccapurple:fne,red:hne,rosybrown:dne,royalblue:pne,saddlebrown:vne,salmon:mne,sandybrown:gne,seagreen:yne,seashell:_ne,sienna:xne,silver:bne,skyblue:Sne,slateblue:wne,slategray:Ene,slategrey:Tne,snow:Cne,springgreen:One,steelblue:Ane,tan:Pne,teal:Rne,thistle:Ine,tomato:kne,turquoise:Nne,violet:Lne,wheat:Mne,white:Fne,whitesmoke:Dne,yellow:Bne,yellowgreen:jne};function Xt(e,t){return t===void 0&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function Zx(e){var t=e.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function Qx(e){return typeof e=="string"&&(e=$ne[e.toLowerCase()]||e,e[0]==="#"&&(e=e.slice(1))),parseInt(e,16)}function ln(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}function Une(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[ce.NORMAL_NPM]=ce.NORMAL,e[ce.ADD_NPM]=ce.ADD,e[ce.SCREEN_NPM]=ce.SCREEN,t[ce.NORMAL]=ce.NORMAL_NPM,t[ce.ADD]=ce.ADD_NPM,t[ce.SCREEN]=ce.SCREEN_NPM;var n=[];return n.push(t),n.push(e),n}var Jx=Une();function eb(e,t){return Jx[t?1:0][e]}function gI(e,t,r,n){return r=r||new Float32Array(4),n||n===void 0?(r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t):(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=t,r}function jd(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;var r=e>>16&255,n=e>>8&255,i=e&255;return r=r*t+.5|0,n=n*t+.5|0,i=i*t+.5|0,(t*255<<24)+(r<<16)+(n<<8)+i}function tb(e,t,r,n){return r=r||new Float32Array(4),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(e&255)/255,(n||n===void 0)&&(r[0]*=t,r[1]*=t,r[2]*=t),r[3]=t,r}function yI(e,t){t===void 0&&(t=null);var r=e*6;if(t=t||new Uint16Array(r),t.length!==r)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+r);for(var n=0,i=0;n >>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function Cy(e){return!(e&e-1)&&!!e}function Oy(e){var t=(e>65535?1:0)<<4;e>>>=t;var r=(e>255?1:0)<<3;return e>>>=r,t|=r,r=(e>15?1:0)<<2,e>>>=r,t|=r,r=(e>3?1:0)<<1,e>>>=r,t|=r,t|e>>1}function Vo(e,t,r){var n=e.length,i;if(!(t>=n||r===0)){r=t+r>n?n-t:r;var o=n-r;for(i=t;i "u"?console.warn("PixiJS Deprecation Warning: ",t+` +Deprecated since v`+e):(n=n.split(` +`).splice(r).join(` +`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+` +Deprecated since v`+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+` +Deprecated since v`+e),console.warn(n))),QT[t]=!0}}var Ay={},Ar=Object.create(null),Kr=Object.create(null);function Vne(){var e;for(e in Ar)Ar[e].destroy();for(e in Kr)Kr[e].destroy()}function _I(){var e;for(e in Ar)delete Ar[e];for(e in Kr)delete Kr[e]}var Py=function(){function e(t,r,n){this.canvas=ne.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=n||ne.RESOLUTION,this.resize(t,r)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(t,r){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(r*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),e}();function xI(e){var t=e.width,r=e.height,n=e.getContext("2d",{willReadFrequently:!0}),i=n.getImageData(0,0,t,r),o=i.data,a=o.length,s={top:null,left:null,right:null,bottom:null},u=null,l,c,f;for(l=0;l=this.x&&t =this.y&&r t.right?t.right:this.right;if(i<=n)return!1;var o=this.y t.bottom?t.bottom:this.bottom;return a>o}var s=this.left,u=this.right,l=this.top,c=this.bottom;if(u<=s||c<=l)return!1;var f=jc[0].set(t.left,t.top),h=jc[1].set(t.left,t.bottom),d=jc[2].set(t.right,t.top),v=jc[3].set(t.right,t.bottom);if(d.x<=f.x||h.y<=f.y)return!1;var g=Math.sign(r.a*r.d-r.b*r.c);if(g===0||(r.apply(f,f),r.apply(h,h),r.apply(d,d),r.apply(v,v),Math.max(f.x,h.x,d.x,v.x)<=s||Math.min(f.x,h.x,d.x,v.x)>=u||Math.max(f.y,h.y,d.y,v.y)<=l||Math.min(f.y,h.y,d.y,v.y)>=c))return!1;var p=g*(h.y-f.y),m=g*(f.x-h.x),y=p*s+m*l,_=p*u+m*l,x=p*s+m*c,S=p*u+m*c;if(Math.max(y,_,x,S)<=p*f.x+m*f.y||Math.min(y,_,x,S)>=p*v.x+m*v.y)return!1;var w=g*(f.y-d.y),E=g*(d.x-f.x),R=w*s+E*l,A=w*u+E*l,P=w*s+E*c,F=w*u+E*c;return!(Math.max(R,A,P,F)<=w*f.x+E*f.y||Math.min(R,A,P,F)>=w*v.x+E*v.y)},e.prototype.pad=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=t),this.x-=t,this.y-=r,this.width+=t*2,this.height+=r*2,this},e.prototype.fit=function(t){var r=Math.max(this.x,t.x),n=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=r,this.width=Math.max(n-r,0),this.y=i,this.height=Math.max(o-i,0),this},e.prototype.ceil=function(t,r){t===void 0&&(t=1),r===void 0&&(r=.001);var n=Math.ceil((this.x+this.width-r)*t)/t,i=Math.ceil((this.y+this.height-r)*t)/t;return this.x=Math.floor((this.x+r)*t)/t,this.y=Math.floor((this.y+r)*t)/t,this.width=n-this.x,this.height=i-this.y,this},e.prototype.enlarge=function(t){var r=Math.min(this.x,t.x),n=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=r,this.width=n-r,this.y=i,this.height=o-i,this},e.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),EI=function(){function e(t,r,n){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),this.x=t,this.y=r,this.radius=n,this.type=Dt.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(t,r){if(this.radius<=0)return!1;var n=this.radius*this.radius,i=this.x-t,o=this.y-r;return i*=i,o*=o,i+o<=n},e.prototype.getBounds=function(){return new Le(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},e.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},e}(),TI=function(){function e(t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=t,this.y=r,this.width=n,this.height=i,this.type=Dt.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(t,r){if(this.width<=0||this.height<=0)return!1;var n=(t-this.x)/this.width,i=(r-this.y)/this.height;return n*=n,i*=i,n+i<=1},e.prototype.getBounds=function(){return new Le(this.x-this.width,this.y-this.height,this.width,this.height)},e.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),tl=function(){function e(){for(var t=arguments,r=[],n=0;n r!=c>r&&t<(l-s)*((r-u)/(c-u))+s;f&&(n=!n)}return n},e.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(t,r){return t+", "+r},"")+"]")},e}(),CI=function(){function e(t,r,n,i,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=0),o===void 0&&(o=20),this.x=t,this.y=r,this.width=n,this.height=i,this.radius=o,this.type=Dt.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(t,r){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&r>=this.y&&r<=this.y+this.height){var n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(r>=this.y+n&&r<=this.y+this.height-n||t>=this.x+n&&t<=this.x+this.width-n)return!0;var i=t-(this.x+n),o=r-(this.y+n),a=n*n;if(i*i+o*o<=a||(i=t-(this.x+this.width-n),i*i+o*o<=a)||(o=r-(this.y+this.height-n),i*i+o*o<=a)||(i=t-(this.x+n),i*i+o*o<=a))return!0}return!1},e.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},e}(),Ui=function(){function e(t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=0),this._x=n,this._y=i,this.cb=t,this.scope=r}return e.prototype.clone=function(t,r){return t===void 0&&(t=this.cb),r===void 0&&(r=this.scope),new e(t,r,this._x,this._y)},e.prototype.set=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=t),(this._x!==t||this._y!==r)&&(this._x=t,this._y=r,this.cb.call(this.scope)),this},e.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},e.prototype.copyTo=function(t){return t.set(this._x,this._y),t},e.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},e.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(e.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(e.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}),e}(),kt=function(){function e(t,r,n,i,o,a){t===void 0&&(t=1),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1),o===void 0&&(o=0),a===void 0&&(a=0),this.array=null,this.a=t,this.b=r,this.c=n,this.d=i,this.tx=o,this.ty=a}return e.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]},e.prototype.set=function(t,r,n,i,o,a){return this.a=t,this.b=r,this.c=n,this.d=i,this.tx=o,this.ty=a,this},e.prototype.toArray=function(t,r){this.array||(this.array=new Float32Array(9));var n=r||this.array;return t?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},e.prototype.apply=function(t,r){r=r||new Oe;var n=t.x,i=t.y;return r.x=this.a*n+this.c*i+this.tx,r.y=this.b*n+this.d*i+this.ty,r},e.prototype.applyInverse=function(t,r){r=r||new Oe;var n=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return r.x=this.d*n*i+-this.c*n*o+(this.ty*this.c-this.tx*this.d)*n,r.y=this.a*n*o+-this.b*n*i+(-this.ty*this.a+this.tx*this.b)*n,r},e.prototype.translate=function(t,r){return this.tx+=t,this.ty+=r,this},e.prototype.scale=function(t,r){return this.a*=t,this.d*=r,this.c*=t,this.b*=r,this.tx*=t,this.ty*=r,this},e.prototype.rotate=function(t){var r=Math.cos(t),n=Math.sin(t),i=this.a,o=this.c,a=this.tx;return this.a=i*r-this.b*n,this.b=i*n+this.b*r,this.c=o*r-this.d*n,this.d=o*n+this.d*r,this.tx=a*r-this.ty*n,this.ty=a*n+this.ty*r,this},e.prototype.append=function(t){var r=this.a,n=this.b,i=this.c,o=this.d;return this.a=t.a*r+t.b*i,this.b=t.a*n+t.b*o,this.c=t.c*r+t.d*i,this.d=t.c*n+t.d*o,this.tx=t.tx*r+t.ty*i+this.tx,this.ty=t.tx*n+t.ty*o+this.ty,this},e.prototype.setTransform=function(t,r,n,i,o,a,s,u,l){return this.a=Math.cos(s+l)*o,this.b=Math.sin(s+l)*o,this.c=-Math.sin(s-u)*a,this.d=Math.cos(s-u)*a,this.tx=t-(n*this.a+i*this.c),this.ty=r-(n*this.b+i*this.d),this},e.prototype.prepend=function(t){var r=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var n=this.a,i=this.c;this.a=n*t.a+this.b*t.c,this.b=n*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=r*t.a+this.ty*t.c+t.tx,this.ty=r*t.b+this.ty*t.d+t.ty,this},e.prototype.decompose=function(t){var r=this.a,n=this.b,i=this.c,o=this.d,a=t.pivot,s=-Math.atan2(-i,o),u=Math.atan2(n,r),l=Math.abs(s+u);return l<1e-5||Math.abs(Nl-l)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=s,t.skew.y=u),t.scale.x=Math.sqrt(r*r+n*n),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(a.x*r+a.y*i),t.position.y=this.ty+(a.x*n+a.y*o),t},e.prototype.invert=function(){var t=this.a,r=this.b,n=this.c,i=this.d,o=this.tx,a=t*i-r*n;return this.a=i/a,this.b=-r/a,this.c=-n/a,this.d=t/a,this.tx=(n*this.ty-i*o)/a,this.ty=-(t*this.ty-r*o)/a,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;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},e.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},e.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},e.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(e,"IDENTITY",{get:function(){return new e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"TEMP_MATRIX",{get:function(){return new e},enumerable:!1,configurable:!0}),e}(),Oo=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Ao=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Po=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Ro=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Ry=[],OI=[],$c=Math.sign;function Xne(){for(var e=0;e<16;e++){var t=[];Ry.push(t);for(var r=0;r<16;r++)for(var n=$c(Oo[e]*Oo[r]+Po[e]*Ao[r]),i=$c(Ao[e]*Oo[r]+Ro[e]*Ao[r]),o=$c(Oo[e]*Po[r]+Po[e]*Ro[r]),a=$c(Ao[e]*Po[r]+Ro[e]*Ro[r]),s=0;s<16;s++)if(Oo[s]===n&&Ao[s]===i&&Po[s]===o&&Ro[s]===a){t.push(s);break}}for(var e=0;e<16;e++){var u=new kt;u.set(Oo[e],Ao[e],Po[e],Ro[e],0,0),OI.push(u)}}Xne();var ft={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(e){return Oo[e]},uY:function(e){return Ao[e]},vX:function(e){return Po[e]},vY:function(e){return Ro[e]},inv:function(e){return e&8?e&15:-e&7},add:function(e,t){return Ry[e][t]},sub:function(e,t){return Ry[e][ft.inv(t)]},rotate180:function(e){return e^4},isVertical:function(e){return(e&3)===2},byDirection:function(e,t){return Math.abs(e)*2<=Math.abs(t)?t>=0?ft.S:ft.N:Math.abs(t)*2<=Math.abs(e)?e>0?ft.E:ft.W:t>0?e>0?ft.SE:ft.SW:e>0?ft.NE:ft.NW},matrixAppendRotationInv:function(e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=0);var i=OI[ft.inv(t)];i.tx=r,i.ty=n,e.append(i)}},rb=function(){function e(){this.worldTransform=new kt,this.localTransform=new kt,this.position=new Ui(this.onChange,this,0,0),this.scale=new Ui(this.onChange,this,1,1),this.pivot=new Ui(this.onChange,this,0,0),this.skew=new Ui(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 e.prototype.onChange=function(){this._localID++},e.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++},e.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+") ")+"]"},e.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)},e.prototype.updateTransform=function(t){var r=this.localTransform;if(this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var n=t.worldTransform,i=this.worldTransform;i.a=r.a*n.a+r.b*n.c,i.b=r.a*n.b+r.b*n.d,i.c=r.c*n.a+r.d*n.c,i.d=r.c*n.b+r.d*n.d,i.tx=r.tx*n.a+r.ty*n.c+n.tx,i.ty=r.tx*n.b+r.ty*n.d+n.ty,this._parentID=t._worldID,this._worldID++}},e.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),e.IDENTITY=new e,e}();/*! + * @pixi/display - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/display is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */ne.SORTABLE_CHILDREN=!1;var Ll=function(){function e(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?Le.EMPTY:(t=t||new Le(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)},e.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)},e.prototype.addPointMatrix=function(t,r){var n=t.a,i=t.b,o=t.c,a=t.d,s=t.tx,u=t.ty,l=n*r.x+o*r.y+s,c=i*r.x+a*r.y+u;this.minX=Math.min(this.minX,l),this.maxX=Math.max(this.maxX,l),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},e.prototype.addQuad=function(t){var r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,a=t[0],s=t[1];r=a i?a:i,o=s>o?s:o,a=t[2],s=t[3],r=a i?a:i,o=s>o?s:o,a=t[4],s=t[5],r=a i?a:i,o=s>o?s:o,a=t[6],s=t[7],r=a i?a:i,o=s>o?s:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o},e.prototype.addFrame=function(t,r,n,i,o){this.addFrameMatrix(t.worldTransform,r,n,i,o)},e.prototype.addFrameMatrix=function(t,r,n,i,o){var a=t.a,s=t.b,u=t.c,l=t.d,c=t.tx,f=t.ty,h=this.minX,d=this.minY,v=this.maxX,g=this.maxY,p=a*r+u*n+c,m=s*r+l*n+f;h=p v?p:v,g=m>g?m:g,p=a*i+u*n+c,m=s*i+l*n+f,h=p v?p:v,g=m>g?m:g,p=a*r+u*o+c,m=s*r+l*o+f,h=p v?p:v,g=m>g?m:g,p=a*i+u*o+c,m=s*i+l*o+f,h=p v?p:v,g=m>g?m:g,this.minX=h,this.minY=d,this.maxX=v,this.maxY=g},e.prototype.addVertexData=function(t,r,n){for(var i=this.minX,o=this.minY,a=this.maxX,s=this.maxY,u=r;u a?l:a,s=c>s?c:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s},e.prototype.addVertices=function(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)},e.prototype.addVerticesMatrix=function(t,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=o);for(var s=t.a,u=t.b,l=t.c,c=t.d,f=t.tx,h=t.ty,d=this.minX,v=this.minY,g=this.maxX,p=this.maxY,m=n;mi?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o},e.prototype.addBoundsMask=function(t,r){var n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,o=t.maxX l?o:l,this.maxY=a>c?a:c}},e.prototype.addBoundsMatrix=function(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)},e.prototype.addBoundsArea=function(t,r){var n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,o=t.maxX l?o:l,this.maxY=a>c?a:c}},e.prototype.pad=function(t,r){t===void 0&&(t=0),r===void 0&&(r=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)},e.prototype.addFramePad=function(t,r,n,i,o,a){t-=o,r-=a,n+=o,i+=a,this.minX=this.minX n?this.maxX:n,this.minY=this.minY i?this.maxY:i},e}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Iy=function(e,t){return Iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Iy(e,t)};function nb(e,t){Iy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var St=function(e){nb(t,e);function t(){var r=e.call(this)||this;return r.tempDisplayObjectParent=null,r.transform=new rb,r.alpha=1,r.visible=!0,r.renderable=!0,r.cullable=!1,r.cullArea=null,r.parent=null,r.worldAlpha=1,r._lastSortedIndex=0,r._zIndex=0,r.filterArea=null,r.filters=null,r._enabledFilters=null,r._bounds=new Ll,r._localBounds=null,r._boundsID=0,r._boundsRect=null,r._localBoundsRect=null,r._mask=null,r._maskRefCount=0,r._destroyed=!1,r.isSprite=!1,r.isMask=!1,r}return t.mixin=function(r){for(var n=Object.keys(r),i=0;i 1)for(var o=0;o this.children.length)throw new Error(r+"addChildAt: The index "+n+" supplied is out of bounds "+this.children.length);return r.parent&&r.parent.removeChild(r),r.parent=this,this.sortDirty=!0,r.transform._parentID=-1,this.children.splice(n,0,r),this._boundsID++,this.onChildrenChange(n),r.emit("added",this),this.emit("childAdded",r,this,n),r},t.prototype.swapChildren=function(r,n){if(r!==n){var i=this.getChildIndex(r),o=this.getChildIndex(n);this.children[i]=n,this.children[o]=r,this.onChildrenChange(i =this.children.length)throw new Error("The index "+n+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(r);Vo(this.children,i,1),this.children.splice(n,0,r),this.onChildrenChange(n)},t.prototype.getChildAt=function(r){if(r<0||r>=this.children.length)throw new Error("getChildAt: Index ("+r+") does not exist.");return this.children[r]},t.prototype.removeChild=function(){for(var r=arguments,n=[],i=0;i 1)for(var o=0;o 0&&a<=o){s=this.children.splice(i,a);for(var u=0;u 1&&this.children.sort(Yne),this.sortDirty=!1},t.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 r=0,n=this.children.length;r 0&&n.height>0){var i,o;if(this.cullArea?(i=this.cullArea,o=this.worldTransform):this._render!==t.prototype._render&&(i=this.getBounds(!0)),i&&n.intersects(i,o))this._render(r);else if(this.cullArea)return;for(var a=0,s=this.children.length;a 8)throw new Error("max arguments reached");var l=this,c=l.name,f=l.items;this._aliasCount++;for(var h=0,d=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},e.prototype.remove=function(t){var r=this.items.indexOf(t);return r!==-1&&(this.ensureNonAliasedItems(),this.items.splice(r,1)),this},e.prototype.contains=function(t){return this.items.indexOf(t)!==-1},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(e.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e}();Object.defineProperties(Ht.prototype,{dispatch:{value:Ht.prototype.emit},run:{value:Ht.prototype.emit}});/*! + * @pixi/ticker - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/ticker is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */ne.TARGET_FPMS=.06;var Qn;(function(e){e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY"})(Qn||(Qn={}));var pm=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=0),i===void 0&&(i=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=r,this.priority=n,this.once=i}return e.prototype.match=function(t,r){return r===void 0&&(r=null),this.fn===t&&this.context===r},e.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var r=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),r},e.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},e.prototype.destroy=function(t){t===void 0&&(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 r=this.next;return this.next=t?null:r,this.previous=null,r},e}(),Vt=function(){function e(){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 pm(null,null,1/0),this.deltaMS=1/ne.TARGET_FPMS,this.elapsedMS=1/ne.TARGET_FPMS,this._tick=function(r){t._requestId=null,t.started&&(t.update(r),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(t,r,n){return n===void 0&&(n=Qn.NORMAL),this._addListener(new pm(t,r,n))},e.prototype.addOnce=function(t,r,n){return n===void 0&&(n=Qn.NORMAL),this._addListener(new pm(t,r,n,!0))},e.prototype._addListener=function(t){var r=this._head.next,n=this._head;if(!r)t.connect(n);else{for(;r;){if(t.priority>r.priority){t.connect(n);break}n=r,r=r.next}t.previous||t.connect(n)}return this._startIfPossible(),this},e.prototype.remove=function(t,r){for(var n=this._head.next;n;)n.match(t,r)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(e.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,r=this._head;r=r.next;)t++;return t},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},e.prototype.update=function(t){t===void 0&&(t=performance.now());var r;if(t>this.lastTime){if(r=this.elapsedMS=t-this.lastTime,r>this._maxElapsedMS&&(r=this._maxElapsedMS),r*=this.speed,this._minElapsedMS){var n=t-this._lastFrame|0;if(n =0;--i){var o=Ml[i];if(o.test&&o.test(e,r))return new o(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ky=function(e,t){return ky=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},ky(e,t)};function it(e,t){ky(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ny=function(){return Ny=Object.assign||function(t){for(var r=arguments,n,i=1,o=arguments.length;i 0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(r),i}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(r){this._mipmap!==r&&(this._mipmap=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(r){this._scaleMode!==r&&(this._scaleMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(r){this._wrapMode!==r&&(this._wrapMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(r,n){var i;return r!==void 0&&r!==this.scaleMode&&(this.scaleMode=r,i=!0),n!==void 0&&n!==this.mipmap&&(this.mipmap=n,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(r,n,i){return i=i||this.resolution,this.setRealSize(r*i,n*i,i)},t.prototype.setRealSize=function(r,n,i){return this.resolution=i||this.resolution,this.width=Math.round(r)/this.resolution,this.height=Math.round(n)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=Cy(this.realWidth)&&Cy(this.realHeight)},t.prototype.setResolution=function(r){var n=this.resolution;return n===r?this:(this.resolution=r,this.valid&&(this.width=Math.round(this.width*n)/r,this.height=Math.round(this.height*n)/r,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(r){if(this.resource===r)return this;if(this.resource)throw new Error("Resource can be set only once");return r.bind(this),this.resource=r,this},t.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))},t.prototype.onError=function(r){this.emit("error",this,r)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Kr[this.cacheId],delete Ar[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(r,n,i){i===void 0&&(i=ne.STRICT_TEXTURE_CACHE);var o=typeof r=="string",a=null;if(o)a=r;else{if(!r._pixiId){var s=n&&n.pixiIdPrefix||"pixiid";r._pixiId=s+"_"+so()}a=r._pixiId}var u=Kr[a];if(o&&i&&!u)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return u||(u=new t(r,n),u.cacheId=a,t.addToCache(u,a)),u},t.fromBuffer=function(r,n,i,o){r=r||new Float32Array(n*i*4);var a=new pa(r,{width:n,height:i}),s=r instanceof Float32Array?fe.FLOAT:fe.UNSIGNED_BYTE;return new t(a,Object.assign({},Zne,o||{width:n,height:i,type:s}))},t.addToCache=function(r,n){n&&(r.textureCacheIds.indexOf(n)===-1&&r.textureCacheIds.push(n),Kr[n]&&console.warn("BaseTexture added to the cache with an id ["+n+"] that already had an entry"),Kr[n]=r)},t.removeFromCache=function(r){if(typeof r=="string"){var n=Kr[r];if(n){var i=n.textureCacheIds.indexOf(r);return i>-1&&n.textureCacheIds.splice(i,1),delete Kr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;o 0)if(r.resource)this.addResourceAt(r.resource,n);else throw new Error("CubeResource does not support copying of renderTexture.");else r.target=Qi.TEXTURE_CUBE_MAP_POSITIVE_X+n,r.parentTextureArray=this.baseTexture,this.items[n]=r;return r.valid&&!this.valid&&this.resize(r.realWidth,r.realHeight),this.items[n]=r,this},t.prototype.upload=function(r,n,i){for(var o=this.itemDirtyIds,a=0;a )?\s*()]*-->)?\s*\