面板布局更新

This commit is contained in:
tianmo committed 2026-10-24 19:30:32 +08:00
1 parent a417c9119d
commit 7069b168de
18 files changed
+220 -145

No files matched your search

+1
View File
@@ -0,0 +1 @@
.help-overlay[data-v-4bb9bc76]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:72px 24px 28px;box-sizing:border-box;background:#05080fb8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.help-dialog[data-v-4bb9bc76]{width:min(820px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4864;border-radius:14px;background:#141a27;color:#b8c3d8;box-shadow:0 22px 70px #0000009e}.help-head[data-v-4bb9bc76]{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 15px;border-bottom:1px solid #2b354a;background:linear-gradient(135deg,#202942,#181e2d)}.help-head h2[data-v-4bb9bc76]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-4bb9bc76]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-4bb9bc76]{width:28px;height:28px;flex:0 0 28px;border:1px solid #43516b;border-radius:6px;background:#273249;color:#ccd7ed;cursor:pointer}.help-close[data-v-4bb9bc76]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-4bb9bc76]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-4bb9bc76]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-4bb9bc76]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-4bb9bc76]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-4bb9bc76]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-4bb9bc76]{color:#dce4f7}.help-grid[data-v-4bb9bc76]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-4bb9bc76]{display:grid;gap:0;margin:0}.help-list>div[data-v-4bb9bc76]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-4bb9bc76]:last-child{border-bottom:0}.help-list dt[data-v-4bb9bc76]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-4bb9bc76]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-4bb9bc76]{display:grid;gap:7px}.shortcut-list>div[data-v-4bb9bc76]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-4bb9bc76]{min-width:24px;box-sizing:border-box;padding:3px 6px;border:1px solid #465470;border-bottom-width:2px;border-radius:5px;background:#101623;color:#e0e7f6;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shortcut-list span[data-v-4bb9bc76]{color:#65728b;font-size:10px}.shortcut-list em[data-v-4bb9bc76]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-4bb9bc76]{margin:11px 0 0;padding-top:9px;border-top:1px solid #2a3549;color:#697791;font-size:10px;line-height:1.55}.help-export[data-v-4bb9bc76]{margin-top:12px}.help-export p[data-v-4bb9bc76]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-4bb9bc76]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-4bb9bc76]{margin-top:12px}.help-module-head[data-v-4bb9bc76]{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#9fb2ff;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.help-module-head[data-v-4bb9bc76]:hover{color:#fff}.help-module-head .mtitle[data-v-4bb9bc76]{flex:1;min-width:0}.help-module-head .caret[data-v-4bb9bc76]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-4bb9bc76]{color:#fff}.help-module.open .help-module-head .caret[data-v-4bb9bc76]{color:#9fb2ff}.help-module .mnum[data-v-4bb9bc76]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#4a53b8,#6a5fd0);color:#fff;font-size:12px;font-weight:700}.help-module.help-connector[data-v-4bb9bc76]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-4bb9bc76]{color:#b8c2ff}.help-module .connector-intro[data-v-4bb9bc76]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-4bb9bc76]{color:#dce4f7}.help-module .dl-link[data-v-4bb9bc76]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 10px 6px 0;padding:6px 12px;border:1px solid #5652b5;border-radius:6px;background:#4540a0;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.help-module .dl-link[data-v-4bb9bc76]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-4bb9bc76]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-4bb9bc76]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-4bb9bc76]{padding:66px 12px 14px}.help-grid[data-v-4bb9bc76]{grid-template-columns:1fr}}.topbar[data-v-f5300af5]{display:flex;align-items:center;gap:10px;flex-wrap:wLine truncated
@@ -1,4 +1,4 @@
var Ae=Object.defineProperty;var Be=(m,o,e)=>o in m?Ae(m,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[o]=e;var a=(m,o,e)=>Be(m,typeof o!="symbol"?o+"":o,e);import{T as Fe,a as he,b as F,S as ue,M as pe,c as oe,W as ne,B as H,d as z,L as Te,E as O,e as ce,p as q,f as Ee,g as fe,A as Q,h as me,i as De,j as V,s as re,G as we,k as $,l as Y,m as Le,P as Ie,n as Re,o as Ne,C as X,q as be,r as _e,t as Ue,u as Ye,v as Xe,w as ee,x as j,y as ke,z as Ve,D as J,F as ge,V as Ge,H as ae,I as We,J as $e,U as xe,K as E,R as ve,N as ye,O as Pe,Q as Oe,X as He,Y as ze,Z as qe,_ as Ke}from"./index-CcSqUk8V.js";import{$ as bt,a0 as kt,a1 as vt,a2 as yt,a3 as Pt,a4 as St,a5 as Mt,a6 as At,a7 as Bt,a8 as Ft,a9 as Et,aa as Dt,ab as Lt,ac as It,ad as Rt,ae as Nt,af as _t,ag as Ut,ah as Yt,ai as Xt,aj as Vt,ak as Gt,al as Wt,am as $t,an as Ot,ao as Ht,ap as zt,aq as qt,ar as Kt,as as Zt,at as Jt,au as Qt,av as jt,aw as es,ax as ts,ay as ss,az as os,aA as ns,aB as as,aC as rs,aD as is,aE as ls,aF as hs,aG as cs,aH as ds,aI as us,aJ as ps,aK as fs,aL as ms,aM as gs,aN as xs,aO as Cs,aP as Ts,aQ as ws,aR as bs,aS as ks,aT as vs,aU as ys,aV as Ps,aW as Ss,aX as Ms,aY as As,aZ as Bs,a_ as Fs,a$ as Es,b0 as Ds,b1 as Ls,b2 as Is,b3 as Rs,b4 as Ns,b5 as _s,b6 as Us,b7 as Ys,b8 as Xs,b9 as Vs,ba as Gs,bb as Ws,bc as $s,bd as Os,be as Hs,bf as zs,bg as qs,bh as Ks,bi as Zs,bj as Js,bk as Qs,bl as js,bm as eo,bn as to,bo as so,bp as oo,bq as no,br as ao,bs as ro,bt as io,bu as lo,bv as ho,bw as co,bx as uo,by as po,bz as fo,bA as mo,bB as go,bC as xo,bD as Co,bE as To,bF as wo,bG as bo,bH as ko,bI as vo,bJ as yo,bK as Po,bL as So,bM as Mo,bN as Ao,bO as Bo,bP as Fo,bQ as Eo,bR as Do,bS as Lo,bT as Io,bU as Ro,bV as No,bW as _o,bX as Uo,bY as Yo,bZ as Xo,b_ as Vo,b$ as Go,c0 as Wo,c1 as $o,c2 as Oo,c3 as Ho}from"./index-CcSqUk8V.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-CMg-dxKo.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-CMg-dxKo.js";if(typeof window<"u"&&window.PIXI){const m=window.require;window.require=o=>{if(m)return m(o);if(o.startsWith("@pixi/"))return window.PIXI}}const _=class _ extends Fe{constructor(e){super(e.resource.source);a(this,"texture");this.texture=he.from(e)}static from(e){return _.textureMap.has(e)?_.textureMap.get(e):new _(e)}setFilters(e,t){this.texture.baseTexture.scaleMode=_.toPixiTextureFilter(e),this.texture.baseTexture.mipmap=_.toPixiMipMap(e)}setWraps(e,t){this.texture.baseTexture.wrapMode=_.toPixiTextureWrap(e)}dispose(){this.texture.destroy()}static toPixiTextureFilter(e){switch(e){case F.Nearest:case F.MipMapNearestLinear:case F.MipMapNearestNearest:return ue.NEAREST;case F.Linear:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return ue.LINEAR;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiMipMap(e){switch(e){case F.Nearest:case F.Linear:return pe.OFF;case F.MipMapNearestLinear:case F.MipMapNearestNearest:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return pe.ON;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiTextureWrap(e){switch(e){case oe.ClampToEdge:return ne.CLAMP;case oe.MirroredRepeat:return ne.MIRRORED_REPEAT;case oe.Repeat:return ne.REPEAT;default:throw new Error(`Unknown texture wrap: ${String(e)}`)}}static toPixiBlending(e){switch(e){case H.Normal:return z.NORMAL;case H.Additive:return z.ADD;case H.Multiply:return z.MULTIPLY;case H.Screen:return z.SCREEN;default:throw new Error(`Unknown blendMode: ${String(e)}`)}}};a(_,"textureMap",new Map);let G=_;const K="spineTextureAtlasLoader",et={extension:O.Asset,resolver:{test:m=>V(m,".atlas"),parse:m=>{var e,t;const o=m.split(".");return{resolution:parseFloat(((t=(e=re.RETINA_PREFIX)==null?void 0:e.exec(m))==null?void 0:t[1])??"1"),format:o[o.length-2],src:m}}},loader:{name:K,extension:{type:O.LoadParser,priority:Te.Normal,name:K},test(m){return V(m,".atlas")},async load(m){const o=await re.ADAPTER.fetch(m);if(!o.ok)throw new Error(`[${K}] Failed to fetch ${m}: ${o.status} ${o.statusText}`);return await o.text()},testParse(m,o){const e=V(o.src,".atlas"),t=typeof m=="string",s=o.loadParser===K;return Promise.resolve((e||s)&&t)},unload(m){m.dispose()},async parse(m,o,e){var p;const t=o.data||{};let s=q.dirname(o.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");const n=new Ee(m);if(t.images instanceof fe||typeof t.images=="string"){const h=t.images;t.images={},t.images[n.pages[0].name]=h}const r=[];let l=!0;for(const h of e.parsers)if(h.name==="loadTextures"){l=(p=h.config)==null?void 0:p.preferCreateImageBitmap;break}Q.setPreferences({preferCreateImageBitmap:!1});for(const h of n.pages){const u=h.name,c=t!=null&&t.images?t.images[u]:void 0;if(c instanceof fe)h.setTexture(G.from(c));else{const i=c??q.normalize([...s.split(q.sep),u].join(q.sep)),g={src:De(i,o.src),data:{...t.imageMetadLine truncated
var Ae=Object.defineProperty;var Be=(m,o,e)=>o in m?Ae(m,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[o]=e;var a=(m,o,e)=>Be(m,typeof o!="symbol"?o+"":o,e);import{T as Fe,a as he,b as F,S as ue,M as pe,c as oe,W as ne,B as H,d as z,L as Te,E as O,e as ce,p as q,f as Ee,g as fe,A as Q,h as me,i as De,j as V,s as re,G as we,k as $,l as Y,m as Le,P as Ie,n as Re,o as Ne,C as X,q as be,r as _e,t as Ue,u as Ye,v as Xe,w as ee,x as j,y as ke,z as Ve,D as J,F as ge,V as Ge,H as ae,I as We,J as $e,U as xe,K as E,R as ve,N as ye,O as Pe,Q as Oe,X as He,Y as ze,Z as qe,_ as Ke}from"./index-C2X4Q0zX.js";import{$ as bt,a0 as kt,a1 as vt,a2 as yt,a3 as Pt,a4 as St,a5 as Mt,a6 as At,a7 as Bt,a8 as Ft,a9 as Et,aa as Dt,ab as Lt,ac as It,ad as Rt,ae as Nt,af as _t,ag as Ut,ah as Yt,ai as Xt,aj as Vt,ak as Gt,al as Wt,am as $t,an as Ot,ao as Ht,ap as zt,aq as qt,ar as Kt,as as Zt,at as Jt,au as Qt,av as jt,aw as es,ax as ts,ay as ss,az as os,aA as ns,aB as as,aC as rs,aD as is,aE as ls,aF as hs,aG as cs,aH as ds,aI as us,aJ as ps,aK as fs,aL as ms,aM as gs,aN as xs,aO as Cs,aP as Ts,aQ as ws,aR as bs,aS as ks,aT as vs,aU as ys,aV as Ps,aW as Ss,aX as Ms,aY as As,aZ as Bs,a_ as Fs,a$ as Es,b0 as Ds,b1 as Ls,b2 as Is,b3 as Rs,b4 as Ns,b5 as _s,b6 as Us,b7 as Ys,b8 as Xs,b9 as Vs,ba as Gs,bb as Ws,bc as $s,bd as Os,be as Hs,bf as zs,bg as qs,bh as Ks,bi as Zs,bj as Js,bk as Qs,bl as js,bm as eo,bn as to,bo as so,bp as oo,bq as no,br as ao,bs as ro,bt as io,bu as lo,bv as ho,bw as co,bx as uo,by as po,bz as fo,bA as mo,bB as go,bC as xo,bD as Co,bE as To,bF as wo,bG as bo,bH as ko,bI as vo,bJ as yo,bK as Po,bL as So,bM as Mo,bN as Ao,bO as Bo,bP as Fo,bQ as Eo,bR as Do,bS as Lo,bT as Io,bU as Ro,bV as No,bW as _o,bX as Uo,bY as Yo,bZ as Xo,b_ as Vo,b$ as Go,c0 as Wo,c1 as $o,c2 as Oo,c3 as Ho}from"./index-C2X4Q0zX.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-BGsgtkNi.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-BGsgtkNi.js";if(typeof window<"u"&&window.PIXI){const m=window.require;window.require=o=>{if(m)return m(o);if(o.startsWith("@pixi/"))return window.PIXI}}const _=class _ extends Fe{constructor(e){super(e.resource.source);a(this,"texture");this.texture=he.from(e)}static from(e){return _.textureMap.has(e)?_.textureMap.get(e):new _(e)}setFilters(e,t){this.texture.baseTexture.scaleMode=_.toPixiTextureFilter(e),this.texture.baseTexture.mipmap=_.toPixiMipMap(e)}setWraps(e,t){this.texture.baseTexture.wrapMode=_.toPixiTextureWrap(e)}dispose(){this.texture.destroy()}static toPixiTextureFilter(e){switch(e){case F.Nearest:case F.MipMapNearestLinear:case F.MipMapNearestNearest:return ue.NEAREST;case F.Linear:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return ue.LINEAR;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiMipMap(e){switch(e){case F.Nearest:case F.Linear:return pe.OFF;case F.MipMapNearestLinear:case F.MipMapNearestNearest:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return pe.ON;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiTextureWrap(e){switch(e){case oe.ClampToEdge:return ne.CLAMP;case oe.MirroredRepeat:return ne.MIRRORED_REPEAT;case oe.Repeat:return ne.REPEAT;default:throw new Error(`Unknown texture wrap: ${String(e)}`)}}static toPixiBlending(e){switch(e){case H.Normal:return z.NORMAL;case H.Additive:return z.ADD;case H.Multiply:return z.MULTIPLY;case H.Screen:return z.SCREEN;default:throw new Error(`Unknown blendMode: ${String(e)}`)}}};a(_,"textureMap",new Map);let G=_;const K="spineTextureAtlasLoader",et={extension:O.Asset,resolver:{test:m=>V(m,".atlas"),parse:m=>{var e,t;const o=m.split(".");return{resolution:parseFloat(((t=(e=re.RETINA_PREFIX)==null?void 0:e.exec(m))==null?void 0:t[1])??"1"),format:o[o.length-2],src:m}}},loader:{name:K,extension:{type:O.LoadParser,priority:Te.Normal,name:K},test(m){return V(m,".atlas")},async load(m){const o=await re.ADAPTER.fetch(m);if(!o.ok)throw new Error(`[${K}] Failed to fetch ${m}: ${o.status} ${o.statusText}`);return await o.text()},testParse(m,o){const e=V(o.src,".atlas"),t=typeof m=="string",s=o.loadParser===K;return Promise.resolve((e||s)&&t)},unload(m){m.dispose()},async parse(m,o,e){var p;const t=o.data||{};let s=q.dirname(o.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");const n=new Ee(m);if(t.images instanceof fe||typeof t.images=="string"){const h=t.images;t.images={},t.images[n.pages[0].name]=h}const r=[];let l=!0;for(const h of e.parsers)if(h.name==="loadTextures"){l=(p=h.config)==null?void 0:p.preferCreateImageBitmap;break}Q.setPreferences({preferCreateImageBitmap:!1});for(const h of n.pages){const u=h.name,c=t!=null&&t.images?t.images[u]:void 0;if(c instanceof fe)h.setTexture(G.from(c));else{const i=c??q.normalize([...s.split(q.sep),u].join(q.sep)),g={src:De(i,o.src),data:{...t.imageMetadLine truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1,2 +1,2 @@
var ft=Object.defineProperty;var gt=(W,t,e)=>t in W?ft(W,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):W[t]=e;var T=(W,t,e)=>gt(W,typeof t!="symbol"?t+"":t,e);import{f as ht,R as pt,N as dt,ac as ut,Z as mt,b4 as yt,O as rt,b5 as at,U as D,B as Tt}from"./index-CcSqUk8V.js";import{$ as Rt,a0 as Yt,a1 as Ft,a2 as Et,y as _t,a3 as Ot,a4 as kt,a5 as Xt,a6 as Bt,a7 as Nt,a8 as Dt,a9 as $t,aa as zt,ab as Wt,ad as qt,H as Gt,ae as Jt,af as Ht,ag as Zt,ah as Kt,ai as Qt,aj as jt,ak as te,al as ee,am as se,an as ne,ao as ie,ap as oe,aq as re,ar as ae,as as le,at as ce,au as he,av as pe,aw as de,ax as ue,ay as fe,az as ge,aA as me,aB as ye,aC as Te,aD as be,aE as we,aF as xe,aG as Ae,aH as Pe,aI as Ie,aJ as Ce,aK as Ve,aL as Le,aM as Se,aN as Me,aO as ve,aP as Ue,aQ as Re,aR as Ye,aS as Fe,aT as Ee,x as _e,aU as Oe,aV as ke,aW as Xe,aX as Be,aY as Ne,aZ as De,a_ as $e,a$ as ze,b0 as We,b1 as qe,b2 as Ge,b3 as Je,b6 as He,b7 as Ze,b8 as Ke,b9 as Qe,ba as je,bb as ts,bc as es,bd as ss,be as ns,bf as is,bg as os,bh as rs,bi as as,bj as ls,bk as cs,bl as hs,bm as ps,bn as ds,bo as us,bp as fs,bq as gs,br as ms,bs as ys,bt as Ts,bu as bs,w as ws,X as xs,J as As,Y as Ps,z as Is,bv as Cs,bw as Vs,bx as Ls,by as Ss,bz as Ms,bA as vs,bB as Us,bC as Rs,bD as Ys,bE as Fs,bF as Es,bG as _s,T as Os,bH as ks,bI as Xs,b as Bs,bJ as Ns,c as Ds,bK as $s,bL as zs,bM as Ws,bN as qs,bO as Gs,bP as Js,bQ as Hs,bR as Zs,bS as Ks,bT as Qs,bU as js,bV as tn,bW as en,bX as sn,bY as nn,bZ as on,b_ as rn,V as an,b$ as ln,c0 as cn,c1 as hn,c2 as pn,c3 as dn}from"./index-CcSqUk8V.js";class It{constructor(t){T(this,"skeletonData");T(this,"animationToMixTime",{});T(this,"defaultMix",0);if(!t)throw new Error("skeletonData cannot be null.");this.skeletonData=t}setMix(t,e,n){return typeof t=="string"?this.setMix1(t,e,n):this.setMix2(t,e,n)}setMix1(t,e,n){const s=this.skeletonData.findAnimation(t);if(!s)throw new Error(`Animation not found: ${t}`);const i=this.skeletonData.findAnimation(e);if(!i)throw new Error(`Animation not found: ${e}`);this.setMix2(s,i,n)}setMix2(t,e,n){if(!t)throw new Error("from cannot be null.");if(!e)throw new Error("to cannot be null.");const s=`${t.name}.${e.name}`;this.animationToMixTime[s]=n}getMix(t,e){const n=`${t.name}.${e.name}`,s=this.animationToMixTime[n];return s===void 0?this.defaultMix:s}}class Ct{constructor(t,e="",n=new bt,s=new lt){T(this,"textureLoader");T(this,"pathPrefix");T(this,"downloader");T(this,"cache");T(this,"errors",{});T(this,"toLoad",0);T(this,"loaded",0);T(this,"texturePmaInfo",{});this.textureLoader=t,this.pathPrefix=e,this.downloader=n,this.cache=s}start(t){return this.toLoad++,this.pathPrefix+t}success(t,e,n){this.toLoad--,this.loaded++,this.cache.assets[e]=n,this.cache.assetsRefCount[e]=(this.cache.assetsRefCount[e]||0)+1,t&&t(e,n)}error(t,e,n){this.toLoad--,this.loaded++,this.errors[e]=n,t&&t(e,n)}loadAll(){return new Promise((e,n)=>{const s=()=>{if(this.isLoadingComplete()){this.hasErrors()?n(this.errors):e(this);return}requestAnimationFrame(s)};requestAnimationFrame(s)})}setRawDataURI(t,e){this.downloader.rawDataUris[this.pathPrefix+t]=e}loadBinary(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadBinary(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load binary ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}loadText(t,e=()=>{},n=()=>{}){t=this.start(t),this.downloader.downloadText(t,s=>{this.success(e,t,s)},(s,i)=>{this.error(n,t,`Couldn't load text ${t}: status ${s}, ${i}`)})}loadJson(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadJson(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load JSON ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}reuseAssets(t,e=()=>{},n=()=>{}){const s=this.cache.getAsset(t),i=s!==void 0;return i&&(this.cache.assetsLoaded[t]=s.then(o=>(o=o instanceof Image||o instanceof ImageBitmap?this.textureLoader(o):o,this.success(e,t,o),o)).catch(o=>{this.error(n,t,o)})),i}loadTexture(t,e=()=>{},n=()=>{}){if(t=this.start(t),this.reuseAssets(t,e,n))return;const s=this.texturePmaInfo[t];this.cache.assetsLoaded[t]=new Promise((i,o)=>{if(!!!(typeof window<"u"&&typeof navigator<"u"&&window.document))fetch(t,{mode:"cors"}).then(c=>{if(c.ok)return c.blob();const a=`Couldn't load image: ${t}`;this.error(n,t,`Couldn't load image: ${t}`),o(a)}).then(c=>c?createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"}):null).then(c=>{if(c){const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)}});else{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)},c.onerror=()=>{const a=`Couldn't load image: ${t}`;this.error(n,t,a),o(a)},this.downloader.rawDataUris[t]&&(t=this.downloader.rawDataUris[t]),c.src=t}})}loadTextureAtlas(t,e=()=>{},n=()=>{},s){const i=t.lastIndexOf("/"),o=i>=0?t.substring(0,i+1)Line truncated
var ft=Object.defineProperty;var gt=(W,t,e)=>t in W?ft(W,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):W[t]=e;var T=(W,t,e)=>gt(W,typeof t!="symbol"?t+"":t,e);import{f as ht,R as pt,N as dt,ac as ut,Z as mt,b4 as yt,O as rt,b5 as at,U as D,B as Tt}from"./index-C2X4Q0zX.js";import{$ as Rt,a0 as Yt,a1 as Ft,a2 as Et,y as _t,a3 as Ot,a4 as kt,a5 as Xt,a6 as Bt,a7 as Nt,a8 as Dt,a9 as $t,aa as zt,ab as Wt,ad as qt,H as Gt,ae as Jt,af as Ht,ag as Zt,ah as Kt,ai as Qt,aj as jt,ak as te,al as ee,am as se,an as ne,ao as ie,ap as oe,aq as re,ar as ae,as as le,at as ce,au as he,av as pe,aw as de,ax as ue,ay as fe,az as ge,aA as me,aB as ye,aC as Te,aD as be,aE as we,aF as xe,aG as Ae,aH as Pe,aI as Ie,aJ as Ce,aK as Ve,aL as Le,aM as Se,aN as Me,aO as ve,aP as Ue,aQ as Re,aR as Ye,aS as Fe,aT as Ee,x as _e,aU as Oe,aV as ke,aW as Xe,aX as Be,aY as Ne,aZ as De,a_ as $e,a$ as ze,b0 as We,b1 as qe,b2 as Ge,b3 as Je,b6 as He,b7 as Ze,b8 as Ke,b9 as Qe,ba as je,bb as ts,bc as es,bd as ss,be as ns,bf as is,bg as os,bh as rs,bi as as,bj as ls,bk as cs,bl as hs,bm as ps,bn as ds,bo as us,bp as fs,bq as gs,br as ms,bs as ys,bt as Ts,bu as bs,w as ws,X as xs,J as As,Y as Ps,z as Is,bv as Cs,bw as Vs,bx as Ls,by as Ss,bz as Ms,bA as vs,bB as Us,bC as Rs,bD as Ys,bE as Fs,bF as Es,bG as _s,T as Os,bH as ks,bI as Xs,b as Bs,bJ as Ns,c as Ds,bK as $s,bL as zs,bM as Ws,bN as qs,bO as Gs,bP as Js,bQ as Hs,bR as Zs,bS as Ks,bT as Qs,bU as js,bV as tn,bW as en,bX as sn,bY as nn,bZ as on,b_ as rn,V as an,b$ as ln,c0 as cn,c1 as hn,c2 as pn,c3 as dn}from"./index-C2X4Q0zX.js";class It{constructor(t){T(this,"skeletonData");T(this,"animationToMixTime",{});T(this,"defaultMix",0);if(!t)throw new Error("skeletonData cannot be null.");this.skeletonData=t}setMix(t,e,n){return typeof t=="string"?this.setMix1(t,e,n):this.setMix2(t,e,n)}setMix1(t,e,n){const s=this.skeletonData.findAnimation(t);if(!s)throw new Error(`Animation not found: ${t}`);const i=this.skeletonData.findAnimation(e);if(!i)throw new Error(`Animation not found: ${e}`);this.setMix2(s,i,n)}setMix2(t,e,n){if(!t)throw new Error("from cannot be null.");if(!e)throw new Error("to cannot be null.");const s=`${t.name}.${e.name}`;this.animationToMixTime[s]=n}getMix(t,e){const n=`${t.name}.${e.name}`,s=this.animationToMixTime[n];return s===void 0?this.defaultMix:s}}class Ct{constructor(t,e="",n=new bt,s=new lt){T(this,"textureLoader");T(this,"pathPrefix");T(this,"downloader");T(this,"cache");T(this,"errors",{});T(this,"toLoad",0);T(this,"loaded",0);T(this,"texturePmaInfo",{});this.textureLoader=t,this.pathPrefix=e,this.downloader=n,this.cache=s}start(t){return this.toLoad++,this.pathPrefix+t}success(t,e,n){this.toLoad--,this.loaded++,this.cache.assets[e]=n,this.cache.assetsRefCount[e]=(this.cache.assetsRefCount[e]||0)+1,t&&t(e,n)}error(t,e,n){this.toLoad--,this.loaded++,this.errors[e]=n,t&&t(e,n)}loadAll(){return new Promise((e,n)=>{const s=()=>{if(this.isLoadingComplete()){this.hasErrors()?n(this.errors):e(this);return}requestAnimationFrame(s)};requestAnimationFrame(s)})}setRawDataURI(t,e){this.downloader.rawDataUris[this.pathPrefix+t]=e}loadBinary(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadBinary(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load binary ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}loadText(t,e=()=>{},n=()=>{}){t=this.start(t),this.downloader.downloadText(t,s=>{this.success(e,t,s)},(s,i)=>{this.error(n,t,`Couldn't load text ${t}: status ${s}, ${i}`)})}loadJson(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadJson(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load JSON ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}reuseAssets(t,e=()=>{},n=()=>{}){const s=this.cache.getAsset(t),i=s!==void 0;return i&&(this.cache.assetsLoaded[t]=s.then(o=>(o=o instanceof Image||o instanceof ImageBitmap?this.textureLoader(o):o,this.success(e,t,o),o)).catch(o=>{this.error(n,t,o)})),i}loadTexture(t,e=()=>{},n=()=>{}){if(t=this.start(t),this.reuseAssets(t,e,n))return;const s=this.texturePmaInfo[t];this.cache.assetsLoaded[t]=new Promise((i,o)=>{if(!!!(typeof window<"u"&&typeof navigator<"u"&&window.document))fetch(t,{mode:"cors"}).then(c=>{if(c.ok)return c.blob();const a=`Couldn't load image: ${t}`;this.error(n,t,`Couldn't load image: ${t}`),o(a)}).then(c=>c?createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"}):null).then(c=>{if(c){const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)}});else{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)},c.onerror=()=>{const a=`Couldn't load image: ${t}`;this.error(n,t,a),o(a)},this.downloader.rawDataUris[t]&&(t=this.downloader.rawDataUris[t]),c.src=t}})}loadTextureAtlas(t,e=()=>{},n=()=>{},s){const i=t.lastIndexOf("/"),o=i>=0?t.substring(0,i+1)Line truncated
${n}`:""}`)}remove(t){t=this.pathPrefix+t;const e=this.cache.assets[t];return e.dispose&&e.dispose(),delete this.cache.assets[t],delete this.cache.assetsRefCount[t],delete this.cache.assetsLoaded[t],e}removeAll(){for(const t in this.cache.assets){const e=this.cache.assets[t];e.dispose&&e.dispose()}this.cache.assets={},this.cache.assetsLoaded={},this.cache.assetsRefCount={}}isLoadingComplete(){return this.toLoad===0}getToLoad(){return this.toLoad}getLoaded(){return this.loaded}dispose(){this.removeAll()}disposeAsset(t){const e=this.cache.assets[t];if(e instanceof ht){e.dispose();return}this.disposeAssetInternal(t)}hasErrors(){return Object.keys(this.errors).length>0}getErrors(){return this.errors}disposeAssetInternal(t){if(this.cache.assetsRefCount[t]>0&&--this.cache.assetsRefCount[t]===0)return this.remove(t)}createTextureAtlas(t,e,n,s){const i=new ht(t);i.dispose=()=>{var o;if(!(this.cache.assetsRefCount[n]<=0)){this.disposeAssetInternal(n);for(const r of i.pages)(o=r.texture)==null||o.dispose()}};for(const o of i.pages){const r=this.texturePath(e,o.name,s);this.texturePmaInfo[this.pathPrefix+r]=o.pma}return i}createTexture(t,e,n){const s=this.textureLoader(n,e),i=s.dispose.bind(s);return s.dispose=()=>{this.disposeAssetInternal(t)&&i()},s}texturePath(t,e,n){return n?n[e]:t+e}}const nt=class nt{constructor(){T(this,"assets",{});T(this,"assetsRefCount",{});T(this,"assetsLoaded",{})}static getCache(t){const e=nt.AVAILABLE_CACHES.get(t);if(e)return e;const n=new nt;return nt.AVAILABLE_CACHES.set(t,n),n}async addAsset(t,e){return this.assetsLoaded[t]=Promise.resolve(e),this.assets[t]=e,e}getAsset(t){return this.assetsLoaded[t]}};T(nt,"AVAILABLE_CACHES",new Map);let lt=nt;class bt{constructor(){T(this,"callbacks",{});T(this,"rawDataUris",{})}dataUriToString(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");return e!==-1?(e+=7,atob(t.substr(e))):t.substr(t.indexOf(",")+1)}base64ToUint8Array(t){var e=window.atob(t),n=e.length,s=new Uint8Array(n);for(let i=0;i<n;i++)s[i]=e.charCodeAt(i);return s}dataUriToUint8Array(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");if(e===-1)throw new Error("Not a binary data URI.");return e+=7,this.base64ToUint8Array(t.substr(e))}downloadText(t,e,n){if(this.start(t,e,n))return;const s=this.rawDataUris[t];if(s&&!s.includes(".")){try{this.finish(t,200,this.dataUriToString(s))}catch(r){this.finish(t,400,JSON.stringify(r))}return}const i=new XMLHttpRequest;i.overrideMimeType("text/html"),i.open("GET",s||t,!0);const o=()=>{this.finish(t,i.status,i.responseText)};i.onload=o,i.onerror=o,i.send()}downloadJson(t,e,n){this.downloadText(t,s=>{e(JSON.parse(s))},n)}downloadBinary(t,e,n){if(this.start(t,e,n))return;const s=this.rawDataUris[t];if(s&&!s.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(s))}catch(r){this.finish(t,400,JSON.stringify(r))}return}const i=new XMLHttpRequest;i.open("GET",s||t,!0),i.responseType="arraybuffer";const o=()=>{this.finish(t,i.status,i.response)};i.onload=()=>{i.status===200||i.status===0?this.finish(t,200,new Uint8Array(i.response)):o()},i.onerror=o,i.send()}start(t,e,n){let s=this.callbacks[t];try{if(s)return!0;this.callbacks[t]=s=[]}finally{s.push(e,n)}}finish(t,e,n){const s=this.callbacks[t];if(delete this.callbacks[t],e===200||e===0)for(let i=0,o=s.length;i<o;i+=2)s[i](n);else for(let i=1,o=s.length;i<o;i+=2)s[i](e,n)}}class Vt{constructor(t,e=!1){T(this,"atlas");T(this,"allowMissingRegions");this.atlas=t,this.allowMissingRegions=e}findRegions(t,e,n){const s=n.regions;for(let i=0,o=s.length;i<o;i++)s[i]=this.findRegion(t,n.getPath(e,i))}findRegion(t,e){const n=this.atlas.findRegion(e);if(!n&&!this.allowMissingRegions)throw new Error(`Region not found in atlas: ${e} (attachment: ${t})`);return n}newRegionAttachment(t,e,n,s,i){return this.findRegions(n,s,i),new pt(n,i)}newMeshAttachment(t,e,n,s,i){return this.findRegions(n,s,i),new dt(n,i)}newBoundingBoxAttachment(t,e,n){return new ut(n)}newPathAttachment(t,e,n){return new mt(n)}newPointAttachment(t,e,n){return new yt(n)}newClippingAttachment(t,e,n){return new rt(n)}}class Lt{constructor(){T(this,"minX",0);T(this,"minY",0);T(this,"maxX",0);T(this,"maxY",0);T(this,"boundingBoxes",[]);T(this,"polygons",[]);T(this,"polygonPool",new at(()=>D.newFloatArray(16)))}update(t,e){if(!t)throw new Error("skeleton cannot be null.");const n=this.boundingBoxes,s=this.polygons,i=this.polygonPool,o=t.slots,r=o.length;n.length=0,i.freeAll(s),s.length=0;for(let l=0;l<r;l++){const c=o[l];if(!c.bone.active)continue;const a=c.appliedPose.attachment;if(a instanceof ut){n.push(a);let h=i.obtain();h.length!==a.worldVerticesLength&&(h=D.newFloatArray(a.worldVerticesLength)),s.push(h),a.computeWorldVertices(t,c,0,a.worldVerticesLength,h,0,2)}}e?this.aabbCompute():(this.minX=Number.POSITIVE_INFINITY,this.minY=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.maxY=Number.NEGATIVE_INFINITY)}aabbCompute(){let t=Number.POSITIVE_INFLine truncated
-1
View File
@@ -1 +0,0 @@
.help-overlay[data-v-4bb9bc76]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:72px 24px 28px;box-sizing:border-box;background:#05080fb8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.help-dialog[data-v-4bb9bc76]{width:min(820px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4864;border-radius:14px;background:#141a27;color:#b8c3d8;box-shadow:0 22px 70px #0000009e}.help-head[data-v-4bb9bc76]{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 15px;border-bottom:1px solid #2b354a;background:linear-gradient(135deg,#202942,#181e2d)}.help-head h2[data-v-4bb9bc76]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-4bb9bc76]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-4bb9bc76]{width:28px;height:28px;flex:0 0 28px;border:1px solid #43516b;border-radius:6px;background:#273249;color:#ccd7ed;cursor:pointer}.help-close[data-v-4bb9bc76]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-4bb9bc76]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-4bb9bc76]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-4bb9bc76]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-4bb9bc76]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-4bb9bc76]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-4bb9bc76]{color:#dce4f7}.help-grid[data-v-4bb9bc76]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-4bb9bc76]{display:grid;gap:0;margin:0}.help-list>div[data-v-4bb9bc76]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-4bb9bc76]:last-child{border-bottom:0}.help-list dt[data-v-4bb9bc76]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-4bb9bc76]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-4bb9bc76]{display:grid;gap:7px}.shortcut-list>div[data-v-4bb9bc76]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-4bb9bc76]{min-width:24px;box-sizing:border-box;padding:3px 6px;border:1px solid #465470;border-bottom-width:2px;border-radius:5px;background:#101623;color:#e0e7f6;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shortcut-list span[data-v-4bb9bc76]{color:#65728b;font-size:10px}.shortcut-list em[data-v-4bb9bc76]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-4bb9bc76]{margin:11px 0 0;padding-top:9px;border-top:1px solid #2a3549;color:#697791;font-size:10px;line-height:1.55}.help-export[data-v-4bb9bc76]{margin-top:12px}.help-export p[data-v-4bb9bc76]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-4bb9bc76]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-4bb9bc76]{margin-top:12px}.help-module-head[data-v-4bb9bc76]{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#9fb2ff;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.help-module-head[data-v-4bb9bc76]:hover{color:#fff}.help-module-head .mtitle[data-v-4bb9bc76]{flex:1;min-width:0}.help-module-head .caret[data-v-4bb9bc76]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-4bb9bc76]{color:#fff}.help-module.open .help-module-head .caret[data-v-4bb9bc76]{color:#9fb2ff}.help-module .mnum[data-v-4bb9bc76]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#4a53b8,#6a5fd0);color:#fff;font-size:12px;font-weight:700}.help-module.help-connector[data-v-4bb9bc76]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-4bb9bc76]{color:#b8c2ff}.help-module .connector-intro[data-v-4bb9bc76]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-4bb9bc76]{color:#dce4f7}.help-module .dl-link[data-v-4bb9bc76]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 10px 6px 0;padding:6px 12px;border:1px solid #5652b5;border-radius:6px;background:#4540a0;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.help-module .dl-link[data-v-4bb9bc76]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-4bb9bc76]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-4bb9bc76]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-4bb9bc76]{padding:66px 12px 14px}.help-grid[data-v-4bb9bc76]{grid-template-columns:1fr}}.topbar[data-v-6411b316]{position:absolute;top:10px;left:10px;right:10px;dispLine truncated
@@ -1,37 +1,37 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CmDYwG_K.js","assets/index-CMg-dxKo.js"])))=>i.map(i=>d[i]);
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B57-mKhk.js","assets/index-BGsgtkNi.js"])))=>i.map(i=>d[i]);
var RE=Object.defineProperty;var FE=(i,e,t)=>e in i?RE(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var A=(i,e,t)=>FE(i,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();/**
* @vue/shared v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function pg(i){const e=Object.create(null);for(const t of i.split(","))e[t]=1;return t=>t in e}const jt={},Ma=[],Fs=()=>{},t1=()=>!1,Xu=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),Yu=i=>i.startsWith("onUpdate:"),_n=Object.assign,mg=(i,e)=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)},LE=Object.prototype.hasOwnProperty,$t=(i,e)=>LE.call(i,e),et=Array.isArray,Pa=i=>bc(i)==="[object Map]",Qa=i=>bc(i)==="[object Set]",Cv=i=>bc(i)==="[object Date]",dt=i=>typeof i=="function",sn=i=>typeof i=="string",Ai=i=>typeof i=="symbol",Bt=i=>i!==null&&typeof i=="object",n1=i=>(Bt(i)||dt(i))&&dt(i.then)&&dt(i.catch),i1=Object.prototype.toString,bc=i=>i1.call(i),DE=i=>bc(i).slice(8,-1),s1=i=>bc(i)==="[object Object]",zu=i=>sn(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Fl=pg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=i=>{const e=Object.create(null);return(t=>e[t]||(e[t]=i(t)))},OE=/-\w/g,Zi=ju(i=>i.replace(OE,e=>e.slice(1).toUpperCase())),NE=/\B([A-Z])/g,ro=ju(i=>i.replace(NE,"-$1").toLowerCase()),r1=ju(i=>i.charAt(0).toUpperCase()+i.slice(1)),Ph=ju(i=>i?`on${r1(i)}`:""),Es=(i,e)=>!Object.is(i,e),Ad=(i,...e)=>{for(let t=0;t<i.length;t++)i[t](...e)},o1=(i,e,t,n=!1)=>{Object.defineProperty(i,e,{configurable:!0,enumerable:!1,writable:n,value:t})},Hu=i=>{const e=parseFloat(i);return isNaN(e)?i:e},$E=i=>{const e=sn(i)?Number(i):NaN;return isNaN(e)?i:e};let Av;const Gu=()=>Av||(Av=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(i){if(et(i)){const e={};for(let t=0;t<i.length;t++){const n=i[t],s=sn(n)?XE(n):zt(n);if(s)for(const r in s)e[r]=s[r]}return e}else if(sn(i)||Bt(i))return i}const BE=/;(?![^(]*\))/g,UE=/:([^]+)/,VE=/\/\*[^]*?\*\//g;function XE(i){const e={};return i.replace(VE,"").split(BE).forEach(t=>{if(t){const n=t.split(UE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function ke(i){let e="";if(sn(i))e=i;else if(et(i))for(let t=0;t<i.length;t++){const n=ke(i[t]);n&&(e+=n+" ")}else if(Bt(i))for(const t in i)i[t]&&(e+=t+" ");return e.trim()}const YE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zE=pg(YE);function a1(i){return!!i||i===""}function jE(i,e){if(i.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<i.length;n++)t=el(i[n],e[n]);return t}function el(i,e){if(i===e)return!0;let t=Cv(i),n=Cv(e);if(t||n)return t&&n?i.getTime()===e.getTime():!1;if(t=Ai(i),n=Ai(e),t||n)return i===e;if(t=et(i),n=et(e),t||n)return t&&n?jE(i,e):!1;if(t=Bt(i),n=Bt(e),t||n){if(!t||!n)return!1;const s=Object.keys(i).length,r=Object.keys(e).length;if(s!==r)return!1;for(const o in i){const a=i.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!el(i[o],e[o]))return!1}}return String(i)===String(e)}function gg(i,e){return i.findIndex(t=>el(t,e))}const l1=i=>!!(i&&i.__v_isRef===!0),L=i=>sn(i)?i:i==null?"":et(i)||Bt(i)&&(i.toString===i1||!dt(i.toString))?l1(i)?L(i.value):JSON.stringify(i,c1,2):String(i),c1=(i,e)=>l1(e)?c1(i,e.value):Pa(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,s],r)=>(t[kh(n,r)+" =>"]=s,t),{})}:Qa(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>kh(t))}:Ai(e)?kh(e):Bt(e)&&!et(e)&&!s1(e)?String(e):e,kh=(i,e="")=>{var t;return Ai(i)?`Symbol(${(t=i.description)!=null?t:e})`:i};/**
**/function mg(i){const e=Object.create(null);for(const t of i.split(","))e[t]=1;return t=>t in e}const jt={},Ma=[],Fs=()=>{},t1=()=>!1,Xu=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),Yu=i=>i.startsWith("onUpdate:"),_n=Object.assign,gg=(i,e)=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)},LE=Object.prototype.hasOwnProperty,$t=(i,e)=>LE.call(i,e),et=Array.isArray,Pa=i=>yc(i)==="[object Map]",Qa=i=>yc(i)==="[object Set]",Cv=i=>yc(i)==="[object Date]",dt=i=>typeof i=="function",sn=i=>typeof i=="string",Ai=i=>typeof i=="symbol",Bt=i=>i!==null&&typeof i=="object",n1=i=>(Bt(i)||dt(i))&&dt(i.then)&&dt(i.catch),i1=Object.prototype.toString,yc=i=>i1.call(i),DE=i=>yc(i).slice(8,-1),s1=i=>yc(i)==="[object Object]",zu=i=>sn(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Ll=mg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=i=>{const e=Object.create(null);return(t=>e[t]||(e[t]=i(t)))},OE=/-\w/g,Zi=ju(i=>i.replace(OE,e=>e.slice(1).toUpperCase())),NE=/\B([A-Z])/g,ro=ju(i=>i.replace(NE,"-$1").toLowerCase()),r1=ju(i=>i.charAt(0).toUpperCase()+i.slice(1)),kh=ju(i=>i?`on${r1(i)}`:""),Es=(i,e)=>!Object.is(i,e),Ad=(i,...e)=>{for(let t=0;t<i.length;t++)i[t](...e)},o1=(i,e,t,n=!1)=>{Object.defineProperty(i,e,{configurable:!0,enumerable:!1,writable:n,value:t})},Hu=i=>{const e=parseFloat(i);return isNaN(e)?i:e},$E=i=>{const e=sn(i)?Number(i):NaN;return isNaN(e)?i:e};let Av;const Gu=()=>Av||(Av=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(i){if(et(i)){const e={};for(let t=0;t<i.length;t++){const n=i[t],s=sn(n)?XE(n):zt(n);if(s)for(const r in s)e[r]=s[r]}return e}else if(sn(i)||Bt(i))return i}const BE=/;(?![^(]*\))/g,UE=/:([^]+)/,VE=/\/\*[^]*?\*\//g;function XE(i){const e={};return i.replace(VE,"").split(BE).forEach(t=>{if(t){const n=t.split(UE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Pe(i){let e="";if(sn(i))e=i;else if(et(i))for(let t=0;t<i.length;t++){const n=Pe(i[t]);n&&(e+=n+" ")}else if(Bt(i))for(const t in i)i[t]&&(e+=t+" ");return e.trim()}const YE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zE=mg(YE);function a1(i){return!!i||i===""}function jE(i,e){if(i.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<i.length;n++)t=el(i[n],e[n]);return t}function el(i,e){if(i===e)return!0;let t=Cv(i),n=Cv(e);if(t||n)return t&&n?i.getTime()===e.getTime():!1;if(t=Ai(i),n=Ai(e),t||n)return i===e;if(t=et(i),n=et(e),t||n)return t&&n?jE(i,e):!1;if(t=Bt(i),n=Bt(e),t||n){if(!t||!n)return!1;const s=Object.keys(i).length,r=Object.keys(e).length;if(s!==r)return!1;for(const o in i){const a=i.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!el(i[o],e[o]))return!1}}return String(i)===String(e)}function vg(i,e){return i.findIndex(t=>el(t,e))}const l1=i=>!!(i&&i.__v_isRef===!0),F=i=>sn(i)?i:i==null?"":et(i)||Bt(i)&&(i.toString===i1||!dt(i.toString))?l1(i)?F(i.value):JSON.stringify(i,c1,2):String(i),c1=(i,e)=>l1(e)?c1(i,e.value):Pa(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,s],r)=>(t[Ih(n,r)+" =>"]=s,t),{})}:Qa(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Ih(t))}:Ai(e)?Ih(e):Bt(e)&&!et(e)&&!s1(e)?String(e):e,Ih=(i,e="")=>{var t;return Ai(i)?`Symbol(${(t=i.description)!=null?t:e})`:i};/**
* @vue/reactivity v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let An;class d1{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&An&&(An.active?(this.parent=An,this.index=(An.scopes||(An.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=An;try{return An=this,e()}finally{An=t}}}on(){++this._on===1&&(this.prevScope=An,An=this)}off(){if(this._on>0&&--this._on===0){if(An===this)An=this.prevScope;else{let e=An;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function vg(i){return new d1(i)}function bg(){return An}function u1(i,e=!1){An&&An.cleanups.push(i)}let qt;const Ih=new WeakSet;class h1{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,An&&(An.active?An.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ih.has(this)&&(Ih.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||p1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tv(this),m1(this);const e=qt,t=Qi;qt=this,Qi=!0;try{return this.fn()}finally{g1(this),qt=e,Qi=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)wg(e);this.deps=this.depsTail=void 0,Tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ih.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pp(this)&&this.run()}get dirty(){return Pp(this)}}let f1=0,Ll,Dl;function p1(i,e=!1){if(i.flags|=8,e){i.next=Dl,Dl=i;return}i.next=Ll,Ll=i}function yg(){f1++}function xg(){if(--f1>0)return;if(Dl){let e=Dl;for(Dl=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let i;for(;Ll;){let e=Ll;for(Ll=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){i||(i=n)}e=t}}if(i)throw i}function m1(i){for(let e=i.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function g1(i){let e,t=i.depsTail,n=t;for(;n;){const s=n.prevDep;n.version===-1?(n===t&&(t=s),wg(n),HE(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}i.deps=e,i.depsTail=t}function Pp(i){for(let e=i.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(v1(e.dep.computed)||e.dep.version!==e.version))return!0;return!!i._dirty}function v1(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===Gl)||(i.globalVersion=Gl,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!Pp(i))))return;i.flags|=2;const e=i.dep,t=qt,n=Qi;qt=i,Qi=!0;try{m1(i);const s=i.fn(i._value);(e.version===0||Es(s,i._value))&&(i.flags|=128,i._value=s,e.version++)}catch(s){throw e.version++,s}finally{qt=t,Qi=n,g1(i),i.flags&=-3}}function wg(i,e=!1){const{dep:t,prevSub:n,nextSub:s}=i;if(n&&(n.nextSub=s,i.prevSub=void 0),s&&(s.prevSub=n,i.nextSub=void 0),t.subs===i&&(t.subs=n,!n&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)wg(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function HE(i){const{prevDep:e,nextDep:t}=i;e&&(e.nextDep=t,i.prevDep=void 0),t&&(t.prevDep=e,i.nextDep=void 0)}let Qi=!0;const b1=[];function mr(){b1.push(Qi),Qi=!1}function gr(){const i=b1.pop();Qi=i===void 0?!0:i}function Tv(i){const{cleanup:e}=i;if(i.cleanup=void 0,e){const t=qt;qt=void 0;try{e()}finally{qt=t}}}let Gl=0;class GE{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Sg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!qt||!Qi||qt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==qt)t=this.activeLink=new GE(qt,this),qt.deps?(t.prevDep=qt.depsTail,qt.depsTail.nextDep=t,qt.depsTail=t):qt.deps=qt.depsTail=t,y1(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=qt.depsTailLine truncated
**/let An;class d1{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&An&&(An.active?(this.parent=An,this.index=(An.scopes||(An.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=An;try{return An=this,e()}finally{An=t}}}on(){++this._on===1&&(this.prevScope=An,An=this)}off(){if(this._on>0&&--this._on===0){if(An===this)An=this.prevScope;else{let e=An;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function bg(i){return new d1(i)}function yg(){return An}function u1(i,e=!1){An&&An.cleanups.push(i)}let qt;const Rh=new WeakSet;class h1{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,An&&(An.active?An.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rh.has(this)&&(Rh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||p1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tv(this),m1(this);const e=qt,t=Qi;qt=this,Qi=!0;try{return this.fn()}finally{g1(this),qt=e,Qi=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Sg(e);this.deps=this.depsTail=void 0,Tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kp(this)&&this.run()}get dirty(){return kp(this)}}let f1=0,Dl,Ol;function p1(i,e=!1){if(i.flags|=8,e){i.next=Ol,Ol=i;return}i.next=Dl,Dl=i}function xg(){f1++}function wg(){if(--f1>0)return;if(Ol){let e=Ol;for(Ol=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let i;for(;Dl;){let e=Dl;for(Dl=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){i||(i=n)}e=t}}if(i)throw i}function m1(i){for(let e=i.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function g1(i){let e,t=i.depsTail,n=t;for(;n;){const s=n.prevDep;n.version===-1?(n===t&&(t=s),Sg(n),HE(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}i.deps=e,i.depsTail=t}function kp(i){for(let e=i.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(v1(e.dep.computed)||e.dep.version!==e.version))return!0;return!!i._dirty}function v1(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===Wl)||(i.globalVersion=Wl,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!kp(i))))return;i.flags|=2;const e=i.dep,t=qt,n=Qi;qt=i,Qi=!0;try{m1(i);const s=i.fn(i._value);(e.version===0||Es(s,i._value))&&(i.flags|=128,i._value=s,e.version++)}catch(s){throw e.version++,s}finally{qt=t,Qi=n,g1(i),i.flags&=-3}}function Sg(i,e=!1){const{dep:t,prevSub:n,nextSub:s}=i;if(n&&(n.nextSub=s,i.prevSub=void 0),s&&(s.prevSub=n,i.nextSub=void 0),t.subs===i&&(t.subs=n,!n&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Sg(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function HE(i){const{prevDep:e,nextDep:t}=i;e&&(e.nextDep=t,i.prevDep=void 0),t&&(t.prevDep=e,i.nextDep=void 0)}let Qi=!0;const b1=[];function mr(){b1.push(Qi),Qi=!1}function gr(){const i=b1.pop();Qi=i===void 0?!0:i}function Tv(i){const{cleanup:e}=i;if(i.cleanup=void 0,e){const t=qt;qt=void 0;try{e()}finally{qt=t}}}let Wl=0;class GE{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!qt||!Qi||qt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==qt)t=this.activeLink=new GE(qt,this),qt.deps?(t.prevDep=qt.depsTail,qt.depsTail.nextDep=t,qt.depsTail=t):qt.deps=qt.depsTail=t,y1(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=qt.depsTailLine truncated
* @vue/runtime-core v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function yc(i,e,t,n){try{return n?i(...n):i()}catch(s){Ku(s,e,t)}}function $i(i,e,t,n){if(dt(i)){const s=yc(i,e,t,n);return s&&n1(s)&&s.catch(r=>{Ku(r,e,t)}),s}if(et(i)){const s=[];for(let r=0;r<i.length;r++)s.push($i(i[r],e,t,n));return s}}function Ku(i,e,t,n=!0){const s=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||jt;if(e){let a=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](i,l,c)===!1)return}a=a.parent}if(r){mr(),yc(r,null,10,[i,l,c]),gr();return}}w_(i,t,s,n,o)}function w_(i,e,t,n=!0,s=!1){if(s)throw i;console.error(i)}const ii=[];let vs=-1;const ka=[];let Or=null,pa=0;const M1=Promise.resolve();let zd=null;function xc(i){const e=zd||M1;return i?e.then(this?i.bind(this):i):e}function S_(i){let e=vs+1,t=ii.length;for(;e<t;){const n=e+t>>>1,s=ii[n],r=ql(s);r<i||r===i&&s.flags&2?e=n+1:t=n}return e}function Tg(i){if(!(i.flags&1)){const e=ql(i),t=ii[ii.length-1];!t||!(i.flags&2)&&e>=ql(t)?ii.push(i):ii.splice(S_(e),0,i),i.flags|=1,P1()}}function P1(){zd||(zd=M1.then(I1))}function C_(i){if(!et(i))Or&&i.id===-1?Or.splice(pa+1,0,i):i.flags&1||(ka.push(i),i.flags|=1);else for(let e=0;e<i.length;e++)ka.push(i[e]);P1()}function _v(i,e,t=vs+1){for(;t<ii.length;t++){const n=ii[t];if(n&&n.flags&2){if(i&&n.id!==i.uid)continue;ii.splice(t,1),t--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function k1(i){if(ka.length){const e=[...new Set(ka)].sort((t,n)=>ql(t)-ql(n));if(ka.length=0,Or){for(let t=0;t<e.length;t++)Or.push(e[t]);return}for(Or=e,pa=0;pa<Or.length;pa++){const t=Or[pa];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Or=null,pa=0}}const ql=i=>i.id==null?i.flags&2?-1:1/0:i.id;function I1(i){try{for(vs=0;vs<ii.length;vs++){const e=ii[vs];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),yc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;vs<ii.length;vs++){const e=ii[vs];e&&(e.flags&=-2)}vs=-1,ii.length=0,k1(),zd=null,(ii.length||ka.length)&&I1()}}let qn=null,R1=null;function jd(i){const e=qn;return qn=i,R1=i&&i.type.__scopeId||null,e}function Ju(i,e=qn,t){if(!e||i._n)return i;const n=(...s)=>{n._d&&qd(-1);const r=jd(e),o=hr.length;let a;try{a=i(...s)}finally{for(let l=hr.length;l>o;l--)Ig();jd(r),n._d&&qd(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function pe(i,e){if(qn===null)return i;const t=ih(qn),n=i.dirs||(i.dirs=[]);for(let s=0;s<e.length;s++){let[r,o,a,l=jt]=e[s];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&er(o),n.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:l}))}return i}function fo(i,e,t,n){const s=i.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(mr(),$i(l,t,8,[i.el,a,i,e]),gr())}}function F1(i,e){if(si){let t=si.provides;const n=si.parent&&si.parent.provides;n===t&&(t=si.provides=Object.create(n)),t[i]=e}}function No(i,e,t=!1){const n=nh();if(n||$o){let s=$o?$o._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&i in s)return s[i];if(arguments.length>1)return t&&dt(e)?e.call(n&&n.proxy):e}}function A_(){return!!(nh()||$o)}const T_=Symbol.for("v-scx"),E_=()=>No(T_);function ma(i,e){return Eg(i,null,e)}function Xt(i,e,t){return Eg(i,e,t)}function Eg(i,e,t=jt){const{immediate:n,deep:s,flush:r,once:o}=t,a=_n({},t),l=e&&n||!e&&r!=="post";let c;if(ec){if(r==="sync"){const f=E_();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=Fs,f.resume=Fs,f.pause=Fs,f}}const d=si;a.call=(f,p,m)=>$i(f,d,p,m);let u=!1;r==="post"?a.scheduler=f=>{ei(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Tg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=x_(i,e,a);return ec&&(c?c.push(h):l&&h()),h}function __(i,e,t){const n=this.proxy,s=sn(i)?i.includes(".")?L1(n,i):()=>n[i]:i.bind(n,n);let r;dt(e)?r=e:(r=e.handler,t=e);const o=Sc(this),a=Eg(s,r.bind(n),t);return o(),a}function L1(i,e){const t=e.split(".");return()=>{let n=i;for(let s=0;s<t.length&&n;s++)n=n[t[s]];return n}}const Ir=new WeakMap,D1=Symbol("_vte"),Zu=i=>i.__isTeleport,Eo=i=>i&&(i.disabled||i.disabled===""),M_=i=>i&&(i.defer||i.defer===""),Mv=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Pv=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,Fp=(i,e)=>{const t=i&&i.to;return sn(t)?e?e(t):null:t},P_={name:"Teleport",__isTeleport:!0,process(i,e,t,n,s,r,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=c,y=Eo(e.props);let{dynamicChildren:b}=e;const x=(S,C,M)=>{S.shapeFlag&16&&d(S.children,C,M,s,r,o,a,l)},T=(S=e)=>{const C=Eo(S.props),M=S.target=Fp(S.props,p),I=Lp(M,S,m,f);M&&(o!=="svg"&&Mv(M)?o="svg":o!=="mathml"&&Pv(M)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(M),C||(x(S,M,I),Sl(S,!1)))},E=S=>{const C=()=>{if(Ir.get(S)===C){if(Ir.delete(S),Eo(S.props)){const M=v(S.el)||t;x Line truncated
**/function xc(i,e,t,n){try{return n?i(...n):i()}catch(s){Ku(s,e,t)}}function $i(i,e,t,n){if(dt(i)){const s=xc(i,e,t,n);return s&&n1(s)&&s.catch(r=>{Ku(r,e,t)}),s}if(et(i)){const s=[];for(let r=0;r<i.length;r++)s.push($i(i[r],e,t,n));return s}}function Ku(i,e,t,n=!0){const s=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||jt;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](i,c,l)===!1)return}a=a.parent}if(r){mr(),xc(r,null,10,[i,c,l]),gr();return}}w_(i,t,s,n,o)}function w_(i,e,t,n=!0,s=!1){if(s)throw i;console.error(i)}const ii=[];let vs=-1;const ka=[];let Or=null,pa=0;const M1=Promise.resolve();let zd=null;function tl(i){const e=zd||M1;return i?e.then(this?i.bind(this):i):e}function S_(i){let e=vs+1,t=ii.length;for(;e<t;){const n=e+t>>>1,s=ii[n],r=Kl(s);r<i||r===i&&s.flags&2?e=n+1:t=n}return e}function Eg(i){if(!(i.flags&1)){const e=Kl(i),t=ii[ii.length-1];!t||!(i.flags&2)&&e>=Kl(t)?ii.push(i):ii.splice(S_(e),0,i),i.flags|=1,P1()}}function P1(){zd||(zd=M1.then(I1))}function C_(i){if(!et(i))Or&&i.id===-1?Or.splice(pa+1,0,i):i.flags&1||(ka.push(i),i.flags|=1);else for(let e=0;e<i.length;e++)ka.push(i[e]);P1()}function _v(i,e,t=vs+1){for(;t<ii.length;t++){const n=ii[t];if(n&&n.flags&2){if(i&&n.id!==i.uid)continue;ii.splice(t,1),t--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function k1(i){if(ka.length){const e=[...new Set(ka)].sort((t,n)=>Kl(t)-Kl(n));if(ka.length=0,Or){for(let t=0;t<e.length;t++)Or.push(e[t]);return}for(Or=e,pa=0;pa<Or.length;pa++){const t=Or[pa];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Or=null,pa=0}}const Kl=i=>i.id==null?i.flags&2?-1:1/0:i.id;function I1(i){try{for(vs=0;vs<ii.length;vs++){const e=ii[vs];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),xc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;vs<ii.length;vs++){const e=ii[vs];e&&(e.flags&=-2)}vs=-1,ii.length=0,k1(),zd=null,(ii.length||ka.length)&&I1()}}let qn=null,R1=null;function jd(i){const e=qn;return qn=i,R1=i&&i.type.__scopeId||null,e}function Ju(i,e=qn,t){if(!e||i._n)return i;const n=(...s)=>{n._d&&qd(-1);const r=jd(e),o=hr.length;let a;try{a=i(...s)}finally{for(let c=hr.length;c>o;c--)Ig();jd(r),n._d&&qd(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function pe(i,e){if(qn===null)return i;const t=sh(qn),n=i.dirs||(i.dirs=[]);for(let s=0;s<e.length;s++){let[r,o,a,c=jt]=e[s];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&er(o),n.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:c}))}return i}function fo(i,e,t,n){const s=i.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let c=a.dir[n];c&&(mr(),$i(c,t,8,[i.el,a,i,e]),gr())}}function F1(i,e){if(si){let t=si.provides;const n=si.parent&&si.parent.provides;n===t&&(t=si.provides=Object.create(n)),t[i]=e}}function No(i,e,t=!1){const n=ih();if(n||$o){let s=$o?$o._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&i in s)return s[i];if(arguments.length>1)return t&&dt(e)?e.call(n&&n.proxy):e}}function A_(){return!!(ih()||$o)}const T_=Symbol.for("v-scx"),E_=()=>No(T_);function ma(i,e){return _g(i,null,e)}function Ut(i,e,t){return _g(i,e,t)}function _g(i,e,t=jt){const{immediate:n,deep:s,flush:r,once:o}=t,a=_n({},t),c=e&&n||!e&&r!=="post";let l;if(tc){if(r==="sync"){const f=E_();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!c){const f=()=>{};return f.stop=Fs,f.resume=Fs,f.pause=Fs,f}}const d=si;a.call=(f,p,m)=>$i(f,d,p,m);let u=!1;r==="post"?a.scheduler=f=>{ei(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Eg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=x_(i,e,a);return tc&&(l?l.push(h):c&&h()),h}function __(i,e,t){const n=this.proxy,s=sn(i)?i.includes(".")?L1(n,i):()=>n[i]:i.bind(n,n);let r;dt(e)?r=e:(r=e.handler,t=e);const o=Sc(this),a=_g(s,r.bind(n),t);return o(),a}function L1(i,e){const t=e.split(".");return()=>{let n=i;for(let s=0;s<t.length&&n;s++)n=n[t[s]];return n}}const Ir=new WeakMap,D1=Symbol("_vte"),Zu=i=>i.__isTeleport,Eo=i=>i&&(i.disabled||i.disabled===""),M_=i=>i&&(i.defer||i.defer===""),Mv=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Pv=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,Lp=(i,e)=>{const t=i&&i.to;return sn(t)?e?e(t):null:t},P_={name:"Teleport",__isTeleport:!0,process(i,e,t,n,s,r,o,a,c,l){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=l,y=Eo(e.props);let{dynamicChildren:b}=e;const x=(S,C,M)=>{S.shapeFlag&16&&d(S.children,C,M,s,r,o,a,c)},T=(S=e)=>{const C=Eo(S.props),M=S.target=Lp(S.props,p),k=Dp(M,S,m,f);M&&(o!=="svg"&&Mv(M)?o="svg":o!=="mathml"&&Pv(M)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(M),C||(x(S,M,k),Cl(S,!1)))},E=S=>{const C=()=>{if(Ir.get(S)===C){if(Ir.delete(S),Eo(S.props)){const M=v(S.el)||t;x Line truncated
* @vue/runtime-dom v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Up;const Xv=typeof window<"u"&&window.trustedTypes;if(Xv)try{Up=Xv.createPolicy("vue",{createHTML:i=>i})}catch{}const dw=Up?i=>Up.createHTML(i):i=>i,IM="http://www.w3.org/2000/svg",RM="http://www.w3.org/1998/Math/MathML",Gs=typeof document<"u"?document:null,Yv=Gs&&Gs.createElement("template"),FM={insert:(i,e,t)=>{e.insertBefore(i,t||null)},remove:i=>{const e=i.parentNode;e&&e.removeChild(i)},createElement:(i,e,t,n)=>{const s=e==="svg"?Gs.createElementNS(IM,i):e==="mathml"?Gs.createElementNS(RM,i):t?Gs.createElement(i,{is:t}):Gs.createElement(i);return i==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:i=>Gs.createTextNode(i),createComment:i=>Gs.createComment(i),setText:(i,e)=>{i.nodeValue=e},setElementText:(i,e)=>{i.textContent=e},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>Gs.querySelector(i),setScopeId(i,e){i.setAttribute(e,"")},insertStaticContent(i,e,t,n,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{Yv.innerHTML=dw(n==="svg"?`<svg>${i}</svg>`:n==="mathml"?`<math>${i}</math>`:i);const a=Yv.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},_r="transition",fl="animation",nc=Symbol("_vtc"),uw={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},LM=_n({},O1,uw),DM=i=>(i.displayName="Transition",i.props=LM,i),OM=DM((i,{slots:e})=>tc(F_,NM(i),e)),mo=(i,e=[])=>{et(i)?i.forEach(t=>t(...e)):i&&i(...e)},zv=i=>i?et(i)?i.some(e=>e.length>1):i.length>1:!1;function NM(i){const e={};for(const R in i)R in uw||(e[R]=i[R]);if(i.css===!1)return e;const{name:t="v",type:n,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=i,p=$M(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:T,onBeforeAppear:E=v,onAppear:S=y,onAppearCancelled:C=b}=e,M=(R,N,$,j)=>{R._enterCancelled=j,go(R,N?d:a),go(R,N?c:o),$&&$()},I=(R,N)=>{R._isLeaving=!1,go(R,u),go(R,f),go(R,h),N&&N()},P=R=>(N,$)=>{const j=R?S:y,U=()=>M(N,R,$);mo(j,[N,U]),jv(()=>{go(N,R?l:r),Xs(N,R?d:a),zv(j)||Hv(N,n,m,U)})};return _n(e,{onBeforeEnter(R){mo(v,[R]),Xs(R,r),Xs(R,o)},onBeforeAppear(R){mo(E,[R]),Xs(R,l),Xs(R,c)},onEnter:P(!1),onAppear:P(!0),onLeave(R,N){R._isLeaving=!0;const $=()=>I(R,N);Xs(R,u),R._enterCancelled?(Xs(R,h),qv(R)):(qv(R),Xs(R,h)),jv(()=>{R._isLeaving&&(go(R,u),Xs(R,f),zv(x)||Hv(R,n,g,$))}),mo(x,[R,$])},onEnterCancelled(R){M(R,!1,void 0,!0),mo(b,[R])},onAppearCancelled(R){M(R,!0,void 0,!0),mo(C,[R])},onLeaveCancelled(R){I(R),mo(T,[R])}})}function $M(i){if(i==null)return null;if(Bt(i))return[Nh(i.enter),Nh(i.leave)];{const e=Nh(i);return[e,e]}}function Nh(i){return $E(i)}function Xs(i,e){e.split(/\s+/).forEach(t=>t&&i.classList.add(t)),(i[nc]||(i[nc]=new Set)).add(e)}function go(i,e){e.split(/\s+/).forEach(n=>n&&i.classList.remove(n));const t=i[nc];t&&(t.delete(e),t.size||(i[nc]=void 0))}function jv(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let BM=0;function Hv(i,e,t,n){const s=i._endId=++BM,r=()=>{s===i._endId&&n()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:l}=UM(i,e);if(!o)return n();const c=o+"end";let d=0;const u=()=>{i.removeEventListener(c,h),r()},h=f=>{f.target===i&&++d>=l&&u()};setTimeout(()=>{d<l&&u()},a+1),i.addEventListener(c,h)}function UM(i,e){const t=window.getComputedStyle(i),n=p=>(t[p]||"").split(", "),s=n(`${_r}Delay`),r=n(`${_r}Duration`),o=Gv(s,r),a=n(`${fl}Delay`),l=n(`${fl}Duration`),c=Gv(a,l);let d=null,u=0,h=0;e===_r?o>0&&(d=_r,u=o,h=r.length):e===fl?c>0&&(d=fl,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?_r:fl:null,h=d?d===_r?r.length:l.length:0);const f=d===_r&&/\b(?:transform|all)(?:,|$)/.test(n(`${_r}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Gv(i,e){for(;i.length<e.length;)i=i.concat(i);return Math.max(...e.map((t,n)=>Wv(t)+Wv(i[n])))}function Wv(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function qv(i){return(i?i.ownerDocument:document).body.offsetHeight}function VM(i,e,t){const n=i[nc];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?i.removeAttribute("class"):t?i.setAttribute("class",e):i.className=e}const Zd=Symbol("_vod"),hw=Symbol("_vsh"),Vt={name:"show",beforeMount(i,{value:e},{transition:t}){i[Zd]=i.style.display==="none"?"":i.style.display,t&&e?t.beforeEnter(i):pl(i,e)},mounted(i,{value:e},{tra Line truncated
`))),i[Ms]=Ya(s);const r=n||s.props&&s.props.type==="number";Xr(i,e?"change":"input",o=>{o.target.composing||i[Ms](Uh(i.value,t,r))}),(t||r)&&Xr(i,"change",()=>{i.value=Uh(i.value,t,r)}),e||(Xr(i,"compositionstart",sP),Xr(i,"compositionend",ib),Xr(i,"change",ib))},mounted(i,{value:e,modifiers:{trim:t,number:n}}){const s=e??"",r=i[Bc];delete i[Bc],r!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==r?i[Ms](Uh(i.value,t,n)):i.value=s},beforeUpdate(i,{value:e,oldValue:t,modifiers:{lazy:n,trim:s,number:r}},o){if(i[Ms]=Ya(o),i.composing)return;const a=(r||i.type==="number")&&!/^0\d/.test(i.value)?Hu(i.value):i.value,l=e??"";if(a===l)return;const c=i.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===i&&i.type!=="range"&&(n&&e===t||s&&i.value.trim()===l)||(i.value=l)}},vt={deep:!0,created(i,e,t){i[Ms]=Ya(t),Xr(i,"change",()=>{const n=i._modelValue,s=ic(i),r=i.checked,o=i[Ms];if(et(n)){const a=gg(n,s),l=a!==-1;if(r&&!l)o(n.concat(s));else if(!r&&l){const c=[...n];c.splice(a,1),o(c)}}else if(Qa(n)){const a=new Set(n);r?a.add(s):a.delete(s),o(a)}else o(fw(i,r))})},mounted:sb,beforeUpdate(i,e,t){i[Ms]=Ya(t),sb(i,e,t)}};function sb(i,{value:e,oldValue:t},n){i._modelValue=e;let s;if(et(e))s=gg(e,n.props.value)>-1;else if(Qa(e))s=e.has(n.props.value);else{if(e===t)return;s=el(e,fw(i,!0))}i.checked!==s&&(i.checked=s)}const _t={deep:!0,created(i,{value:e,modifiers:{number:t}},n){i._modelValue=e,Xr(i,"change",()=>{const s=Array.prototype.filter.call(i.options,r=>r.selected).map(r=>t?Hu(ic(r)):ic(r));i[Ms](i.multiple?Qa(i._modelValue)?new Set(s):s:s[0]),i._assigning=!0,xc(()=>{i._assigning=!1})}),i[Ms]=Ya(n)},mounted(i,{value:e}){rb(i,e)},beforeUpdate(i,{value:e},t){i._modelValue=e,i[Ms]=Ya(t)},updated(i,{value:e}){i._assigning||rb(i,e)}};function rb(i,e){const t=i.multiple,n=et(e);if(!(t&&!n&&!Qa(e))){for(let s=0,r=i.options.length;s<r;s++){const o=i.options[s],a=ic(o);if(t)if(n){const l=typeof a;l==="string"||l==="number"?o.selected=e.some(c=>String(c)===String(a)):o.selected=gg(e,a)>-1}else o.selected=e.has(a);else if(el(ic(o),e)){i.selectedIndex!==s&&(i.selectedIndex=s);return}}!t&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function ic(i){return"_value"in i?i._value:i.value}function fw(i,e){const t=e?"_trueValue":"_falseValue";return t in i?i[t]:e}const rP=["ctrl","shift","alt","meta"],oP={stop:i=>i.stopPropagation(),prevent:i=>i.preventDefault(),self:i=>i.target!==i.currentTarget,ctrl:i=>!i.ctrlKey,shift:i=>!i.shiftKey,alt:i=>!i.altKey,meta:i=>!i.metaKey,left:i=>"button"in i&&i.button!==0,middle:i=>"button"in i&&i.button!==1,right:i=>"button"in i&&i.button!==2,exact:(i,e)=>rP.some(t=>i[`${t}Key`]&&!e.includes(t))},Ge=(i,e)=>{if(!i)return i;const t=i._withMods||(i._withMods={}),n=e.join(".");return t[n]||(t[n]=((s,...r)=>{for(let o=0;o<e.length;o++){const a=oP[e[o]];if(a&&a(s,e))return}return i(s,...r)}))},aP={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(i,e)=>{const t=i._withKeys||(i._withKeys={}),n=e.join(".");return t[n]||(t[n]=(s=>{if(!("key"in s))return;const r=ro(s.key);if(e.some(o=>o===r||aP[o]===r))return i(s)}))},lP=_n({patchProp:tP},FM);let ob;function cP(){return ob||(ob=fM(lP))}const dP=((...i)=>{const e=cP().createApp(...i),{mount:t}=e;return e.mount=n=>{const s=hP(n);if(!s)return;const r=e._component;!dt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=t(s,!1,uP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e});function uP(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function hP(i){return sn(i)?document.querySelector(i):i}/*!
**/let Vp;const Xv=typeof window<"u"&&window.trustedTypes;if(Xv)try{Vp=Xv.createPolicy("vue",{createHTML:i=>i})}catch{}const dw=Vp?i=>Vp.createHTML(i):i=>i,IM="http://www.w3.org/2000/svg",RM="http://www.w3.org/1998/Math/MathML",Gs=typeof document<"u"?document:null,Yv=Gs&&Gs.createElement("template"),FM={insert:(i,e,t)=>{e.insertBefore(i,t||null)},remove:i=>{const e=i.parentNode;e&&e.removeChild(i)},createElement:(i,e,t,n)=>{const s=e==="svg"?Gs.createElementNS(IM,i):e==="mathml"?Gs.createElementNS(RM,i):t?Gs.createElement(i,{is:t}):Gs.createElement(i);return i==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:i=>Gs.createTextNode(i),createComment:i=>Gs.createComment(i),setText:(i,e)=>{i.nodeValue=e},setElementText:(i,e)=>{i.textContent=e},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>Gs.querySelector(i),setScopeId(i,e){i.setAttribute(e,"")},insertStaticContent(i,e,t,n,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{Yv.innerHTML=dw(n==="svg"?`<svg>${i}</svg>`:n==="mathml"?`<math>${i}</math>`:i);const a=Yv.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},_r="transition",pl="animation",ic=Symbol("_vtc"),uw={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},LM=_n({},O1,uw),DM=i=>(i.displayName="Transition",i.props=LM,i),OM=DM((i,{slots:e})=>nc(F_,NM(i),e)),mo=(i,e=[])=>{et(i)?i.forEach(t=>t(...e)):i&&i(...e)},zv=i=>i?et(i)?i.some(e=>e.length>1):i.length>1:!1;function NM(i){const e={};for(const I in i)I in uw||(e[I]=i[I]);if(i.css===!1)return e;const{name:t="v",type:n,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=r,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=i,p=$M(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:T,onBeforeAppear:E=v,onAppear:S=y,onAppearCancelled:C=b}=e,M=(I,N,$,j)=>{I._enterCancelled=j,go(I,N?d:a),go(I,N?l:o),$&&$()},k=(I,N)=>{I._isLeaving=!1,go(I,u),go(I,f),go(I,h),N&&N()},P=I=>(N,$)=>{const j=I?S:y,B=()=>M(N,I,$);mo(j,[N,B]),jv(()=>{go(N,I?c:r),Xs(N,I?d:a),zv(j)||Hv(N,n,m,B)})};return _n(e,{onBeforeEnter(I){mo(v,[I]),Xs(I,r),Xs(I,o)},onBeforeAppear(I){mo(E,[I]),Xs(I,c),Xs(I,l)},onEnter:P(!1),onAppear:P(!0),onLeave(I,N){I._isLeaving=!0;const $=()=>k(I,N);Xs(I,u),I._enterCancelled?(Xs(I,h),qv(I)):(qv(I),Xs(I,h)),jv(()=>{I._isLeaving&&(go(I,u),Xs(I,f),zv(x)||Hv(I,n,g,$))}),mo(x,[I,$])},onEnterCancelled(I){M(I,!1,void 0,!0),mo(b,[I])},onAppearCancelled(I){M(I,!0,void 0,!0),mo(C,[I])},onLeaveCancelled(I){k(I),mo(T,[I])}})}function $M(i){if(i==null)return null;if(Bt(i))return[$h(i.enter),$h(i.leave)];{const e=$h(i);return[e,e]}}function $h(i){return $E(i)}function Xs(i,e){e.split(/\s+/).forEach(t=>t&&i.classList.add(t)),(i[ic]||(i[ic]=new Set)).add(e)}function go(i,e){e.split(/\s+/).forEach(n=>n&&i.classList.remove(n));const t=i[ic];t&&(t.delete(e),t.size||(i[ic]=void 0))}function jv(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let BM=0;function Hv(i,e,t,n){const s=i._endId=++BM,r=()=>{s===i._endId&&n()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:c}=UM(i,e);if(!o)return n();const l=o+"end";let d=0;const u=()=>{i.removeEventListener(l,h),r()},h=f=>{f.target===i&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),i.addEventListener(l,h)}function UM(i,e){const t=window.getComputedStyle(i),n=p=>(t[p]||"").split(", "),s=n(`${_r}Delay`),r=n(`${_r}Duration`),o=Gv(s,r),a=n(`${pl}Delay`),c=n(`${pl}Duration`),l=Gv(a,c);let d=null,u=0,h=0;e===_r?o>0&&(d=_r,u=o,h=r.length):e===pl?l>0&&(d=pl,u=l,h=c.length):(u=Math.max(o,l),d=u>0?o>l?_r:pl:null,h=d?d===_r?r.length:c.length:0);const f=d===_r&&/\b(?:transform|all)(?:,|$)/.test(n(`${_r}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Gv(i,e){for(;i.length<e.length;)i=i.concat(i);return Math.max(...e.map((t,n)=>Wv(t)+Wv(i[n])))}function Wv(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function qv(i){return(i?i.ownerDocument:document).body.offsetHeight}function VM(i,e,t){const n=i[ic];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?i.removeAttribute("class"):t?i.setAttribute("class",e):i.className=e}const Zd=Symbol("_vod"),hw=Symbol("_vsh"),Xt={name:"show",beforeMount(i,{value:e},{transition:t}){i[Zd]=i.style.display==="none"?"":i.style.display,t&&e?t.beforeEnter(i):ml(i,e)},mounted(i,{value:e},{tra Line truncated
`))),i[Ms]=Ya(s);const r=n||s.props&&s.props.type==="number";Xr(i,e?"change":"input",o=>{o.target.composing||i[Ms](Vh(i.value,t,r))}),(t||r)&&Xr(i,"change",()=>{i.value=Vh(i.value,t,r)}),e||(Xr(i,"compositionstart",sP),Xr(i,"compositionend",ib),Xr(i,"change",ib))},mounted(i,{value:e,modifiers:{trim:t,number:n}}){const s=e??"",r=i[Bc];delete i[Bc],r!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==r?i[Ms](Vh(i.value,t,n)):i.value=s},beforeUpdate(i,{value:e,oldValue:t,modifiers:{lazy:n,trim:s,number:r}},o){if(i[Ms]=Ya(o),i.composing)return;const a=(r||i.type==="number")&&!/^0\d/.test(i.value)?Hu(i.value):i.value,c=e??"";if(a===c)return;const l=i.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===i&&i.type!=="range"&&(n&&e===t||s&&i.value.trim()===c)||(i.value=c)}},vt={deep:!0,created(i,e,t){i[Ms]=Ya(t),Xr(i,"change",()=>{const n=i._modelValue,s=sc(i),r=i.checked,o=i[Ms];if(et(n)){const a=vg(n,s),c=a!==-1;if(r&&!c)o(n.concat(s));else if(!r&&c){const l=[...n];l.splice(a,1),o(l)}}else if(Qa(n)){const a=new Set(n);r?a.add(s):a.delete(s),o(a)}else o(fw(i,r))})},mounted:sb,beforeUpdate(i,e,t){i[Ms]=Ya(t),sb(i,e,t)}};function sb(i,{value:e,oldValue:t},n){i._modelValue=e;let s;if(et(e))s=vg(e,n.props.value)>-1;else if(Qa(e))s=e.has(n.props.value);else{if(e===t)return;s=el(e,fw(i,!0))}i.checked!==s&&(i.checked=s)}const _t={deep:!0,created(i,{value:e,modifiers:{number:t}},n){i._modelValue=e,Xr(i,"change",()=>{const s=Array.prototype.filter.call(i.options,r=>r.selected).map(r=>t?Hu(sc(r)):sc(r));i[Ms](i.multiple?Qa(i._modelValue)?new Set(s):s:s[0]),i._assigning=!0,tl(()=>{i._assigning=!1})}),i[Ms]=Ya(n)},mounted(i,{value:e}){rb(i,e)},beforeUpdate(i,{value:e},t){i._modelValue=e,i[Ms]=Ya(t)},updated(i,{value:e}){i._assigning||rb(i,e)}};function rb(i,e){const t=i.multiple,n=et(e);if(!(t&&!n&&!Qa(e))){for(let s=0,r=i.options.length;s<r;s++){const o=i.options[s],a=sc(o);if(t)if(n){const c=typeof a;c==="string"||c==="number"?o.selected=e.some(l=>String(l)===String(a)):o.selected=vg(e,a)>-1}else o.selected=e.has(a);else if(el(sc(o),e)){i.selectedIndex!==s&&(i.selectedIndex=s);return}}!t&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function sc(i){return"_value"in i?i._value:i.value}function fw(i,e){const t=e?"_trueValue":"_falseValue";return t in i?i[t]:e}const rP=["ctrl","shift","alt","meta"],oP={stop:i=>i.stopPropagation(),prevent:i=>i.preventDefault(),self:i=>i.target!==i.currentTarget,ctrl:i=>!i.ctrlKey,shift:i=>!i.shiftKey,alt:i=>!i.altKey,meta:i=>!i.metaKey,left:i=>"button"in i&&i.button!==0,middle:i=>"button"in i&&i.button!==1,right:i=>"button"in i&&i.button!==2,exact:(i,e)=>rP.some(t=>i[`${t}Key`]&&!e.includes(t))},We=(i,e)=>{if(!i)return i;const t=i._withMods||(i._withMods={}),n=e.join(".");return t[n]||(t[n]=((s,...r)=>{for(let o=0;o<e.length;o++){const a=oP[e[o]];if(a&&a(s,e))return}return i(s,...r)}))},aP={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(i,e)=>{const t=i._withKeys||(i._withKeys={}),n=e.join(".");return t[n]||(t[n]=(s=>{if(!("key"in s))return;const r=ro(s.key);if(e.some(o=>o===r||aP[o]===r))return i(s)}))},lP=_n({patchProp:tP},FM);let ob;function cP(){return ob||(ob=fM(lP))}const dP=((...i)=>{const e=cP().createApp(...i),{mount:t}=e;return e.mount=n=>{const s=hP(n);if(!s)return;const r=e._component;!dt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=t(s,!1,uP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e});function uP(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function hP(i){return sn(i)?document.querySelector(i):i}/*!
* pinia v4.0.3
* (c) 2026 Eduardo San Martin Morote
* @license MIT
*/let pw;const sh=i=>pw=i,mw=Symbol();function ab(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function fP(){const i=vg(!0),e=i.run(()=>Re({}));let t=[],n=[];const s=Hr({install(r){sh(s),s._a=r,r.provide(mw,s),r.config.globalProperties.$pinia=s,n.forEach(o=>t.push(o)),n=[]},use(r){return this._a?t.push(r):n.push(r),this},_p:t,_a:null,_e:i,_s:new Map,state:e});return s}const Vp=()=>{};function lb(i,e,t,n=Vp){i.add(e);const s=()=>{i.delete(e)&&n()};return!t&&bg()&&u1(s),s}function ra(i,...e){i.forEach(t=>{t(...e)})}const pP=i=>i(),cb=Symbol(),Vh=Symbol();function Xp(i,e){i instanceof Map&&e instanceof Map?e.forEach((t,n)=>i.set(n,t)):i instanceof Set&&e instanceof Set&&e.forEach(i.add,i);for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t],s=i[t];ab(s)&&ab(n)&&Object.hasOwn(i,t)&&!Jt(n)&&!ur(n)?i[t]=Xp(s,n):i[t]=n}return i}const mP=Symbol();function gP(i){return!i||typeof i!="object"||!Object.hasOwn(i,mP)}const{assign:Rr}=Object;function vP(i){return!!(Jt(i)&&i.effect)}function bP(i,e,t,n){const{state:s,actions:r,getters:o}=e,a=t.state.value[i];let l;function c(){a||(t.state.value[i]=s?s():{});const d=p_(t.state.value[i]);return Rr(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Hr(Le(()=>{sh(t);const f=t._s.get(i);return o[h].call(f,f)})),u),{}))}return l=gw(i,c,e,t,n,!0),l}function gw(i,e,t={},n,s,r){let o;const a=Rr({actions:{}},t),l={deep:!0};let c,d,u=new Set,h=new Set,f;const p=n.state.value[i];!r&&!p&&(n.state.value[i]={});let m;function g(S){let C;c=d=!1,typeof S=="function"?(S(n.state.value[i]),C={type:"patch function",storeId:i,events:f}):(Xp(n.state.value[i],S),C={type:"patch object",payload:S,storeId:i,events:f});const M=m=Symbol();xc().then(()=>{m===M&&(c=!0)}),d=!0,ra(u,C,n.state.value[i])}const v=r?function(){const{state:C}=t,M=C?C():{};this.$patch(I=>{Rr(I,M)})}:Vp;function y(){o.stop(),u.clear(),h.clear(),n._s.delete(i)}const b=(S,C="")=>{if(cb in S)return S[Vh]=C,S;const M=function(){sh(n);const I=Array.from(arguments),P=new Set,R=new Set;function N(U){P.add(U)}function $(U){R.add(U)}ra(h,{args:I,name:M[Vh],store:T,after:N,onError:$});let j;try{j=S.apply(this&&this.$id===i?this:T,I)}catch(U){throw ra(R,U),U}return j instanceof Promise?j.then(U=>(ra(P,U),U)).catch(U=>(ra(R,U),Promise.reject(U))):(ra(P,j),j)};return M[cb]=!0,M[Vh]=C,M},x={_p:n,$id:i,$onAction:lb.bind(null,h),$patch:g,$reset:v,$subscribe(S,C={}){if(u.has(S))return Vp;const M=lb(u,S,C.detached,()=>I()),I=o.run(()=>Xt(()=>n.state.value[i],P=>{(C.flush==="sync"?d:c)&&S({storeId:i,type:"direct",events:f},P)},Rr({},l,C)));return M},$dispose:y},T=qo(x);n._s.set(i,T);const E=(n._a&&n._a.runWithContext||pP)(()=>n._e.run(()=>(o=vg()).run(()=>e({action:b}))));for(const S in E){const C=E[S];Jt(C)&&!vP(C)||ur(C)?r||(p&&gP(C)&&(Jt(C)?C.value=p[S]:((C instanceof Set||C instanceof Map)&&C.clear(),Xp(C,p[S]))),n.state.value[i][S]=C):typeof C=="function"&&(E[S]=b(C,S),a.actions[S]=C)}return Rr(T,E),Rr(Rt(T),E),Object.defineProperty(T,"$state",{get:()=>n.state.value[i],set:S=>{g(C=>{Rr(C,S)})}}),n._p.forEach(S=>{const C=o.run(()=>S({store:T,app:n._a,pinia:n,options:a}));Rr(T,C)}),p&&r&&t.hydrate&&t.hydrate(T.$state,p),c=!0,d=!0,T}/*! #__NO_SIDE_EFFECTS__ */function yP(i,e,t){let n;const s=typeof e=="function";n=s?t:e;function r(o,a){const l=A_();return o=o||(l?No(mw,null):null),o&&sh(o),o=pw,o._s.has(i)||(s?gw(i,e,n,o):bP(i,n,o)),o._s.get(i)}return r.$id=i,r}var Ko=(i=>(i[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",i))(Ko||{}),vw=(i=>(i[i.UNKNOWN=0]="UNKNOWN",i[i.WEBGL=1]="WEBGL",i[i.CANVAS=2]="CANVAS",i))(vw||{}),Yp=(i=>(i[i.COLOR=16384]="COLOR",i[i.DEPTH=256]="DEPTH",i[i.STENCIL=1024]="STENCIL",i))(Yp||{}),Qe=(i=>(i[i.NORMAL=0]="NORMAL",i[i.ADD=1]="ADD",i[i.MULTIPLY=2]="MULTIPLY",i[i.SCREEN=3]="SCREEN",i[i.OVERLAY=4]="OVERLAY",i[i.DARKEN=5]="DARKEN",i[i.LIGHTEN=6]="LIGHTEN",i[i.COLOR_DODGE=7]="COLOR_DODGE",i[i.COLOR_BURN=8]="COLOR_BURN",i[i.HARD_LIGHT=9]="HARD_LIGHT",i[i.SOFT_LIGHT=10]="SOFT_LIGHT",i[i.DIFFERENCE=11]="DIFFERENCE",i[i.EXCLUSION=12]="EXCLUSION",i[i.HUE=13]="HUE",i[i.SATURATION=14]="SATURATION",i[i.COLOR=15]="COLOR",i[i.LUMINOSITY=16]="LUMINOSITY",i[i.NORMAL_NPM=17]="NORMAL_NPM",i[i.ADD_NPM=18]="ADD_NPM",i[i.SCREEN_NPM=19]="SCREEN_NPM",i[i.NONE=20]="NONE",i[i.SRC_OVER=0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",i))(Qe||{}),Ps=(i=>(i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i))(Ps||{}),Ie=(i=>(i[i.RGBA=6408]="RGBA",i[i.RGB=6407]="RGB",i[i.RG=33319]="RG",i[i.RED=6403]="RED",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTELine truncated
`)>=0)return!1;return!0}function $e(he,fe){var nt;if(he.indent===" ")nt=" ";else if(typeof he.indent=="number"&&he.indent>0)nt=C.call(Array(he.indent+1)," ");else return null;return{base:nt,prev:C.call(Array(fe+1),nt)}}function bt(he,fe){if(he.length===0)return"";var nt=`
`+fe.prev+fe.base;return nt+C.call(he,","+nt)+`
`+fe.prev}function Ee(he,fe){var nt=ce(he),mt=[];if(nt){mt.length=he.length;for(var lt=0;lt<he.length;lt++)mt[lt]=V(he,lt)?fe(he[lt],he):""}var ct=typeof R=="function"?R(he):[],Kn;if($){Kn={};for(var _i=0;_i<ct.length;_i++)Kn["$"+ct[_i]]=ct[_i]}for(var wn in he)V(he,wn)&&(nt&&String(Number(wn))===wn&&wn<he.length||$&&Kn["$"+wn]instanceof Symbol||(E.call(/[^\w$]/,wn)?mt.push(fe(wn,he)+": "+fe(he[wn],he)):mt.push(wn+": "+fe(he[wn],he))));if(typeof R=="function")for(var gi=0;gi<ct.length;gi++)U.call(he,ct[gi])&&mt.push("["+fe(ct[gi])+"]: "+fe(he[ct[gi]],he));return mt}return Hh}var Gh,_b;function LP(){if(_b)return Gh;_b=1;var i=rh(),e=nl(),t=function(a,l,c){for(var d=a,u;(u=d.next)!=null;d=u)if(u.key===l)return d.next=u.next,c||(u.next=a.next,a.next=u),u},n=function(a,l){if(a){var c=t(a,l);return c&&c.value}},s=function(a,l,c){var d=t(a,l);d?d.value=c:a.next={key:l,next:a.next,value:c}},r=function(a,l){return a?!!t(a,l):!1},o=function(a,l){if(a)return t(a,l,!0)};return Gh=function(){var l,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+i(d))},delete:function(d){var u=o(l,d);return u&&l&&!l.next&&(l=void 0),!!u},get:function(d){return n(l,d)},has:function(d){return r(l,d)},set:function(d,u){l||(l={next:void 0}),s(l,d,u)}};return c},Gh}var Wh,Mb;function yw(){return Mb||(Mb=1,Wh=Object),Wh}var qh,Pb;function DP(){return Pb||(Pb=1,qh=Error),qh}var Kh,kb;function OP(){return kb||(kb=1,Kh=EvalError),Kh}var Jh,Ib;function NP(){return Ib||(Ib=1,Jh=RangeError),Jh}var Zh,Rb;function $P(){return Rb||(Rb=1,Zh=ReferenceError),Zh}var Qh,Fb;function BP(){return Fb||(Fb=1,Qh=SyntaxError),Qh}var ef,Lb;function UP(){return Lb||(Lb=1,ef=URIError),ef}var tf,Db;function VP(){return Db||(Db=1,tf=Math.abs),tf}var nf,Ob;function XP(){return Ob||(Ob=1,nf=Math.floor),nf}var sf,Nb;function YP(){return Nb||(Nb=1,sf=Math.max),sf}var rf,$b;function zP(){return $b||($b=1,rf=Math.min),rf}var of,Bb;function jP(){return Bb||(Bb=1,of=Math.pow),of}var af,Ub;function HP(){return Ub||(Ub=1,af=Math.round),af}var lf,Vb;function GP(){return Vb||(Vb=1,lf=Number.isNaN||function(e){return e!==e}),lf}var cf,Xb;function WP(){if(Xb)return cf;Xb=1;var i=GP();return cf=function(t){return i(t)||t===0?t:t<0?-1:1},cf}var df,Yb;function qP(){return Yb||(Yb=1,df=Object.getOwnPropertyDescriptor),df}var uf,zb;function xw(){if(zb)return uf;zb=1;var i=qP();if(i)try{i([],"length")}catch{i=null}return uf=i,uf}var hf,jb;function ww(){if(jb)return hf;jb=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return hf=i,hf}var ff,Hb;function KP(){return Hb||(Hb=1,ff=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),ff}var pf,Gb;function JP(){if(Gb)return pf;Gb=1;var i=typeof Symbol<"u"&&Symbol,e=KP();return pf=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},pf}var mf,Wb;function Sw(){return Wb||(Wb=1,mf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),mf}var gf,qb;function Cw(){if(qb)return gf;qb=1;var i=yw();return gf=i.getPrototypeOf||null,gf}var vf,Kb;function ZP(){if(Kb)return vf;Kb=1;var i="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",s=function(l,c){for(var d=[],u=0;u<l.length;u+=1)d[u]=l[u];for(var h=0;h<c.length;h+=1)d[h+l.length]=c[h];return d},r=function(l,c){for(var d=[],u=c,h=0;u<l.length;u+=1,h+=1)d[h]=l[u];return d},o=function(a,l){for(var c="",d=0;d<a.length;d+=1)c+=a[d],d+1<a.length&&(c+=l);return c};return vf=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(i+c);for(var d=r(arguments,1),u,h=function(){if(this instanceof u){var v=c.apply(this,s(d,arguments));return Object(v)===v?v:this}return c.apply(l,s(d,arguments))},f=t(0,c.length-d.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var g=function(){};g.prototype=c.prototype,u.prototype=new g,g.prototype=null}return u},vf}var bf,Jb;function oh(){if(Jb)return bf;Jb=1;var i=ZP();return bf=Function.prototype.bind||i,bf}var yf,Zb;function Fg(){return Zb||(Zb=1,yf=Function.prototype.call),yf}var xf,Qb;function Aw(){return Qb||(Qb=1,xf=Function.pro Line truncated
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),l=["%","/","?",";","#"].concat(a),c=["/","?","#"],d=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=ak();function v(T,E,S){if(T&&typeof T=="object"&&T instanceof e)return T;var C=new e;return C.parse(T,E,S),C}e.prototype.parse=function(T,E,S){if(typeof T!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var C=T.indexOf("?"),M=C!==-1&&C<T.indexOf("#")?"?":"#",I=T.split(M),P=/\\/g;I[0]=I[0].replace(P,"/"),T=I.join(M);var R=T;if(R=R.trim(),!S&&T.split("#").length===1){var N=s.exec(R);if(N)return this.path=R,this.href=R,this.pathname=N[1],N[2]?(this.search=N[2],E?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var $=t.exec(R);if($){$=$[0];var j=$.toLowerCase();this.protocol=j,R=R.substr($.length)}if(S||$||R.match(/^\/\/[^@/]+@[^@/]+/)){var U=R.substr(0,2)==="//";U&&!($&&p[$])&&(R=R.substr(2),this.slashes=!0)}if(!p[$]&&(U||$&&!m[$])){for(var Y=-1,B=0;B<c.length;B++){var D=R.indexOf(c[B]);D!==-1&&(Y===-1||D<Y)&&(Y=D)}var O,F;Y===-1?F=R.lastIndexOf("@"):F=R.lastIndexOf("@",Y),F!==-1&&(O=R.slice(0,F),R=R.slice(F+1),this.auth=decodeURIComponent(O)),Y=-1;for(var B=0;B<l.length;B++){var D=R.indexOf(l[B]);D!==-1&&(Y===-1||D<Y)&&(Y=D)}Y===-1&&(Y=R.length),this.host=R.slice(0,Y),R=R.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var X=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!X)for(var z=this.hostname.split(/\./),B=0,q=z.length;B<q;B++){var J=z[B];if(J&&!J.match(u)){for(var ae="",ce=0,ve=J.length;ce<ve;ce++)J.charCodeAt(ce)>127?ae+="x":ae+=J[ce];if(!ae.match(u)){var Ce=z.slice(0,B),oe=z.slice(B+1),Ae=J.match(h);Ae&&(Ce.push(Ae[1]),oe.unshift(Ae[2])),oe.length&&(R="/"+oe.join(".")+R),this.hostname=Ce.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),X||(this.hostname=i.toASCII(this.hostname));var W=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+W,this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!f[j])for(var B=0,q=a.length;B<q;B++){var ne=a[B];if(R.indexOf(ne)!==-1){var ie=encodeURIComponent(ne);ie===ne&&(ie=escape(ne)),R=R.split(ne).join(ie)}}var G=R.indexOf("#");G!==-1&&(this.hash=R.substr(G),R=R.slice(0,G));var V=R.indexOf("?");if(V!==-1?(this.search=R.substr(V),this.query=R.substr(V+1),E&&(this.query=g.parse(this.query)),R=R.slice(0,V)):E&&(this.search="",this.query={}),R&&(this.pathname=R),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var W=this.pathname||"",k=this.search||"";this.path=W+k}return this.href=this.format(),this};function y(T){return typeof T=="string"&&(T=v(T)),T instanceof e?T.format():e.prototype.format.call(T)}e.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var E=this.protocol||"",S=this.pathname||"",C=this.hash||"",M=!1,I="";this.host?M=T+this.host:this.hostname&&(M=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(M+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(I=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var P=this.search||I&&"?"+I||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||m[E])&&M!==!1?(M="//"+(M||""),S&&S.charAt(0)!=="/"&&(S="/"+S)):M||(M=""),C&&C.charAt(0)!=="#"&&(C="#"+C),P&&P.charAt(0)!=="?"&&(P="?"+P),S=S.replace(/[?#]/g,function(R){return encodeURIComponent(R)}),P=P.replace("#","%23"),E+M+S+P+C};function b(T,E){return v(T,!1,!0).resolve(E)}e.prototype.resolve=function(T){return this.resolveObject(v(T,!1,!0)).format()};function x(T,E){return T?v(T,!1,!0).resolveObject(E):E}return e.prototype.resolveObject=function(T){if(typeof T=="string"){var E=new e;E.parse(T,!1,!0),T=E}for(var S=new e,C=Object.keys(this),M=0;M<C.length;M++){var I=C[M];S[I]=this[I]}if(S.hash=T.hash,T.href==="")return S.href=S.format(),S;if(T.slashes&&!T.protocol){for(var P=Object.keys(T),R=0;R<P.length;R++){var N=P[R];N!=="protocol"&&(S[N]=T[N])}return m[S.protocol]&&S.hostname&&!S.pathname&&(S.pathname="/",S.path=S.pathname),S.href=S.format(),S}if(T.protocol&&T.protocol!==S.protocol){if(!m[T.protocol]){for(var $=Object.keys(T),j=0;j<$.length;j++){var U=$[j];S[U]=T[U]}return S.href=S.format(),S}if(S.protocol=T.protocol,!T.host&&!p[T.protocol]){for(var q=(T.pathname||"").split("/");q.length&&!(T.host=q.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),q[0]!==""&&q.unshift(""),q.length<2&&q.unshift(""),S.pathname=q.join("/")}else S.pathname=T.pathname;if(S.search=T.search,S.query=T.query,S.host=T.host||"",S.auth=T.auth,S.hostname=T.hostname||T.host,S.port=T.port,S.pathname||S.search){var Line truncated
*/let pw;const rh=i=>pw=i,mw=Symbol();function ab(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function fP(){const i=bg(!0),e=i.run(()=>Re({}));let t=[],n=[];const s=Hr({install(r){rh(s),s._a=r,r.provide(mw,s),r.config.globalProperties.$pinia=s,n.forEach(o=>t.push(o)),n=[]},use(r){return this._a?t.push(r):n.push(r),this},_p:t,_a:null,_e:i,_s:new Map,state:e});return s}const Xp=()=>{};function lb(i,e,t,n=Xp){i.add(e);const s=()=>{i.delete(e)&&n()};return!t&&yg()&&u1(s),s}function ra(i,...e){i.forEach(t=>{t(...e)})}const pP=i=>i(),cb=Symbol(),Xh=Symbol();function Yp(i,e){i instanceof Map&&e instanceof Map?e.forEach((t,n)=>i.set(n,t)):i instanceof Set&&e instanceof Set&&e.forEach(i.add,i);for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t],s=i[t];ab(s)&&ab(n)&&Object.hasOwn(i,t)&&!Jt(n)&&!ur(n)?i[t]=Yp(s,n):i[t]=n}return i}const mP=Symbol();function gP(i){return!i||typeof i!="object"||!Object.hasOwn(i,mP)}const{assign:Rr}=Object;function vP(i){return!!(Jt(i)&&i.effect)}function bP(i,e,t,n){const{state:s,actions:r,getters:o}=e,a=t.state.value[i];let c;function l(){a||(t.state.value[i]=s?s():{});const d=p_(t.state.value[i]);return Rr(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Hr(Le(()=>{rh(t);const f=t._s.get(i);return o[h].call(f,f)})),u),{}))}return c=gw(i,l,e,t,n,!0),c}function gw(i,e,t={},n,s,r){let o;const a=Rr({actions:{}},t),c={deep:!0};let l,d,u=new Set,h=new Set,f;const p=n.state.value[i];!r&&!p&&(n.state.value[i]={});let m;function g(S){let C;l=d=!1,typeof S=="function"?(S(n.state.value[i]),C={type:"patch function",storeId:i,events:f}):(Yp(n.state.value[i],S),C={type:"patch object",payload:S,storeId:i,events:f});const M=m=Symbol();tl().then(()=>{m===M&&(l=!0)}),d=!0,ra(u,C,n.state.value[i])}const v=r?function(){const{state:C}=t,M=C?C():{};this.$patch(k=>{Rr(k,M)})}:Xp;function y(){o.stop(),u.clear(),h.clear(),n._s.delete(i)}const b=(S,C="")=>{if(cb in S)return S[Xh]=C,S;const M=function(){rh(n);const k=Array.from(arguments),P=new Set,I=new Set;function N(B){P.add(B)}function $(B){I.add(B)}ra(h,{args:k,name:M[Xh],store:T,after:N,onError:$});let j;try{j=S.apply(this&&this.$id===i?this:T,k)}catch(B){throw ra(I,B),B}return j instanceof Promise?j.then(B=>(ra(P,B),B)).catch(B=>(ra(I,B),Promise.reject(B))):(ra(P,j),j)};return M[cb]=!0,M[Xh]=C,M},x={_p:n,$id:i,$onAction:lb.bind(null,h),$patch:g,$reset:v,$subscribe(S,C={}){if(u.has(S))return Xp;const M=lb(u,S,C.detached,()=>k()),k=o.run(()=>Ut(()=>n.state.value[i],P=>{(C.flush==="sync"?d:l)&&S({storeId:i,type:"direct",events:f},P)},Rr({},c,C)));return M},$dispose:y},T=qo(x);n._s.set(i,T);const E=(n._a&&n._a.runWithContext||pP)(()=>n._e.run(()=>(o=bg()).run(()=>e({action:b}))));for(const S in E){const C=E[S];Jt(C)&&!vP(C)||ur(C)?r||(p&&gP(C)&&(Jt(C)?C.value=p[S]:((C instanceof Set||C instanceof Map)&&C.clear(),Yp(C,p[S]))),n.state.value[i][S]=C):typeof C=="function"&&(E[S]=b(C,S),a.actions[S]=C)}return Rr(T,E),Rr(Ft(T),E),Object.defineProperty(T,"$state",{get:()=>n.state.value[i],set:S=>{g(C=>{Rr(C,S)})}}),n._p.forEach(S=>{const C=o.run(()=>S({store:T,app:n._a,pinia:n,options:a}));Rr(T,C)}),p&&r&&t.hydrate&&t.hydrate(T.$state,p),l=!0,d=!0,T}/*! #__NO_SIDE_EFFECTS__ */function yP(i,e,t){let n;const s=typeof e=="function";n=s?t:e;function r(o,a){const c=A_();return o=o||(c?No(mw,null):null),o&&rh(o),o=pw,o._s.has(i)||(s?gw(i,e,n,o):bP(i,n,o)),o._s.get(i)}return r.$id=i,r}var Ko=(i=>(i[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",i))(Ko||{}),vw=(i=>(i[i.UNKNOWN=0]="UNKNOWN",i[i.WEBGL=1]="WEBGL",i[i.CANVAS=2]="CANVAS",i))(vw||{}),zp=(i=>(i[i.COLOR=16384]="COLOR",i[i.DEPTH=256]="DEPTH",i[i.STENCIL=1024]="STENCIL",i))(zp||{}),Qe=(i=>(i[i.NORMAL=0]="NORMAL",i[i.ADD=1]="ADD",i[i.MULTIPLY=2]="MULTIPLY",i[i.SCREEN=3]="SCREEN",i[i.OVERLAY=4]="OVERLAY",i[i.DARKEN=5]="DARKEN",i[i.LIGHTEN=6]="LIGHTEN",i[i.COLOR_DODGE=7]="COLOR_DODGE",i[i.COLOR_BURN=8]="COLOR_BURN",i[i.HARD_LIGHT=9]="HARD_LIGHT",i[i.SOFT_LIGHT=10]="SOFT_LIGHT",i[i.DIFFERENCE=11]="DIFFERENCE",i[i.EXCLUSION=12]="EXCLUSION",i[i.HUE=13]="HUE",i[i.SATURATION=14]="SATURATION",i[i.COLOR=15]="COLOR",i[i.LUMINOSITY=16]="LUMINOSITY",i[i.NORMAL_NPM=17]="NORMAL_NPM",i[i.ADD_NPM=18]="ADD_NPM",i[i.SCREEN_NPM=19]="SCREEN_NPM",i[i.NONE=20]="NONE",i[i.SRC_OVER=0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",i))(Qe||{}),Ps=(i=>(i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i))(Ps||{}),Ie=(i=>(i[i.RGBA=6408]="RGBA",i[i.RGB=6407]="RGB",i[i.RG=33319]="RG",i[i.RED=6403]="RED",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTELine truncated
`)>=0)return!1;return!0}function Oe(ue,fe){var nt;if(ue.indent===" ")nt=" ";else if(typeof ue.indent=="number"&&ue.indent>0)nt=C.call(Array(ue.indent+1)," ");else return null;return{base:nt,prev:C.call(Array(fe+1),nt)}}function ot(ue,fe){if(ue.length===0)return"";var nt=`
`+fe.prev+fe.base;return nt+C.call(ue,","+nt)+`
`+fe.prev}function Te(ue,fe){var nt=ce(ue),mt=[];if(nt){mt.length=ue.length;for(var lt=0;lt<ue.length;lt++)mt[lt]=H(ue,lt)?fe(ue[lt],ue):""}var ct=typeof I=="function"?I(ue):[],Kn;if($){Kn={};for(var _i=0;_i<ct.length;_i++)Kn["$"+ct[_i]]=ct[_i]}for(var wn in ue)H(ue,wn)&&(nt&&String(Number(wn))===wn&&wn<ue.length||$&&Kn["$"+wn]instanceof Symbol||(E.call(/[^\w$]/,wn)?mt.push(fe(wn,ue)+": "+fe(ue[wn],ue)):mt.push(wn+": "+fe(ue[wn],ue))));if(typeof I=="function")for(var gi=0;gi<ct.length;gi++)B.call(ue,ct[gi])&&mt.push("["+fe(ct[gi])+"]: "+fe(ue[ct[gi]],ue));return mt}return Gh}var Wh,_b;function LP(){if(_b)return Wh;_b=1;var i=oh(),e=il(),t=function(a,c,l){for(var d=a,u;(u=d.next)!=null;d=u)if(u.key===c)return d.next=u.next,l||(u.next=a.next,a.next=u),u},n=function(a,c){if(a){var l=t(a,c);return l&&l.value}},s=function(a,c,l){var d=t(a,c);d?d.value=l:a.next={key:c,next:a.next,value:l}},r=function(a,c){return a?!!t(a,c):!1},o=function(a,c){if(a)return t(a,c,!0)};return Wh=function(){var c,l={assert:function(d){if(!l.has(d))throw new e("Side channel does not contain "+i(d))},delete:function(d){var u=o(c,d);return u&&c&&!c.next&&(c=void 0),!!u},get:function(d){return n(c,d)},has:function(d){return r(c,d)},set:function(d,u){c||(c={next:void 0}),s(c,d,u)}};return l},Wh}var qh,Mb;function yw(){return Mb||(Mb=1,qh=Object),qh}var Kh,Pb;function DP(){return Pb||(Pb=1,Kh=Error),Kh}var Jh,kb;function OP(){return kb||(kb=1,Jh=EvalError),Jh}var Zh,Ib;function NP(){return Ib||(Ib=1,Zh=RangeError),Zh}var Qh,Rb;function $P(){return Rb||(Rb=1,Qh=ReferenceError),Qh}var ef,Fb;function BP(){return Fb||(Fb=1,ef=SyntaxError),ef}var tf,Lb;function UP(){return Lb||(Lb=1,tf=URIError),tf}var nf,Db;function VP(){return Db||(Db=1,nf=Math.abs),nf}var sf,Ob;function XP(){return Ob||(Ob=1,sf=Math.floor),sf}var rf,Nb;function YP(){return Nb||(Nb=1,rf=Math.max),rf}var of,$b;function zP(){return $b||($b=1,of=Math.min),of}var af,Bb;function jP(){return Bb||(Bb=1,af=Math.pow),af}var lf,Ub;function HP(){return Ub||(Ub=1,lf=Math.round),lf}var cf,Vb;function GP(){return Vb||(Vb=1,cf=Number.isNaN||function(e){return e!==e}),cf}var df,Xb;function WP(){if(Xb)return df;Xb=1;var i=GP();return df=function(t){return i(t)||t===0?t:t<0?-1:1},df}var uf,Yb;function qP(){return Yb||(Yb=1,uf=Object.getOwnPropertyDescriptor),uf}var hf,zb;function xw(){if(zb)return hf;zb=1;var i=qP();if(i)try{i([],"length")}catch{i=null}return hf=i,hf}var ff,jb;function ww(){if(jb)return ff;jb=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return ff=i,ff}var pf,Hb;function KP(){return Hb||(Hb=1,pf=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),pf}var mf,Gb;function JP(){if(Gb)return mf;Gb=1;var i=typeof Symbol<"u"&&Symbol,e=KP();return mf=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},mf}var gf,Wb;function Sw(){return Wb||(Wb=1,gf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gf}var vf,qb;function Cw(){if(qb)return vf;qb=1;var i=yw();return vf=i.getPrototypeOf||null,vf}var bf,Kb;function ZP(){if(Kb)return bf;Kb=1;var i="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",s=function(c,l){for(var d=[],u=0;u<c.length;u+=1)d[u]=c[u];for(var h=0;h<l.length;h+=1)d[h+c.length]=l[h];return d},r=function(c,l){for(var d=[],u=l,h=0;u<c.length;u+=1,h+=1)d[h]=c[u];return d},o=function(a,c){for(var l="",d=0;d<a.length;d+=1)l+=a[d],d+1<a.length&&(l+=c);return l};return bf=function(c){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(i+l);for(var d=r(arguments,1),u,h=function(){if(this instanceof u){var v=l.apply(this,s(d,arguments));return Object(v)===v?v:this}return l.apply(c,s(d,arguments))},f=t(0,l.length-d.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},bf}var yf,Jb;function ah(){if(Jb)return yf;Jb=1;var i=ZP();return yf=Function.prototype.bind||i,yf}var xf,Zb;function Fg(){return Zb||(Zb=1,xf=Function.prototype.call),xf}var wf,Qb;function Aw(){return Qb||(Qb=1,wf=Function.pro Line truncated
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),c=["%","/","?",";","#"].concat(a),l=["/","?","#"],d=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=ak();function v(T,E,S){if(T&&typeof T=="object"&&T instanceof e)return T;var C=new e;return C.parse(T,E,S),C}e.prototype.parse=function(T,E,S){if(typeof T!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var C=T.indexOf("?"),M=C!==-1&&C<T.indexOf("#")?"?":"#",k=T.split(M),P=/\\/g;k[0]=k[0].replace(P,"/"),T=k.join(M);var I=T;if(I=I.trim(),!S&&T.split("#").length===1){var N=s.exec(I);if(N)return this.path=I,this.href=I,this.pathname=N[1],N[2]?(this.search=N[2],E?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var $=t.exec(I);if($){$=$[0];var j=$.toLowerCase();this.protocol=j,I=I.substr($.length)}if(S||$||I.match(/^\/\/[^@/]+@[^@/]+/)){var B=I.substr(0,2)==="//";B&&!($&&p[$])&&(I=I.substr(2),this.slashes=!0)}if(!p[$]&&(B||$&&!m[$])){for(var Y=-1,U=0;U<l.length;U++){var D=I.indexOf(l[U]);D!==-1&&(Y===-1||D<Y)&&(Y=D)}var L,R;Y===-1?R=I.lastIndexOf("@"):R=I.lastIndexOf("@",Y),R!==-1&&(L=I.slice(0,R),I=I.slice(R+1),this.auth=decodeURIComponent(L)),Y=-1;for(var U=0;U<c.length;U++){var D=I.indexOf(c[U]);D!==-1&&(Y===-1||D<Y)&&(Y=D)}Y===-1&&(Y=I.length),this.host=I.slice(0,Y),I=I.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var X=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!X)for(var z=this.hostname.split(/\./),U=0,K=z.length;U<K;U++){var Z=z[U];if(Z&&!Z.match(u)){for(var ae="",ce=0,ve=Z.length;ce<ve;ce++)Z.charCodeAt(ce)>127?ae+="x":ae+=Z[ce];if(!ae.match(u)){var we=z.slice(0,U),re=z.slice(U+1),Ee=Z.match(h);Ee&&(we.push(Ee[1]),re.unshift(Ee[2])),re.length&&(I="/"+re.join(".")+I),this.hostname=we.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),X||(this.hostname=i.toASCII(this.hostname));var q=this.port?":"+this.port:"",J=this.hostname||"";this.host=J+q,this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),I[0]!=="/"&&(I="/"+I))}if(!f[j])for(var U=0,K=a.length;U<K;U++){var ie=a[U];if(I.indexOf(ie)!==-1){var se=encodeURIComponent(ie);se===ie&&(se=escape(ie)),I=I.split(ie).join(se)}}var G=I.indexOf("#");G!==-1&&(this.hash=I.substr(G),I=I.slice(0,G));var H=I.indexOf("?");if(H!==-1?(this.search=I.substr(H),this.query=I.substr(H+1),E&&(this.query=g.parse(this.query)),I=I.slice(0,H)):E&&(this.search="",this.query={}),I&&(this.pathname=I),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",O=this.search||"";this.path=q+O}return this.href=this.format(),this};function y(T){return typeof T=="string"&&(T=v(T)),T instanceof e?T.format():e.prototype.format.call(T)}e.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var E=this.protocol||"",S=this.pathname||"",C=this.hash||"",M=!1,k="";this.host?M=T+this.host:this.hostname&&(M=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(M+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(k=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var P=this.search||k&&"?"+k||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||m[E])&&M!==!1?(M="//"+(M||""),S&&S.charAt(0)!=="/"&&(S="/"+S)):M||(M=""),C&&C.charAt(0)!=="#"&&(C="#"+C),P&&P.charAt(0)!=="?"&&(P="?"+P),S=S.replace(/[?#]/g,function(I){return encodeURIComponent(I)}),P=P.replace("#","%23"),E+M+S+P+C};function b(T,E){return v(T,!1,!0).resolve(E)}e.prototype.resolve=function(T){return this.resolveObject(v(T,!1,!0)).format()};function x(T,E){return T?v(T,!1,!0).resolveObject(E):E}return e.prototype.resolveObject=function(T){if(typeof T=="string"){var E=new e;E.parse(T,!1,!0),T=E}for(var S=new e,C=Object.keys(this),M=0;M<C.length;M++){var k=C[M];S[k]=this[k]}if(S.hash=T.hash,T.href==="")return S.href=S.format(),S;if(T.slashes&&!T.protocol){for(var P=Object.keys(T),I=0;I<P.length;I++){var N=P[I];N!=="protocol"&&(S[N]=T[N])}return m[S.protocol]&&S.hostname&&!S.pathname&&(S.pathname="/",S.path=S.pathname),S.href=S.format(),S}if(T.protocol&&T.protocol!==S.protocol){if(!m[T.protocol]){for(var $=Object.keys(T),j=0;j<$.length;j++){var B=$[j];S[B]=T[B]}return S.href=S.format(),S}if(S.protocol=T.protocol,!T.host&&!p[T.protocol]){for(var K=(T.pathname||"").split("/");K.length&&!(T.host=K.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),K[0]!==""&&K.unshift(""),K.length<2&&K.unshift(""),S.pathname=K.join("/")}else S.pathname=T.pathname;if(S.search=T.search,S.query=T.query,S.host=T.host||"",S.auth=T.auth,S.hostname=T.hostname||T.host,S.port=T.port,S.pathname||S.search){var Line truncated
Deprecated since v${i}`):(n=n.split(`
`).splice(t).join(`
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}
Deprecated since v${i}`),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
Deprecated since v${i}`),console.warn(n))),v0[e]=!0}function Xi(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function ml(i){return i.split("?")[0].split("#")[0]}function ck(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dk(i,e,t){return i.replace(new RegExp(ck(e),"g"),t)}function uk(i,e){let t="",n=0,s=-1,r=0,o=-1;for(let a=0;a<=i.length;++a){if(a<i.length)o=i.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(s===a-1||r===1))if(s!==a-1&&r===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const l=t.lastIndexOf("/");if(l!==t.length-1){l===-1?(t="",n=0):(t=t.slice(0,l),n=t.length-1-t.lastIndexOf("/")),s=a,r=0;continue}}else if(t.length===2||t.length===1){t="",n=0,s=a,r=0;continue}}}else t.length>0?t+=`/${i.slice(s+1,a)}`:t=i.slice(s+1,a),n=a-s-1;s=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const pn={toPosix(i){return dk(i,"\\","/")},isUrl(i){return/^https?:/.test(this.toPosix(i))},isDataUrl(i){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(i)},isBlobUrl(i){return i.startsWith("blob:")},hasProtocol(i){return/^[^/:]+:/.test(this.toPosix(i))},getProtocol(i){Xi(i),i=this.toPosix(i);const e=/^file:\/\/\//.exec(i);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(i);return t?t[0]:""},toAbsolute(i,e,t){if(Xi(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const n=ml(this.toPosix(e??Ue.ADAPTER.getBaseUrl())),s=ml(this.toPosix(t??this.rootname(n)));return i=this.toPosix(i),i.startsWith("/")?pn.join(s,i.slice(1)):this.isAbsolute(i)?i:this.join(n,i)},normalize(i){if(Xi(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let e="";const t=i.startsWith("/");this.hasProtocol(i)&&(e=this.rootname(i),i=i.slice(e.length));const n=i.endsWith("/");return i=uk(i),i.length>0&&n&&(i+="/"),t?`/${i}`:e+i},isAbsolute(i){return Xi(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let e;for(let t=0;t<i.length;++t){const n=i[t];if(Xi(n),n.length>0)if(e===void 0)e=n;else{const s=i[t-1]??"";this.joinExtensions.includes(this.extname(s).toLowerCase())?e+=`/../${n}`:e+=`/${n}`}}return e===void 0?".":this.normalize(e)},dirname(i){if(Xi(i),i.length===0)return".";i=this.toPosix(i);let e=i.charCodeAt(0);const t=e===47;let n=-1,s=!0;const r=this.getProtocol(i),o=i;i=i.slice(r.length);for(let a=i.length-1;a>=1;--a)if(e=i.charCodeAt(a),e===47){if(!s){n=a;break}}else s=!1;return n===-1?t?"/":this.isUrl(o)?r+i:r:t&&n===1?"//":r+i.slice(0,n)},rootname(i){Xi(i),i=this.toPosix(i);let e="";if(i.startsWith("/")?e="/":e=this.getProtocol(i),this.isUrl(i)){const t=i.indexOf("/",e.length);t!==-1?e=i.slice(0,t):e=i,e.endsWith("/")||(e+="/")}return e},basename(i,e){Xi(i),e&&Xi(e),i=ml(this.toPosix(i));let t=0,n=-1,s=!0,r;if(e!==void 0&&e.length>0&&e.length<=i.length){if(e.length===i.length&&e===i)return"";let o=e.length-1,a=-1;for(r=i.length-1;r>=0;--r){const l=i.charCodeAt(r);if(l===47){if(!s){t=r+1;break}}else a===-1&&(s=!1,a=r+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(n=r):(o=-1,n=a))}return t===n?n=a:n===-1&&(n=i.length),i.slice(t,n)}for(r=i.length-1;r>=0;--r)if(i.charCodeAt(r)===47){if(!s){t=r+1;break}}else n===-1&&(s=!1,n=r+1);return n===-1?"":i.slice(t,n)},extname(i){Xi(i),i=ml(this.toPosix(i));let e=-1,t=0,n=-1,s=!0,r=0;for(let o=i.length-1;o>=0;--o){const a=i.charCodeAt(o);if(a===47){if(!s){t=o+1;break}continue}n===-1&&(s=!1,n=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||n===-1||r===0||r===1&&e===n-1&&e===t+1?"":i.slice(e,n)},parse(i){Xi(i);const e={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return e;i=ml(this.toPosix(i));let t=i.charCodeAt(0);const n=this.isAbsolute(i);let s;e.root=this.rootname(i),n||this.hasProtocol(i)?s=1:s=0;let r=-1,o=0,a=-1,l=!0,c=i.length-1,d=0;for(;c>=s;--c){if(t=i.charCodeAt(c),t===47){if(!l){o=c+1;break}continue}a===-1&&(l=!1,a=c+1),t===46?r===-1?r=c:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||a===-1||d===0||d===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&n?e.base=e.name=i.slice(1,a):e.base=e.name=i.slice(o,a)):(o===0&&n?(e.name=i.slice(1,r),e.base=i.slice(1,a)):(e.name=i.slice(o,r),e.base=i.slice(o,a)),e.ext=i.slice(r,a)),e.dir=this.dirname(i),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let Nf;async function hk(){return Nf??(Nf=(async()=>{var r;const i=document.createElement("canvas").getContext("webgl");if(!i)return Fn.UNPACK;const e=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=!1,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Line truncated
Deprecated since v${i}`),console.warn(n))),v0[e]=!0}function Xi(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function gl(i){return i.split("?")[0].split("#")[0]}function ck(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dk(i,e,t){return i.replace(new RegExp(ck(e),"g"),t)}function uk(i,e){let t="",n=0,s=-1,r=0,o=-1;for(let a=0;a<=i.length;++a){if(a<i.length)o=i.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(s===a-1||r===1))if(s!==a-1&&r===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",n=0):(t=t.slice(0,c),n=t.length-1-t.lastIndexOf("/")),s=a,r=0;continue}}else if(t.length===2||t.length===1){t="",n=0,s=a,r=0;continue}}}else t.length>0?t+=`/${i.slice(s+1,a)}`:t=i.slice(s+1,a),n=a-s-1;s=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const pn={toPosix(i){return dk(i,"\\","/")},isUrl(i){return/^https?:/.test(this.toPosix(i))},isDataUrl(i){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(i)},isBlobUrl(i){return i.startsWith("blob:")},hasProtocol(i){return/^[^/:]+:/.test(this.toPosix(i))},getProtocol(i){Xi(i),i=this.toPosix(i);const e=/^file:\/\/\//.exec(i);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(i);return t?t[0]:""},toAbsolute(i,e,t){if(Xi(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const n=gl(this.toPosix(e??Xe.ADAPTER.getBaseUrl())),s=gl(this.toPosix(t??this.rootname(n)));return i=this.toPosix(i),i.startsWith("/")?pn.join(s,i.slice(1)):this.isAbsolute(i)?i:this.join(n,i)},normalize(i){if(Xi(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let e="";const t=i.startsWith("/");this.hasProtocol(i)&&(e=this.rootname(i),i=i.slice(e.length));const n=i.endsWith("/");return i=uk(i),i.length>0&&n&&(i+="/"),t?`/${i}`:e+i},isAbsolute(i){return Xi(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let e;for(let t=0;t<i.length;++t){const n=i[t];if(Xi(n),n.length>0)if(e===void 0)e=n;else{const s=i[t-1]??"";this.joinExtensions.includes(this.extname(s).toLowerCase())?e+=`/../${n}`:e+=`/${n}`}}return e===void 0?".":this.normalize(e)},dirname(i){if(Xi(i),i.length===0)return".";i=this.toPosix(i);let e=i.charCodeAt(0);const t=e===47;let n=-1,s=!0;const r=this.getProtocol(i),o=i;i=i.slice(r.length);for(let a=i.length-1;a>=1;--a)if(e=i.charCodeAt(a),e===47){if(!s){n=a;break}}else s=!1;return n===-1?t?"/":this.isUrl(o)?r+i:r:t&&n===1?"//":r+i.slice(0,n)},rootname(i){Xi(i),i=this.toPosix(i);let e="";if(i.startsWith("/")?e="/":e=this.getProtocol(i),this.isUrl(i)){const t=i.indexOf("/",e.length);t!==-1?e=i.slice(0,t):e=i,e.endsWith("/")||(e+="/")}return e},basename(i,e){Xi(i),e&&Xi(e),i=gl(this.toPosix(i));let t=0,n=-1,s=!0,r;if(e!==void 0&&e.length>0&&e.length<=i.length){if(e.length===i.length&&e===i)return"";let o=e.length-1,a=-1;for(r=i.length-1;r>=0;--r){const c=i.charCodeAt(r);if(c===47){if(!s){t=r+1;break}}else a===-1&&(s=!1,a=r+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(n=r):(o=-1,n=a))}return t===n?n=a:n===-1&&(n=i.length),i.slice(t,n)}for(r=i.length-1;r>=0;--r)if(i.charCodeAt(r)===47){if(!s){t=r+1;break}}else n===-1&&(s=!1,n=r+1);return n===-1?"":i.slice(t,n)},extname(i){Xi(i),i=gl(this.toPosix(i));let e=-1,t=0,n=-1,s=!0,r=0;for(let o=i.length-1;o>=0;--o){const a=i.charCodeAt(o);if(a===47){if(!s){t=o+1;break}continue}n===-1&&(s=!1,n=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||n===-1||r===0||r===1&&e===n-1&&e===t+1?"":i.slice(e,n)},parse(i){Xi(i);const e={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return e;i=gl(this.toPosix(i));let t=i.charCodeAt(0);const n=this.isAbsolute(i);let s;e.root=this.rootname(i),n||this.hasProtocol(i)?s=1:s=0;let r=-1,o=0,a=-1,c=!0,l=i.length-1,d=0;for(;l>=s;--l){if(t=i.charCodeAt(l),t===47){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),t===46?r===-1?r=l:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||a===-1||d===0||d===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&n?e.base=e.name=i.slice(1,a):e.base=e.name=i.slice(o,a)):(o===0&&n?(e.name=i.slice(1,r),e.base=i.slice(1,a)):(e.name=i.slice(o,r),e.base=i.slice(o,a)),e.ext=i.slice(r,a)),e.dir=this.dirname(i),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let $f;async function hk(){return $f??($f=(async()=>{var r;const i=document.createElement("canvas").getContext("webgl");if(!i)return Fn.UNPACK;const e=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=!1,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Line truncated
`);function Fk(i){let e="";for(let t=0;t<i;++t)t>0&&(e+=`
else `),t<i-1&&(e+=`if(test == ${t}.0){}`);return e}function Lk(i,e){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const n=Rk.replace(/%forloop%/gi,Fk(i));if(e.shaderSource(t,n),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))i=i/2|0;else break}return i}const Xf=0,Yf=1,zf=2,jf=3,Hf=4,Gf=5;class $s{constructor(){this.data=0,this.blendMode=Qe.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Xf)}set blend(e){!!(this.data&1<<Xf)!==e&&(this.data^=1<<Xf)}get offsets(){return!!(this.data&1<<Yf)}set offsets(e){!!(this.data&1<<Yf)!==e&&(this.data^=1<<Yf)}get culling(){return!!(this.data&1<<zf)}set culling(e){!!(this.data&1<<zf)!==e&&(this.data^=1<<zf)}get depthTest(){return!!(this.data&1<<jf)}set depthTest(e){!!(this.data&1<<jf)!==e&&(this.data^=1<<jf)}get depthMask(){return!!(this.data&1<<Gf)}set depthMask(e){!!(this.data&1<<Gf)!==e&&(this.data^=1<<Gf)}get clockwiseFrontFace(){return!!(this.data&1<<Hf)}set clockwiseFrontFace(e){!!(this.data&1<<Hf)!==e&&(this.data^=1<<Hf)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==Qe.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new $s;return e.depthTest=!1,e.blend=!0,e}}$s.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const qp=[];function Ow(i,e){if(!i)return null;let t="";if(typeof i=="string"){const n=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);n&&(t=n[1].toLowerCase())}for(let n=qp.length-1;n>=0;--n){const s=qp[n];if(s.test&&s.test(i,t))return new s(i,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class ns{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,n,s,r,o,a,l){if(arguments.length>8)throw new Error("max arguments reached");const{name:c,items:d}=this;this._aliasCount++;for(let u=0,h=d.length;u<h;u++)d[u][c](e,t,n,s,r,o,a,l);return d===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(ns.prototype,{dispatch:{value:ns.prototype.emit},run:{value:ns.prototype.emit}});class sc{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new ns("setRealSize"),this.onUpdate=new ns("update"),this.onError=new ns("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(e,t,n){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(e,t){return!1}}class ah extends sc{constructor(e,t){const{width:n,height:s}=t||{};if(!n||!s)throw new Error("BufferResource width or height invalid");super(n,s),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,n){const s=e.gl;s.pixelStorei(s.UNPACK_ALIGNMENT,this.unpackAlignment),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===Fn.UNPACK);const r=t.realWidth,o=t.realHeight;return n.width===r&&n.height===o?s.texSubImage2D(t.target,0,0,0,r,o,t.format,n.type,this.data):(n.width=r,n.height=o,s.texImage2D(t.target,0,n.internalFormat,r,o,0,t.format,n.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const Dk={scaleMode:Ki.NEAREST,alphaMode:Fn.NPM},Kp=class va extends Cc{constructor(e=null,t=null){super(),t=Object.assign({},va.defaultOptions,t);const{alphaMode:n,mipmap:s,anisotropicLevel:r,scaleMode:o,width:a,height:l,wrapMode:c,format:d,type:u,target:h,resolution: Line truncated
else `),t<i-1&&(e+=`if(test == ${t}.0){}`);return e}function Lk(i,e){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const n=Rk.replace(/%forloop%/gi,Fk(i));if(e.shaderSource(t,n),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))i=i/2|0;else break}return i}const Yf=0,zf=1,jf=2,Hf=3,Gf=4,Wf=5;class $s{constructor(){this.data=0,this.blendMode=Qe.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Yf)}set blend(e){!!(this.data&1<<Yf)!==e&&(this.data^=1<<Yf)}get offsets(){return!!(this.data&1<<zf)}set offsets(e){!!(this.data&1<<zf)!==e&&(this.data^=1<<zf)}get culling(){return!!(this.data&1<<jf)}set culling(e){!!(this.data&1<<jf)!==e&&(this.data^=1<<jf)}get depthTest(){return!!(this.data&1<<Hf)}set depthTest(e){!!(this.data&1<<Hf)!==e&&(this.data^=1<<Hf)}get depthMask(){return!!(this.data&1<<Wf)}set depthMask(e){!!(this.data&1<<Wf)!==e&&(this.data^=1<<Wf)}get clockwiseFrontFace(){return!!(this.data&1<<Gf)}set clockwiseFrontFace(e){!!(this.data&1<<Gf)!==e&&(this.data^=1<<Gf)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==Qe.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new $s;return e.depthTest=!1,e.blend=!0,e}}$s.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Kp=[];function Ow(i,e){if(!i)return null;let t="";if(typeof i=="string"){const n=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);n&&(t=n[1].toLowerCase())}for(let n=Kp.length-1;n>=0;--n){const s=Kp[n];if(s.test&&s.test(i,t))return new s(i,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class ns{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,n,s,r,o,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:d}=this;this._aliasCount++;for(let u=0,h=d.length;u<h;u++)d[u][l](e,t,n,s,r,o,a,c);return d===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(ns.prototype,{dispatch:{value:ns.prototype.emit},run:{value:ns.prototype.emit}});class rc{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new ns("setRealSize"),this.onUpdate=new ns("update"),this.onError=new ns("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(e,t,n){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(e,t){return!1}}class lh extends rc{constructor(e,t){const{width:n,height:s}=t||{};if(!n||!s)throw new Error("BufferResource width or height invalid");super(n,s),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,n){const s=e.gl;s.pixelStorei(s.UNPACK_ALIGNMENT,this.unpackAlignment),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===Fn.UNPACK);const r=t.realWidth,o=t.realHeight;return n.width===r&&n.height===o?s.texSubImage2D(t.target,0,0,0,r,o,t.format,n.type,this.data):(n.width=r,n.height=o,s.texImage2D(t.target,0,n.internalFormat,r,o,0,t.format,n.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const Dk={scaleMode:Ki.NEAREST,alphaMode:Fn.NPM},Jp=class va extends Cc{constructor(e=null,t=null){super(),t=Object.assign({},va.defaultOptions,t);const{alphaMode:n,mipmap:s,anisotropicLevel:r,scaleMode:o,width:a,height:c,wrapMode:l,format:d,type:u,target:h,resolution: Line truncated
uniform sampler2D uSampler;
@@ -48,7 +48,7 @@ void main(void){
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`;function F0(i,e,t){const n=i.createShader(e);return i.shaderSource(n,t),i.compileShader(n),n}function Wf(i){const e=new Array(i);for(let t=0;t<e.length;t++)e[t]=!1;return e}function Bw(i,e){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return Wf(2*e);case"bvec3":return Wf(3*e);case"bvec4":return Wf(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const La=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
`;function F0(i,e,t){const n=i.createShader(e);return i.shaderSource(n,t),i.compileShader(n),n}function qf(i){const e=new Array(i);for(let t=0;t<e.length;t++)e[t]=!1;return e}function Bw(i,e){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return qf(2*e);case"bvec3":return qf(3*e);case"bvec4":return qf(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const La=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
if(uv["${i}"] !== ud["${i}"].value)
{
ud["${i}"].value = uv["${i}"]
@@ -314,18 +314,18 @@ void main(void){
renderer.shader.syncUniformBufferGroup(uv.${s}, '${s}');
`):t.push(`
renderer.shader.syncUniformGroup(uv.${s}, syncData);
`));continue}const o=i.uniforms[s];let a=!1;for(let l=0;l<La.length;l++)if(La[l].test(r,o)){t.push(La[l].code(s,o)),a=!0;break}if(!a){const l=(r.size===1&&!r.isArray?Hk:Gk)[r.type].replace("location",`ud["${s}"].location`);t.push(`
`));continue}const o=i.uniforms[s];let a=!1;for(let c=0;c<La.length;c++)if(La[c].test(r,o)){t.push(La[c].code(s,o)),a=!0;break}if(!a){const c=(r.size===1&&!r.isArray?Hk:Gk)[r.type].replace("location",`ud["${s}"].location`);t.push(`
cu = ud["${s}"];
cv = cu.value;
v = uv["${s}"];
${l};`)}}return new Function("ud","uv","renderer","syncData",t.join(`
`))}const Uw={};let aa=Uw;function qk(){if(aa===Uw||aa!=null&&aa.isContextLost()){const i=Ue.ADAPTER.createCanvas();let e;Ue.PREFER_ENV>=Ko.WEBGL2&&(e=i.getContext("webgl2",{})),e||(e=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),aa=e}return aa}let jc;function Kk(){if(!jc){jc=Di.MEDIUM;const i=qk();if(i&&i.getShaderPrecisionFormat){const e=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);e&&(jc=e.precision?Di.HIGH:Di.MEDIUM)}}return jc}function L0(i,e){const t=i.getShaderSource(e).split(`
`).map((c,d)=>`${d}: ${c}`),n=i.getShaderInfoLog(e),s=n.split(`
`),r={},o=s.map(c=>parseFloat(c.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(c=>c&&!r[c]?(r[c]=!0,!0):!1),a=[""];o.forEach(c=>{t[c-1]=`%c${t[c-1]}%c`,a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const l=t.join(`
`);a[0]=l,console.error(n),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function Jk(i,e,t,n){i.getProgramParameter(e,i.LINK_STATUS)||(i.getShaderParameter(t,i.COMPILE_STATUS)||L0(i,t),i.getShaderParameter(n,i.COMPILE_STATUS)||L0(i,n),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(e)))}const Zk={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 Vw(i){return Zk[i]}let Hc=null;const D0={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 Xw(i,e){if(!Hc){const t=Object.keys(D0);Hc={};for(let n=0;n<t.length;++n){const s=t[n];Hc[i[s]]=D0[s]}}return Hc[e]}function O0(i,e,t){if(i.substring(0,9)!=="precision"){let n=e;return e===Di.HIGH&&t!==Di.HIGH&&(n=Di.MEDIUM),`precision ${n} float;
${i}`}else if(t!==Di.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let gl;function Qk(){if(typeof gl=="boolean")return gl;try{gl=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{gl=!1}return gl}let eI=0;const Gc={},em=class ba{constructor(e,t,n="pixi-shader",s={}){this.extra={},this.id=eI++,this.vertexSrc=e||ba.defaultVertexSrc,this.fragmentSrc=t||ba.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=s,this.vertexSrc.substring(0,8)!=="#version"&&(n=n.replace(/\s+/g,"-"),Gc[n]?(Gc[n]++,n+=`-${Gc[n]}`):Gc[n]=1,this.vertexSrc=`#define SHADER_NAME ${n}
${c};`)}}return new Function("ud","uv","renderer","syncData",t.join(`
`))}const Uw={};let aa=Uw;function qk(){if(aa===Uw||aa!=null&&aa.isContextLost()){const i=Xe.ADAPTER.createCanvas();let e;Xe.PREFER_ENV>=Ko.WEBGL2&&(e=i.getContext("webgl2",{})),e||(e=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),aa=e}return aa}let jc;function Kk(){if(!jc){jc=Di.MEDIUM;const i=qk();if(i&&i.getShaderPrecisionFormat){const e=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);e&&(jc=e.precision?Di.HIGH:Di.MEDIUM)}}return jc}function L0(i,e){const t=i.getShaderSource(e).split(`
`).map((l,d)=>`${d}: ${l}`),n=i.getShaderInfoLog(e),s=n.split(`
`),r={},o=s.map(l=>parseFloat(l.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(l=>l&&!r[l]?(r[l]=!0,!0):!1),a=[""];o.forEach(l=>{t[l-1]=`%c${t[l-1]}%c`,a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const c=t.join(`
`);a[0]=c,console.error(n),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function Jk(i,e,t,n){i.getProgramParameter(e,i.LINK_STATUS)||(i.getShaderParameter(t,i.COMPILE_STATUS)||L0(i,t),i.getShaderParameter(n,i.COMPILE_STATUS)||L0(i,n),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(e)))}const Zk={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 Vw(i){return Zk[i]}let Hc=null;const D0={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 Xw(i,e){if(!Hc){const t=Object.keys(D0);Hc={};for(let n=0;n<t.length;++n){const s=t[n];Hc[i[s]]=D0[s]}}return Hc[e]}function O0(i,e,t){if(i.substring(0,9)!=="precision"){let n=e;return e===Di.HIGH&&t!==Di.HIGH&&(n=Di.MEDIUM),`precision ${n} float;
${i}`}else if(t!==Di.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let vl;function Qk(){if(typeof vl=="boolean")return vl;try{vl=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{vl=!1}return vl}let eI=0;const Gc={},tm=class ba{constructor(e,t,n="pixi-shader",s={}){this.extra={},this.id=eI++,this.vertexSrc=e||ba.defaultVertexSrc,this.fragmentSrc=t||ba.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=s,this.vertexSrc.substring(0,8)!=="#version"&&(n=n.replace(/\s+/g,"-"),Gc[n]?(Gc[n]++,n+=`-${Gc[n]}`):Gc[n]=1,this.vertexSrc=`#define SHADER_NAME ${n}
${this.vertexSrc}`,this.fragmentSrc=`#define SHADER_NAME ${n}
${this.fragmentSrc}`,this.vertexSrc=O0(this.vertexSrc,ba.defaultVertexPrecision,Di.HIGH),this.fragmentSrc=O0(this.fragmentSrc,ba.defaultFragmentPrecision,Kk())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return jk}static get defaultFragmentSrc(){return zk}static from(e,t,n){const s=e+t;let r=M0[s];return r||(M0[s]=r=new ba(e,t,n)),r}};em.defaultVertexPrecision=Di.HIGH,em.defaultFragmentPrecision=nr.apple.device?Di.HIGH:Di.MEDIUM;let ks=em,tI=0;class is{constructor(e,t,n){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=tI++,this.static=!!t,this.ubo=!!n,e instanceof Kt?(this.buffer=e,this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Kt(new Float32Array(1)),this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,n){if(!this.ubo)this.uniforms[e]=new is(t,n);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,n){return new is(e,t,n)}static uboFrom(e,t){return new is(e,t??!0,!0)}}class ss{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof is?this.uniformGroup=t:this.uniformGroup=new is(t):this.uniformGroup=new is({}),this.disposeRunner=new ns("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const n in t.uniforms){const s=t.uniforms[n];if(s.group===!0&&this.checkUniformExists(e,s))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,n){const s=ks.from(e,t);return new ss(s,n)}}class Yw{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const n=new Int32Array(e);for(let r=0;r<e;r++)n[r]=r;this.defaultGroupCache[e]=is.from({uSamplers:n},!0);let s=this.fragTemplate;s=s.replace(/%count%/gi,`${e}`),s=s.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new ks(this.vertexSrc,s)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new Yt,default:this.defaultGroupCache[e]};return new ss(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
${this.fragmentSrc}`,this.vertexSrc=O0(this.vertexSrc,ba.defaultVertexPrecision,Di.HIGH),this.fragmentSrc=O0(this.fragmentSrc,ba.defaultFragmentPrecision,Kk())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return jk}static get defaultFragmentSrc(){return zk}static from(e,t,n){const s=e+t;let r=M0[s];return r||(M0[s]=r=new ba(e,t,n)),r}};tm.defaultVertexPrecision=Di.HIGH,tm.defaultFragmentPrecision=nr.apple.device?Di.HIGH:Di.MEDIUM;let ks=tm,tI=0;class is{constructor(e,t,n){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=tI++,this.static=!!t,this.ubo=!!n,e instanceof Kt?(this.buffer=e,this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Kt(new Float32Array(1)),this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,n){if(!this.ubo)this.uniforms[e]=new is(t,n);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,n){return new is(e,t,n)}static uboFrom(e,t){return new is(e,t??!0,!0)}}class ss{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof is?this.uniformGroup=t:this.uniformGroup=new is(t):this.uniformGroup=new is({}),this.disposeRunner=new ns("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const n in t.uniforms){const s=t.uniforms[n];if(s.group===!0&&this.checkUniformExists(e,s))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,n){const s=ks.from(e,t);return new ss(s,n)}}class Yw{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const n=new Int32Array(e);for(let r=0;r<e;r++)n[r]=r;this.defaultGroupCache[e]=is.from({uSamplers:n},!0);let s=this.fragTemplate;s=s.replace(/%count%/gi,`${e}`),s=s.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new ks(this.vertexSrc,s)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new Yt,default:this.defaultGroupCache[e]};return new ss(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
`,t+=`
`;for(let n=0;n<e;n++)n>0&&(t+=`
else `),n<e-1&&(t+=`if(vTextureId < ${n}.5)`),t+=`
@@ -333,7 +333,7 @@ else `),n<e-1&&(t+=`if(vTextureId < ${n}.5)`),t+=`
color = texture2D(uSamplers[${n}], vTextureCoord);`,t+=`
}`;return t+=`
`,t+=`
`,t}}class tm{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let e=0;e<this.count;e++)this.elements[e]=null;this.count=0}}function nI(){return!nr.apple.device}function iI(i){let e=!0;const t=Ue.ADAPTER.getNavigator();if(nr.tablet||nr.phone){if(nr.apple.device){const n=t.userAgent.match(/OS (\d+)_(\d+)?/);n&&parseInt(n[1],10)<11&&(e=!1)}if(nr.android.device){const n=t.userAgent.match(/Android\s([0-9.]*)/);n&&parseInt(n[1],10)<7&&(e=!1)}}return e?i:4}class uh{constructor(e){this.renderer=e}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(e){}}var sI=`varying vec2 vTextureCoord;
`,t}}class nm{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let e=0;e<this.count;e++)this.elements[e]=null;this.count=0}}function nI(){return!nr.apple.device}function iI(i){let e=!0;const t=Xe.ADAPTER.getNavigator();if(nr.tablet||nr.phone){if(nr.apple.device){const n=t.userAgent.match(/OS (\d+)_(\d+)?/);n&&parseInt(n[1],10)<11&&(e=!1)}if(nr.android.device){const n=t.userAgent.match(/Android\s([0-9.]*)/);n&&parseInt(n[1],10)<7&&(e=!1)}}return e?i:4}class hh{constructor(e){this.renderer=e}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(e){}}var sI=`varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
uniform sampler2D uSamplers[%count%];
@@ -364,7 +364,7 @@ void main(void){
vTextureId = aTextureId;
vColor = aColor * tint;
}
`;const El=class ji extends uh{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=Nw,this.vertexSize=6,this.state=$s.for2d(),this.size=ji.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),e.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??iI(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??nI(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return yt("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return rI}static get defaultFragmentTemplate(){return sI}setShaderGenerator({vertex:e=ji.defaultVertexSrc,fragment:t=ji.defaultFragmentTemplate}={}){this.shaderGenerator=new Yw(e,t)}contextChange(){const e=this.renderer.gl;Ue.PREFER_ENV===Ko.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),ji.defaultMaxTextures),this.maxTextures=Lk(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=ji,n=this.size/4,s=Math.floor(n/this.maxTextures)+1;for(;e.length<n;)e.push(new Jp);for(;t.length<s;)t.push(new tm);for(let r=0;r<this.maxTextures;r++)this._tempBoundTextures[r]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=ji._textureArrayPool,s=this.renderer.batch,r=this._tempBoundTextures,o=this.renderer.textureGC.count;let a=++rt._globalBatch,l=0,c=n[0],d=0;s.copyBoundTextures(r,t);for(let u=0;u<this._bufferSize;++u){const h=e[u];e[u]=null,h._batchEnabled!==a&&(c.count>=t&&(s.boundArray(c,r,a,t),this.buildDrawCalls(c,d,u),d=u,c=n[++l],++a),h._batchEnabled=a,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(s.boundArray(c,r,a,t),this.buildDrawCalls(c,d,this._bufferSize),++l,++a);for(let u=0;u<r.length;u++)r[u]=null;rt._globalBatch=a}buildDrawCalls(e,t,n){const{_bufferedElements:s,_attributeBuffer:r,_indexBuffer:o,vertexSize:a}=this,l=ji._drawCallPool;let c=this._dcIndex,d=this._aIndex,u=this._iIndex,h=l[c];h.start=this._iIndex,h.texArray=e;for(let f=t;f<n;++f){const p=s[f],m=p._texture.baseTexture,g=Fw[m.alphaMode?1:0][p.blendMode];s[f]=null,t<f&&h.blend!==g&&(h.size=u-h.start,t=f,h=l[++c],h.texArray=e,h.start=u),this.packInterleavedGeometry(p,r,o,d,u),d+=p.vertexData.length/2*a,u+=p.indices.length,h.blend=g}t<n&&(h.size=u-h.start,++c),this._dcIndex=c,this._aIndex=d,this._iIndex=u}bindAndClearTexArray(e){const t=this.renderer.texture;for(let n=0;n<e.count;n++)t.bind(e.elements[n],e.ids[n]),e.elements[n]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:n}=this;ji.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:n}=this.renderer,s=ji._drawCallPool;let r=null;for(let o=0;o<e;o++){const{texArray:a,type:l,size:c,start:d,blend:u}=s[o];r!==a&&(r=a,this.bindAndClearTexArray(a)),this.state.blendMode=u,n.set(this.state),t.drawElements(l,c,t.UNSIGNED_SHORT,d*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),ji.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
`;const _l=class ji extends hh{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=Nw,this.vertexSize=6,this.state=$s.for2d(),this.size=ji.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),e.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??iI(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??nI(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return yt("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return rI}static get defaultFragmentTemplate(){return sI}setShaderGenerator({vertex:e=ji.defaultVertexSrc,fragment:t=ji.defaultFragmentTemplate}={}){this.shaderGenerator=new Yw(e,t)}contextChange(){const e=this.renderer.gl;Xe.PREFER_ENV===Ko.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),ji.defaultMaxTextures),this.maxTextures=Lk(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=ji,n=this.size/4,s=Math.floor(n/this.maxTextures)+1;for(;e.length<n;)e.push(new Zp);for(;t.length<s;)t.push(new nm);for(let r=0;r<this.maxTextures;r++)this._tempBoundTextures[r]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=ji._textureArrayPool,s=this.renderer.batch,r=this._tempBoundTextures,o=this.renderer.textureGC.count;let a=++st._globalBatch,c=0,l=n[0],d=0;s.copyBoundTextures(r,t);for(let u=0;u<this._bufferSize;++u){const h=e[u];e[u]=null,h._batchEnabled!==a&&(l.count>=t&&(s.boundArray(l,r,a,t),this.buildDrawCalls(l,d,u),d=u,l=n[++c],++a),h._batchEnabled=a,h.touched=o,l.elements[l.count++]=h)}l.count>0&&(s.boundArray(l,r,a,t),this.buildDrawCalls(l,d,this._bufferSize),++c,++a);for(let u=0;u<r.length;u++)r[u]=null;st._globalBatch=a}buildDrawCalls(e,t,n){const{_bufferedElements:s,_attributeBuffer:r,_indexBuffer:o,vertexSize:a}=this,c=ji._drawCallPool;let l=this._dcIndex,d=this._aIndex,u=this._iIndex,h=c[l];h.start=this._iIndex,h.texArray=e;for(let f=t;f<n;++f){const p=s[f],m=p._texture.baseTexture,g=Fw[m.alphaMode?1:0][p.blendMode];s[f]=null,t<f&&h.blend!==g&&(h.size=u-h.start,t=f,h=c[++l],h.texArray=e,h.start=u),this.packInterleavedGeometry(p,r,o,d,u),d+=p.vertexData.length/2*a,u+=p.indices.length,h.blend=g}t<n&&(h.size=u-h.start,++l),this._dcIndex=l,this._aIndex=d,this._iIndex=u}bindAndClearTexArray(e){const t=this.renderer.texture;for(let n=0;n<e.count;n++)t.bind(e.elements[n],e.ids[n]),e.elements[n]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:n}=this;ji.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:n}=this.renderer,s=ji._drawCallPool;let r=null;for(let o=0;o<e;o++){const{texArray:a,type:c,size:l,start:d,blend:u}=s[o];r!==a&&(r=a,this.bindAndClearTexArray(a)),this.state.blendMode=u,n.set(this.state),t.drawElements(c,l,t.UNSIGNED_SHORT,d*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),ji.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
uniform sampler2D uSampler;
@@ -397,7 +397,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const nm=class _l extends ss{constructor(e,t,n){const s=ks.from(e||_l.defaultVertexSrc,t||_l.defaultFragmentSrc);super(s,n),this.padding=0,this.resolution=_l.defaultResolution,this.multisample=_l.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new $s}apply(e,t,n,s,r){e.applyFilter(this,t,n,s)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return aI}static get defaultFragmentSrc(){return oI}};nm.defaultResolution=1,nm.defaultMultisample=yn.NONE;let oi=nm;class iu{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Ot(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:n,backgroundAlpha:s}=e,r=n??t;r!==void 0&&(this.color=r),this.alpha=s}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}iu.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},iu.extension={type:[Ne.RendererSystem,Ne.CanvasRendererSystem],name:"background"};je.add(iu);class zw{constructor(e){this.renderer=e,this.emptyRenderer=new uh(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:n}=this.renderer.texture;for(let s=t-1;s>=0;--s)e[s]=n[s]||null,e[s]&&(e[s]._batchLocation=s)}boundArray(e,t,n,s){const{elements:r,ids:o,count:a}=e;let l=0;for(let c=0;c<a;c++){const d=r[c],u=d._batchLocation;if(u>=0&&u<s&&t[u]===d){o[c]=u;continue}for(;l<s;){const h=t[l];if(h&&h._batchEnabled===n&&h._batchLocation===l){l++;continue}o[c]=l,d._batchLocation=l,t[l]=d;break}}}destroy(){this.renderer=null}}zw.extension={type:Ne.RendererSystem,name:"batch"};je.add(zw);let N0=0;class su{constructor(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,n=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:n,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let n;if(Ue.PREFER_ENV>=Ko.WEBGL2&&(n=e.getContext("webgl2",t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_ha Line truncated
`;const im=class Ml extends ss{constructor(e,t,n){const s=ks.from(e||Ml.defaultVertexSrc,t||Ml.defaultFragmentSrc);super(s,n),this.padding=0,this.resolution=Ml.defaultResolution,this.multisample=Ml.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new $s}apply(e,t,n,s,r){e.applyFilter(this,t,n,s)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return aI}static get defaultFragmentSrc(){return oI}};im.defaultResolution=1,im.defaultMultisample=yn.NONE;let oi=im;class iu{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Ot(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:n,backgroundAlpha:s}=e,r=n??t;r!==void 0&&(this.color=r),this.alpha=s}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}iu.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},iu.extension={type:[$e.RendererSystem,$e.CanvasRendererSystem],name:"background"};He.add(iu);class zw{constructor(e){this.renderer=e,this.emptyRenderer=new hh(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:n}=this.renderer.texture;for(let s=t-1;s>=0;--s)e[s]=n[s]||null,e[s]&&(e[s]._batchLocation=s)}boundArray(e,t,n,s){const{elements:r,ids:o,count:a}=e;let c=0;for(let l=0;l<a;l++){const d=r[l],u=d._batchLocation;if(u>=0&&u<s&&t[u]===d){o[l]=u;continue}for(;c<s;){const h=t[c];if(h&&h._batchEnabled===n&&h._batchLocation===c){c++;continue}o[l]=c,d._batchLocation=c,t[c]=d;break}}}destroy(){this.renderer=null}}zw.extension={type:$e.RendererSystem,name:"batch"};He.add(zw);let N0=0;class su{constructor(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,n=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:n,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let n;if(Xe.PREFER_ENV>=Ko.WEBGL2&&(n=e.getContext("webgl2",t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_ha Line truncated
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
@@ -438,7 +438,7 @@ void main(void)
vTextureCoord = aTextureCoord;
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
}
`;class pI extends oi{constructor(e,t,n){let s=null;typeof e!="string"&&t===void 0&&n===void 0&&(s=e,e=void 0,t=void 0,n=void 0),super(e||fI,t||hI,n),this.maskSprite=s,this.maskMatrix=new Yt}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,n,s){const r=this._maskSprite,o=r._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new $g(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,n,s))}}class mI{constructor(e=null){this.type=Cn.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=oi.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Cn.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class Zw{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let n=t;if(!n.isMaskData){const r=this.maskDataPool.pop()||new mI;r.pooled=!0,r.maskObject=t,n=r}const s=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(n.copyCountersOrReset(s),n._colorMask=s?s._colorMask:15,n.autoDetect&&this.detect(n),n._target=e,n.type!==Cn.SPRITE&&this.maskStack.push(n),n.enabled)switch(n.type){case Cn.SCISSOR:this.renderer.scissor.push(n);break;case Cn.STENCIL:this.renderer.stencil.push(n);break;case Cn.SPRITE:n.copyCountersOrReset(null),this.pushSpriteMask(n);break;case Cn.COLOR:this.pushColorMask(n);break}n.type===Cn.SPRITE&&this.maskStack.push(n)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case Cn.SCISSOR:this.renderer.scissor.pop(t);break;case Cn.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case Cn.SPRITE:this.popSpriteMask(t);break;case Cn.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const n=this.maskStack[this.maskStack.length-1];n.type===Cn.SPRITE&&n._filters&&(n._filters[0].maskSprite=n.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=Cn.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=Cn.SCISSOR:e.type=Cn.STENCIL:e.type=Cn.COLOR}pushSpriteMask(e){const{maskObject:t}=e,n=e._target;let s=e._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new pI])),s[0].resolution=e.resolution,s[0].multisample=e.multisample,s[0].maskSprite=t;const r=n.filterArea;n.filterArea=t.getBounds(!0),this.renderer.filter.push(n,s),n.filterArea=r,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,n=e._colorMask=t&e.colorMask;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}popColorMask(e){const t=e._colorMask,n=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}destroy(){this.renderer=null}}Zw.extension={type:Ne.RendererSystem,name:"mask"};je.add(Zw);class Qw{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,n=this.getStackLength();this.maskStack=e;const s=this.getStackLength();s!==n&&(s===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const U0=new Yt,V0=[],eS=class Md extends Qw{constructor(e){super(e),this.glConst=Ue.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:s}=this,r=s.renderTexture,o=n.getBounds(!0,V0.pop()??new ht);this.roundFrameToPixels(o,r.current?r.current.resolution:s.resolution,r.sourceFrame,r.destinationFrame,s.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static Line truncated
`;class pI extends oi{constructor(e,t,n){let s=null;typeof e!="string"&&t===void 0&&n===void 0&&(s=e,e=void 0,t=void 0,n=void 0),super(e||fI,t||hI,n),this.maskSprite=s,this.maskMatrix=new Yt}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,n,s){const r=this._maskSprite,o=r._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new $g(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,n,s))}}class mI{constructor(e=null){this.type=Cn.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=oi.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Cn.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class Zw{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let n=t;if(!n.isMaskData){const r=this.maskDataPool.pop()||new mI;r.pooled=!0,r.maskObject=t,n=r}const s=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(n.copyCountersOrReset(s),n._colorMask=s?s._colorMask:15,n.autoDetect&&this.detect(n),n._target=e,n.type!==Cn.SPRITE&&this.maskStack.push(n),n.enabled)switch(n.type){case Cn.SCISSOR:this.renderer.scissor.push(n);break;case Cn.STENCIL:this.renderer.stencil.push(n);break;case Cn.SPRITE:n.copyCountersOrReset(null),this.pushSpriteMask(n);break;case Cn.COLOR:this.pushColorMask(n);break}n.type===Cn.SPRITE&&this.maskStack.push(n)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case Cn.SCISSOR:this.renderer.scissor.pop(t);break;case Cn.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case Cn.SPRITE:this.popSpriteMask(t);break;case Cn.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const n=this.maskStack[this.maskStack.length-1];n.type===Cn.SPRITE&&n._filters&&(n._filters[0].maskSprite=n.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=Cn.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=Cn.SCISSOR:e.type=Cn.STENCIL:e.type=Cn.COLOR}pushSpriteMask(e){const{maskObject:t}=e,n=e._target;let s=e._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new pI])),s[0].resolution=e.resolution,s[0].multisample=e.multisample,s[0].maskSprite=t;const r=n.filterArea;n.filterArea=t.getBounds(!0),this.renderer.filter.push(n,s),n.filterArea=r,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,n=e._colorMask=t&e.colorMask;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}popColorMask(e){const t=e._colorMask,n=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}destroy(){this.renderer=null}}Zw.extension={type:$e.RendererSystem,name:"mask"};He.add(Zw);class Qw{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,n=this.getStackLength();this.maskStack=e;const s=this.getStackLength();s!==n&&(s===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const U0=new Yt,V0=[],eS=class Md extends Qw{constructor(e){super(e),this.glConst=Xe.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:s}=this,r=s.renderTexture,o=n.getBounds(!0,V0.pop()??new ht);this.roundFrameToPixels(o,r.current?r.current.resolution:s.resolution,r.sourceFrame,r.destinationFrame,s.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static Line truncated
data[offset] = v;
`,vec2:`
data[offset] = v[0];
@@ -484,9 +484,9 @@ void main(void)
var gl = renderer.gl
var index = 0;
var data = buffer.data;
`];for(let o=0;o<n.length;o++){const a=n[o],l=i.uniforms[a.data.name],c=a.data.name;let d=!1;for(let u=0;u<La.length;u++){const h=La[u];if(h.codeUbo&&h.test(a.data,l)){r.push(`offset = ${a.offset/4};`,La[u].codeUbo(a.data.name,l)),d=!0;break}}if(!d)if(a.data.size>1){const u=Vw(a.data.type),h=Math.max(oS[a.data.type]/16,1),f=u/h,p=(4-f%4)%4;r.push(`
cv = ud.${c}.value;
v = uv.${c};
`];for(let o=0;o<n.length;o++){const a=n[o],c=i.uniforms[a.data.name],l=a.data.name;let d=!1;for(let u=0;u<La.length;u++){const h=La[u];if(h.codeUbo&&h.test(a.data,c)){r.push(`offset = ${a.offset/4};`,La[u].codeUbo(a.data.name,c)),d=!0;break}}if(!d)if(a.data.size>1){const u=Vw(a.data.type),h=Math.max(oS[a.data.type]/16,1),f=u/h,p=(4-f%4)%4;r.push(`
cv = ud.${l}.value;
v = uv.${l};
offset = ${a.offset/4};
t = 0;
@@ -501,14 +501,14 @@ void main(void)
}
`)}else{const u=CI[a.data.type];r.push(`
cv = ud.${c}.value;
v = uv.${c};
cv = ud.${l}.value;
v = uv.${l};
offset = ${a.offset/4};
${u};
`)}}return r.push(`
renderer.buffer.update(buffer);
`),{size:s,syncFunc:new Function("ud","uv","renderer","syncData","buffer",r.join(`
`))}}let _I=0;const Kc={textureCount:0,uboCount:0};class aS{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=_I++}systemCheck(){if(!Qk())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const n=e.program,s=n.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==n&&(this.program=n,this.gl.useProgram(s.program)),t||(Kc.textureCount=0,Kc.uboCount=0,this.syncUniformGroup(e.uniformGroup,Kc)),s}setUniforms(e){const t=this.shader.program,n=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(n.uniformData,e,this.renderer)}syncUniformGroup(e,t){const n=this.getGlProgram();(!e.static||e.dirtyId!==n.uniformDirtyGroups[e.id])&&(n.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,n,t))}syncUniforms(e,t,n){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,n)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=Wk(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const n=this.getGlProgram();if(!e.static||e.dirtyId!==0||!n.uniformGroups[e.id]){e.dirtyId=0;const s=n.uniformGroups[e.id]||this.createSyncBufferGroup(e,n,t);e.buffer.update(),s(n.uniformData,e.uniforms,this.renderer,Kc,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,n.uniformBufferBindings[t])}createSyncBufferGroup(e,t,n){const{gl:s}=this.renderer;this.renderer.buffer.bind(e.buffer);const r=this.gl.getUniformBlockIndex(t.program,n);t.uniformBufferBindings[n]=this.shader.uniformBindCount,s.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;const o=this.getSignature(e,this.shader.program.uniformData,"ubo");let a=this._uboCache[o];if(a||(a=this._uboCache[o]=EI(e,this.shader.program.uniformData)),e.autoManage){const l=new Float32Array(a.size/4);e.buffer.update(l)}return t.uniformGroups[e.id]=a.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,n){const s=e.uniforms,r=[`${n}-`];for(const o in s)r.push(o),t[o]&&r.push(t[o].type);return r.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,n=e.program,s=wI(t,n);return n.glPrograms[this.renderer.CONTEXT_UID]=s,s}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}aS.extension={type:Ne.RendererSystem,name:"shader"};je.add(aS);class ru{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.3 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}ru.defaultOptions={hello:!1},ru.extension={type:[Ne.RendererSystem,Ne.CanvasRendererSystem],name:"startup"};je.add(ru);function MI(i,e=[]){return e[Qe.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD]=[i.ONE,i.ONE],e[Qe.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.NONE]=[0,0],e[Qe.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],e[Qe.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SRC_IN]=[i.DST_ALPHA,i.ZERO],e[Qe.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],e[Qe.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],e[Qe.DST_IN]=[i.ZERO,i.SRC_ALPHA],e[Qe.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],e[Qe.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],e}const PI=0,kI=1,II=2,RI=3,FI=4,LI=5,lS=class sm{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Qe.NONE,this._blendEq=!1,this.map=[],this.map[PI]=this.setBlend,this.map[kI]=this.setOffset,this.map[II]=this.setCullFace,this.map[RI]=this.setDepthTest,this.ma Line truncated
`))}}let _I=0;const Kc={textureCount:0,uboCount:0};class aS{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=_I++}systemCheck(){if(!Qk())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const n=e.program,s=n.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==n&&(this.program=n,this.gl.useProgram(s.program)),t||(Kc.textureCount=0,Kc.uboCount=0,this.syncUniformGroup(e.uniformGroup,Kc)),s}setUniforms(e){const t=this.shader.program,n=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(n.uniformData,e,this.renderer)}syncUniformGroup(e,t){const n=this.getGlProgram();(!e.static||e.dirtyId!==n.uniformDirtyGroups[e.id])&&(n.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,n,t))}syncUniforms(e,t,n){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,n)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=Wk(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const n=this.getGlProgram();if(!e.static||e.dirtyId!==0||!n.uniformGroups[e.id]){e.dirtyId=0;const s=n.uniformGroups[e.id]||this.createSyncBufferGroup(e,n,t);e.buffer.update(),s(n.uniformData,e.uniforms,this.renderer,Kc,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,n.uniformBufferBindings[t])}createSyncBufferGroup(e,t,n){const{gl:s}=this.renderer;this.renderer.buffer.bind(e.buffer);const r=this.gl.getUniformBlockIndex(t.program,n);t.uniformBufferBindings[n]=this.shader.uniformBindCount,s.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;const o=this.getSignature(e,this.shader.program.uniformData,"ubo");let a=this._uboCache[o];if(a||(a=this._uboCache[o]=EI(e,this.shader.program.uniformData)),e.autoManage){const c=new Float32Array(a.size/4);e.buffer.update(c)}return t.uniformGroups[e.id]=a.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,n){const s=e.uniforms,r=[`${n}-`];for(const o in s)r.push(o),t[o]&&r.push(t[o].type);return r.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,n=e.program,s=wI(t,n);return n.glPrograms[this.renderer.CONTEXT_UID]=s,s}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}aS.extension={type:$e.RendererSystem,name:"shader"};He.add(aS);class ru{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.3 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}ru.defaultOptions={hello:!1},ru.extension={type:[$e.RendererSystem,$e.CanvasRendererSystem],name:"startup"};He.add(ru);function MI(i,e=[]){return e[Qe.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD]=[i.ONE,i.ONE],e[Qe.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.NONE]=[0,0],e[Qe.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],e[Qe.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SRC_IN]=[i.DST_ALPHA,i.ZERO],e[Qe.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],e[Qe.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],e[Qe.DST_IN]=[i.ZERO,i.SRC_ALPHA],e[Qe.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],e[Qe.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],e}const PI=0,kI=1,II=2,RI=3,FI=4,LI=5,lS=class rm{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Qe.NONE,this._blendEq=!1,this.map=[],this.map[PI]=this.setBlend,this.map[kI]=this.setOffset,this.map[II]=this.setCullFace,this.map[RI]=this.setDepthTest,this.ma Line truncated
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -545,7 +545,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const XI=UI,pS=VI;class mS{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const n=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,n)}else{const n=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,n)}t>=yn.HIGH?this.multisample=yn.HIGH:t>=yn.MEDIUM?this.multisample=yn.MEDIUM:t>=yn.LOW?this.multisample=yn.LOW:this.multisample=yn.NONE}destroy(){}}mS.extension={type:Ne.RendererSystem,name:"_multisample"};je.add(mS);class YI{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class gS{constructor(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);t.bindBuffer(e.type,s.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:n,CONTEXT_UID:s}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[s]||this.createGLBuffer(e);this.boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,n){const{gl:s,CONTEXT_UID:r}=this;n=n||0;const o=e._glBuffers[r]||this.createGLBuffer(e);s.bindBufferRange(s.UNIFORM_BUFFER,t||0,o.buffer,n*256,256)}update(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);if(e._updateID!==s.updateID)if(s.updateID=e._updateID,t.bindBuffer(e.type,s.buffer),s.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;s.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,r)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const n=e._glBuffers[this.CONTEXT_UID],s=this.gl;e.disposeRunner.remove(this),n&&(t||s.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let n=0;n<t.length;n++)this.dispose(this.managedBuffers[t[n]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:n}=this;return e._glBuffers[t]=new YI(n.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}gS.extension={type:Ne.RendererSystem,name:"buffer"};je.add(gS);class vS{constructor(e){this.renderer=e}render(e,t){const n=this.renderer;let s,r,o,a;if(t&&(s=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!s,n.runners.prerender.emit(),n.emit("prerender"),n.projection.transform=o,!n.context.isLost){if(s||(this.lastObjectRendered=e),!a){const l=e.enableTempParent();e.updateTransform(),e.disableTempParent(l)}n.renderTexture.bind(s),n.batch.currentRenderer.start(),(r??n.background.clearBeforeRender)&&n.renderTexture.clear(),e.render(n),n.batch.currentRenderer.flush(),s&&(t.blit&&n.framebuffer.blit(),s.baseTexture.update()),n.runners.postrender.emit(),n.projection.transform=null,n.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}vS.extension={type:Ne.RendererSystem,name:"objectRenderer"};je.add(vS);const kd=class rm extends OI{constructor(e){super(),this.type=vw.WEBGL,e=Object.assign({},Ue.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new is({projectionMatrix:new Yt},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:rm.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(t),"useContextAlpha"in e&&(yt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=rm.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:fk()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return Line truncated
`;const XI=UI,pS=VI;class mS{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const n=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,n)}else{const n=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,n)}t>=yn.HIGH?this.multisample=yn.HIGH:t>=yn.MEDIUM?this.multisample=yn.MEDIUM:t>=yn.LOW?this.multisample=yn.LOW:this.multisample=yn.NONE}destroy(){}}mS.extension={type:$e.RendererSystem,name:"_multisample"};He.add(mS);class YI{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class gS{constructor(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);t.bindBuffer(e.type,s.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:n,CONTEXT_UID:s}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[s]||this.createGLBuffer(e);this.boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,n){const{gl:s,CONTEXT_UID:r}=this;n=n||0;const o=e._glBuffers[r]||this.createGLBuffer(e);s.bindBufferRange(s.UNIFORM_BUFFER,t||0,o.buffer,n*256,256)}update(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);if(e._updateID!==s.updateID)if(s.updateID=e._updateID,t.bindBuffer(e.type,s.buffer),s.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;s.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,r)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const n=e._glBuffers[this.CONTEXT_UID],s=this.gl;e.disposeRunner.remove(this),n&&(t||s.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let n=0;n<t.length;n++)this.dispose(this.managedBuffers[t[n]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:n}=this;return e._glBuffers[t]=new YI(n.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}gS.extension={type:$e.RendererSystem,name:"buffer"};He.add(gS);class vS{constructor(e){this.renderer=e}render(e,t){const n=this.renderer;let s,r,o,a;if(t&&(s=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!s,n.runners.prerender.emit(),n.emit("prerender"),n.projection.transform=o,!n.context.isLost){if(s||(this.lastObjectRendered=e),!a){const c=e.enableTempParent();e.updateTransform(),e.disableTempParent(c)}n.renderTexture.bind(s),n.batch.currentRenderer.start(),(r??n.background.clearBeforeRender)&&n.renderTexture.clear(),e.render(n),n.batch.currentRenderer.flush(),s&&(t.blit&&n.framebuffer.blit(),s.baseTexture.update()),n.runners.postrender.emit(),n.projection.transform=null,n.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}vS.extension={type:$e.RendererSystem,name:"objectRenderer"};He.add(vS);const kd=class om extends OI{constructor(e){super(),this.type=vw.WEBGL,e=Object.assign({},Xe.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new is({projectionMatrix:new Yt},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:om.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(t),"useContextAlpha"in e&&(yt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=om.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:fk()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return Line truncated
uniform sampler2D uSampler;
uniform float uAlpha;
@@ -555,7 +555,7 @@ void main(void)
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
}
`;class eR extends oi{constructor(e=1){super(XI,QI,{uAlpha:1}),this.alpha=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}const tR={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},nR=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
`);function iR(i){const e=tR[i],t=e.length;let n=nR,s="";const r="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let o;for(let a=0;a<i;a++){let l=r.replace("%index%",a.toString());o=a,a>=t&&(o=i-a-1),l=l.replace("%value%",e[o].toString()),s+=l,s+=`
`);function iR(i){const e=tR[i],t=e.length;let n=nR,s="";const r="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let o;for(let a=0;a<i;a++){let c=r.replace("%index%",a.toString());o=a,a>=t&&(o=i-a-1),c=c.replace("%value%",e[o].toString()),s+=c,s+=`
`}return n=n.replace("%blur%",s),n=n.replace("%size%",i.toString()),n}const sR=`
attribute vec2 aVertexPosition;
@@ -587,7 +587,7 @@ void main(void)
vec2 textureCoord = filterTextureCoord();
%blur%
}`;function rR(i,e){const t=Math.ceil(i/2);let n=sR,s="",r;e?r="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":r="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let o=0;o<i;o++){let a=r.replace("%index%",o.toString());a=a.replace("%sampleIndex%",`${o-(t-1)}.0`),s+=a,s+=`
`}return n=n.replace("%blur%",s),n=n.replace("%size%",i.toString()),n}class um extends oi{constructor(e,t=8,n=4,s=oi.defaultResolution,r=5){const o=rR(r,e),a=iR(r);super(o,a),this.horizontal=e,this.resolution=s,this._quality=0,this.quality=n,this.blur=t}apply(e,t,n,s){if(n?this.horizontal?this.uniforms.strength=1/n.width*(n.width/t.width):this.uniforms.strength=1/n.height*(n.height/t.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/t.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/t.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,t,n,s);else{const r=e.getFilterTexture(),o=e.renderer;let a=t,l=r;this.state.blend=!1,e.applyFilter(this,a,l,As.CLEAR);for(let c=1;c<this.passes-1;c++){e.bindAndClear(a,As.BLIT),this.uniforms.uSampler=l;const d=l;l=a,a=d,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,l,n,s),e.returnFilterTexture(r)}}get blur(){return this.strength}set blur(e){this.padding=1+Math.abs(e)*2,this.strength=e}get quality(){return this._quality}set quality(e){this._quality=e,this.passes=e}}class oR extends oi{constructor(e=8,t=4,n=oi.defaultResolution,s=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new um(!0,e,t,n,s),this.blurYFilter=new um(!1,e,t,n,s),this.resolution=n,this.quality=t,this.blur=e,this.repeatEdgePixels=!1}apply(e,t,n,s){const r=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(r&&o){const a=e.getFilterTexture();this.blurXFilter.apply(e,t,a,As.CLEAR),this.blurYFilter.apply(e,a,n,s),e.returnFilterTexture(a)}else o?this.blurYFilter.apply(e,t,n,s):this.blurXFilter.apply(e,t,n,s)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2}get blur(){return this.blurXFilter.blur}set blur(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(e){this.blurXFilter.quality=this.blurYFilter.quality=e}get blurX(){return this.blurXFilter.blur}set blurX(e){this.blurXFilter.blur=e,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(e){this.blurYFilter.blur=e,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(e){this.blurYFilter.blendMode=e}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(e){this._repeatEdgePixels=e,this.updatePadding()}}var aR=`varying vec2 vTextureCoord;
`}return n=n.replace("%blur%",s),n=n.replace("%size%",i.toString()),n}class hm extends oi{constructor(e,t=8,n=4,s=oi.defaultResolution,r=5){const o=rR(r,e),a=iR(r);super(o,a),this.horizontal=e,this.resolution=s,this._quality=0,this.quality=n,this.blur=t}apply(e,t,n,s){if(n?this.horizontal?this.uniforms.strength=1/n.width*(n.width/t.width):this.uniforms.strength=1/n.height*(n.height/t.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/t.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/t.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,t,n,s);else{const r=e.getFilterTexture(),o=e.renderer;let a=t,c=r;this.state.blend=!1,e.applyFilter(this,a,c,As.CLEAR);for(let l=1;l<this.passes-1;l++){e.bindAndClear(a,As.BLIT),this.uniforms.uSampler=c;const d=c;c=a,a=d,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,c,n,s),e.returnFilterTexture(r)}}get blur(){return this.strength}set blur(e){this.padding=1+Math.abs(e)*2,this.strength=e}get quality(){return this._quality}set quality(e){this._quality=e,this.passes=e}}class oR extends oi{constructor(e=8,t=4,n=oi.defaultResolution,s=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new hm(!0,e,t,n,s),this.blurYFilter=new hm(!1,e,t,n,s),this.resolution=n,this.quality=t,this.blur=e,this.repeatEdgePixels=!1}apply(e,t,n,s){const r=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(r&&o){const a=e.getFilterTexture();this.blurXFilter.apply(e,t,a,As.CLEAR),this.blurYFilter.apply(e,a,n,s),e.returnFilterTexture(a)}else o?this.blurYFilter.apply(e,t,n,s):this.blurXFilter.apply(e,t,n,s)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2}get blur(){return this.blurXFilter.blur}set blur(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(e){this.blurXFilter.quality=this.blurYFilter.quality=e}get blurX(){return this.blurXFilter.blur}set blurX(e){this.blurXFilter.blur=e,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(e){this.blurYFilter.blur=e,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(e){this.blurYFilter.blendMode=e}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(e){this._repeatEdgePixels=e,this.updatePadding()}}var aR=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float m[20];
uniform float uAlpha;
@@ -639,7 +639,7 @@ void main(void)
gl_FragColor = vec4(rgb, result.a);
}
`;class hm extends oi{constructor(){const e={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};super(pS,aR,e),this.alpha=1}_loadMatrix(e,t=!1){let n=e;t&&(this._multiply(n,this.uniforms.m,e),n=this._colorMatrix(n)),this.uniforms.m=n}_multiply(e,t,n){return e[0]=t[0]*n[0]+t[1]*n[5]+t[2]*n[10]+t[3]*n[15],e[1]=t[0]*n[1]+t[1]*n[6]+t[2]*n[11]+t[3]*n[16],e[2]=t[0]*n[2]+t[1]*n[7]+t[2]*n[12]+t[3]*n[17],e[3]=t[0]*n[3]+t[1]*n[8]+t[2]*n[13]+t[3]*n[18],e[4]=t[0]*n[4]+t[1]*n[9]+t[2]*n[14]+t[3]*n[19]+t[4],e[5]=t[5]*n[0]+t[6]*n[5]+t[7]*n[10]+t[8]*n[15],e[6]=t[5]*n[1]+t[6]*n[6]+t[7]*n[11]+t[8]*n[16],e[7]=t[5]*n[2]+t[6]*n[7]+t[7]*n[12]+t[8]*n[17],e[8]=t[5]*n[3]+t[6]*n[8]+t[7]*n[13]+t[8]*n[18],e[9]=t[5]*n[4]+t[6]*n[9]+t[7]*n[14]+t[8]*n[19]+t[9],e[10]=t[10]*n[0]+t[11]*n[5]+t[12]*n[10]+t[13]*n[15],e[11]=t[10]*n[1]+t[11]*n[6]+t[12]*n[11]+t[13]*n[16],e[12]=t[10]*n[2]+t[11]*n[7]+t[12]*n[12]+t[13]*n[17],e[13]=t[10]*n[3]+t[11]*n[8]+t[12]*n[13]+t[13]*n[18],e[14]=t[10]*n[4]+t[11]*n[9]+t[12]*n[14]+t[13]*n[19]+t[14],e[15]=t[15]*n[0]+t[16]*n[5]+t[17]*n[10]+t[18]*n[15],e[16]=t[15]*n[1]+t[16]*n[6]+t[17]*n[11]+t[18]*n[16],e[17]=t[15]*n[2]+t[16]*n[7]+t[17]*n[12]+t[18]*n[17],e[18]=t[15]*n[3]+t[16]*n[8]+t[17]*n[13]+t[18]*n[18],e[19]=t[15]*n[4]+t[16]*n[9]+t[17]*n[14]+t[18]*n[19]+t[19],e}_colorMatrix(e){const t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t}brightness(e,t){const n=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(n,t)}tint(e,t){const[n,s,r]=Ot.shared.setValue(e).toArray(),o=[n,0,0,0,0,0,s,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(o,t)}greyscale(e,t){const n=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(n,t)}blackAndWhite(e){const t=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(t,e)}hue(e,t){e=(e||0)/180*Math.PI;const n=Math.cos(e),s=Math.sin(e),r=Math.sqrt,o=1/3,a=r(o),l=n+(1-n)*o,c=o*(1-n)-a*s,d=o*(1-n)+a*s,u=o*(1-n)+a*s,h=n+o*(1-n),f=o*(1-n)-a*s,p=o*(1-n)-a*s,m=o*(1-n)+a*s,g=n+o*(1-n),v=[l,c,d,0,0,u,h,f,0,0,p,m,g,0,0,0,0,0,1,0];this._loadMatrix(v,t)}contrast(e,t){const n=(e||0)+1,s=-.5*(n-1),r=[n,0,0,0,s,0,n,0,0,s,0,0,n,0,s,0,0,0,1,0];this._loadMatrix(r,t)}saturate(e=0,t){const n=e*2/3+1,s=(n-1)*-.5,r=[n,s,s,0,0,s,n,s,0,0,s,s,n,0,0,0,0,0,1,0];this._loadMatrix(r,t)}desaturate(){this.saturate(-1)}negative(e){const t=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(t,e)}sepia(e){const t=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(t,e)}technicolor(e){const t=[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(t,e)}polaroid(e){const t=[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(t,e)}toBGR(e){const t=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(t,e)}kodachrome(e){const t=[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(t,e)}browni(e){const t=[.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(t,e)}vintage(e){const t=[.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(t,e)}colorTone(e,t,n,s,r){e=e||.2,t=t||.15,n=n||16770432,s=s||3375104;const o=Ot.shared,[a,l,c]=o.setValue(n).toArray(),[d,u,h]=o.setValue(s).toArray(),f=[.3,.59,.11,0,0,a,l,c,e,0,d,u,h,t,0,a-d,l-u,c-h,0,0];this._loadMatrix(f,r)}night(e,t){e=e||.1;const n=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(n,t)}predator(e,t){const n=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(n,t)}lsd(e){const t=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(t,e)}reset(){const e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)}get matrix(){return this.uniforms.m}set matrix(e){this.uniforms.m=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}hm.prototype.grayscale=hm.prototype.greyscale;var lR=`varying vec2 vFilterCoord;
`;class fm extends oi{constructor(){const e={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};super(pS,aR,e),this.alpha=1}_loadMatrix(e,t=!1){let n=e;t&&(this._multiply(n,this.uniforms.m,e),n=this._colorMatrix(n)),this.uniforms.m=n}_multiply(e,t,n){return e[0]=t[0]*n[0]+t[1]*n[5]+t[2]*n[10]+t[3]*n[15],e[1]=t[0]*n[1]+t[1]*n[6]+t[2]*n[11]+t[3]*n[16],e[2]=t[0]*n[2]+t[1]*n[7]+t[2]*n[12]+t[3]*n[17],e[3]=t[0]*n[3]+t[1]*n[8]+t[2]*n[13]+t[3]*n[18],e[4]=t[0]*n[4]+t[1]*n[9]+t[2]*n[14]+t[3]*n[19]+t[4],e[5]=t[5]*n[0]+t[6]*n[5]+t[7]*n[10]+t[8]*n[15],e[6]=t[5]*n[1]+t[6]*n[6]+t[7]*n[11]+t[8]*n[16],e[7]=t[5]*n[2]+t[6]*n[7]+t[7]*n[12]+t[8]*n[17],e[8]=t[5]*n[3]+t[6]*n[8]+t[7]*n[13]+t[8]*n[18],e[9]=t[5]*n[4]+t[6]*n[9]+t[7]*n[14]+t[8]*n[19]+t[9],e[10]=t[10]*n[0]+t[11]*n[5]+t[12]*n[10]+t[13]*n[15],e[11]=t[10]*n[1]+t[11]*n[6]+t[12]*n[11]+t[13]*n[16],e[12]=t[10]*n[2]+t[11]*n[7]+t[12]*n[12]+t[13]*n[17],e[13]=t[10]*n[3]+t[11]*n[8]+t[12]*n[13]+t[13]*n[18],e[14]=t[10]*n[4]+t[11]*n[9]+t[12]*n[14]+t[13]*n[19]+t[14],e[15]=t[15]*n[0]+t[16]*n[5]+t[17]*n[10]+t[18]*n[15],e[16]=t[15]*n[1]+t[16]*n[6]+t[17]*n[11]+t[18]*n[16],e[17]=t[15]*n[2]+t[16]*n[7]+t[17]*n[12]+t[18]*n[17],e[18]=t[15]*n[3]+t[16]*n[8]+t[17]*n[13]+t[18]*n[18],e[19]=t[15]*n[4]+t[16]*n[9]+t[17]*n[14]+t[18]*n[19]+t[19],e}_colorMatrix(e){const t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t}brightness(e,t){const n=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(n,t)}tint(e,t){const[n,s,r]=Ot.shared.setValue(e).toArray(),o=[n,0,0,0,0,0,s,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(o,t)}greyscale(e,t){const n=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(n,t)}blackAndWhite(e){const t=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(t,e)}hue(e,t){e=(e||0)/180*Math.PI;const n=Math.cos(e),s=Math.sin(e),r=Math.sqrt,o=1/3,a=r(o),c=n+(1-n)*o,l=o*(1-n)-a*s,d=o*(1-n)+a*s,u=o*(1-n)+a*s,h=n+o*(1-n),f=o*(1-n)-a*s,p=o*(1-n)-a*s,m=o*(1-n)+a*s,g=n+o*(1-n),v=[c,l,d,0,0,u,h,f,0,0,p,m,g,0,0,0,0,0,1,0];this._loadMatrix(v,t)}contrast(e,t){const n=(e||0)+1,s=-.5*(n-1),r=[n,0,0,0,s,0,n,0,0,s,0,0,n,0,s,0,0,0,1,0];this._loadMatrix(r,t)}saturate(e=0,t){const n=e*2/3+1,s=(n-1)*-.5,r=[n,s,s,0,0,s,n,s,0,0,s,s,n,0,0,0,0,0,1,0];this._loadMatrix(r,t)}desaturate(){this.saturate(-1)}negative(e){const t=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(t,e)}sepia(e){const t=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(t,e)}technicolor(e){const t=[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(t,e)}polaroid(e){const t=[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(t,e)}toBGR(e){const t=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(t,e)}kodachrome(e){const t=[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(t,e)}browni(e){const t=[.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(t,e)}vintage(e){const t=[.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(t,e)}colorTone(e,t,n,s,r){e=e||.2,t=t||.15,n=n||16770432,s=s||3375104;const o=Ot.shared,[a,c,l]=o.setValue(n).toArray(),[d,u,h]=o.setValue(s).toArray(),f=[.3,.59,.11,0,0,a,c,l,e,0,d,u,h,t,0,a-d,c-u,l-h,0,0];this._loadMatrix(f,r)}night(e,t){e=e||.1;const n=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(n,t)}predator(e,t){const n=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(n,t)}lsd(e){const t=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(t,e)}reset(){const e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)}get matrix(){return this.uniforms.m}set matrix(e){this.uniforms.m=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}fm.prototype.grayscale=fm.prototype.greyscale;var lR=`varying vec2 vFilterCoord;
varying vec2 vTextureCoord;
uniform vec2 scale;
@@ -885,8 +885,8 @@ void main()
gl_FragColor = color;
}
`;class mR extends oi{constructor(e=.5,t=Math.random()){super(pS,pR,{uNoise:0,uSeed:0}),this.noise=e,this.seed=t}get noise(){return this.uniforms.uNoise}set noise(e){this.uniforms.uNoise=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}}const Y0={AlphaFilter:eR,BlurFilter:oR,BlurFilterPass:um,ColorMatrixFilter:hm,DisplacementFilter:dR,FXAAFilter:fR,NoiseFilter:mR};Object.entries(Y0).forEach(([i,e])=>{Object.defineProperty(Y0,i,{get(){return yt("7.1.0",`filters.${i} has moved to ${i}`),e}})});class gR{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(ai.system.add(this.tickerUpdate,this,jo.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(ai.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const Yr=new gR;class Ac{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Ac.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pt,this.page=new Pt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,n){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,n,s,r){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class au extends Ac{constructor(){super(...arguments),this.client=new Pt,this.movement=new Pt,this.offset=new Pt,this.global=new Pt,this.screen=new Pt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,n,s,r,o,a,l,c,d,u,h,f,p,m){throw new Error("Method not implemented.")}}class Hi extends au{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class Da extends au{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Da.DOM_DELTA_PIXEL=0,Da.DOM_DELTA_LINE=1,Da.DOM_DELTA_PAGE=2;const vR=2048,bR=new Pt,Qf=new Pt;class yR{constructor(e){this.dispatch=new Cc,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerle Line truncated
${u}`)}});return await Promise.all(l),r?s[o[0].src]:s}async unload(e){const t=Wi(e,n=>({alias:[n],src:n})).map(async n=>{var o,a;const s=pn.toAbsolute(n.src),r=this.promiseCache[s];if(r){const l=await r.promise;delete this.promiseCache[s],(a=(o=r.parser)==null?void 0:o.unload)==null||a.call(o,l,n,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(e[t.name]&&console.warn(`[Assets] loadParser name conflict "${t.name}"`),{...e,[t.name]:t}),{})}}var Ei=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(Ei||{});const LR=".json",DR="application/json",OR={extension:{type:Ne.LoadParser,priority:Ei.Low},name:"loadJson",test(i){return il(i,DR)||fi(i,LR)},async load(i){return await(await Ue.ADAPTER.fetch(i)).json()}};je.add(OR);const NR=".txt",$R="text/plain",BR={name:"loadTxt",extension:{type:Ne.LoadParser,priority:Ei.Low},test(i){return il(i,$R)||fi(i,NR)},async load(i){return await(await Ue.ADAPTER.fetch(i)).text()}};je.add(BR);const UR=["normal","bold","100","200","300","400","500","600","700","800","900"],VR=[".ttf",".otf",".woff",".woff2"],XR=["font/ttf","font/otf","font/woff","font/woff2"],YR=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function zR(i){const e=pn.extname(i),t=pn.basename(i,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1));let n=t.length>0;for(const r of t)if(!r.match(YR)){n=!1;break}let s=t.join(" ");return n||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const jR=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function HR(i){return jR.test(i)?i:encodeURI(i)}const GR={extension:{type:Ne.LoadParser,priority:Ei.Low},name:"loadWebFont",test(i){return il(i,XR)||fi(i,VR)},async load(i,e){var n,s,r;const t=Ue.ADAPTER.getFontFaceSet();if(t){const o=[],a=((n=e.data)==null?void 0:n.family)??zR(i),l=((r=(s=e.data)==null?void 0:s.weights)==null?void 0:r.filter(d=>UR.includes(d)))??["normal"],c=e.data??{};for(let d=0;d<l.length;d++){const u=l[d],h=new FontFace(a,`url(${HR(i)})`,{...c,weight:u});await h.load(),t.add(h),o.push(h)}return o.length===1?o[0]:o}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(e=>Ue.ADAPTER.getFontFaceSet().delete(e))}};je.add(GR);const WR=`(function() {
`;class mR extends oi{constructor(e=.5,t=Math.random()){super(pS,pR,{uNoise:0,uSeed:0}),this.noise=e,this.seed=t}get noise(){return this.uniforms.uNoise}set noise(e){this.uniforms.uNoise=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}}const Y0={AlphaFilter:eR,BlurFilter:oR,BlurFilterPass:hm,ColorMatrixFilter:fm,DisplacementFilter:dR,FXAAFilter:fR,NoiseFilter:mR};Object.entries(Y0).forEach(([i,e])=>{Object.defineProperty(Y0,i,{get(){return yt("7.1.0",`filters.${i} has moved to ${i}`),e}})});class gR{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(ai.system.add(this.tickerUpdate,this,jo.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(ai.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const Yr=new gR;class Ac{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Ac.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pt,this.page=new Pt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,n){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,n,s,r){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class au extends Ac{constructor(){super(...arguments),this.client=new Pt,this.movement=new Pt,this.offset=new Pt,this.global=new Pt,this.screen=new Pt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,n,s,r,o,a,c,l,d,u,h,f,p,m){throw new Error("Method not implemented.")}}class Hi extends au{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class Da extends au{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Da.DOM_DELTA_PIXEL=0,Da.DOM_DELTA_LINE=1,Da.DOM_DELTA_PAGE=2;const vR=2048,bR=new Pt,ep=new Pt;class yR{constructor(e){this.dispatch=new Cc,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerle Line truncated
${u}`)}});return await Promise.all(c),r?s[o[0].src]:s}async unload(e){const t=Wi(e,n=>({alias:[n],src:n})).map(async n=>{var o,a;const s=pn.toAbsolute(n.src),r=this.promiseCache[s];if(r){const c=await r.promise;delete this.promiseCache[s],(a=(o=r.parser)==null?void 0:o.unload)==null||a.call(o,c,n,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(e[t.name]&&console.warn(`[Assets] loadParser name conflict "${t.name}"`),{...e,[t.name]:t}),{})}}var Ei=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(Ei||{});const LR=".json",DR="application/json",OR={extension:{type:$e.LoadParser,priority:Ei.Low},name:"loadJson",test(i){return sl(i,DR)||fi(i,LR)},async load(i){return await(await Xe.ADAPTER.fetch(i)).json()}};He.add(OR);const NR=".txt",$R="text/plain",BR={name:"loadTxt",extension:{type:$e.LoadParser,priority:Ei.Low},test(i){return sl(i,$R)||fi(i,NR)},async load(i){return await(await Xe.ADAPTER.fetch(i)).text()}};He.add(BR);const UR=["normal","bold","100","200","300","400","500","600","700","800","900"],VR=[".ttf",".otf",".woff",".woff2"],XR=["font/ttf","font/otf","font/woff","font/woff2"],YR=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function zR(i){const e=pn.extname(i),t=pn.basename(i,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1));let n=t.length>0;for(const r of t)if(!r.match(YR)){n=!1;break}let s=t.join(" ");return n||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const jR=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function HR(i){return jR.test(i)?i:encodeURI(i)}const GR={extension:{type:$e.LoadParser,priority:Ei.Low},name:"loadWebFont",test(i){return sl(i,XR)||fi(i,VR)},async load(i,e){var n,s,r;const t=Xe.ADAPTER.getFontFaceSet();if(t){const o=[],a=((n=e.data)==null?void 0:n.family)??zR(i),c=((r=(s=e.data)==null?void 0:s.weights)==null?void 0:r.filter(d=>UR.includes(d)))??["normal"],l=e.data??{};for(let d=0;d<c.length;d++){const u=c[d],h=new FontFace(a,`url(${HR(i)})`,{...l,weight:u});await h.load(),t.add(h),o.push(h)}return o.length===1?o[0]:o}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(e=>Xe.ADAPTER.getFontFaceSet().delete(e))}};He.add(GR);const WR=`(function() {
"use strict";
const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
async function checkImageBitmap() {
@@ -903,7 +903,7 @@ ${u}`)}});return await Promise.all(l),r?s[o[0].src]:s}async unload(e){const t=Wi
self.postMessage(result);
});
})();
`;let Oa=null,vm=class{constructor(){Oa||(Oa=URL.createObjectURL(new Blob([WR],{type:"application/javascript"}))),this.worker=new Worker(Oa)}};vm.revokeObjectURL=function(){Oa&&(URL.revokeObjectURL(Oa),Oa=null)};const qR=`(function() {
`;let Oa=null,bm=class{constructor(){Oa||(Oa=URL.createObjectURL(new Blob([WR],{type:"application/javascript"}))),this.worker=new Worker(Oa)}};bm.revokeObjectURL=function(){Oa&&(URL.revokeObjectURL(Oa),Oa=null)};const qR=`(function() {
"use strict";
async function loadImageBitmap(url) {
const response = await fetch(url);
@@ -929,8 +929,8 @@ ${u}`)}});return await Promise.all(l),r?s[o[0].src]:s}async unload(e){const t=Wi
}
};
})();
`;let Na=null;class MS{constructor(){Na||(Na=URL.createObjectURL(new Blob([qR],{type:"application/javascript"}))),this.worker=new Worker(Na)}}MS.revokeObjectURL=function(){Na&&(URL.revokeObjectURL(Na),Na=null)};let W0=0,ep;class KR{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(e=>{const{worker:t}=new vm;t.addEventListener("message",n=>{t.terminate(),vm.revokeObjectURL(),e(n.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){ep===void 0&&(ep=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<ep&&(this._createdWorkers++,e=new MS().worker,e.addEventListener("message",t=>{this.complete(t.data),this.returnWorker(t.target),this.next()})),e}returnWorker(e){this.workerPool.push(e)}complete(e){e.error!==void 0?this.resolveHash[e.uuid].reject(e.error):this.resolveHash[e.uuid].resolve(e.data),this.resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const n=new Promise((s,r)=>{this.queue.push({id:e,arguments:t,resolve:s,reject:r})});return this.next(),n}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),n=t.id;this.resolveHash[W0]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:W0++,id:n})}}const q0=new KR;function Tc(i,e,t){i.resource.internal=!0;const n=new tt(i),s=()=>{delete e.promiseCache[t],Mo.has(t)&&Mo.remove(t)};return n.baseTexture.once("destroyed",()=>{t in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),s())}),n.once("destroyed",()=>{i.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),s())}),n}const JR=[".jpeg",".jpg",".png",".webp",".avif"],ZR=["image/jpeg","image/png","image/webp","image/avif"];async function QR(i){const e=await Ue.ADAPTER.fetch(i);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const hh={name:"loadTextures",extension:{type:Ne.LoadParser,priority:Ei.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return il(i,ZR)||fi(i,JR)},async load(i,e,t){var a;const n=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let s;n?this.config.preferWorkers&&await q0.isImageBitmapSupported()?s=await q0.loadImageBitmap(i):s=await QR(i):s=await new Promise((l,c)=>{const d=new Image;d.crossOrigin=this.config.crossOrigin,d.src=i,d.complete?l(d):(d.onload=()=>l(d),d.onerror=u=>c(u))});const r={...e.data};r.resolution??(r.resolution=br(i)),n&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new rt(s,r);return o.resource.src=i,Tc(o,t,i)},unload(i){i.destroy(!0)}};je.add(hh);const e2=".svg",t2="image/svg+xml",n2={extension:{type:Ne.LoadParser,priority:Ei.High},name:"loadSVG",test(i){return il(i,t2)||fi(i,e2)},async testParse(i){return am.test(i)},async parse(i,e,t){var r;const n=new am(i,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await n.load();const s=new rt(n,{resolution:br(i),...e==null?void 0:e.data});return s.resource.src=e.src,Tc(s,t,e.src)},async load(i,e){return(await Ue.ADAPTER.fetch(i)).text()},unload:hh.unload};je.add(n2);const i2=[".mp4",".m4v",".webm",".ogv"],s2=["video/mp4","video/webm","video/ogg"],r2={name:"loadVideo",extension:{type:Ne.LoadParser,priority:Ei.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return il(i,s2)||fi(i,i2)},async load(i,e,t){var o;let n;const s=await(await Ue.ADAPTER.fetch(i)).blob(),r=URL.createObjectURL(s);try{const a={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(o=e==null?void 0:e.data)==null?void 0:o.resourceOptions,autoLoad:!0},l=new xS(r,a);await l.load();const c=new rt(l,{alphaMode:await hk(),resolution:br(i),...e==null?void 0:e.data});c.resource.src=i,n=Tc(c,t,i),n.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return n},unload(i){i.destroy(!0)}};je.add(r2);class o2{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId= Line truncated
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),o.push({alias:e,src:t,data:n,format:s,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=l=>{this.hasKey(l)&&console.warn(`[Resolver] already has key: ${l} overwriting`)},Wi(o).forEach(l=>{const{src:c,srcs:d}=l;let{data:u,format:h,loadParser:f}=l;const p=Wi(c||d).map(v=>typeof v=="string"?IR(v):Array.isArray(v)?v:[v]),m=this.getAlias(l);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let b={};if(typeof y!="object"){b.src=y;for(let x=0;x<this._parsers.length;x++){const T=this._parsers[x];if(T.test(y)){b=T.parse(y);break}}}else u=y.data??u,h=y.format??h,f=y.loadParser??f,b={...b,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${b.src}`);b=this.buildResolvedAsset(b,{aliases:m,data:u,format:h,loadParser:f}),g.push(b)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{const r=this._bundles[s];if(r){const o=this.resolve(r),a={};for(const l in o){const c=o[l];a[this._extractAssetIdFromBundle(s,l)]=c}n[s]=a}}),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const n={};for(const s in t)n[s]=t[s].src;return n}return t.src}resolve(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{if(!this._resolverHash[s])if(this._assetMap[s]){let r=this._assetMap[s];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(l=>{a.params[l].forEach(c=>{const d=r.filter(u=>u[l]?u[l]===c:!1);d.length&&(r=d)})}),this._resolverHash[s]=r[0]??o}else this._resolverHash[s]=this.buildResolvedAsset({alias:[s],src:s},{});n[s]=this._resolverHash[s]}),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const n=e[0],s=this._preferredOrder.find(r=>r.params.format.includes(n.format));if(s)return s}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:n,data:s,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=pn.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...s||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??pn.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class a2{constructor(){this._detections=[],this._initialized=!1,this.resolver=new o2,this.loader=new FR,this.cache=Mo,this._backgroundLoader=new kR(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var r,o;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let a=e.manifest;typeof a=="string"&&(a=await this.load(a)),this.resolver.addManifest(a)}const t=((r=e.texturePreference)==null?void 0:r.resolution)??1,n=typeof t=="number"?[t]:t,s=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:s,resolution:n}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,n,s,r){this.resolver.add(e,t,n,s,r)}async load(e,t){this._initialized||await this.init();const n=cu(e),s=Wi(e).map(a=>{if(typeof a!="string"){const l=this.resolver.getAlias(a);return l.some(c=>!this.resolver.hasKey(c))&&this.add(a),Array.isArray(l)?l[0]:l}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(s),o=await this._mapLoadToResolve(r,t);return n?o[s[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let n=!1;typeof e=="string"&&(n=!0,e=[e]);const s=this.resolver.resolveBundle(e),r={},o=Object.keys(s);let a=0,l=0;const c=()=>{t==null||t(++a/l)},d=o.map(u=>{const h=s[u];return l+=Object.keys(h).length,this._mapLoadToResolve(h,c).then(f=>{r[u]=f})});return await Promise.all(d),n?r[e[0]]:r}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(n=>{this._backgroundLoader.add(Object.values(n))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Mo.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Mo.get(e[n]);return t}async _mapLoadToResolve(e,t){const n=Object.values(e),s=Object.keys(e);this._backgroundLoader.active=!1;co Line truncated
`;let Na=null;class MS{constructor(){Na||(Na=URL.createObjectURL(new Blob([qR],{type:"application/javascript"}))),this.worker=new Worker(Na)}}MS.revokeObjectURL=function(){Na&&(URL.revokeObjectURL(Na),Na=null)};let W0=0,tp;class KR{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(e=>{const{worker:t}=new bm;t.addEventListener("message",n=>{t.terminate(),bm.revokeObjectURL(),e(n.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){tp===void 0&&(tp=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<tp&&(this._createdWorkers++,e=new MS().worker,e.addEventListener("message",t=>{this.complete(t.data),this.returnWorker(t.target),this.next()})),e}returnWorker(e){this.workerPool.push(e)}complete(e){e.error!==void 0?this.resolveHash[e.uuid].reject(e.error):this.resolveHash[e.uuid].resolve(e.data),this.resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const n=new Promise((s,r)=>{this.queue.push({id:e,arguments:t,resolve:s,reject:r})});return this.next(),n}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),n=t.id;this.resolveHash[W0]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:W0++,id:n})}}const q0=new KR;function Tc(i,e,t){i.resource.internal=!0;const n=new tt(i),s=()=>{delete e.promiseCache[t],Mo.has(t)&&Mo.remove(t)};return n.baseTexture.once("destroyed",()=>{t in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),s())}),n.once("destroyed",()=>{i.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),s())}),n}const JR=[".jpeg",".jpg",".png",".webp",".avif"],ZR=["image/jpeg","image/png","image/webp","image/avif"];async function QR(i){const e=await Xe.ADAPTER.fetch(i);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const fh={name:"loadTextures",extension:{type:$e.LoadParser,priority:Ei.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return sl(i,ZR)||fi(i,JR)},async load(i,e,t){var a;const n=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let s;n?this.config.preferWorkers&&await q0.isImageBitmapSupported()?s=await q0.loadImageBitmap(i):s=await QR(i):s=await new Promise((c,l)=>{const d=new Image;d.crossOrigin=this.config.crossOrigin,d.src=i,d.complete?c(d):(d.onload=()=>c(d),d.onerror=u=>l(u))});const r={...e.data};r.resolution??(r.resolution=br(i)),n&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new st(s,r);return o.resource.src=i,Tc(o,t,i)},unload(i){i.destroy(!0)}};He.add(fh);const e2=".svg",t2="image/svg+xml",n2={extension:{type:$e.LoadParser,priority:Ei.High},name:"loadSVG",test(i){return sl(i,t2)||fi(i,e2)},async testParse(i){return lm.test(i)},async parse(i,e,t){var r;const n=new lm(i,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await n.load();const s=new st(n,{resolution:br(i),...e==null?void 0:e.data});return s.resource.src=e.src,Tc(s,t,e.src)},async load(i,e){return(await Xe.ADAPTER.fetch(i)).text()},unload:fh.unload};He.add(n2);const i2=[".mp4",".m4v",".webm",".ogv"],s2=["video/mp4","video/webm","video/ogg"],r2={name:"loadVideo",extension:{type:$e.LoadParser,priority:Ei.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return sl(i,s2)||fi(i,i2)},async load(i,e,t){var o;let n;const s=await(await Xe.ADAPTER.fetch(i)).blob(),r=URL.createObjectURL(s);try{const a={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(o=e==null?void 0:e.data)==null?void 0:o.resourceOptions,autoLoad:!0},c=new xS(r,a);await c.load();const l=new st(c,{alphaMode:await hk(),resolution:br(i),...e==null?void 0:e.data});l.resource.src=i,n=Tc(l,t,i),n.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return n},unload(i){i.destroy(!0)}};He.add(r2);class o2{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId= Line truncated
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),o.push({alias:e,src:t,data:n,format:s,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=c=>{this.hasKey(c)&&console.warn(`[Resolver] already has key: ${c} overwriting`)},Wi(o).forEach(c=>{const{src:l,srcs:d}=c;let{data:u,format:h,loadParser:f}=c;const p=Wi(l||d).map(v=>typeof v=="string"?IR(v):Array.isArray(v)?v:[v]),m=this.getAlias(c);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let b={};if(typeof y!="object"){b.src=y;for(let x=0;x<this._parsers.length;x++){const T=this._parsers[x];if(T.test(y)){b=T.parse(y);break}}}else u=y.data??u,h=y.format??h,f=y.loadParser??f,b={...b,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${b.src}`);b=this.buildResolvedAsset(b,{aliases:m,data:u,format:h,loadParser:f}),g.push(b)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{const r=this._bundles[s];if(r){const o=this.resolve(r),a={};for(const c in o){const l=o[c];a[this._extractAssetIdFromBundle(s,c)]=l}n[s]=a}}),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const n={};for(const s in t)n[s]=t[s].src;return n}return t.src}resolve(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{if(!this._resolverHash[s])if(this._assetMap[s]){let r=this._assetMap[s];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(c=>{a.params[c].forEach(l=>{const d=r.filter(u=>u[c]?u[c]===l:!1);d.length&&(r=d)})}),this._resolverHash[s]=r[0]??o}else this._resolverHash[s]=this.buildResolvedAsset({alias:[s],src:s},{});n[s]=this._resolverHash[s]}),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const n=e[0],s=this._preferredOrder.find(r=>r.params.format.includes(n.format));if(s)return s}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:n,data:s,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=pn.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...s||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??pn.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class a2{constructor(){this._detections=[],this._initialized=!1,this.resolver=new o2,this.loader=new FR,this.cache=Mo,this._backgroundLoader=new kR(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var r,o;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let a=e.manifest;typeof a=="string"&&(a=await this.load(a)),this.resolver.addManifest(a)}const t=((r=e.texturePreference)==null?void 0:r.resolution)??1,n=typeof t=="number"?[t]:t,s=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:s,resolution:n}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,n,s,r){this.resolver.add(e,t,n,s,r)}async load(e,t){this._initialized||await this.init();const n=cu(e),s=Wi(e).map(a=>{if(typeof a!="string"){const c=this.resolver.getAlias(a);return c.some(l=>!this.resolver.hasKey(l))&&this.add(a),Array.isArray(c)?c[0]:c}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(s),o=await this._mapLoadToResolve(r,t);return n?o[s[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let n=!1;typeof e=="string"&&(n=!0,e=[e]);const s=this.resolver.resolveBundle(e),r={},o=Object.keys(s);let a=0,c=0;const l=()=>{t==null||t(++a/c)},d=o.map(u=>{const h=s[u];return c+=Object.keys(h).length,this._mapLoadToResolve(h,l).then(f=>{r[u]=f})});return await Promise.all(d),n?r[e[0]]:r}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(n=>{this._backgroundLoader.add(Object.values(n))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Mo.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Mo.get(e[n]);return t}async _mapLoadToResolve(e,t){const n=Object.values(e),s=Object.keys(e);this._backgroundLoader.active=!1;co Line truncated
uniform vec4 uColor;
uniform sampler2D uSampler;
@@ -954,7 +954,7 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`;class fu extends ss{constructor(e,t){const n={uSampler:e,alpha:1,uTextureMatrix:Yt.IDENTITY,uColor:new Float32Array([1,1,1,1])};t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t),t.uniforms&&Object.assign(n,t.uniforms),super(t.program||ks.from(iF,nF),n),this._colorDirty=!1,this.uvMatrix=new $g(e),this.batchable=t.program===void 0,this.pluginName=t.pluginName,this._tintColor=new Ot(t.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=t.alpha}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const e=this.texture.baseTexture.alphaMode;Ot.shared.setValue(this._tintColor).premultiply(this._alpha,e).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class sF extends oc{constructor(e=tt.EMPTY,t,n,s,r){const o=new zg(t,n,s);o.getBuffer("aVertexPosition").static=!1;const a=new fu(e);super(o,a,null,r),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class ay{constructor(e,t,n){this.geometry=new Ns,this.indexBuffer=null,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(let s=0;s<e.length;++s){let r=e[s];r={attributeName:r.attributeName,size:r.size,uploadFunction:r.uploadFunction,type:r.type||ze.FLOAT,offset:r.offset},t[s]?this.dynamicProperties.push(r):this.staticProperties.push(r)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}initBuffers(){const e=this.geometry;let t=0;this.indexBuffer=new Kt(Ek(this.size),!0,!0),e.addIndex(this.indexBuffer),this.dynamicStride=0;for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];a.offset=t,t+=a.size,this.dynamicStride+=a.size}const n=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(n),this.dynamicDataUint32=new Uint32Array(n),this.dynamicBuffer=new Kt(this.dynamicData,!1,!1);let s=0;this.staticStride=0;for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];a.offset=s,s+=a.size,this.staticStride+=a.size}const r=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(r),this.staticDataUint32=new Uint32Array(r),this.staticBuffer=new Kt(this.staticData,!0,!1);for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];e.addAttribute(a.attributeName,this.dynamicBuffer,0,a.type===ze.UNSIGNED_BYTE,a.type,this.dynamicStride*4,a.offset*4)}for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];e.addAttribute(a.attributeName,this.staticBuffer,0,a.type===ze.UNSIGNED_BYTE,a.type,this.staticStride*4,a.offset*4)}}uploadDynamic(e,t,n){for(let s=0;s<this.dynamicProperties.length;s++){const r=this.dynamicProperties[s];r.uploadFunction(e,t,n,r.type===ze.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,r.offset)}this.dynamicBuffer._updateID++}uploadStatic(e,t,n){for(let s=0;s<this.staticProperties.length;s++){const r=this.staticProperties[s];r.uploadFunction(e,t,n,r.type===ze.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,r.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var rF=`varying vec2 vTextureCoord;
`;class fu extends ss{constructor(e,t){const n={uSampler:e,alpha:1,uTextureMatrix:Yt.IDENTITY,uColor:new Float32Array([1,1,1,1])};t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t),t.uniforms&&Object.assign(n,t.uniforms),super(t.program||ks.from(iF,nF),n),this._colorDirty=!1,this.uvMatrix=new $g(e),this.batchable=t.program===void 0,this.pluginName=t.pluginName,this._tintColor=new Ot(t.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=t.alpha}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const e=this.texture.baseTexture.alphaMode;Ot.shared.setValue(this._tintColor).premultiply(this._alpha,e).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class sF extends ac{constructor(e=tt.EMPTY,t,n,s,r){const o=new zg(t,n,s);o.getBuffer("aVertexPosition").static=!1;const a=new fu(e);super(o,a,null,r),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class ay{constructor(e,t,n){this.geometry=new Ns,this.indexBuffer=null,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(let s=0;s<e.length;++s){let r=e[s];r={attributeName:r.attributeName,size:r.size,uploadFunction:r.uploadFunction,type:r.type||je.FLOAT,offset:r.offset},t[s]?this.dynamicProperties.push(r):this.staticProperties.push(r)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}initBuffers(){const e=this.geometry;let t=0;this.indexBuffer=new Kt(Ek(this.size),!0,!0),e.addIndex(this.indexBuffer),this.dynamicStride=0;for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];a.offset=t,t+=a.size,this.dynamicStride+=a.size}const n=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(n),this.dynamicDataUint32=new Uint32Array(n),this.dynamicBuffer=new Kt(this.dynamicData,!1,!1);let s=0;this.staticStride=0;for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];a.offset=s,s+=a.size,this.staticStride+=a.size}const r=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(r),this.staticDataUint32=new Uint32Array(r),this.staticBuffer=new Kt(this.staticData,!0,!1);for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];e.addAttribute(a.attributeName,this.dynamicBuffer,0,a.type===je.UNSIGNED_BYTE,a.type,this.dynamicStride*4,a.offset*4)}for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];e.addAttribute(a.attributeName,this.staticBuffer,0,a.type===je.UNSIGNED_BYTE,a.type,this.staticStride*4,a.offset*4)}}uploadDynamic(e,t,n){for(let s=0;s<this.dynamicProperties.length;s++){const r=this.dynamicProperties[s];r.uploadFunction(e,t,n,r.type===je.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,r.offset)}this.dynamicBuffer._updateID++}uploadStatic(e,t,n){for(let s=0;s<this.staticProperties.length;s++){const r=this.staticProperties[s];r.uploadFunction(e,t,n,r.type===je.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,r.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var rF=`varying vec2 vTextureCoord;
varying vec4 vColor;
uniform sampler2D uSampler;
@@ -987,8 +987,8 @@ void main(void){
vTextureCoord = aTextureCoord;
vColor = aColor * uColor;
}
`;class OS extends uh{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Yt,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:ze.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=ss.from(oF,rF,{}),this.state=$s.for2d()}render(e){const t=e.children,n=e._maxSize,s=e._batchSize,r=this.renderer;let o=t.length;if(o===0)return;o>n&&!e.autoResize&&(o=n);let a=e._buffers;a||(a=e._buffers=this.generateBuffers(e));const l=t[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=Lw(e.blendMode,c),r.state.set(this.state);const d=r.gl,u=e.worldTransform.copyTo(this.tempMatrix);u.prepend(r.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=Ot.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,c).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);let h=!1;for(let f=0,p=0;f<o;f+=s,p+=1){let m=o-f;m>s&&(m=s),p>=a.length&&a.push(this._generateOneMoreBuffer(e));const g=a[p];g.uploadDynamic(t,f,m);const v=e._bufferUpdateIDs[p]||0;h=h||g._updateID<v,h&&(g._updateID=e._updateID,g.uploadStatic(t,f,m)),r.geometry.bind(g.geometry),d.drawElements(d.TRIANGLES,m*6,d.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],n=e._maxSize,s=e._batchSize,r=e._properties;for(let o=0;o<n;o+=s)t.push(new ay(this.properties,r,s));return t}_generateOneMoreBuffer(e){const t=e._batchSize,n=e._properties;return new ay(this.properties,n,t)}uploadVertices(e,t,n,s,r,o){let a=0,l=0,c=0,d=0;for(let u=0;u<n;++u){const h=e[t+u],f=h._texture,p=h.scale.x,m=h.scale.y,g=f.trim,v=f.orig;g?(l=g.x-h.anchor.x*v.width,a=l+g.width,d=g.y-h.anchor.y*v.height,c=d+g.height):(a=v.width*(1-h.anchor.x),l=v.width*-h.anchor.x,c=v.height*(1-h.anchor.y),d=v.height*-h.anchor.y),s[o]=l*p,s[o+1]=d*m,s[o+r]=a*p,s[o+r+1]=d*m,s[o+r*2]=a*p,s[o+r*2+1]=c*m,s[o+r*3]=l*p,s[o+r*3+1]=c*m,o+=r*4}}uploadPosition(e,t,n,s,r,o){for(let a=0;a<n;a++){const l=e[t+a].position;s[o]=l.x,s[o+1]=l.y,s[o+r]=l.x,s[o+r+1]=l.y,s[o+r*2]=l.x,s[o+r*2+1]=l.y,s[o+r*3]=l.x,s[o+r*3+1]=l.y,o+=r*4}}uploadRotation(e,t,n,s,r,o){for(let a=0;a<n;a++){const l=e[t+a].rotation;s[o]=l,s[o+r]=l,s[o+r*2]=l,s[o+r*3]=l,o+=r*4}}uploadUvs(e,t,n,s,r,o){for(let a=0;a<n;++a){const l=e[t+a]._texture._uvs;l?(s[o]=l.x0,s[o+1]=l.y0,s[o+r]=l.x1,s[o+r+1]=l.y1,s[o+r*2]=l.x2,s[o+r*2+1]=l.y2,s[o+r*3]=l.x3,s[o+r*3+1]=l.y3,o+=r*4):(s[o]=0,s[o+1]=0,s[o+r]=0,s[o+r+1]=0,s[o+r*2]=0,s[o+r*2+1]=0,s[o+r*3]=0,s[o+r*3+1]=0,o+=r*4)}}uploadTint(e,t,n,s,r,o){for(let a=0;a<n;++a){const l=e[t+a],c=Ot.shared.setValue(l._tintRGB).toPremultiplied(l.alpha,l.texture.baseTexture.alphaMode>0);s[o]=c,s[o+r]=c,s[o+r*2]=c,s[o+r*3]=c,o+=r*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}OS.extension={name:"particle",type:Ne.RendererPlugin};je.add(OS);var ph=(i=>(i[i.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",i[i.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",i))(ph||{});const id={willReadFrequently:!0},ms=class qe{static get experimentalLetterSpacingSupported(){let e=qe._experimentalLetterSpacingSupported;if(e!==void 0){const t=Ue.ADAPTER.getCanvasRenderingContext2D().prototype;e=qe._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,s,r,o,a,l,c){this.text=e,this.style=t,this.width=n,this.height=s,this.lines=r,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=l,this.fontProperties=c}static measureText(e,t,n,s=qe._canvas){n=n??t.wordWrap;const r=t.toFontString(),o=qe.measureFont(r);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const a=s.getContext("2d",id);a.font=r;const l=(n?qe.wordWrap(e,t,s):e).split(/(?:\r\n|\r|\n)/),c=new Array(l.length);let d=0;for(let p=0;p<l.length;p++){const m=qe._measureText(l[p],t.letterSpacing,a);c[p]=m,d=Math.max(d,m)}let u=d+t.strokeThickness;t.dropShadow&&(u+=t.dropShadowDistance);const h=t.lineHeight||o.fontSize+t.strokeThickness;let f=Math.max(h,o.fontSize+t.strokeThickness*2)+t.leading+(l.length-1)*(h+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new qe(e,t,u,f,l,c,h+t.leading,d,o)}static _measureText(e,t,n){let s=!1;qe.experimentalLetterSpacingSupported&&(qe.experimentalLetterSpacing?(n.letterSpacing=`${t}px`,n.textLetterSpacing=`${t}px`,s=!0):(n.letterSpacing="0px",n.textLetterSpacing="0px"));let r=n.measureText(e).width;return r>0&&(s?r-=t:r+=(qe.graphemeSegmenter(e).length-1)*t),r}static wordWrap(e,t,n=qe._canvas){const s=n.getContext("2d",id);let r=0,o="",a="";const l=Object.create(null),{letterSpacing:c,whiteSpace:d}=t,u=qe.collapseSpaces(d),h=qe.collapseNewlines(d);let f=!u;const p=t.wordWrapWidth+c, Line truncated
`:e,e}static getFromCache(e,t,n,s){let r=n[e];return typeof r!="number"&&(r=qe._measureText(e,t,s)+t,n[e]=r),r}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!qe.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:qe._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:qe._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let s=0;s<e.length;s++){const r=e[s],o=e[s+1];if(qe.isBreakingSpace(r,o)||qe.isNewline(r)){n!==""&&(t.push(n),n=""),t.push(r);continue}n+=r}return n!==""&&t.push(n),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,n,s,r){return!0}static wordWrapSplit(e){return qe.graphemeSegmenter(e)}static measureFont(e){if(qe._fonts[e])return qe._fonts[e];const t={ascent:0,descent:0,fontSize:0},n=qe._canvas,s=qe._context;s.font=e;const r=qe.METRICS_STRING+qe.BASELINE_SYMBOL,o=Math.ceil(s.measureText(r).width);let a=Math.ceil(s.measureText(qe.BASELINE_SYMBOL).width);const l=Math.ceil(qe.HEIGHT_MULTIPLIER*a);if(a=a*qe.BASELINE_MULTIPLIER|0,o===0||l===0)return qe._fonts[e]=t,t;n.width=o,n.height=l,s.fillStyle="#f00",s.fillRect(0,0,o,l),s.font=e,s.textBaseline="alphabetic",s.fillStyle="#000",s.fillText(r,0,a);const c=s.getImageData(0,0,o,l).data,d=c.length,u=o*4;let h=0,f=0,p=!1;for(h=0;h<a;++h){for(let m=0;m<u;m+=4)if(c[f+m]!==255){p=!0;break}if(!p)f+=u;else break}for(t.ascent=a-h,f=d-u,p=!1,h=l;h>a;--h){for(let m=0;m<u;m+=4)if(c[f+m]!==255){p=!0;break}if(!p)f-=u;else break}return t.descent=h-a,t.fontSize=t.ascent+t.descent,qe._fonts[e]=t,t}static clearMetrics(e=""){e?delete qe._fonts[e]:qe._fonts={}}static get _canvas(){var e;if(!qe.__canvas){let t;try{const n=new OffscreenCanvas(0,0);if((e=n.getContext("2d",id))!=null&&e.measureText)return qe.__canvas=n,n;t=Ue.ADAPTER.createCanvas()}catch{t=Ue.ADAPTER.createCanvas()}t.width=t.height=10,qe.__canvas=t}return qe.__canvas}static get _context(){return qe.__context||(qe.__context=qe._canvas.getContext("2d",id)),qe.__context}};ms.METRICS_STRING="|ÉqÅ",ms.BASELINE_SYMBOL="M",ms.BASELINE_MULTIPLIER=1.4,ms.HEIGHT_MULTIPLIER=2,ms.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const i=new Intl.Segmenter;return e=>[...i.segment(e)].map(t=>t.segment)}return i=>[...i]})(),ms.experimentalLetterSpacing=!1,ms._fonts={},ms._newlines=[10,13],ms._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let $r=ms;const aF=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],NS=class Il{constructor(e){this.styleID=0,this.reset(),op(this,e,e)}clone(){const e={};return op(e,this,Il.defaultStyle),new Il(e)}reset(){op(this,Il.defaultStyle,Il.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=rp(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=rp(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){lF(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._lett Line truncated
`;class OS extends hh{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Yt,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:je.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=ss.from(oF,rF,{}),this.state=$s.for2d()}render(e){const t=e.children,n=e._maxSize,s=e._batchSize,r=this.renderer;let o=t.length;if(o===0)return;o>n&&!e.autoResize&&(o=n);let a=e._buffers;a||(a=e._buffers=this.generateBuffers(e));const c=t[0]._texture.baseTexture,l=c.alphaMode>0;this.state.blendMode=Lw(e.blendMode,l),r.state.set(this.state);const d=r.gl,u=e.worldTransform.copyTo(this.tempMatrix);u.prepend(r.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=Ot.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,l).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let h=!1;for(let f=0,p=0;f<o;f+=s,p+=1){let m=o-f;m>s&&(m=s),p>=a.length&&a.push(this._generateOneMoreBuffer(e));const g=a[p];g.uploadDynamic(t,f,m);const v=e._bufferUpdateIDs[p]||0;h=h||g._updateID<v,h&&(g._updateID=e._updateID,g.uploadStatic(t,f,m)),r.geometry.bind(g.geometry),d.drawElements(d.TRIANGLES,m*6,d.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],n=e._maxSize,s=e._batchSize,r=e._properties;for(let o=0;o<n;o+=s)t.push(new ay(this.properties,r,s));return t}_generateOneMoreBuffer(e){const t=e._batchSize,n=e._properties;return new ay(this.properties,n,t)}uploadVertices(e,t,n,s,r,o){let a=0,c=0,l=0,d=0;for(let u=0;u<n;++u){const h=e[t+u],f=h._texture,p=h.scale.x,m=h.scale.y,g=f.trim,v=f.orig;g?(c=g.x-h.anchor.x*v.width,a=c+g.width,d=g.y-h.anchor.y*v.height,l=d+g.height):(a=v.width*(1-h.anchor.x),c=v.width*-h.anchor.x,l=v.height*(1-h.anchor.y),d=v.height*-h.anchor.y),s[o]=c*p,s[o+1]=d*m,s[o+r]=a*p,s[o+r+1]=d*m,s[o+r*2]=a*p,s[o+r*2+1]=l*m,s[o+r*3]=c*p,s[o+r*3+1]=l*m,o+=r*4}}uploadPosition(e,t,n,s,r,o){for(let a=0;a<n;a++){const c=e[t+a].position;s[o]=c.x,s[o+1]=c.y,s[o+r]=c.x,s[o+r+1]=c.y,s[o+r*2]=c.x,s[o+r*2+1]=c.y,s[o+r*3]=c.x,s[o+r*3+1]=c.y,o+=r*4}}uploadRotation(e,t,n,s,r,o){for(let a=0;a<n;a++){const c=e[t+a].rotation;s[o]=c,s[o+r]=c,s[o+r*2]=c,s[o+r*3]=c,o+=r*4}}uploadUvs(e,t,n,s,r,o){for(let a=0;a<n;++a){const c=e[t+a]._texture._uvs;c?(s[o]=c.x0,s[o+1]=c.y0,s[o+r]=c.x1,s[o+r+1]=c.y1,s[o+r*2]=c.x2,s[o+r*2+1]=c.y2,s[o+r*3]=c.x3,s[o+r*3+1]=c.y3,o+=r*4):(s[o]=0,s[o+1]=0,s[o+r]=0,s[o+r+1]=0,s[o+r*2]=0,s[o+r*2+1]=0,s[o+r*3]=0,s[o+r*3+1]=0,o+=r*4)}}uploadTint(e,t,n,s,r,o){for(let a=0;a<n;++a){const c=e[t+a],l=Ot.shared.setValue(c._tintRGB).toPremultiplied(c.alpha,c.texture.baseTexture.alphaMode>0);s[o]=l,s[o+r]=l,s[o+r*2]=l,s[o+r*3]=l,o+=r*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}OS.extension={name:"particle",type:$e.RendererPlugin};He.add(OS);var mh=(i=>(i[i.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",i[i.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",i))(mh||{});const id={willReadFrequently:!0},ms=class Ke{static get experimentalLetterSpacingSupported(){let e=Ke._experimentalLetterSpacingSupported;if(e!==void 0){const t=Xe.ADAPTER.getCanvasRenderingContext2D().prototype;e=Ke._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,s,r,o,a,c,l){this.text=e,this.style=t,this.width=n,this.height=s,this.lines=r,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=c,this.fontProperties=l}static measureText(e,t,n,s=Ke._canvas){n=n??t.wordWrap;const r=t.toFontString(),o=Ke.measureFont(r);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const a=s.getContext("2d",id);a.font=r;const c=(n?Ke.wordWrap(e,t,s):e).split(/(?:\r\n|\r|\n)/),l=new Array(c.length);let d=0;for(let p=0;p<c.length;p++){const m=Ke._measureText(c[p],t.letterSpacing,a);l[p]=m,d=Math.max(d,m)}let u=d+t.strokeThickness;t.dropShadow&&(u+=t.dropShadowDistance);const h=t.lineHeight||o.fontSize+t.strokeThickness;let f=Math.max(h,o.fontSize+t.strokeThickness*2)+t.leading+(c.length-1)*(h+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new Ke(e,t,u,f,c,l,h+t.leading,d,o)}static _measureText(e,t,n){let s=!1;Ke.experimentalLetterSpacingSupported&&(Ke.experimentalLetterSpacing?(n.letterSpacing=`${t}px`,n.textLetterSpacing=`${t}px`,s=!0):(n.letterSpacing="0px",n.textLetterSpacing="0px"));let r=n.measureText(e).width;return r>0&&(s?r-=t:r+=(Ke.graphemeSegmenter(e).length-1)*t),r}static wordWrap(e,t,n=Ke._canvas){const s=n.getContext("2d",id);let r=0,o="",a="";const c=Object.create(null),{letterSpacing:l,whiteSpace:d}=t,u=Ke.collapseSpaces(d),h=Ke.collapseNewlines(d);let f=!u;const p=t.wordWrapWidth+l, Line truncated
`:e,e}static getFromCache(e,t,n,s){let r=n[e];return typeof r!="number"&&(r=Ke._measureText(e,t,s)+t,n[e]=r),r}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!Ke.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:Ke._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:Ke._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let s=0;s<e.length;s++){const r=e[s],o=e[s+1];if(Ke.isBreakingSpace(r,o)||Ke.isNewline(r)){n!==""&&(t.push(n),n=""),t.push(r);continue}n+=r}return n!==""&&t.push(n),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,n,s,r){return!0}static wordWrapSplit(e){return Ke.graphemeSegmenter(e)}static measureFont(e){if(Ke._fonts[e])return Ke._fonts[e];const t={ascent:0,descent:0,fontSize:0},n=Ke._canvas,s=Ke._context;s.font=e;const r=Ke.METRICS_STRING+Ke.BASELINE_SYMBOL,o=Math.ceil(s.measureText(r).width);let a=Math.ceil(s.measureText(Ke.BASELINE_SYMBOL).width);const c=Math.ceil(Ke.HEIGHT_MULTIPLIER*a);if(a=a*Ke.BASELINE_MULTIPLIER|0,o===0||c===0)return Ke._fonts[e]=t,t;n.width=o,n.height=c,s.fillStyle="#f00",s.fillRect(0,0,o,c),s.font=e,s.textBaseline="alphabetic",s.fillStyle="#000",s.fillText(r,0,a);const l=s.getImageData(0,0,o,c).data,d=l.length,u=o*4;let h=0,f=0,p=!1;for(h=0;h<a;++h){for(let m=0;m<u;m+=4)if(l[f+m]!==255){p=!0;break}if(!p)f+=u;else break}for(t.ascent=a-h,f=d-u,p=!1,h=c;h>a;--h){for(let m=0;m<u;m+=4)if(l[f+m]!==255){p=!0;break}if(!p)f-=u;else break}return t.descent=h-a,t.fontSize=t.ascent+t.descent,Ke._fonts[e]=t,t}static clearMetrics(e=""){e?delete Ke._fonts[e]:Ke._fonts={}}static get _canvas(){var e;if(!Ke.__canvas){let t;try{const n=new OffscreenCanvas(0,0);if((e=n.getContext("2d",id))!=null&&e.measureText)return Ke.__canvas=n,n;t=Xe.ADAPTER.createCanvas()}catch{t=Xe.ADAPTER.createCanvas()}t.width=t.height=10,Ke.__canvas=t}return Ke.__canvas}static get _context(){return Ke.__context||(Ke.__context=Ke._canvas.getContext("2d",id)),Ke.__context}};ms.METRICS_STRING="|ÉqÅ",ms.BASELINE_SYMBOL="M",ms.BASELINE_MULTIPLIER=1.4,ms.HEIGHT_MULTIPLIER=2,ms.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const i=new Intl.Segmenter;return e=>[...i.segment(e)].map(t=>t.segment)}return i=>[...i]})(),ms.experimentalLetterSpacing=!1,ms._fonts={},ms._newlines=[10,13],ms._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let $r=ms;const aF=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],NS=class Rl{constructor(e){this.styleID=0,this.reset(),ap(this,e,e)}clone(){const e={};return ap(e,this,Rl.defaultStyle),new Rl(e)}reset(){ap(this,Rl.defaultStyle,Rl.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=op(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=op(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){lF(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._lett Line truncated
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
@@ -1102,7 +1102,7 @@ void main(void)
vec4 texSample = texture2D(uSampler, vTextureCoord);
gl_FragColor = texSample * uColor;
}
`;const sd=new Yt;class YS extends uh{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new Ww,this.state=$s.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=ss.from(ly,CF,t),this.shader=e.context.webGLVersion>1?ss.from(wF,xF,t):ss.from(ly,SF,t)}render(e){const t=this.renderer,n=this.quad;let s=n.vertices;s[0]=s[6]=e._width*-e.anchor.x,s[1]=s[3]=e._height*-e.anchor.y,s[2]=s[4]=e._width*(1-e.anchor.x),s[5]=s[7]=e._height*(1-e.anchor.y);const r=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;s=n.uvs,s[0]=s[6]=-r,s[1]=s[3]=-o,s[2]=s[4]=1-r,s[5]=s[7]=1-o,n.invalidate();const a=e._texture,l=a.baseTexture,c=l.alphaMode>0,d=e.tileTransform.localTransform,u=e.uvMatrix;let h=l.isPowerOfTwo&&a.frame.width===l.width&&a.frame.height===l.height;h&&(l._glTextures[t.CONTEXT_UID]?h=l.wrapMode!==ts.CLAMP:l.wrapMode===ts.CLAMP&&(l.wrapMode=ts.REPEAT));const f=h?this.simpleShader:this.shader,p=a.width,m=a.height,g=e._width,v=e._height;sd.set(d.a*p/g,d.b*p/v,d.c*m/g,d.d*m/v,d.tx/g,d.ty/v),sd.invert(),h?sd.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=sd.toArray(!0),f.uniforms.uColor=Ot.shared.setValue(e.tint).premultiply(e.worldAlpha,c).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=a,t.shader.bind(f),t.geometry.bind(n),this.state.blendMode=Lw(e.blendMode,c),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}YS.extension={name:"tilingSprite",type:Ne.RendererPlugin};je.add(YS);const zS=class Rl{constructor(e,t,n){this.linkedSheets=[],(e instanceof rt||e instanceof tt)&&(e={texture:e,data:t,resolutionFilename:n});const{texture:s,data:r,resolutionFilename:o=null,cachePrefix:a=""}=e;this.cachePrefix=a,this._texture=s instanceof tt?s:null,this.baseTexture=s instanceof rt?s:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;const l=this.baseTexture.resource;this.resolution=this._updateResolution(o||(l?l.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=br(e,null);return n===null&&(n=typeof t=="number"?t:parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=Rl.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=Rl.BATCH_SIZE;for(;t-e<n&&t<this._frameKeys.length;){const s=this._frameKeys[t],r=this._frames[s],o=r.frame;if(o){let a=null,l=null;const c=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,d=new ht(0,0,Math.floor(c.w)/this.resolution,Math.floor(c.h)/this.resolution);r.rotated?a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.h)/this.resolution,Math.floor(o.w)/this.resolution):a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution),r.trimmed!==!1&&r.spriteSourceSize&&(l=new ht(Math.floor(r.spriteSourceSize.x)/this.resolution,Math.floor(r.spriteSourceSize.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution)),this.textures[s]=new tt(this.baseTexture,a,d,l,r.rotated?2:0,r.anchor,r.borders),tt.addToCache(this.textures[s],this.cachePrefix+s.toString())}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let n=0;n<e[t].length;n++){const s=e[t][n];this.animations[t].push(this.textures[s])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Rl.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Rl.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((t=this._texture)==null||t.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};zS.BATCH_SIZE=1e3;let cy=zS;const AF=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function jS(i,e,t){const n={};if(i.forEach(s=>{n[s]=e}),Object.keys(e.textures).forEach(s=>{n[`${e.cachePrefix}${s}`]=e.textures[s]}),!t){const s=pn.dirname(i[0]);e.linkedSheets.forEach((r,o)=>{Object.assign(n,jS([`${s}/${e.data.meta.related_multi_packs[o]}`],r,!0))})}return n}const TF={extension:Ne.Asset,cache:{test:i=>i instanceof cy,getCacheableAssets:(i,e)=>jS(i,e,!1)},resolver:{test:i=>{const e=i.split("?")[0].split("."),t=e.pop(),n=e.pop();return t==="json"&&AF.includes(n)},parse:i=>{var t;const Line truncated
`;const sd=new Yt;class YS extends hh{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new Ww,this.state=$s.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=ss.from(ly,CF,t),this.shader=e.context.webGLVersion>1?ss.from(wF,xF,t):ss.from(ly,SF,t)}render(e){const t=this.renderer,n=this.quad;let s=n.vertices;s[0]=s[6]=e._width*-e.anchor.x,s[1]=s[3]=e._height*-e.anchor.y,s[2]=s[4]=e._width*(1-e.anchor.x),s[5]=s[7]=e._height*(1-e.anchor.y);const r=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;s=n.uvs,s[0]=s[6]=-r,s[1]=s[3]=-o,s[2]=s[4]=1-r,s[5]=s[7]=1-o,n.invalidate();const a=e._texture,c=a.baseTexture,l=c.alphaMode>0,d=e.tileTransform.localTransform,u=e.uvMatrix;let h=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;h&&(c._glTextures[t.CONTEXT_UID]?h=c.wrapMode!==ts.CLAMP:c.wrapMode===ts.CLAMP&&(c.wrapMode=ts.REPEAT));const f=h?this.simpleShader:this.shader,p=a.width,m=a.height,g=e._width,v=e._height;sd.set(d.a*p/g,d.b*p/v,d.c*m/g,d.d*m/v,d.tx/g,d.ty/v),sd.invert(),h?sd.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=sd.toArray(!0),f.uniforms.uColor=Ot.shared.setValue(e.tint).premultiply(e.worldAlpha,l).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=a,t.shader.bind(f),t.geometry.bind(n),this.state.blendMode=Lw(e.blendMode,l),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}YS.extension={name:"tilingSprite",type:$e.RendererPlugin};He.add(YS);const zS=class Fl{constructor(e,t,n){this.linkedSheets=[],(e instanceof st||e instanceof tt)&&(e={texture:e,data:t,resolutionFilename:n});const{texture:s,data:r,resolutionFilename:o=null,cachePrefix:a=""}=e;this.cachePrefix=a,this._texture=s instanceof tt?s:null,this.baseTexture=s instanceof st?s:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;const c=this.baseTexture.resource;this.resolution=this._updateResolution(o||(c?c.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=br(e,null);return n===null&&(n=typeof t=="number"?t:parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=Fl.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=Fl.BATCH_SIZE;for(;t-e<n&&t<this._frameKeys.length;){const s=this._frameKeys[t],r=this._frames[s],o=r.frame;if(o){let a=null,c=null;const l=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,d=new ht(0,0,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution);r.rotated?a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.h)/this.resolution,Math.floor(o.w)/this.resolution):a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution),r.trimmed!==!1&&r.spriteSourceSize&&(c=new ht(Math.floor(r.spriteSourceSize.x)/this.resolution,Math.floor(r.spriteSourceSize.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution)),this.textures[s]=new tt(this.baseTexture,a,d,c,r.rotated?2:0,r.anchor,r.borders),tt.addToCache(this.textures[s],this.cachePrefix+s.toString())}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let n=0;n<e[t].length;n++){const s=e[t][n];this.animations[t].push(this.textures[s])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Fl.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Fl.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((t=this._texture)==null||t.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};zS.BATCH_SIZE=1e3;let cy=zS;const AF=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function jS(i,e,t){const n={};if(i.forEach(s=>{n[s]=e}),Object.keys(e.textures).forEach(s=>{n[`${e.cachePrefix}${s}`]=e.textures[s]}),!t){const s=pn.dirname(i[0]);e.linkedSheets.forEach((r,o)=>{Object.assign(n,jS([`${s}/${e.data.meta.related_multi_packs[o]}`],r,!0))})}return n}const TF={extension:$e.Asset,cache:{test:i=>i instanceof cy,getCacheableAssets:(i,e)=>jS(i,e,!1)},resolver:{test:i=>{const e=i.split("?")[0].split("."),t=e.pop(),n=e.pop();return t==="json"&&AF.includes(n)},parse:i=>{var t;const Line truncated
varying vec2 vTextureCoord;\r
uniform sampler2D uSampler;\r
\r
@@ -1156,35 +1156,35 @@ void main(void)\r
\r
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
}\r
`;const dy=[],uy=[],hy=[],RF=class GS extends Mn{constructor(e,t={}){super();const{align:n,tint:s,maxWidth:r,letterSpacing:o,fontName:a,fontSize:l}=Object.assign({},GS.styleDefaults,t);if(!Lr.available[a])throw new Error(`Missing BitmapFont "${a}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new Ot(s),this._font=void 0,this._fontName=a,this._fontSize=l,this.text=e,this._maxWidth=r,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new ir(()=>{this.dirty=!0},this,0,0),this._roundPixels=Ue.ROUND_PIXELS,this.dirty=!0,this._resolution=Ue.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var P;const e=Lr.available[this._fontName],t=this.fontSize,n=t/e.size,s=new Pt,r=[],o=[],a=[],l=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",c=HS(l),d=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?dy:uy;let h=null,f=0,p=0,m=0,g=-1,v=0,y=0,b=0,x=0;for(let R=0;R<c.length;R++){const N=c[R],$=Ld(N);if(/(?:\s)/.test(N)&&(g=R,v=f,x++),N==="\r"||N===`
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,s.x=0,s.y+=e.lineHeight,h=null,x=0;continue}const j=e.chars[$];if(!j)continue;h&&j.kerning[h]&&(s.x+=j.kerning[h]);const U=hy.pop()||{texture:tt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Pt};U.texture=j.texture,U.line=m,U.charCode=$,U.position.x=Math.round(s.x+j.xOffset+this._letterSpacing/2),U.position.y=Math.round(s.y+j.yOffset),U.prevSpaces=x,r.push(U),f=U.position.x+Math.max(j.xAdvance-j.xOffset,j.texture.orig.width),s.x+=j.xAdvance+this._letterSpacing,b=Math.max(b,j.yOffset+j.texture.height),h=$,g!==-1&&d>0&&s.x>d&&(++y,Fa(r,1+g-y,1+R-g),R=g,g=-1,o.push(v),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,v),m++,s.x=0,s.y+=e.lineHeight,h=null,x=0)}const T=c[c.length-1];T!=="\r"&&T!==`
`&&(/(?:\s)/.test(T)&&(f=v),o.push(f),p=Math.max(p,f),a.push(-1));const E=[];for(let R=0;R<=m;R++){let N=0;this._align==="right"?N=p-o[R]:this._align==="center"?N=(p-o[R])/2:this._align==="justify"&&(N=a[R]<0?0:(p-o[R])/a[R]),E.push(N)}const S=r.length,C={},M=[],I=this._activePagesMeshData;u.push(...I);for(let R=0;R<S;R++){const N=r[R].texture,$=N.baseTexture.uid;if(!C[$]){let j=u.pop();if(!j){const Y=new zg;let B,D;e.distanceFieldType==="none"?(B=new fu(tt.EMPTY),D=Qe.NORMAL):(B=new fu(tt.EMPTY,{program:ks.from(IF,kF),uniforms:{uFWidth:0}}),D=Qe.NORMAL_NPM);const O=new oc(Y,B);O.blendMode=D,j={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:O,vertices:null,uvs:null,indices:null}}j.index=0,j.indexCount=0,j.vertexCount=0,j.uvsCount=0,j.total=0;const{_textureCache:U}=this;U[$]=U[$]||new tt(N.baseTexture),j.mesh.texture=U[$],j.mesh.tint=this._tintColor.value,M.push(j),C[$]=j}C[$].total++}for(let R=0;R<I.length;R++)M.includes(I[R])||this.removeChild(I[R].mesh);for(let R=0;R<M.length;R++)M[R].mesh.parent!==this&&this.addChild(M[R].mesh);this._activePagesMeshData=M;for(const R in C){const N=C[R],$=N.total;if(!(((P=N.indices)==null?void 0:P.length)>6*$)||N.vertices.length<oc.BATCHABLE_SIZE*2)N.vertices=new Float32Array(8*$),N.uvs=new Float32Array(8*$),N.indices=new Uint16Array(6*$);else{const j=N.total,U=N.vertices;for(let Y=j*4*2;Y<U.length;Y++)U[Y]=0}N.mesh.size=6*$}for(let R=0;R<S;R++){const N=r[R];let $=N.position.x+E[N.line]*(this._align==="justify"?N.prevSpaces:1);this._roundPixels&&($=Math.round($));const j=$*n,U=N.position.y*n,Y=N.texture,B=C[Y.baseTexture.uid],D=Y.frame,O=Y._uvs,F=B.index++;B.indices[F*6+0]=0+F*4,B.indices[F*6+1]=1+F*4,B.indices[F*6+2]=2+F*4,B.indices[F*6+3]=0+F*4,B.indices[F*6+4]=2+F*4,B.indices[F*6+5]=3+F*4,B.vertices[F*8+0]=j,B.vertices[F*8+1]=U,B.vertices[F*8+2]=j+D.width*n,B.vertices[F*8+3]=U,B.vertices[F*8+4]=j+D.width*n,B.vertices[F*8+5]=U+D.height*n,B.vertices[F*8+6]=j,B.vertices[F*8+7]=U+D.height*n,B.uvs[F*8+0]=O.x0,B.uvs[F*8+1]=O.y0,B.uvs[F*8+2]=O.x1,B.uvs[F*8+3]=O.y1,B.uvs[F*8+4]=O.x2,B.uvs[F*8+5]=O.y2,B.uvs[F*8+6]=O.x3,B.uvs[F*8+7]=O.y3}this._textWidth=p*n,this._textHeight=(s.y+e.lineHeight)*n;for(const R in C){const N=C[R];if(this.anchor.x!==0||this.anchor.y!==0){let Y=0;const B=this._textWidth*this.anchor.x,D=this._textHeight*this.anchor.y;for(let O=0;O<N.total;O++)N.vertices[Y++]-=B,N.vertices[Y++]-=D,N.vertices[Y++]-=B,N.vertices[Y++]-=D,N.vertices[Y++]-=B,N.vertices[Y++]-=D,N.vertices[Y++]-=B,N.vertices[Y++]-=D}this._maxLineHeight=b*n;const $=N.mesh.geometry.getBuffer("aVertexPosition"),j=N.mesh.geometry.getBuffer("aTextureCoord"),U=N.mesh.geometry.getIndex();$.data=N.vertices,j.data=N.uvs,U.data=N.indices,$.update(),j.update(),U.update()}for(let R=0;R<r.length;R++)hy.push(r[R]);this._font=e,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);const{distanceFieldRange:t,distanceFieldType:n,size:s}=Lr.available[this._fontName];if(n!=="none"){const{a:r,b:o,c:a,d:l}=this.worldTransform,c=Math.sqrt(r*r+o*o),d=Math.sqrt(a*a+l*l),u=(Math.abs(c)+Math.abs(d))/2,h=this.fontSize/s,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*h*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=Lr.available[this._fontName];if(!e)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(e){if(this.tint!==e){this._tintColor.setValue(e);for(let t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.dirty=!0)}get fontName(){return this._fontName}set fontName(e){if(!Lr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??Lr.available[this._fontName].size}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._res Line truncated
`;const dy=[],uy=[],hy=[],RF=class GS extends Mn{constructor(e,t={}){super();const{align:n,tint:s,maxWidth:r,letterSpacing:o,fontName:a,fontSize:c}=Object.assign({},GS.styleDefaults,t);if(!Lr.available[a])throw new Error(`Missing BitmapFont "${a}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new Ot(s),this._font=void 0,this._fontName=a,this._fontSize=c,this.text=e,this._maxWidth=r,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new ir(()=>{this.dirty=!0},this,0,0),this._roundPixels=Xe.ROUND_PIXELS,this.dirty=!0,this._resolution=Xe.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var P;const e=Lr.available[this._fontName],t=this.fontSize,n=t/e.size,s=new Pt,r=[],o=[],a=[],c=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",l=HS(c),d=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?dy:uy;let h=null,f=0,p=0,m=0,g=-1,v=0,y=0,b=0,x=0;for(let I=0;I<l.length;I++){const N=l[I],$=Ld(N);if(/(?:\s)/.test(N)&&(g=I,v=f,x++),N==="\r"||N===`
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,s.x=0,s.y+=e.lineHeight,h=null,x=0;continue}const j=e.chars[$];if(!j)continue;h&&j.kerning[h]&&(s.x+=j.kerning[h]);const B=hy.pop()||{texture:tt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Pt};B.texture=j.texture,B.line=m,B.charCode=$,B.position.x=Math.round(s.x+j.xOffset+this._letterSpacing/2),B.position.y=Math.round(s.y+j.yOffset),B.prevSpaces=x,r.push(B),f=B.position.x+Math.max(j.xAdvance-j.xOffset,j.texture.orig.width),s.x+=j.xAdvance+this._letterSpacing,b=Math.max(b,j.yOffset+j.texture.height),h=$,g!==-1&&d>0&&s.x>d&&(++y,Fa(r,1+g-y,1+I-g),I=g,g=-1,o.push(v),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,v),m++,s.x=0,s.y+=e.lineHeight,h=null,x=0)}const T=l[l.length-1];T!=="\r"&&T!==`
`&&(/(?:\s)/.test(T)&&(f=v),o.push(f),p=Math.max(p,f),a.push(-1));const E=[];for(let I=0;I<=m;I++){let N=0;this._align==="right"?N=p-o[I]:this._align==="center"?N=(p-o[I])/2:this._align==="justify"&&(N=a[I]<0?0:(p-o[I])/a[I]),E.push(N)}const S=r.length,C={},M=[],k=this._activePagesMeshData;u.push(...k);for(let I=0;I<S;I++){const N=r[I].texture,$=N.baseTexture.uid;if(!C[$]){let j=u.pop();if(!j){const Y=new zg;let U,D;e.distanceFieldType==="none"?(U=new fu(tt.EMPTY),D=Qe.NORMAL):(U=new fu(tt.EMPTY,{program:ks.from(IF,kF),uniforms:{uFWidth:0}}),D=Qe.NORMAL_NPM);const L=new ac(Y,U);L.blendMode=D,j={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:L,vertices:null,uvs:null,indices:null}}j.index=0,j.indexCount=0,j.vertexCount=0,j.uvsCount=0,j.total=0;const{_textureCache:B}=this;B[$]=B[$]||new tt(N.baseTexture),j.mesh.texture=B[$],j.mesh.tint=this._tintColor.value,M.push(j),C[$]=j}C[$].total++}for(let I=0;I<k.length;I++)M.includes(k[I])||this.removeChild(k[I].mesh);for(let I=0;I<M.length;I++)M[I].mesh.parent!==this&&this.addChild(M[I].mesh);this._activePagesMeshData=M;for(const I in C){const N=C[I],$=N.total;if(!(((P=N.indices)==null?void 0:P.length)>6*$)||N.vertices.length<ac.BATCHABLE_SIZE*2)N.vertices=new Float32Array(8*$),N.uvs=new Float32Array(8*$),N.indices=new Uint16Array(6*$);else{const j=N.total,B=N.vertices;for(let Y=j*4*2;Y<B.length;Y++)B[Y]=0}N.mesh.size=6*$}for(let I=0;I<S;I++){const N=r[I];let $=N.position.x+E[N.line]*(this._align==="justify"?N.prevSpaces:1);this._roundPixels&&($=Math.round($));const j=$*n,B=N.position.y*n,Y=N.texture,U=C[Y.baseTexture.uid],D=Y.frame,L=Y._uvs,R=U.index++;U.indices[R*6+0]=0+R*4,U.indices[R*6+1]=1+R*4,U.indices[R*6+2]=2+R*4,U.indices[R*6+3]=0+R*4,U.indices[R*6+4]=2+R*4,U.indices[R*6+5]=3+R*4,U.vertices[R*8+0]=j,U.vertices[R*8+1]=B,U.vertices[R*8+2]=j+D.width*n,U.vertices[R*8+3]=B,U.vertices[R*8+4]=j+D.width*n,U.vertices[R*8+5]=B+D.height*n,U.vertices[R*8+6]=j,U.vertices[R*8+7]=B+D.height*n,U.uvs[R*8+0]=L.x0,U.uvs[R*8+1]=L.y0,U.uvs[R*8+2]=L.x1,U.uvs[R*8+3]=L.y1,U.uvs[R*8+4]=L.x2,U.uvs[R*8+5]=L.y2,U.uvs[R*8+6]=L.x3,U.uvs[R*8+7]=L.y3}this._textWidth=p*n,this._textHeight=(s.y+e.lineHeight)*n;for(const I in C){const N=C[I];if(this.anchor.x!==0||this.anchor.y!==0){let Y=0;const U=this._textWidth*this.anchor.x,D=this._textHeight*this.anchor.y;for(let L=0;L<N.total;L++)N.vertices[Y++]-=U,N.vertices[Y++]-=D,N.vertices[Y++]-=U,N.vertices[Y++]-=D,N.vertices[Y++]-=U,N.vertices[Y++]-=D,N.vertices[Y++]-=U,N.vertices[Y++]-=D}this._maxLineHeight=b*n;const $=N.mesh.geometry.getBuffer("aVertexPosition"),j=N.mesh.geometry.getBuffer("aTextureCoord"),B=N.mesh.geometry.getIndex();$.data=N.vertices,j.data=N.uvs,B.data=N.indices,$.update(),j.update(),B.update()}for(let I=0;I<r.length;I++)hy.push(r[I]);this._font=e,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);const{distanceFieldRange:t,distanceFieldType:n,size:s}=Lr.available[this._fontName];if(n!=="none"){const{a:r,b:o,c:a,d:c}=this.worldTransform,l=Math.sqrt(r*r+o*o),d=Math.sqrt(a*a+c*c),u=(Math.abs(l)+Math.abs(d))/2,h=this.fontSize/s,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*h*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=Lr.available[this._fontName];if(!e)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(e){if(this.tint!==e){this._tintColor.setValue(e);for(let t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.dirty=!0)}get fontName(){return this._fontName}set fontName(e){if(!Lr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??Lr.available[this._fontName].size}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._res Line truncated
@font-face {
font-family: "${t.family}";
src: url('${t.dataSrc}');
font-weight: ${t.weight};
font-style: ${t.style};
font-display: ${t.display};
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=Ak(e)),typeof e=="number"?Ck(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${n}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,xa.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=Ue.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Am.availableFonts={},Am.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let lp=Am;const rd=class wa extends oo{constructor(e="",t={}){super(tt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const n=new Image,s=tt.from(n,{scaleMode:Ue.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ht,s.trim=new ht,this.texture=s;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),l=document.createElementNS(r,"foreignObject"),c=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",a.appendChild(l),this.maxWidth=wa.defaultMaxWidth,this.maxHeight=wa.defaultMaxHeight,this._domElement=c,this._styleElement=d,this._svgRoot=a,this._foreignObject=l,this._foreignObject.appendChild(d),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=wa.defaultAutoResolution,this._resolution=wa.defaultResolution??Ue.RESOLUTION,this.text=e,this.style=t}measureText(e){var d,u;const{text:t,style:n,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(s)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const r=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=r;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const l=Math.min(this.maxWidth,Math.ceil(o)),c=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",l.toString()),this._svgRoot.setAttribute("height",c.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(d=this._style)==null?void 0:d.toCSS(s)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:l+n.padding*2,height:c+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();n.width=s.width=Math.ceil(Math.max(1,r)),n.height=s.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(l=>{s.onload=async()=>{if(a<this._updateID){l();return}await t.onBeforeDraw(),n.src=s.src,s.onload=null,s.src="",this.updateTexture(),l()};const c=new XMLSerializer().serializeToString(this._svgRoot);s.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(c)}`})}get source(){ret Line truncated
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=Ak(e)),typeof e=="number"?Ck(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${n}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,xa.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=Xe.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Tm.availableFonts={},Tm.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let cp=Tm;const rd=class wa extends oo{constructor(e="",t={}){super(tt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const n=new Image,s=tt.from(n,{scaleMode:Xe.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ht,s.trim=new ht,this.texture=s;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),c=document.createElementNS(r,"foreignObject"),l=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");c.setAttribute("width","10000"),c.setAttribute("height","10000"),c.style.overflow="hidden",a.appendChild(c),this.maxWidth=wa.defaultMaxWidth,this.maxHeight=wa.defaultMaxHeight,this._domElement=l,this._styleElement=d,this._svgRoot=a,this._foreignObject=c,this._foreignObject.appendChild(d),this._foreignObject.appendChild(l),this._image=n,this._loadImage=new Image,this._autoResolution=wa.defaultAutoResolution,this._resolution=wa.defaultResolution??Xe.RESOLUTION,this.text=e,this.style=t}measureText(e){var d,u;const{text:t,style:n,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(s)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const r=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=r;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const c=Math.min(this.maxWidth,Math.ceil(o)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",c.toString()),this._svgRoot.setAttribute("height",l.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(d=this._style)==null?void 0:d.toCSS(s)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:c+n.padding*2,height:l+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();n.width=s.width=Math.ceil(Math.max(1,r)),n.height=s.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(c=>{s.onload=async()=>{if(a<this._updateID){c();return}await t.onBeforeDraw(),n.src=s.src,s.onload=null,s.src="",this.updateTexture(),c()};const l=new XMLSerializer().serializeToString(this._svgRoot);s.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret Line truncated
* shared v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/const vu=typeof window<"u",ao=(i,e=!1)=>e?Symbol.for(i):Symbol(i),sL=(i,e,t)=>rL({l:i,k:e,s:t}),rL=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),xn=i=>typeof i=="number"&&isFinite(i),sC=i=>Wg(i)==="[object Date]",Ha=i=>Wg(i)==="[object RegExp]",Gg=i=>Ht(i)&&Object.keys(i).length===0,vn=Object.assign,oL=Object.create,Ut=(i=null)=>oL(i);let wy;const Kr=()=>wy||(wy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ut()),aL=Object.prototype.hasOwnProperty;function Ni(i,e){return aL.call(i,e)}function Rn(i,e){const t=i[e];return Ni(i,e)?t:void 0}function rC(i){return Ni(Object.prototype,i)}const en=Array.isArray,Qt=i=>typeof i=="function",Ye=i=>typeof i=="string",Dt=i=>typeof i=="boolean",kt=i=>i!==null&&typeof i=="object",lL=i=>kt(i)&&Qt(i.then)&&Qt(i.catch),oC=Object.prototype.toString,Wg=i=>oC.call(i),Ht=i=>Wg(i)==="[object Object]",cL=i=>i==null?"":en(i)||Ht(i)&&i.toString===oC?JSON.stringify(i,null,2):String(i);function qg(i,e=""){return i.reduce((t,n,s)=>s===0?t+n:t+e+n,"")}function dL(i,e){typeof console<"u"&&(console.warn("[intlify] "+i),e&&console.warn(e.stack))}function Sy(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function uL(i){return i.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const hL=/^javascript:/i,fL=/^(?:href|src|action|formaction)$/i,pL=/&#(?:x([0-9a-f]+)|(\d+));?/gi,mL=/&(?:Tab|NewLine);/g,gL=/&colon;?/gi,vL=/[\u0000-\u0020\u007f-\u009f]/g,bL=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,yL=/(^|[\s"'<>/])on(\w+\s*=)/gi,xL=/(?:^|[\s"'<>/])srcdoc\s*=/i,wL=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,SL=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function CL(i,e,t){const n=e||t;if(!n)return i;const s=Number.parseInt(n,e?16:10);return s<=127?String.fromCharCode(s):i}function Kg(i){const e=i.replace(pL,CL).replace(mL,"").replace(gL,":").replace(vL,"");return hL.test(e)}function AL(i){const e=/url\s*\(/gi;let t="",n=0,s;for(;(s=e.exec(i))!==null;){const r=s.index,o=e.lastIndex-1;let a=o+1,l=1,c=null;for(;a<i.length;a++){const h=i[a];if(c){h===c&&(c=null);continue}if(h==='"'||h==="'")c=h;else if(h==="(")l++;else if(h===")"&&(l--,l===0))break}if(l!==0)break;const d=i.slice(o+1,a).trim(),u=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;t+=i.slice(n,r),t+=Kg(u)?"url(about:blank)":i.slice(r,a+1),n=a+1}return t+i.slice(n)}function Cy(i,e){if(fL.test(i)&&Kg(e))return"about:blank";const t=i.toLowerCase()==="style"?AL(e):e;return uL(t)}function TL(i){return i=i.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Cy(t,n)}"`),i=i.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Cy(t,n)}'`),bL.test(i)&&(i=i.replace(yL,"$1&#111;n$2")),xL.test(i)&&(i=i.replace(wL,"$1&#115;$2")),i=i.replace(SL,(e,t,n,s)=>Kg(s)?`${t}${n}about:blank`:e),i}const Ay=i=>!kt(i)||en(i);function Nd(i,e){if(Ay(i)||Ay(e)||e===Object.prototype)throw new Error("Invalid value");const t=[{src:i,des:e}];for(;t.length;){const{src:n,des:s}=t.pop();Object.keys(n).forEach(r=>{if(r==="__proto__")return;const o=n[r];if(en(o)){const a=[];a.length=o.length,s[r]=a,t.push({src:o,des:a})}else kt(o)?((!kt(s[r])||en(s[r]))&&(s[r]=Ut()),t.push({src:o,des:s[r]})):s[r]=o})}}/*!
*/const vu=typeof window<"u",ao=(i,e=!1)=>e?Symbol.for(i):Symbol(i),sL=(i,e,t)=>rL({l:i,k:e,s:t}),rL=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),xn=i=>typeof i=="number"&&isFinite(i),sC=i=>Wg(i)==="[object Date]",Ha=i=>Wg(i)==="[object RegExp]",Gg=i=>Ht(i)&&Object.keys(i).length===0,vn=Object.assign,oL=Object.create,Vt=(i=null)=>oL(i);let wy;const Kr=()=>wy||(wy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Vt()),aL=Object.prototype.hasOwnProperty;function Ni(i,e){return aL.call(i,e)}function Rn(i,e){const t=i[e];return Ni(i,e)?t:void 0}function rC(i){return Ni(Object.prototype,i)}const en=Array.isArray,Qt=i=>typeof i=="function",ze=i=>typeof i=="string",Dt=i=>typeof i=="boolean",It=i=>i!==null&&typeof i=="object",lL=i=>It(i)&&Qt(i.then)&&Qt(i.catch),oC=Object.prototype.toString,Wg=i=>oC.call(i),Ht=i=>Wg(i)==="[object Object]",cL=i=>i==null?"":en(i)||Ht(i)&&i.toString===oC?JSON.stringify(i,null,2):String(i);function qg(i,e=""){return i.reduce((t,n,s)=>s===0?t+n:t+e+n,"")}function dL(i,e){typeof console<"u"&&(console.warn("[intlify] "+i),e&&console.warn(e.stack))}function Sy(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function uL(i){return i.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const hL=/^javascript:/i,fL=/^(?:href|src|action|formaction)$/i,pL=/&#(?:x([0-9a-f]+)|(\d+));?/gi,mL=/&(?:Tab|NewLine);/g,gL=/&colon;?/gi,vL=/[\u0000-\u0020\u007f-\u009f]/g,bL=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,yL=/(^|[\s"'<>/])on(\w+\s*=)/gi,xL=/(?:^|[\s"'<>/])srcdoc\s*=/i,wL=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,SL=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function CL(i,e,t){const n=e||t;if(!n)return i;const s=Number.parseInt(n,e?16:10);return s<=127?String.fromCharCode(s):i}function Kg(i){const e=i.replace(pL,CL).replace(mL,"").replace(gL,":").replace(vL,"");return hL.test(e)}function AL(i){const e=/url\s*\(/gi;let t="",n=0,s;for(;(s=e.exec(i))!==null;){const r=s.index,o=e.lastIndex-1;let a=o+1,c=1,l=null;for(;a<i.length;a++){const h=i[a];if(l){h===l&&(l=null);continue}if(h==='"'||h==="'")l=h;else if(h==="(")c++;else if(h===")"&&(c--,c===0))break}if(c!==0)break;const d=i.slice(o+1,a).trim(),u=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;t+=i.slice(n,r),t+=Kg(u)?"url(about:blank)":i.slice(r,a+1),n=a+1}return t+i.slice(n)}function Cy(i,e){if(fL.test(i)&&Kg(e))return"about:blank";const t=i.toLowerCase()==="style"?AL(e):e;return uL(t)}function TL(i){return i=i.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Cy(t,n)}"`),i=i.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Cy(t,n)}'`),bL.test(i)&&(i=i.replace(yL,"$1&#111;n$2")),xL.test(i)&&(i=i.replace(wL,"$1&#115;$2")),i=i.replace(SL,(e,t,n,s)=>Kg(s)?`${t}${n}about:blank`:e),i}const Ay=i=>!It(i)||en(i);function Nd(i,e){if(Ay(i)||Ay(e)||e===Object.prototype)throw new Error("Invalid value");const t=[{src:i,des:e}];for(;t.length;){const{src:n,des:s}=t.pop();Object.keys(n).forEach(r=>{if(r==="__proto__")return;const o=n[r];if(en(o)){const a=[];a.length=o.length,s[r]=a,t.push({src:o,des:a})}else It(o)?((!It(s[r])||en(s[r]))&&(s[r]=Vt()),t.push({src:o,des:s[r]})):s[r]=o})}}/*!
* message-compiler v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/function EL(i,e,t){return{line:i,column:e,offset:t}}function Mm(i,e,t){return{start:i,end:e}}const Nt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},_L=17;function gh(i,e,t={}){const{domain:n,messages:s,args:r}=t,o=i,a=new SyntaxError(String(o));return a.code=i,e&&(a.location=e),a.domain=n,a}function ML(i){throw i}const ds=" ",PL="\r",Xn=`
`,kL="\u2028",IL="\u2029";function RL(i){const e=i;let t=0,n=1,s=1,r=0;const o=S=>e[S]===PL&&e[S+1]===Xn,a=S=>e[S]===Xn,l=S=>e[S]===IL,c=S=>e[S]===kL,d=S=>o(S)||a(S)||l(S)||c(S),u=()=>t,h=()=>n,f=()=>s,p=()=>r,m=S=>o(S)||l(S)||c(S)?Xn:e[S],g=()=>m(t),v=()=>m(t+r);function y(){return r=0,d(t)&&(n++,s=0),o(t)&&t++,t++,s++,e[t]}function b(){return o(t+r)&&r++,r++,e[t+r]}function x(){t=0,n=1,s=1,r=0}function T(S=0){r=S}function E(){const S=t+r;for(;S!==t;)y();r=0}return{index:u,line:h,column:f,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:x,resetPeek:T,skipToPeek:E}}const js=void 0,FL=".",Ty="'",LL="tokenizer";function DL(i,e={}){const t=e.location!==!1,n=RL(i),s=()=>n.index(),r=()=>EL(n.line(),n.column(),n.index()),o=r(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:d}=e;function u(k,H,Q,...se){const ue=c();if(H.column+=Q,H.offset+=Q,d){const be=t?Mm(ue.startLoc,H):null,Se=gh(k,be,{domain:LL,args:se});d(Se)}}function h(k,H,Q){k.endLoc=r(),k.currentType=H;const se={type:H};return t&&(se.loc=Mm(k.startLoc,k.endLoc)),Q!=null&&(se.value=Q),se}const f=k=>h(k,13);function p(k,H){return k.currentChar()===H?(k.next(),H):(u(Nt.EXPECTED_TOKEN,r(),0,H),"")}function m(k){let H="";for(;k.currentPeek()===ds||k.currentPeek()===Xn;)H+=k.currentPeek(),k.peek();return H}function g(k){const H=m(k);return k.skipToPeek(),H}function v(k){if(k===js)return!1;const H=k.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H===95}function y(k){if(k===js)return!1;const H=k.charCodeAt(0);return H>=48&&H<=57}function b(k,H){const{currentType:Q}=H;if(Q!==2)return!1;m(k);const se=v(k.currentPeek());return k.resetPeek(),se}function x(k,H){const{currentType:Q}=H;if(Q!==2)return!1;m(k);const se=k.currentPeek()==="-"?k.peek():k.currentPeek(),ue=y(se);return k.resetPeek(),ue}function T(k,H){const{currentType:Q}=H;if(Q!==2)return!1;m(k);const se=k.currentPeek()===Ty;return k.resetPeek(),se}function E(k,H){const{currentType:Q}=H;if(Q!==7)return!1;m(k);const se=k.currentPeek()===".";return k.resetPeek(),se}function S(k,H){const{currentType:Q}=H;if(Q!==8)return!1;m(k);const se=v(k.currentPeek());return k.resetPeek(),se}function C(k,H){const{currentType:Q}=H;if(!(Q===7||Q===11))return!1;m(k);const se=k.currentPeek()===":";return k.resetPeek(),se}function M(k,H){const{currentType:Q}=H;if(Q!==9)return!1;const se=()=>{const be=k.currentPeek();return be==="{"?v(k.peek()):be==="@"||be==="|"||be===":"||be==="."||be===ds||!be?!1:be===Xn?(k.peek(),se()):P(k,!1)},ue=se();return k.resetPeek(),ue}function I(k){m(k);const H=k.currentPeek()==="|";return k.resetPeek(),H}function P(k,H=!0){const Q=(ue=!1,be="")=>{const Se=k.currentPeek();return Se==="{"||Se==="@"||!Se?ue:Se==="|"?!(be===ds||be===Xn):Se===ds?(k.peek(),Q(!0,ds)):Se===Xn?(k.peek(),Q(!0,Xn)):!0},se=Q();return H&&k.resetPeek(),se}function R(k,H){const Q=k.currentChar();return Q===js?js:H(Q)?(k.next(),Q):null}function N(k){const H=k.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36}function $(k){return R(k,N)}function j(k){const H=k.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36||H===45}function U(k){return R(k,j)}function Y(k){const H=k.charCodeAt(0);return H>=48&&H<=57}function B(k){return R(k,Y)}function D(k){const H=k.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102}function O(k){return R(k,D)}function F(k){let H="",Q="";for(;H=B(k);)Q+=H;return Q}function X(k){let H="";for(;;){const Q=k.currentChar();if(Q==="\\"){const se=k.peek();se==="{"||se==="}"||se==="@"||se==="|"||se==="\\"?(H+=Q+se,k.next(),k.next()):(k.resetPeek(),H+=Q,k.next())}else{if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q===ds||Q===Xn)if(P(k))H+=Q,k.next();else{if(I(k))break;H+=Q,k.next()}else H+=Q,k.next()}}return H}function z(k){g(k);let H="",Q="";for(;H=U(k);)Q+=H;const se=k.currentChar();if(se&&se!=="}"&&se!==js&&se!==ds&&se!==Xn&&se!==" "){const ue=oe(k);return u(Nt.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,Q+ue),Q+ue}return k.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),Q}function q(k){g(k);let H="";return k.currentChar()==="-"?(k.next(),H+=`-${F(k)}`):H+=F(k),k.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),H}function J(k){return k!==Ty&&k!==Xn}function ae(k){g(k),p(k,"'");let H="",Q="";for(;H=R(k,J);)H==="\\"?Q+=ce(k):Q+=H;const se=k.currentChar();return se===Xn||se===js?(u(Nt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),se===Xn&&(k.next(),p(k,"'")),Q):(p(k,"'"),Q)}function ce(k){const H=k.currentChar();switch(H){case"\\":case"'":return k.next(),`\\${H}`;case"u":return ve(k,H,4);case"U":return ve(k,H,6);default:return u(Nt.UNKNOWN_ESCAPE_SEQUENCE,r(),0,H),""}}function ve(k,H,Q){p(k,H);let se="";for(let ue=0;ue<Q;ue++){const be=O(k);if(!be){u(Nt.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${H}${se}${k.currentChar()}`);break}se+=be}return`\\${H}${se}`}function Ce(k){return k!=="{"&&k!=="}"&&k!==ds&& Line truncated
`,r=e.needIndent?e.needIndent:t!=="arrow",o=i.helpers||[],a=jL(i,{filename:n,breakLineCode:s,needIndent:r});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(r),o.length>0&&(a.push(`const { ${qg(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),Ga(a,i),a.deindent(r),a.push("}"),delete i.helpers;const{code:l,map:c}=a.context();return{ast:i,code:l,map:c?c.toJSON():void 0}};function JL(i,e={}){const t=vn({},e),n=!!t.jit,s=!!t.minify,r=t.optimize==null?!0:t.optimize,a=VL(t).parse(i);return n?(r&&zL(a),s&&Sa(a),{ast:a,code:""}):(YL(a,t),KL(a,t))}/*!
*/function EL(i,e,t){return{line:i,column:e,offset:t}}function Pm(i,e,t){return{start:i,end:e}}const Nt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},_L=17;function vh(i,e,t={}){const{domain:n,messages:s,args:r}=t,o=i,a=new SyntaxError(String(o));return a.code=i,e&&(a.location=e),a.domain=n,a}function ML(i){throw i}const ds=" ",PL="\r",Xn=`
`,kL="\u2028",IL="\u2029";function RL(i){const e=i;let t=0,n=1,s=1,r=0;const o=S=>e[S]===PL&&e[S+1]===Xn,a=S=>e[S]===Xn,c=S=>e[S]===IL,l=S=>e[S]===kL,d=S=>o(S)||a(S)||c(S)||l(S),u=()=>t,h=()=>n,f=()=>s,p=()=>r,m=S=>o(S)||c(S)||l(S)?Xn:e[S],g=()=>m(t),v=()=>m(t+r);function y(){return r=0,d(t)&&(n++,s=0),o(t)&&t++,t++,s++,e[t]}function b(){return o(t+r)&&r++,r++,e[t+r]}function x(){t=0,n=1,s=1,r=0}function T(S=0){r=S}function E(){const S=t+r;for(;S!==t;)y();r=0}return{index:u,line:h,column:f,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:x,resetPeek:T,skipToPeek:E}}const js=void 0,FL=".",Ty="'",LL="tokenizer";function DL(i,e={}){const t=e.location!==!1,n=RL(i),s=()=>n.index(),r=()=>EL(n.line(),n.column(),n.index()),o=r(),a=s(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:d}=e;function u(O,V,W,...ee){const be=l();if(V.column+=W,V.offset+=W,d){const ye=t?Pm(be.startLoc,V):null,he=vh(O,ye,{domain:LL,args:ee});d(he)}}function h(O,V,W){O.endLoc=r(),O.currentType=V;const ee={type:V};return t&&(ee.loc=Pm(O.startLoc,O.endLoc)),W!=null&&(ee.value=W),ee}const f=O=>h(O,13);function p(O,V){return O.currentChar()===V?(O.next(),V):(u(Nt.EXPECTED_TOKEN,r(),0,V),"")}function m(O){let V="";for(;O.currentPeek()===ds||O.currentPeek()===Xn;)V+=O.currentPeek(),O.peek();return V}function g(O){const V=m(O);return O.skipToPeek(),V}function v(O){if(O===js)return!1;const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function y(O){if(O===js)return!1;const V=O.charCodeAt(0);return V>=48&&V<=57}function b(O,V){const{currentType:W}=V;if(W!==2)return!1;m(O);const ee=v(O.currentPeek());return O.resetPeek(),ee}function x(O,V){const{currentType:W}=V;if(W!==2)return!1;m(O);const ee=O.currentPeek()==="-"?O.peek():O.currentPeek(),be=y(ee);return O.resetPeek(),be}function T(O,V){const{currentType:W}=V;if(W!==2)return!1;m(O);const ee=O.currentPeek()===Ty;return O.resetPeek(),ee}function E(O,V){const{currentType:W}=V;if(W!==7)return!1;m(O);const ee=O.currentPeek()===".";return O.resetPeek(),ee}function S(O,V){const{currentType:W}=V;if(W!==8)return!1;m(O);const ee=v(O.currentPeek());return O.resetPeek(),ee}function C(O,V){const{currentType:W}=V;if(!(W===7||W===11))return!1;m(O);const ee=O.currentPeek()===":";return O.resetPeek(),ee}function M(O,V){const{currentType:W}=V;if(W!==9)return!1;const ee=()=>{const ye=O.currentPeek();return ye==="{"?v(O.peek()):ye==="@"||ye==="|"||ye===":"||ye==="."||ye===ds||!ye?!1:ye===Xn?(O.peek(),ee()):P(O,!1)},be=ee();return O.resetPeek(),be}function k(O){m(O);const V=O.currentPeek()==="|";return O.resetPeek(),V}function P(O,V=!0){const W=(be=!1,ye="")=>{const he=O.currentPeek();return he==="{"||he==="@"||!he?be:he==="|"?!(ye===ds||ye===Xn):he===ds?(O.peek(),W(!0,ds)):he===Xn?(O.peek(),W(!0,Xn)):!0},ee=W();return V&&O.resetPeek(),ee}function I(O,V){const W=O.currentChar();return W===js?js:V(W)?(O.next(),W):null}function N(O){const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function $(O){return I(O,N)}function j(O){const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function B(O){return I(O,j)}function Y(O){const V=O.charCodeAt(0);return V>=48&&V<=57}function U(O){return I(O,Y)}function D(O){const V=O.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function L(O){return I(O,D)}function R(O){let V="",W="";for(;V=U(O);)W+=V;return W}function X(O){let V="";for(;;){const W=O.currentChar();if(W==="\\"){const ee=O.peek();ee==="{"||ee==="}"||ee==="@"||ee==="|"||ee==="\\"?(V+=W+ee,O.next(),O.next()):(O.resetPeek(),V+=W,O.next())}else{if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W===ds||W===Xn)if(P(O))V+=W,O.next();else{if(k(O))break;V+=W,O.next()}else V+=W,O.next()}}return V}function z(O){g(O);let V="",W="";for(;V=B(O);)W+=V;const ee=O.currentChar();if(ee&&ee!=="}"&&ee!==js&&ee!==ds&&ee!==Xn&&ee!==" "){const be=re(O);return u(Nt.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,W+be),W+be}return O.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),W}function K(O){g(O);let V="";return O.currentChar()==="-"?(O.next(),V+=`-${R(O)}`):V+=R(O),O.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),V}function Z(O){return O!==Ty&&O!==Xn}function ae(O){g(O),p(O,"'");let V="",W="";for(;V=I(O,Z);)V==="\\"?W+=ce(O):W+=V;const ee=O.currentChar();return ee===Xn||ee===js?(u(Nt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),ee===Xn&&(O.next(),p(O,"'")),W):(p(O,"'"),W)}function ce(O){const V=O.currentChar();switch(V){case"\\":case"'":return O.next(),`\\${V}`;case"u":return ve(O,V,4);case"U":return ve(O,V,6);default:return u(Nt.UNKNOWN_ESCAPE_SEQUENCE,r(),0,V),""}}function ve(O,V,W){p(O,V);let ee="";for(let be=0;be<W;be++){const ye=L(O);if(!ye){u(Nt.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${V}${ee}${O.currentChar()}`);break}ee+=ye}return`\\${V}${ee}`}function we(O){return O!=="{"&&O!=="}"&&O!==ds&& Line truncated
`,r=e.needIndent?e.needIndent:t!=="arrow",o=i.helpers||[],a=jL(i,{filename:n,breakLineCode:s,needIndent:r});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(r),o.length>0&&(a.push(`const { ${qg(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),Ga(a,i),a.deindent(r),a.push("}"),delete i.helpers;const{code:c,map:l}=a.context();return{ast:i,code:c,map:l?l.toJSON():void 0}};function JL(i,e={}){const t=vn({},e),n=!!t.jit,s=!!t.minify,r=t.optimize==null?!0:t.optimize,a=VL(t).parse(i);return n?(r&&zL(a),s&&Sa(a),{ast:a,code:""}):(YL(a,t),KL(a,t))}/*!
* core-base v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/function ZL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Go(i){return kt(i)&&Zg(i)===0&&(Ni(i,"b")||Ni(i,"body"))}const aC=["b","body"];function QL(i){return lo(i,aC)}const lC=["c","cases"];function eD(i){return lo(i,lC,[])}const cC=["s","static"];function tD(i){return lo(i,cC)}const dC=["i","items"];function nD(i){return lo(i,dC,[])}const uC=["t","type"];function Zg(i){return lo(i,uC)}const hC=["v","value"];function fd(i,e){const t=lo(i,hC);if(t!=null)return t;throw lc(e)}const fC=["m","modifier"];function iD(i){return lo(i,fC)}const pC=["k","key"];function sD(i){const e=lo(i,pC);if(e)return e;throw lc(6)}function lo(i,e,t){for(let n=0;n<e.length;n++){const s=e[n];if(Ni(i,s)&&i[s]!=null)return i[s]}return t}const mC=[...aC,...lC,...cC,...dC,...pC,...fC,...hC,...uC];function lc(i){return new Error(`unhandled node type: ${i}`)}function fp(i){return t=>rD(t,i)}function rD(i,e){const t=QL(e);if(t==null)throw lc(0);if(Zg(t)===1){const r=eD(t);return i.plural(r.reduce((o,a)=>[...o,My(i,a)],[]))}else return My(i,t)}function My(i,e){const t=tD(e);if(t!=null)return i.type==="text"?t:i.normalize([t]);{const n=nD(e).reduce((s,r)=>[...s,Pm(i,r)],[]);return i.normalize(n)}}function Pm(i,e){const t=Zg(e);switch(t){case 3:return fd(e,t);case 9:return fd(e,t);case 4:{const n=e;if(Ni(n,"k")&&n.k)return i.interpolate(i.named(n.k));if(Ni(n,"key")&&n.key)return i.interpolate(i.named(n.key));throw lc(t)}case 5:{const n=e;if(Ni(n,"i")&&xn(n.i))return i.interpolate(i.list(n.i));if(Ni(n,"index")&&xn(n.index))return i.interpolate(i.list(n.index));throw lc(t)}case 6:{const n=e,s=iD(n),r=sD(n);return i.linked(Pm(i,r),s?Pm(i,s):void 0,i.type)}case 7:return fd(e,t);case 8:return fd(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const oD=i=>i;let pd=Ut();function aD(i,e={}){let t=!1;const n=e.onError||ML;return e.onError=s=>{t=!0,n(s)},{...JL(i,e),detectError:t}}function lD(i,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ye(i)){Dt(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||oD)(i),s=pd[n];if(s)return s;const{ast:r,detectError:o}=aD(i,{...e,location:!1,jit:!0}),a=fp(r);return o?a:pd[n]=a}else{if(!Go(i))return(()=>i);const t=i.cacheKey;if(t){const n=pd[t];return n||(pd[t]=fp(i))}else return fp(i)}}let cc=null;function cD(i){cc=i}function dD(i,e,t){cc&&cc.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:e,meta:t})}const uD=hD("function:translate");function hD(i){return e=>cc&&cc.emit(i,e)}const sr={INVALID_ARGUMENT:_L,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},fD=24;function rr(i){return gh(i,null,void 0)}function Qg(i,e){return e.locale!=null?Py(e.locale):Py(i.locale)}let pp;function Py(i){if(Ye(i))return i;if(Qt(i)){if(i.resolvedOnce&&pp!=null)return pp;if(i.constructor.name==="Function"){const e=i();if(lL(e))throw rr(sr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return pp=e}else throw rr(sr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw rr(sr.NOT_SUPPORT_LOCALE_TYPE)}function pD(i,e,t){return[...new Set([t,...en(e)?e:kt(e)?Object.keys(e).filter(n=>n!=="default"):Ye(e)?[e]:[t]])]}function mD(i,e,t){const n=Ye(t)?t:dc,s=i;let r;kt(e)?(s.__localeChainObjectCache||(s.__localeChainObjectCache=new WeakMap),r=s.__localeChainObjectCache.get(e),r||(r=new Map,s.__localeChainObjectCache.set(e,r))):(s.__localeChainCache||(s.__localeChainCache=new Map),r=s.__localeChainCache.get(e),r||(r=new Map,s.__localeChainCache.set(e,r)));const o=r.get(n);if(o)return o;const a=[];let l=[t];for(;en(l);)l=ky(a,l,e);const c=en(e)||!Ht(e)?e:e.default?e.default:null;return l=Ye(c)?[c]:c,en(l)&&ky(a,l,!1),r.set(n,a),a}function ky(i,e,t){let n=!0;for(let s=0;s<e.length&&Dt(n);s++){const r=e[s];Ye(r)&&(n=gD(i,e[s],t))}return n}function gD(i,e,t){let n;const s=e.split("-");do{const r=s.join("-");n=vD(i,r,t),s.splice(-1,1)}while(s.length&&n===!0);return n}function vD(i,e,t){let n=!1;if(!i.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const s=e.replace(/!/g,"");i.push(s),(en(t)||Ht(t))&&t[s]&&(n=t[s])}return n}const co=[];co[0]={w:[0],i:[3,0],"[":[4],o:[7]};co[1]={w:[1],".":[2],"[":[4],o:[7]};co[2]={w:[2],i:[3,0],0:[3,0]};co[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};co[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};co[5]={"'":[4,0],o:8,l:[5,0]};co[6]={'"':[4,0],o:8,l:[6,0]};const bD=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function yD(i){return bD.test(i)}function xD(i){const e=i.charCodeAt(0),t=i.charCodeAt(i.length-1);return e===t&&(e===34||e===39)?i.slice(1,-1):i}function wD(i){if(i==null)return"o";switch(i.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return i;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function SD(i){const e=i.trim();return i.charAt(0)==="0"&&Line truncated
*/function ZL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Go(i){return It(i)&&Zg(i)===0&&(Ni(i,"b")||Ni(i,"body"))}const aC=["b","body"];function QL(i){return lo(i,aC)}const lC=["c","cases"];function eD(i){return lo(i,lC,[])}const cC=["s","static"];function tD(i){return lo(i,cC)}const dC=["i","items"];function nD(i){return lo(i,dC,[])}const uC=["t","type"];function Zg(i){return lo(i,uC)}const hC=["v","value"];function fd(i,e){const t=lo(i,hC);if(t!=null)return t;throw cc(e)}const fC=["m","modifier"];function iD(i){return lo(i,fC)}const pC=["k","key"];function sD(i){const e=lo(i,pC);if(e)return e;throw cc(6)}function lo(i,e,t){for(let n=0;n<e.length;n++){const s=e[n];if(Ni(i,s)&&i[s]!=null)return i[s]}return t}const mC=[...aC,...lC,...cC,...dC,...pC,...fC,...hC,...uC];function cc(i){return new Error(`unhandled node type: ${i}`)}function pp(i){return t=>rD(t,i)}function rD(i,e){const t=QL(e);if(t==null)throw cc(0);if(Zg(t)===1){const r=eD(t);return i.plural(r.reduce((o,a)=>[...o,My(i,a)],[]))}else return My(i,t)}function My(i,e){const t=tD(e);if(t!=null)return i.type==="text"?t:i.normalize([t]);{const n=nD(e).reduce((s,r)=>[...s,km(i,r)],[]);return i.normalize(n)}}function km(i,e){const t=Zg(e);switch(t){case 3:return fd(e,t);case 9:return fd(e,t);case 4:{const n=e;if(Ni(n,"k")&&n.k)return i.interpolate(i.named(n.k));if(Ni(n,"key")&&n.key)return i.interpolate(i.named(n.key));throw cc(t)}case 5:{const n=e;if(Ni(n,"i")&&xn(n.i))return i.interpolate(i.list(n.i));if(Ni(n,"index")&&xn(n.index))return i.interpolate(i.list(n.index));throw cc(t)}case 6:{const n=e,s=iD(n),r=sD(n);return i.linked(km(i,r),s?km(i,s):void 0,i.type)}case 7:return fd(e,t);case 8:return fd(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const oD=i=>i;let pd=Vt();function aD(i,e={}){let t=!1;const n=e.onError||ML;return e.onError=s=>{t=!0,n(s)},{...JL(i,e),detectError:t}}function lD(i,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(i)){Dt(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||oD)(i),s=pd[n];if(s)return s;const{ast:r,detectError:o}=aD(i,{...e,location:!1,jit:!0}),a=pp(r);return o?a:pd[n]=a}else{if(!Go(i))return(()=>i);const t=i.cacheKey;if(t){const n=pd[t];return n||(pd[t]=pp(i))}else return pp(i)}}let dc=null;function cD(i){dc=i}function dD(i,e,t){dc&&dc.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:e,meta:t})}const uD=hD("function:translate");function hD(i){return e=>dc&&dc.emit(i,e)}const sr={INVALID_ARGUMENT:_L,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},fD=24;function rr(i){return vh(i,null,void 0)}function Qg(i,e){return e.locale!=null?Py(e.locale):Py(i.locale)}let mp;function Py(i){if(ze(i))return i;if(Qt(i)){if(i.resolvedOnce&&mp!=null)return mp;if(i.constructor.name==="Function"){const e=i();if(lL(e))throw rr(sr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return mp=e}else throw rr(sr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw rr(sr.NOT_SUPPORT_LOCALE_TYPE)}function pD(i,e,t){return[...new Set([t,...en(e)?e:It(e)?Object.keys(e).filter(n=>n!=="default"):ze(e)?[e]:[t]])]}function mD(i,e,t){const n=ze(t)?t:uc,s=i;let r;It(e)?(s.__localeChainObjectCache||(s.__localeChainObjectCache=new WeakMap),r=s.__localeChainObjectCache.get(e),r||(r=new Map,s.__localeChainObjectCache.set(e,r))):(s.__localeChainCache||(s.__localeChainCache=new Map),r=s.__localeChainCache.get(e),r||(r=new Map,s.__localeChainCache.set(e,r)));const o=r.get(n);if(o)return o;const a=[];let c=[t];for(;en(c);)c=ky(a,c,e);const l=en(e)||!Ht(e)?e:e.default?e.default:null;return c=ze(l)?[l]:l,en(c)&&ky(a,c,!1),r.set(n,a),a}function ky(i,e,t){let n=!0;for(let s=0;s<e.length&&Dt(n);s++){const r=e[s];ze(r)&&(n=gD(i,e[s],t))}return n}function gD(i,e,t){let n;const s=e.split("-");do{const r=s.join("-");n=vD(i,r,t),s.splice(-1,1)}while(s.length&&n===!0);return n}function vD(i,e,t){let n=!1;if(!i.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const s=e.replace(/!/g,"");i.push(s),(en(t)||Ht(t))&&t[s]&&(n=t[s])}return n}const co=[];co[0]={w:[0],i:[3,0],"[":[4],o:[7]};co[1]={w:[1],".":[2],"[":[4],o:[7]};co[2]={w:[2],i:[3,0],0:[3,0]};co[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};co[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};co[5]={"'":[4,0],o:8,l:[5,0]};co[6]={'"':[4,0],o:8,l:[6,0]};const bD=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function yD(i){return bD.test(i)}function xD(i){const e=i.charCodeAt(0),t=i.charCodeAt(i.length-1);return e===t&&(e===34||e===39)?i.slice(1,-1):i}function wD(i){if(i==null)return"o";switch(i.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return i;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function SD(i){const e=i.trim();return i.charAt(0)==="0"&&Line truncated
* vue-i18n v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/const WD="11.4.16";function qD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1)}const li={UNEXPECTED_RETURN_TYPE:fD,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function pi(i,...e){return gh(i,null,void 0)}const Fm=ao("__translateVNode"),Lm=ao("__datetimeParts"),Dm=ao("__numberParts"),kC=ao("__setPluralRules"),IC=ao("__injectWithOption"),Aa=ao("__dispose");let RC=null;{const i=Kr().__VUE_INSTANCE_SETTERS__;en(i)&&i.push(e=>{RC=e})}function Br(i){return!!rC(i)}function uc(i){if(!kt(i)||Go(i))return i;for(const e in i)if(Ni(i,e))if(!e.includes("."))kt(i[e])&&uc(i[e]);else{const t=e.split("."),n=t.length-1;let s=i,r=!1;for(let a=0;a<n;a++){if(t[a]==="__proto__")throw new Error(`unsafe key: ${t[a]}`);if(t[a]in s||(s[t[a]]=Ut()),!kt(s[t[a]])){r=!0;break}if(Go(s[t[a]])&&(mC.includes(t[a+1])||t[a+1]==="cacheKey")){r=!0;break}s=s[t[a]]}r||(s[t[n]]=i[e],delete i[e]);const o=s[t[n]];kt(o)&&uc(o)}return i}function ev(i,e){const{messages:t,__i18n:n,messageResolver:s,flatJson:r}=e,o=Ht(t)?t:en(n)?Ut():{[i]:Ut()};if(en(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;if(l){if(Br(l))return;o[l]=Rn(o,l)||Ut(),Nd(c,o[l])}else Nd(c,o)}else Ye(a)&&Nd(JSON.parse(a),o)}),s==null&&r)for(const a in o)Ni(o,a)&&uc(o[a]);return o}function FC(i){return i.type}function LC(i,e,t){let n=kt(e.messages)?e.messages:Ut();"__i18nGlobal"in t&&(n=ev(i.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(r=>{i.mergeLocaleMessage(r,n[r])});{if(kt(e.datetimeFormats)){const r=Object.keys(e.datetimeFormats);r.length&&r.forEach(o=>{i.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(kt(e.numberFormats)){const r=Object.keys(e.numberFormats);r.length&&r.forEach(o=>{i.mergeNumberFormat(o,e.numberFormats[o])})}}}function Xy(i){return we(wc,null,i,0)}function hc(){return RC??nh()}const Yy="__INTLIFY_META__",zy=()=>[],KD=()=>!1;let jy=0;function Hy(i){return((e,t,n,s)=>i(t,n,hc()||void 0,s))}const JD=()=>{const i=hc();let e=null;return i&&(e=FC(i)[Yy])?{[Yy]:e}:null};function xu(i={}){const{__root:e,__injectWithOption:t}=i,n=e===void 0,s=i.flatJson,r=vu?Re:u_;let o=Dt(i.inheritLocale)?i.inheritLocale:!0;const a=r(e&&o?e.locale.value:Ye(i.locale)?i.locale:dc),l=r(e&&o?e.fallbackLocale.value:Ye(i.fallbackLocale)||en(i.fallbackLocale)||Ht(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:a.value),c=r(ev(a.value,i)),d=r(Ht(i.datetimeFormats)?i.datetimeFormats:{[a.value]:{}}),u=r(Ht(i.numberFormats)?i.numberFormats:{[a.value]:{}});let h=e?e.missingWarn:Dt(i.missingWarn)||Ha(i.missingWarn)?i.missingWarn:!0,f=e?e.fallbackWarn:Dt(i.fallbackWarn)||Ha(i.fallbackWarn)?i.fallbackWarn:!0,p=e?e.fallbackRoot:Dt(i.fallbackRoot)?i.fallbackRoot:!0,m=!!i.fallbackFormat,g=Qt(i.missing)?i.missing:null,v=Qt(i.missing)?Hy(i.missing):null,y=Qt(i.postTranslation)?i.postTranslation:null,b=e?e.warnHtmlMessage:Dt(i.warnHtmlMessage)?i.warnHtmlMessage:!0,x=!!i.escapeParameter;const T=e?e.modifiers:Ht(i.modifiers)?i.modifiers:{};let E=i.pluralRules||e&&e.pluralRules,S;S=(()=>{n&&Fy(null);const de={version:WD,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:T,pluralRules:E,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};de.datetimeFormats=d.value,de.numberFormats=u.value;const ge=LD(de);return n&&Fy(ge),ge})(),md(S,a.value,l.value);function M(){return[a.value,l.value,c.value,d.value,u.value]}const I=Le({get:()=>a.value,set:de=>{S.locale=de,a.value=de}});function P(de){n||(S.fallbackContext=FD());try{return de()}finally{n||(S.fallbackContext=void 0)}}function R(de){P(()=>md(S,a.value,de))}const N=Le({get:()=>l.value,set:de=>{l.value=de,S.fallbackLocale=l.value,R(l.value)}}),$=Le(()=>c.value),j=Le(()=>d.value),U=Le(()=>u.value);function Y(){return Qt(y)?y:null}function B(de){y=de,S.postTranslation=de}function D(){return g}function O(de){de!==null&&(v=Hy(de)),g=de,S.missing=v}const F=(de,ge,We,Ke,pt,st)=>{M();let $e;try{__INTLIFY_PROD_DEVTOOLS__,$e=P(()=>de(S))}finally{__INTLIFY_PROD_DEVTOOLS__}if(We!=="translate exists"&&xn($e)&&$e===vh||We==="translate exists"&&!$e){const[bt,Ee]=ge();return e&&p?Ke(e):pt(bt)}else{if(st($e))return $e;throw pi(li.UNEXPECTED_RETURN_TYPE)}};function X(...de){return F(ge=>Reflect.apply(Vy,null,[ge,...de]),()=>Rm(...de),"translate",ge=>Reflect.apply(ge.t,ge,[...de]),ge=>ge,ge=>Ye(ge))}function z(...de){const[ge,We,Ke]=de;if(Ke&&!kt(Ke))throLine truncated
*/const WD="11.4.16";function qD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1)}const li={UNEXPECTED_RETURN_TYPE:fD,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function pi(i,...e){return vh(i,null,void 0)}const Lm=ao("__translateVNode"),Dm=ao("__datetimeParts"),Om=ao("__numberParts"),kC=ao("__setPluralRules"),IC=ao("__injectWithOption"),Aa=ao("__dispose");let RC=null;{const i=Kr().__VUE_INSTANCE_SETTERS__;en(i)&&i.push(e=>{RC=e})}function Br(i){return!!rC(i)}function hc(i){if(!It(i)||Go(i))return i;for(const e in i)if(Ni(i,e))if(!e.includes("."))It(i[e])&&hc(i[e]);else{const t=e.split("."),n=t.length-1;let s=i,r=!1;for(let a=0;a<n;a++){if(t[a]==="__proto__")throw new Error(`unsafe key: ${t[a]}`);if(t[a]in s||(s[t[a]]=Vt()),!It(s[t[a]])){r=!0;break}if(Go(s[t[a]])&&(mC.includes(t[a+1])||t[a+1]==="cacheKey")){r=!0;break}s=s[t[a]]}r||(s[t[n]]=i[e],delete i[e]);const o=s[t[n]];It(o)&&hc(o)}return i}function ev(i,e){const{messages:t,__i18n:n,messageResolver:s,flatJson:r}=e,o=Ht(t)?t:en(n)?Vt():{[i]:Vt()};if(en(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;if(c){if(Br(c))return;o[c]=Rn(o,c)||Vt(),Nd(l,o[c])}else Nd(l,o)}else ze(a)&&Nd(JSON.parse(a),o)}),s==null&&r)for(const a in o)Ni(o,a)&&hc(o[a]);return o}function FC(i){return i.type}function LC(i,e,t){let n=It(e.messages)?e.messages:Vt();"__i18nGlobal"in t&&(n=ev(i.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(r=>{i.mergeLocaleMessage(r,n[r])});{if(It(e.datetimeFormats)){const r=Object.keys(e.datetimeFormats);r.length&&r.forEach(o=>{i.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(It(e.numberFormats)){const r=Object.keys(e.numberFormats);r.length&&r.forEach(o=>{i.mergeNumberFormat(o,e.numberFormats[o])})}}}function Xy(i){return Ce(wc,null,i,0)}function fc(){return RC??ih()}const Yy="__INTLIFY_META__",zy=()=>[],KD=()=>!1;let jy=0;function Hy(i){return((e,t,n,s)=>i(t,n,fc()||void 0,s))}const JD=()=>{const i=fc();let e=null;return i&&(e=FC(i)[Yy])?{[Yy]:e}:null};function xu(i={}){const{__root:e,__injectWithOption:t}=i,n=e===void 0,s=i.flatJson,r=vu?Re:u_;let o=Dt(i.inheritLocale)?i.inheritLocale:!0;const a=r(e&&o?e.locale.value:ze(i.locale)?i.locale:uc),c=r(e&&o?e.fallbackLocale.value:ze(i.fallbackLocale)||en(i.fallbackLocale)||Ht(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:a.value),l=r(ev(a.value,i)),d=r(Ht(i.datetimeFormats)?i.datetimeFormats:{[a.value]:{}}),u=r(Ht(i.numberFormats)?i.numberFormats:{[a.value]:{}});let h=e?e.missingWarn:Dt(i.missingWarn)||Ha(i.missingWarn)?i.missingWarn:!0,f=e?e.fallbackWarn:Dt(i.fallbackWarn)||Ha(i.fallbackWarn)?i.fallbackWarn:!0,p=e?e.fallbackRoot:Dt(i.fallbackRoot)?i.fallbackRoot:!0,m=!!i.fallbackFormat,g=Qt(i.missing)?i.missing:null,v=Qt(i.missing)?Hy(i.missing):null,y=Qt(i.postTranslation)?i.postTranslation:null,b=e?e.warnHtmlMessage:Dt(i.warnHtmlMessage)?i.warnHtmlMessage:!0,x=!!i.escapeParameter;const T=e?e.modifiers:Ht(i.modifiers)?i.modifiers:{};let E=i.pluralRules||e&&e.pluralRules,S;S=(()=>{n&&Fy(null);const de={version:WD,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:T,pluralRules:E,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};de.datetimeFormats=d.value,de.numberFormats=u.value;const ge=LD(de);return n&&Fy(ge),ge})(),md(S,a.value,c.value);function M(){return[a.value,c.value,l.value,d.value,u.value]}const k=Le({get:()=>a.value,set:de=>{S.locale=de,a.value=de}});function P(de){n||(S.fallbackContext=FD());try{return de()}finally{n||(S.fallbackContext=void 0)}}function I(de){P(()=>md(S,a.value,de))}const N=Le({get:()=>c.value,set:de=>{c.value=de,S.fallbackLocale=c.value,I(c.value)}}),$=Le(()=>l.value),j=Le(()=>d.value),B=Le(()=>u.value);function Y(){return Qt(y)?y:null}function U(de){y=de,S.postTranslation=de}function D(){return g}function L(de){de!==null&&(v=Hy(de)),g=de,S.missing=v}const R=(de,ge,Ve,qe,bt,ft)=>{M();let Oe;try{__INTLIFY_PROD_DEVTOOLS__,Oe=P(()=>de(S))}finally{__INTLIFY_PROD_DEVTOOLS__}if(Ve!=="translate exists"&&xn(Oe)&&Oe===bh||Ve==="translate exists"&&!Oe){const[ot,Te]=ge();return e&&p?qe(e):bt(ot)}else{if(ft(Oe))return Oe;throw pi(li.UNEXPECTED_RETURN_TYPE)}};function X(...de){return R(ge=>Reflect.apply(Vy,null,[ge,...de]),()=>Fm(...de),"translate",ge=>Reflect.apply(ge.t,ge,[...de]),ge=>ge,ge=>ze(ge))}function z(...de){const[ge,Ve,qe]=de;if(qe&&!It(qe))throLine truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1200,7 +1200,7 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`,L4=`
`,D4=`
varying vec2 vTextureCoord;
uniform vec4 uColor;
uniform vec4 uDarkColor;
@@ -1213,7 +1213,7 @@ void main(void)
gl_FragColor.a = texColor.a * uColor.a;
gl_FragColor.rgb = ((texColor.a - 1.0) * uDarkColor.a + 1.0 - texColor.rgb) * uDarkColor.rgb + texColor.rgb * uColor.rgb;
}
`;class D4 extends ss{constructor(t){const n={uSampler:t??tt.EMPTY,alpha:1,uTextureMatrix:Yt.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ks.from(F4,L4),n);A(this,"uvMatrix");A(this,"batchable");A(this,"pluginName");A(this,"_tintRGB");A(this,"_darkTintRGB");A(this,"_colorDirty");A(this,"_alpha");A(this,"_tintColor");A(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new $g(n.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new Ot(s.tint),this._darkTintColor=new Ot(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(t){t!==this.darkTint&&(this._darkTintColor.setValue(t),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Ot.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Ot.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class O4 extends oc{constructor(t){super(new R4,new D4(t),void 0,void 0);A(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(t){this.shader.darkTint=t}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(t){const n=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=n.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const Sn=class Sn extends O4{constructor(){super();A(this,"name","")}updateFromSpineData(t,n,s,r,o,a,l,c){var v,y;this.texture=t.texture;const d=o/(c?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==d&&(u.data=new Float32Array(d));const h=this.geometry.getBuffer("aVertexPosition");((y=h.data)==null?void 0:y.length)!==d&&(h.data=new Float32Array(d));let f=0,p=u.data,m=h.data;for(let b=0;b<o;b+=c?12:8){let x=b;m[f]=r[x++],m[f+1]=r[x++],x+=4,p[f]=r[x++],p[f+1]=r[x++],f+=2}c?(Sn.auxColor[0]=r[8],Sn.auxColor[1]=r[9],Sn.auxColor[2]=r[10],Sn.auxColor[3]=r[11],this.darkTint=Sn.auxColor,Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor):(Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor),this.blendMode=Wo.toPixiBlending(n),this.alpha=Sn.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const b=g.data;for(let x=0;x<l;x++)b[x]=a[x]}this.name=s,u.update(),h.update(),g.update()}};A(Sn,"auxColor",[0,0,0,0]);let Ul=Sn;const It=class It extends Mn{constructor(t,n){if(t instanceof Au)t={...n,skeletonData:t};else if(n)throw new Error("You cannot use options and oldOptions together.");super();A(this,"skeleton");A(this,"state");A(this,"darkTint",!1);A(this,"hasNeverUpdated",!0);A(this,"_debug");A(this,"slotMeshFactory",()=>new Vm);A(this,"beforeUpdateWorldTransforms",()=>{});A(this,"afterUpdateWorldTransforms",()=>{});A(this,"_autoUpdate",!1);A(this,"_ticker",ai.shared);A(this,"meshesCache",new Map);A(this,"lightColor",new ut);A(this,"darkColor",new ut);A(this,"_boundsProvider");A(this,"_boundsPoint",new Pt);A(this,"_boundsSpineID",-1);A(this,"_boundsSpineDirty",!0);A(this,"slotsObject",new Map);A(this,"verticesCache",Oe.newFloatArray(1024));A(this,"clippingSlotToPixiMasks",{});A(this,"currentClippingSlot");const s=t instanceof Au?t:t.skeletonData;this.skeleton=new rv(s);const r=new X3(s);this.state=new N3(r),(t==null?void 0:t.darkTint)!==void 0||(n==null?void 0:n.slotMeshFactory)===void 0?(this.darkTint=(t==null?void 0:t.darkTint)===void 0?this.skeleton.slots.some(o=>!!o.data.darkColor):t==null?void 0:t.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Ul)):this.initializeMeshFactory(n==null?void 0:n.slotMeshFactory),t!=null&&t.ticker&&(this._ticker=t.ticker),this.autoUpdate=(t==null?void 0:t.autoUpdate)??!0,this.boundsProvider=t.boundsProvide Line truncated
`;class O4 extends ss{constructor(t){const n={uSampler:t??tt.EMPTY,alpha:1,uTextureMatrix:Yt.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ks.from(L4,D4),n);A(this,"uvMatrix");A(this,"batchable");A(this,"pluginName");A(this,"_tintRGB");A(this,"_darkTintRGB");A(this,"_colorDirty");A(this,"_alpha");A(this,"_tintColor");A(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new $g(n.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new Ot(s.tint),this._darkTintColor=new Ot(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(t){t!==this.darkTint&&(this._darkTintColor.setValue(t),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Ot.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Ot.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class N4 extends ac{constructor(t){super(new F4,new O4(t),void 0,void 0);A(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(t){this.shader.darkTint=t}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(t){const n=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=n.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const Sn=class Sn extends N4{constructor(){super();A(this,"name","")}updateFromSpineData(t,n,s,r,o,a,c,l){var v,y;this.texture=t.texture;const d=o/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==d&&(u.data=new Float32Array(d));const h=this.geometry.getBuffer("aVertexPosition");((y=h.data)==null?void 0:y.length)!==d&&(h.data=new Float32Array(d));let f=0,p=u.data,m=h.data;for(let b=0;b<o;b+=l?12:8){let x=b;m[f]=r[x++],m[f+1]=r[x++],x+=4,p[f]=r[x++],p[f+1]=r[x++],f+=2}l?(Sn.auxColor[0]=r[8],Sn.auxColor[1]=r[9],Sn.auxColor[2]=r[10],Sn.auxColor[3]=r[11],this.darkTint=Sn.auxColor,Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor):(Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor),this.blendMode=Wo.toPixiBlending(n),this.alpha=Sn.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const b=g.data;for(let x=0;x<c;x++)b[x]=a[x]}this.name=s,u.update(),h.update(),g.update()}};A(Sn,"auxColor",[0,0,0,0]);let Vl=Sn;const Rt=class Rt extends Mn{constructor(t,n){if(t instanceof Au)t={...n,skeletonData:t};else if(n)throw new Error("You cannot use options and oldOptions together.");super();A(this,"skeleton");A(this,"state");A(this,"darkTint",!1);A(this,"hasNeverUpdated",!0);A(this,"_debug");A(this,"slotMeshFactory",()=>new Xm);A(this,"beforeUpdateWorldTransforms",()=>{});A(this,"afterUpdateWorldTransforms",()=>{});A(this,"_autoUpdate",!1);A(this,"_ticker",ai.shared);A(this,"meshesCache",new Map);A(this,"lightColor",new ut);A(this,"darkColor",new ut);A(this,"_boundsProvider");A(this,"_boundsPoint",new Pt);A(this,"_boundsSpineID",-1);A(this,"_boundsSpineDirty",!0);A(this,"slotsObject",new Map);A(this,"verticesCache",Ne.newFloatArray(1024));A(this,"clippingSlotToPixiMasks",{});A(this,"currentClippingSlot");const s=t instanceof Au?t:t.skeletonData;this.skeleton=new rv(s);const r=new Y3(s);this.state=new $3(r),(t==null?void 0:t.darkTint)!==void 0||(n==null?void 0:n.slotMeshFactory)===void 0?(this.darkTint=(t==null?void 0:t.darkTint)===void 0?this.skeleton.slots.some(o=>!!o.data.darkColor):t==null?void 0:t.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Vl)):this.initializeMeshFactory(n==null?void 0:n.slotMeshFactory),t!=null&&t.ticker&&(this._ticker=t.ticker),this.autoUpdate=(t==null?void 0:t.autoUpdate)??!0,this.boundsProvider=t.boundsProvide Line truncated
precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1239,7 +1239,7 @@ void main(void){
vDarkColor = aDarkColor * tint;
}
`,Y4=`
`,z4=`
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
@@ -1254,4 +1254,4 @@ void main(void){
gl_FragColor.a = color.a * vColor.a;
gl_FragColor.rgb = ((color.a - 1.0) * vDarkColor.a + 1.0 - color.rgb) * vDarkColor.rgb + color.rgb * vColor.rgb;
}
`;class UA extends Nr{constructor(e){super(e),this.shaderGenerator=new Yw(X4,Y4),this.geometryClass=V4,this.vertexSize=7}packInterleavedGeometry(e,t,n,s,r){const{uint32View:o,float32View:a}=t,l=s/this.vertexSize,c=e.uvs,d=e.indices,u=e.vertexData,h=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Ot.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Ot.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[s++]=u[g],a[s++]=u[g+1],a[s++]=c[g],a[s++]=c[g+1],o[s++]=p,o[s++]=m,a[s++]=h;for(let g=0;g<d.length;g++)n[r++]=l+d[g]}}A(UA,"extension",{name:"darkTintBatch",type:Ne.RendererPlugin});je.add(UA);function z4(i){return i.replace(/\\/g,"/").split("/").pop()||i}function ov(i,e,t){for(const n of i.pages){const s=e.get(z4(n.name).toLowerCase());if(!s)throw new Error(Pe("errors.missingAtlasTexture",{name:n.name}));s.baseTexture.alphaMode=n.pma?Fn.PMA:Fn.UNPACK,n.setTexture(t.from(s.baseTexture))}}function VA(i,e){const t=new _A(i);return ov(t,e,Wo),new $m(t)}function j4(i,e,t){return{skeletonData:new Eu(VA(e,t)).readSkeletonData(i),SpineClass:_u}}function H4(i,e,t){return{skeletonData:new Um(VA(e,t)).readSkeletonData(i),SpineClass:_u}}const G4="modulepreload",W4=function(i){return"/"+i},hx={},fx=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){let o=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(t.map(c=>{if(c=W4(c),c in hx)return;hx[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":G4,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function XA(){const[i,e]=await Promise.all([fx(()=>import("./index-CMg-dxKo.js"),[]),fx(()=>import("./index-CmDYwG_K.js"),__vite__mapDeps([0,1]))]);return{core:i,pixi:e}}async function q4(i,e,t){const{core:n,pixi:s}=await XA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonJson(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}async function K4(i,e,t){const{core:n,pixi:s}=await XA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonBinary(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}function jr(i,e,t){const n=Number(i[e]);return Number.isFinite(n)?n:t}function hi(i,e,t,n){i[e]==null&&(i[e]=jr(i,t,n))}function av(i,e,t){if(typeof i.curve!="number")return;const n=jr(i,"time",0),r=jr(e,"time",0)-n,o=i.curve,a=jr(i,"c2",0),l=jr(i,"c3",1),c=jr(i,"c4",1);i.curve=t.flatMap(([d,u])=>[n+r*o,d+(u-d)*a,n+r*l,d+(u-d)*c]),delete i.c2,delete i.c3,delete i.c4}function Zr(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1];av(n,s,e.map(({key:r,fallback:o})=>[jr(n,r,o),jr(s,r,o)]))}}function J4(i){if(Array.isArray(i))for(let e=0;e<i.length-1;e++)av(i[e],i[e+1],[[0,1]])}function ua(i,e){const t=typeof i=="string"?i.replace(/^#/,""):"",n=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),s=[0,2,4,6].map(r=>Number.parseInt(n.slice(r,r+2),16)/255);return e?s:s.slice(0,3)}function px(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1],r=e?[...ua(n.light,!0),...ua(n.dark,!1)]:ua(n.color,!0),o=e?[...ua(s.light,!0),...ua(s.dark,!1)]:ua(s.color,!0);av(n,s,r.map((a,l)=>[a,o[l]]))}}function Z4(i){for(const e of i.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of i.transform||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),hi(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),hi(e,"mixShearY","shearMix",1);for(const e of i.path||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function Q4(i){for(const e of i.skins||[])for(const t of Object.values(e.attachments||{}))for(const n of Object.values(t||{}))n.parent!=null&&n.timelines==null&&n.deform!=null&&(n.timelines=n.deform)}function eU(i){for(const e of Object.values(i.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),px(e.rgba,!1),px(e.rgba2,!0)}function tU(i){for(const e of Object.values(i.bones||{})){for(const t of e.rotate||[])hi(t,"value","angle",0);Zr(e.rotate,[{key:"value",fallback:0}]),Zr(e.t Line truncated
`;class UA extends Nr{constructor(e){super(e),this.shaderGenerator=new Yw(Y4,z4),this.geometryClass=X4,this.vertexSize=7}packInterleavedGeometry(e,t,n,s,r){const{uint32View:o,float32View:a}=t,c=s/this.vertexSize,l=e.uvs,d=e.indices,u=e.vertexData,h=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Ot.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Ot.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[s++]=u[g],a[s++]=u[g+1],a[s++]=l[g],a[s++]=l[g+1],o[s++]=p,o[s++]=m,a[s++]=h;for(let g=0;g<d.length;g++)n[r++]=c+d[g]}}A(UA,"extension",{name:"darkTintBatch",type:$e.RendererPlugin});He.add(UA);function j4(i){return i.replace(/\\/g,"/").split("/").pop()||i}function ov(i,e,t){for(const n of i.pages){const s=e.get(j4(n.name).toLowerCase());if(!s)throw new Error(ke("errors.missingAtlasTexture",{name:n.name}));s.baseTexture.alphaMode=n.pma?Fn.PMA:Fn.UNPACK,n.setTexture(t.from(s.baseTexture))}}function VA(i,e){const t=new _A(i);return ov(t,e,Wo),new Bm(t)}function H4(i,e,t){return{skeletonData:new Eu(VA(e,t)).readSkeletonData(i),SpineClass:_u}}function G4(i,e,t){return{skeletonData:new Vm(VA(e,t)).readSkeletonData(i),SpineClass:_u}}const W4="modulepreload",q4=function(i){return"/"+i},hx={},fx=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){let o=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(t.map(l=>{if(l=q4(l),l in hx)return;hx[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":W4,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function XA(){const[i,e]=await Promise.all([fx(()=>import("./index-BGsgtkNi.js"),[]),fx(()=>import("./index-B57-mKhk.js"),__vite__mapDeps([0,1]))]);return{core:i,pixi:e}}async function K4(i,e,t){const{core:n,pixi:s}=await XA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonJson(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}async function J4(i,e,t){const{core:n,pixi:s}=await XA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonBinary(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}function jr(i,e,t){const n=Number(i[e]);return Number.isFinite(n)?n:t}function hi(i,e,t,n){i[e]==null&&(i[e]=jr(i,t,n))}function av(i,e,t){if(typeof i.curve!="number")return;const n=jr(i,"time",0),r=jr(e,"time",0)-n,o=i.curve,a=jr(i,"c2",0),c=jr(i,"c3",1),l=jr(i,"c4",1);i.curve=t.flatMap(([d,u])=>[n+r*o,d+(u-d)*a,n+r*c,d+(u-d)*l]),delete i.c2,delete i.c3,delete i.c4}function Zr(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1];av(n,s,e.map(({key:r,fallback:o})=>[jr(n,r,o),jr(s,r,o)]))}}function Z4(i){if(Array.isArray(i))for(let e=0;e<i.length-1;e++)av(i[e],i[e+1],[[0,1]])}function ua(i,e){const t=typeof i=="string"?i.replace(/^#/,""):"",n=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),s=[0,2,4,6].map(r=>Number.parseInt(n.slice(r,r+2),16)/255);return e?s:s.slice(0,3)}function px(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1],r=e?[...ua(n.light,!0),...ua(n.dark,!1)]:ua(n.color,!0),o=e?[...ua(s.light,!0),...ua(s.dark,!1)]:ua(s.color,!0);av(n,s,r.map((a,c)=>[a,o[c]]))}}function Q4(i){for(const e of i.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of i.transform||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),hi(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),hi(e,"mixShearY","shearMix",1);for(const e of i.path||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function eU(i){for(const e of i.skins||[])for(const t of Object.values(e.attachments||{}))for(const n of Object.values(t||{}))n.parent!=null&&n.timelines==null&&n.deform!=null&&(n.timelines=n.deform)}function tU(i){for(const e of Object.values(i.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),px(e.rgba,!1),px(e.rgba2,!0)}function nU(i){for(const e of Object.values(i.bones||{})){for(const t of e.rotate||[])hi(t,"value","angle",0);Zr(e.rotate,[{key:"value",fallback:0}]),Zr(e.t Line truncated