varn=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(varnint)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};functioni(e,t,n,i){returnnew(n||(n=Promise))((function(o,r){functionu(e){try{s(i.next(e))}catch(e){r(e)}}functiona(e){try{s(i.throw(e))}catch(e){r(e)}}functions(e){vart;e.done?o(e.value):(t=e.value,tinstanceofn?t:newn((function(e){e(t)}))).then(u,a)}s((i=i.apply(e,t||[])).next())}))}functiono(e,t){varn,i,o,r,u={label:0,sent:function(){if(1&o[0])throwo[1];returno[1]},trys:[],ops:[]};returnr={next:a(0),throw:a(1),return:a(2)},"function"==typeofSymbol&&(r[Symbol.iterator]=function(){returnthis}),r;functiona(r){returnfunction(a){returnfunction(r){if(n)thrownewTypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)returno;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case0:case1:o=r;break;case4:returnu.label++,{value:r[1],done:!1};case5:u.label++,i=r[1],r=[0];continue;case7:r=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throwr[1];return{value:r[0]?r[1]:void0,done:!0}}([r,a])}}}functionr(){returnMath.floor(65536*(1+Math.random())).toString(16).substring(1)}functionu(e,t){void0===t&&(t=!1);varn=r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r();returnObject.defineProperty(window,n,{value:function(i){returnt&&Reflect.deleteProperty(window,n),null==e?void0:e(i)},writable:!1,configurable:!0}),n}functiona(e,n){returnvoid0===n&&(n={}),i(this,void0,void0,(function(){returno(this,(function(i){return[2,newPromise((function(i,o){varr=u((function(e){i(e),Reflect.deleteProperty(window,a)}),!0),a=u((function(e){o(e),Reflect.deleteProperty(window,r)}),!0);window.rpc.notify(e,t._assign({callback:r,error:a},n))}))]}))}))}t._assign=function(){returnt._assign=Object.assign||function(e){for(vart,n=1,i=arguments.length;n<i;n++)for(varoint=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);returne},t._assign.apply(this,arguments)};vars=Object.freeze({__proto__:null,transformCallback:u,invoke:a});t.__awaiter=i,t.__extends=function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Class extends value "+String(t)+" is not a constructor or null");functioni(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)},t.__generator=o,t.invoke=a,t.tauri=s,t.transformCallback=u})),J={invokeTauriCommand:function(e){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(t){return[2,G.invoke("tauri",e)]}))}))}},X=U((function(e,t){functionn(e,t){returnG.__awaiter(this,void0,void0,(function(){varn=this;returnG.__generator(this,(function(o){return[2,J.invokeTauriCommand({__tauriModule:"Event",message:{cmd:"listen",event:e,handler:G.transformCallback(t)}}).then((function(e){returnfunction(){returnG.__awaiter(n,void0,void0,(function(){returnG.__generator(this,(function(t){return[2,i(e)]}))}))}}))]}))}))}functioni(e){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(t){return[2,J.invokeTauriCommand({__tauriModule:"Event",message:{cmd:"unlisten",eventId:e}})]}))}))}t.emit=function(e,t,n){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(i){switch(i.label){case0:return[4,J.invokeTauriCommand({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})];case1:returni.sent(),[2]}}))}))},t.listen=function(e,t){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(i){return[2,n(e,t)]}))}))},t.once=function(e,t){returnG.__awaiter(this,void0,void0,(function