!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).vkBridge={})}(this,(function(e){"use strict";var n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==p[0]&&2!==p[0])){i=0;continue}if(3===p[0]&&(!o||p[1]>o[0]&&p[1]-1&&p.splice(n,1)},supports:function(e){return console.warn("bridge.supports method is deprecated. Use bridge.supportsAsync instead."),w(e)},supportsAsync:function(e){return t(this,void 0,void 0,(function(){var n;return r(this,(function(t){switch(t.label){case 0:if(s||u)return[2,w(e)];if(i)return[2,i.has(e)];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,_("SetSupportedHandlers")];case 2:return n=t.sent(),i=new Set(n.supportedHandlers),[3,4];case 3:return t.sent(),i=new Set(["VKWebAppInit"]),[3,4];case 4:return[2,i.has(e)]}}))}))},isWebView:W,isIframe:y,isEmbedded:V,isStandalone:function(){return!V()}}}("2.15.11");e.applyMiddleware=function e(){for(var t=[],r=0;r