var o=a=>{throw TypeError(a)};var D=(a,t,e)=>t.has(a)||o("Cannot "+e);var s=(a,t,e)=>(D(a,t,"read from private field"),e?e.call(a):t.get(a)),n=(a,t,e)=>t.has(a)?o("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,e);import{s as f,g as h,e as c,a as l,D as m,h as u}from"./c625DOTJ.js";import{g as p}from"./BPHiMHp4.js";import{e as x}from"./DOs8svU4.js";const g=Symbol();var r,i;class C{constructor(){n(this,r,f(""));n(this,i,f(l({})));m(g,this)}get title(){return h(s(this,r))}set title(t){c(s(this,r),t,!0)}get transferData(){return h(s(this,i))}set transferData(t){c(s(this,i),t,!0)}static get(){return u(g)}setTitle(t){this.title=t}async transferToPage(t,e){x("transfer_image",{page:e}),this.transferData={page:e,image:t},p(e)}receiveTransferData(t){if(this.transferData.page===t){const e={...this.transferData};return this.transferData={},e}}}r=new WeakMap,i=new WeakMap;export{C as S};