/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
import{a as x}from"./MG6XDMQJ.js";import{A as v,D as E,t as h,y as m,z as y}from"./3VKC6PRK.js";export default $geoscene.t(([{on:w,watch:C},{createObservable:b,trackAccess:g},{property:F,subclass:R},T])=>{var U=(o,e)=>{let t=h().manager;t.onLoaded(()=>t.onLifecycle(()=>w(o,e,n.emit)));let n=v();return n},Z=(o,e)=>r=>P(r,o),u=class extends E{constructor(e,r){super(e),this.Y=new Map,this.A=void 0,this.#o=b();let t=this;t.#e=r,t.Z(),t.setProvisionalExports(k(e,new WeakRef(t),e.M.length-1,t.instance,t.Y),!1),m(e,n=>{if(n){let c=C(()=>e[n],s=>{if(s===t.instance)return;let i=t.instance;t.exports=s,t.instance=s,t.Y.forEach((a,l)=>e.requestUpdate(a,i[l])),t.#t&&i.destroy(),t.#t=!1},{sync:!0});t.onDestroy(c.remove)}},t.exports)}#t;#o;#e;get exports(){return g(this.#o),super.exports}set exports(e){super.exports=e,this.#o.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},P=x(u),k=(o,e,r,t,n)=>new Proxy(t,{get:(c,s)=>{let i=c[s];if(typeof s=="symbol"||n.has(s))return i;let a=o.M[r];return a.A=s,y(o,l=>{if(a.A=void 0,l!==void 0){let p=l.key;n.set(s,p);let d=o.constructor.getPropertyOptions(p),f=s!==p&&p.toLowerCase().includes("disable");A(e,d,s,p,f),d.i===void 0&&$(d,r,s,f)}},i)}}),A=(o,e,r,t,n,c)=>c=C(()=>{let s=o.deref();return s===void 0||s.component.manager.destroyed?c=c.remove():s.exports[r]},(s,i)=>{if(!c)return;o.deref().component?.requestUpdate(t,n?!i:i),e.c=!1},{sync:!0}),$=(o,e,r,t)=>{o.d.get=function(){let n=this.M[e]?.exports[r];return t?!n:n},o.d.set=function(n){let c=this.M[e];c.A!==r&&(c.exports[r]=t?!n:n)}},j=o=>o.Y,q=(o,e)=>{let r=e.manager.useRefSync(o);r?.hostDestroy(),r?.Z(),r?.hostConnected()};return{a:U,b:Z,c:u,d:k,e:j,f:q}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")