"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};window.APVJSBridge||function(){var c={};var h={};window.APVJSBridge={call:function e(k,j,m){if(typeof k!=="string"){return}if(typeof j==="function"){m=j;j=null}else{if((typeof j==="undefined"?"undefined":_typeof(j))!=="object"){j=null}}var i=""+new Date().getTime()+Math.random();if(typeof m==="function"){c[i]=m}var l=JSON.stringify({action:k,data:j,eventId:i});console.log("bridge.log.message: "+l)},on:function a(i,j){if(typeof i!=="string"){return}if(typeof j==="function"){if(typeof h[i]==="undefined"){h[i]=[]}h[i].push(j)}},invoke:function b(i){if(typeof i!=="string"){return}if(Object.prototype.toString.call(h[i])==="[object Array]"){h[i].forEach(function(j){j()})}},callback:function g(i){var j=i.eventId,l=i.data;var k=c[j];delete c[j];if(typeof k==="function"){setTimeout(function(){k(l)},1)}}};var f=document.createEvent("Events");f.initEvent("APVJSBridgeReady",0,0);var d=document.addEventListener;document.addEventListener=function(k,m){for(var i=arguments.length,j=Array(i>2?i-2:0),l=2;l<i;l++){j[l-2]=arguments[l]}if(k===f.type){setTimeout(function(){m(f)},1)}d.call(document,k,m,j)};document.dispatchEvent(f)}();