varcapacitorExports=function(e){"use strict";vart;e.ExceptionCode=void0,(t=e.ExceptionCode||(e.ExceptionCode={})).Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE";classnextendsError{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}}consts=t=>{consts=t.CapacitorCustomPlatform||null,r=t.Capacitor||{},i=r.Plugins=r.Plugins||{},o=()=>null!==s?s.name:(e=>{vart,n;return(null==e?void0:e.androidBridge)?"android":(null===(n=null===(t=null==e?void0:e.webkit)||void0===t?void0:t.messageHandlers)||void0===n?void0:n.bridge)?"ios":"web"})(t),a=e=>{vart;returnnull===(t=r.PluginHeaders)||void0===t?void0:t.find(t=>t.name===e)},c=newMap;returnr.convertFileSrc||(r.convertFileSrc=e=>e),r.getPlatform=o,r.handleError=e=>t.console.error(e),r.isNativePlatform=()=>"web"!==o(),r.isPluginAvailable=e=>{constt=c.get(e);return!!(null==t?void0:t.platforms.has(o()))||!!a(e)},r.registerPlugin=(t,d={})=>{constl=c.get(t);if(l)returnconsole.warn(`Capacitor plugin "${t}" already registered. Cannot register plugins twice.`),l.proxy;constu=o(),p=a(t);letm;consth=i=>{leto;consta=(...a)=>{constc=(async()=>(!m&&uind?m=m="function"==typeofd[u]?awaitd[u]():d[u]:null!==s&&!m&&"web"ind&&(m=m="function"==typeofd.web?awaitd.web():d.web),m))().then(s=>{constc=((s,i)=>{varo,a;if(!p){if(s)returnnull===(a=s[i])||void0===a?void0:a.bind(s);thrownewn(`"${t}" plugin is not implemented on ${u}`,e.ExceptionCode.Unimplemented)}{conste=null==p?void0:p.methods.find(e=>i===e.name);if(e)return"promise"===e.rtype?e=>r.nativePromise(t,i.toString(),e):(e,n)=>r.nativeCallback(t,i.toString(),e,n);if(s)returnnull===(o=s[i])||void0===o?void0:o.bind(s)}})(s,i);if(c){conste=c(...a);returno=null==e?void0:e.remove,e}thrownewn(`"${t}.${i}()" is not implemented on ${u}`,e.ExceptionCode.Unimplemented)});return"addListener"===i&&(c.remove=async()=>o()),c};returna.toString=()=>`${i.toString()}() { [capacitor code] }`,Object.defineProperty(a,"name",{value:i,writable:!1,configurable:!1}),a},w=h("addListener"),g=h("removeListener"),f=(e,t)=>{constn=w({eventName:e},t),s=async()=>{consts=awaitn;g({eventName:e,callbackId:s},t)},r=newPromise(e=>n.then(()=>e({remove:s})));returnr.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),awaits()},r},v=newProxy({},{get(e,t){switch(t){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":returnp?f:w;case"removeListener":returng;default:returnh(t)}}});returni[t]=v,c.set(t,{name:t,proxy:v,platforms:newSet([...Object.keys(d),...p?[u]:[]])}),v},r.Exception=n,r.DEBUG=!!r.DEBUG,r.isLoggingEnabled=!!r.isLoggingEnabled,r},r=(e=>e.Capacitor=s(e))("undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{}),i=r.registerPlugin;classo{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){letn=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);consts=this.windowListeners[e];s&&!s.registered&&this.addWindowListener(s),n&&this.sendRetainedArgumentsForEvent(e);returnPromise.resolve({remove:async()=>this.removeListener(e,t)})}asyncremoveAllListeners(){this.listeners={};for(consteinthis.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){consts=this.listeners[e];if(s)s.forEach(e=>e(t));elseif(n){letn=this.retainedEventArguments[e];n||(n=[]),n.push(t),this.retainedEventArguments[e]=n}}hasListeners(e){vart;return!!(null===(t=this.listeners[e])||void0===t?void0:t.length)}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(t="not implemented"){returnnewr.Exception(t,e.ExceptionCode.Unimplemented)}unavailable(t="not available"){returnnewr.Exception(t,e.ExceptionCode.Unavailable)}asyncremoveListener(e,t){constn=this.listeners[e];if(!n)return;consts=n.indexOf(t);this.listeners[e].splice(s,1),this.listeners[e].l