window.pnConfig = {"apiKey":"64b98203c551820013ec9ab8","websiteId":"64b98203c551820013ec9ab7","serviceWorkerPath":"/service-worker.js","trackingUrl":"https://trc.pushnami.com","apiUrl":"https://api.pushnami.com","pspApiUrl":"https://psp.pushnami.com","rtpUrl":"https://rtpd.pushnami.com","optInTrackingUrl":"https://trc.pushnami.com","applicationServerKey":"BNiBCndtNC6mOF6sTyojuj8JJGXckBF87qCW3V-4C1EdYYaVPc8f9LE5XshUOXoO5OlzPgsRSgK29lh9UcLUpb0","firebaseConfig":"{\"moduleBundleUrl\":\"https://cdn.pushnami.com/js/modules/fcm-v1-module.019781ec7a1c97363e85.bundle.js\",\"apiKey\":\"AIzaSyDrTgCjDCfW_sv_x8EMD4hsGBUOD6nqStc\",\"authDomain\":\"a-64b98192b1580b001386d5cf-01.firebaseapp.com\",\"projectId\":\"a-64b98192b1580b001386d5cf-01\",\"storageBucket\":\"a-64b98192b1580b001386d5cf-01.appspot.com\",\"firebaseVapidKey\":\"BNiBCndtNC6mOF6sTyojuj8JJGXckBF87qCW3V-4C1EdYYaVPc8f9LE5XshUOXoO5OlzPgsRSgK29lh9UcLUpb0\",\"messagingSenderId\":\"954550400694\",\"appId\":\"1:954550400694:web:177b2c9539f5147c72d817\",\"measurementId\":\"G-FSNVPMMDQR\"}","pkid":"fcmV1:66621bad95749c21596b92d1","psfpv4":{"distUrl":"https://cdn.pushnami.com/js/exp/psfpv4_client_1.136.0_a0691e6e53e4fef184d7e40de6e900062ea56958de08ca655c27679b9ca8e878.js","signals":true},"flaggedFeatures":{},"filteringBehaviors":{},"trackingVersion":"main_1.0.6_8b6d46b0225de816e06e.js"};
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Pushnami=e():t.Pushnami=e()}(self,(()=>(()=>{var t={12:function(t,e){!function(){function r(t,e){var o;e=e||{},this._id=r._generateUUID(),this._promise=e.promise||Promise,this._frameId=e.frameId||"CrossStorageClient-"+this._id,this._origin=r._getOrigin(t),this._requests={},this._connected=!1,this._closed=!1,this._count=0,this._timeout=e.timeout||5e3,this._listener=null,this._installListener(),e.frameId&&(o=document.getElementById(e.frameId)),o&&this._poll(),o=o||this._createFrame(t),this._hub=o.contentWindow}r.frameStyle={display:"none",position:"absolute",top:"-999px",left:"-999px"},r._getOrigin=function(t){var e;return(e=document.createElement("a")).href=t,e.host||(e=window.location),((e.protocol&&":"!==e.protocol?e.protocol:window.location.protocol)+"//"+e.host).replace(/:80$|:443$/,"")},r._generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},r.prototype.onConnect=function(){var t=this;return this._connected?this._promise.resolve():this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):(this._requests.connect||(this._requests.connect=[]),new this._promise((function(e,r){var o=setTimeout((function(){r(new Error("CrossStorageClient could not connect"))}),t._timeout);t._requests.connect.push((function(t){if(clearTimeout(o),t)return r(t);e()}))})))},r.prototype.set=function(t,e){return this._request("set",{key:t,value:e})},r.prototype.get=function(t){var e=Array.prototype.slice.call(arguments);return this._request("get",{keys:e})},r.prototype.del=function(){var t=Array.prototype.slice.call(arguments);return this._request("del",{keys:t})},r.prototype.clear=function(){return this._request("clear")},r.prototype.getKeys=function(){return this._request("getKeys")},r.prototype.close=function(){var t=document.getElementById(this._frameId);t&&t.parentNode.removeChild(t),window.removeEventListener?window.removeEventListener("message",this._listener,!1):window.detachEvent("onmessage",this._listener),this._connected=!1,this._closed=!0},r.prototype._installListener=function(){var t=this;this._listener=function(e){var r,o,i;if(!t._closed&&e.data&&"string"==typeof e.data&&("null"===e.origin?"file://":e.origin)===t._origin)if("cross-storage:unavailable"!==e.data){if(-1!==e.data.indexOf("cross-storage:")&&!t._connected){if(t._connected=!0,!t._requests.connect)return;for(r=0;r<t._requests.connect.length;r++)t._requests.connect[r](o);delete t._requests.connect}if("cross-storage:ready"!==e.data){try{i=JSON.parse(e.data)}catch(t){return}i.id&&t._requests[i.id]&&t._requests[i.id](i.error,i.result)}}else{if(t._closed||t.close(),!t._requests.connect)return;for(o=new Error("Closing client. Could not access localStorage in hub."),r=0;r<t._requests.connect.length;r++)t._requests.connect[r](o)}},window.addEventListener?window.addEventListener("message",this._listener,!1):window.attachEvent("onmessage",this._listener)},r.prototype._poll=function(){var t,e,r;r="file://"===(t=this)._origin?"*":t._origin,e=setInterval((function(){if(t._connected)return clearInterval(e);t._hub&&t._hub.postMessage("cross-storage:poll",r)}),1e3)},r.prototype._createFrame=function(t){var e,o;for(o in(e=window.document.createElement("iframe")).id=this._frameId,r.frameStyle)r.frameStyle.hasOwnProperty(o)&&(e.style[o]=r.frameStyle[o]);return window.document.body.appendChild(e),e.src=t,e},r.prototype._request=function(t,e){var r,o;return this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):((o=this)._count++,r={id:this._id+":"+o._count,method:"cross-storage:"+t,params:e},new this._promise((function(t,e){var i,n,s;i=setTimeout((function(){o._requests[r.id]&&(delete o._requests[r.id],e(new Error("Timeout: could not perform "+r.method)))}),o._timeout),o._requests[r.id]=function(n,s){if(clearTimeout(i),delete o._requests[r.id],n)return e(new Error(n));t(s)},Array.prototype.toJSON&&(n=Array.prototype.toJSON,Array.prototype.toJSON=null),s="file://"===o._origin?"*":o._origin,o._hub.postMessage(JSON.stringify(r),s),n&&(Array.prototype.toJSON=n)})))},t.exports?t.exports=r:e.CrossStorageClient=r}()},27:(t,e,r)=>{"use strict";r.d(e,{j:()=>c});var o=r(927),i=r(827),n=r(562),s=r(248),a=r(305),p=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};class c{constructor(t,e){this.pnConfig=t,this.loggerService=e,this.timeoutSeconds=(null==t?void 0:t.psfpTimeoutSeconds)||3}computePsfpV4(t,e){return p(this,void 0,void 0,(function*(){this.loggerService.log(s.$.DEBUG,"Computing PSFP V4");try{this.psfpv4=yield t.compute(e),this.loggerService.log(s.$.DEBUG,`Psfpv4 Computed: ${this.psfpv4}`)}catch(t){this.loggerService.error(s.$.ERROR,"Failed to compute psfpv4",t)}return this.psfpv4}))}computePsfpV3(){return p(this,void 0,void 0,(function*(){this.loggerService.log(s.$.DEBUG,"Computing PSFP V3");const{apiUrl:t}=this.pnConfig;try{const e=new i.CrossStorageClient(`${t}/scripts/v1/hub`,{timeout:5e3,frameId:"pushnamiStorage"}),r=(0,n.A)();yield e.onConnect(),this.loggerService.log(s.$.DEBUG,"Connected to PSFP v3 Store");const o=yield e.get("pdid");return this.loggerService.log(s.$.DEBUG,`Got pdid: ${o}`),o?(this.loggerService.log(s.$.DEBUG,`Reusing PSFP v3: ${o}`),this.psfpv3=o,o):(yield e.set("pdid",r),this.loggerService.log(s.$.DEBUG,`New PSFP v3: ${r}`),this.psfpv3=r,r)}catch(t){this.loggerService.error(s.$.ERROR,"Failed to compute psfpv3",t)}}))}compute(){return p(this,void 0,void 0,(function*(){this.loggerService.log(s.$.DEBUG,"Starting PSFP Computation");const t=()=>p(this,void 0,void 0,(function*(){yield(0,o.Q)(this.pnConfig.psfpv4.distUrl);const t=yield this.computePsfpV3();return{psfpv4:yield this.computePsfpV4(Psfp,t),psfpv3:t}})),e=1e3*this.timeoutSeconds;let r;try{r=yield(0,a.u)(t(),e)}catch(t){this.loggerService.error(s.$.DEBUG,"PSFP Computation error",t),r={psfpv4:"",psfpv3:""}}return r}))}}},72:(t,e,r)=>{"use strict";r.d(e,{Q:()=>o});class o{constructor(){this.data={}}collect(t){t&&this.filterAndAssignVars(t)}collectFromUrl(){const t=new URLSearchParams(window.location.search),e=Object.fromEntries(t.entries());this.filterAndAssignVars(e)}filterAndAssignVars(t){if(!t)return;const e=Object.keys(t).reduce(((e,r)=>("pstag_android"!==r&&""!==t[r]&&null!=t[r]&&(e[r]=t[r]),e)),{});Object.assign(this.data,e)}}},182:(t,e,r)=>{"use strict";r.d(e,{U:()=>o});class o extends Error{constructor(t,e,r){super(t),this.message=t,this.outcome=e,this.originalError=r,this.name="SubscriberServiceError"}}},233:(t,e,r)=>{"use strict";var o;r.d(e,{d:()=>o,n:()=>i}),function(t){t.UNSUBSCRIBED="UNSUBSCRIBED"}(o||(o={}));class i{constructor(){}getPSID(){return localStorage.getItem("pushnamiSubscriberId")}isSubscribed(){return"SUBSCRIBED"===localStorage.getItem("pushnamiSubscriptionStatus")}setSubscriberId(t){localStorage.setItem("pushnamiSubscriberId",t),localStorage.setItem("pushnamiSubscriptionStatus","SUBSCRIBED")}setBlockStatus(){localStorage.setItem("pushnamiSubscriptionBlock","BLOCKED")}isBlocked(){return localStorage.getItem("pushnamiSubscriptionBlock")}setSubscriptionStatus(t){return localStorage.setItem("pushnamiSubscriptionStatus",t)}}},248:(t,e,r)=>{"use strict";var o;r.d(e,{$:()=>o,g:()=>i}),function(t){t[t.DEBUG=2]="DEBUG",t[t.INFO=1]="INFO",t[t.ERROR=0]="ERROR"}(o||(o={}));class i{constructor(t){this.logBuffer=[],this.bufferSize=100,this.clipboardIntervalId=null,this.level=this.isPnDebugLogging()?o.DEBUG:t.logLevel,this.enableClipboard=t.enableClipboard||this.isPnDebugClipEnabled(),this.enableClipboard&&this.startClipboardTimer()}getLogLevelName(t){return o[t]}isPnDebugClipEnabled(){return new URLSearchParams(window.location.search).has("pn_debug_clip")}isPnDebugLogging(){return new URLSearchParams(window.location.search).has("pn_debug_logging")}startClipboardTimer(){this.clipboardIntervalId=setInterval((()=>{const t=this.encodeLogs(this.logBuffer);this.copyToClipboard(t),console.log(`[INFO] Logs copied to clipboard: ${t}`)}),5e3)}encodeLogs(t){const e=t.join("\n");return btoa(e)}copyToClipboard(t){navigator.clipboard.writeText(t).catch((t=>{console.error("Failed to copy logs to clipboard",t)}))}log(t,e){if(t>=this.level){const r=`[${this.getLogLevelName(t)}] ${e}`;console.log(r),this.enableClipboard&&this.addToLogBuffer(r)}}error(t,e,r){if(t>=this.level){const o=`[${this.getLogLevelName(t)}] ${e}`;console.error(o,r),this.enableClipboard&&this.addToLogBuffer(o)}}addToLogBuffer(t){this.logBuffer.length>=this.bufferSize&&this.logBuffer.shift(),this.logBuffer.push(t)}}},300:function(t,e){var r;r={init:function(t){var e=!0;try{window.localStorage||(e=!1)}catch(t){e=!1}if(!e)try{return window.parent.postMessage("cross-storage:unavailable","*")}catch(t){return}r._permissions=t||[],r._installListener(),window.parent.postMessage("cross-storage:ready","*")},_installListener:function(){var t=r._listener;window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent("onmessage",t)},_listener:function(t){var e,o,i,n,s,a,p;if(e="null"===t.origin?"file://":t.origin,"cross-storage:poll"===t.data)return window.parent.postMessage("cross-storage:ready",t.origin);if("cross-storage:ready"!==t.data){try{i=JSON.parse(t.data)}catch(t){return}if(i&&"string"==typeof i.method&&(n=i.method.split("cross-storage:")[1])){if(r._permitted(e,n))try{a=r["_"+n](i.params)}catch(t){s=t.message}else s="Invalid permissions for "+n;p=JSON.stringify({id:i.id,error:s,result:a}),o="file://"===e?"*":e,window.parent.postMessage(p,o)}}},_permitted:function(t,e){var o,i,n;if(o=["get","set","del","clear","getKeys"],!r._inArray(e,o))return!1;for(i=0;i<r._permissions.length;i++)if((n=r._permissions[i]).origin instanceof RegExp&&n.allow instanceof Array&&n.origin.test(t)&&r._inArray(e,n.allow))return!0;return!1},_set:function(t){window.localStorage.setItem(t.key,t.value)},_get:function(t){var e,r,o,i;for(e=window.localStorage,r=[],o=0;o<t.keys.length;o++){try{i=e.getItem(t.keys[o])}catch(t){i=null}r.push(i)}return r.length>1?r:r[0]},_del:function(t){for(var e=0;e<t.keys.length;e++)window.localStorage.removeItem(t.keys[e])},_clear:function(){window.localStorage.clear()},_getKeys:function(t){var e,r,o;for(o=[],r=window.localStorage.length,e=0;e<r;e++)o.push(window.localStorage.key(e));return o},_inArray:function(t,e){for(var r=0;r<e.length;r++)if(t===e[r])return!0;return!1},_now:function(){return"function"==typeof Date.now?Date.now():(new Date).getTime()}},t.exports?t.exports=r:e.CrossStorageHub=r},305:(t,e,r)=>{"use strict";function o(t,e){const r=new Promise(((t,r)=>setTimeout((()=>r(new Error("Operation timed out"))),e)));return Promise.race([t,r])}r.d(e,{u:()=>o})},308:(t,e,r)=>{"use strict";var o;r.d(e,{U:()=>i,c:()=>o}),function(t){t.SUBSCRIBED="permissions-action-subscribed",t.NEW_SUBSCRIPTION="permissions-action-subscribed-new",t.PERMISSIONS_INITIALIZING="permissions-initializing",t.PERMISSIONS_FAILED="permissions-failed",t.PERMISSIONS_IGNORED="permissions-blocked-ignored",t.PERMISSIONS_NOT_SHOWING="permissions-not-showing",t.PERMISSIONS_DENY="permissions-prompt-action-deny",t.PERMISSIONS_UNSUBSCRIBED="permissions-action-unsubscribed",t.PERMISSIONS_NOT_COMPATIBILE="permissions-not-compatible",t.PERMISSIONS_GRANT="permissions-prompt-granted",t.PERMISSIONS_BLOCK="permissions-prompt-blocked",t.PERMISSIONS_PROMPT="permissions-prompt-prompt"}(o||(o={}));class i{constructor(){this.listeners={}}registerListener(t,e){(Array.isArray(t)?t:[t]).forEach((t=>{var r,o;(null!==(r=(o=this.listeners)[t])&&void 0!==r?r:o[t]=[]).push(e)}))}triggerEvent(t){this.listeners[t]&&this.listeners[t].forEach((t=>t()))}}},339:function(t,e,r){var o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},i="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this;function n(){n=function(){},i.Symbol||(i.Symbol=p)}function s(t,e){this.a=t,o(this,"description",{configurable:!0,writable:!0,value:e})}s.prototype.toString=function(){return this.a};var a,p=(a=0,function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new s("jscomp_symbol_"+(e||"")+"_"+a++,e)});function c(){n();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&o(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return function(t){return c(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}(function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}(this))}}),c=function(){}}!function(t,e){if(e){var r=i;t=t.split(".");for(var n=0;n<t.length-1;n++){var s=t[n];s in r||(r[s]={}),r=r[s]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&o(r,t,{configurable:!0,writable:!0,value:e})}}("Array.prototype.entries",(function(t){return t||function(){return function(t,e){c(),t instanceof String&&(t+="");var r=0,o={next:function(){if(r<t.length){var i=r++;return{value:e(i,t[i]),done:!1}}return o.next=function(){return{done:!0,value:void 0}},o.next()}};return o[Symbol.iterator]=function(){return o},o}(this,(function(t,e){return[t,e]}))}}));var u=this||self;function l(t,e,r){t=t.split("."),r=r||u,t[0]in r||void 0===r.execScript||r.execScript("var "+t[0]);for(var o;t.length&&(o=t.shift());)t.length||void 0===e?r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}:r[o]=e}function h(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var r=Object.prototype.toString.call(t);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function f(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),g=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e,void 0)}:function(t,e){for(var r=t.length,o="string"==typeof t?t.split(""):t,i=0;i<r;i++)i in o&&e.call(void 0,o[i],i,t)},y=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var r=t.length,o=Array(r),i="string"==typeof t?t.split(""):t,n=0;n<r;n++)n in i&&(o[n]=e.call(void 0,i[n],n,t));return o};function v(t,e,r){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,r)}function b(t,e,r,o){var i="Assertion failed";if(r){i+=": "+r;var n=o}else t&&(i+=": "+t,n=e);throw Error(i,n||[])}function S(t,e,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];return t||b("",null,e,o),t}function m(t,e){for(var r=[],o=1;o<arguments.length;++o)r[o-1]=arguments[o];throw Error("Failure"+(t?": "+t:""),r)}function w(t,e,r,o){for(var i=[],n=3;n<arguments.length;++n)i[n-3]=arguments[n];t instanceof e||b("Expected instanceof %s but got %s.",[I(e),I(t)],r,i)}function I(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):null===t?"null":typeof t}function E(t,e){if(this.c=t,this.b=e,this.a={},this.arrClean=!0,0<this.c.length){for(t=0;t<this.c.length;t++){var r=(e=this.c[t])[0];this.a[r.toString()]=new C(r,e[1])}this.arrClean=!0}}function k(t){this.a=0,this.b=t}function P(t,e){return t.b?(e.a||(e.a=new t.b(e.value)),e.a):e.value}function O(t){t=t.a;var e,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}function C(t,e){this.key=t,this.value=e,this.a=void 0}function B(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var e="",r=0;r<t.length;r+=8192)e+=String.fromCharCode.apply(null,v(t,r,r+8192));return e}l("jspb.Map",E,void 0),E.prototype.g=function(){if(this.arrClean){if(this.b){var t,e=this.a;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t].a;r&&r.g()}}}else{for(this.c.length=0,(e=O(this)).sort(),t=0;t<e.length;t++){var o=this.a[e[t]];(r=o.a)&&r.g(),this.c.push([o.key,o.value])}this.arrClean=!0}return this.c},E.prototype.toArray=E.prototype.g,E.prototype.Mc=function(t,e){for(var r=this.g(),o=[],i=0;i<r.length;i++){var n=this.a[r[i][0].toString()];P(this,n);var s=n.a;s?(S(e),o.push([n.key,e(t,s)])):o.push([n.key,n.value])}return o},E.prototype.toObject=E.prototype.Mc,E.fromObject=function(t,e,r){e=new E([],e);for(var o=0;o<t.length;o++){var i=t[o][0],n=r(t[o][1]);e.set(i,n)}return e},k.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(k.prototype[Symbol.iterator]=function(){return this}),E.prototype.Jb=function(){return O(this).length},E.prototype.getLength=E.prototype.Jb,E.prototype.clear=function(){this.a={},this.arrClean=!1},E.prototype.clear=E.prototype.clear,E.prototype.Cb=function(t){t=t.toString();var e=this.a.hasOwnProperty(t);return delete this.a[t],this.arrClean=!1,e},E.prototype.del=E.prototype.Cb,E.prototype.Eb=function(){var t=[],e=O(this);e.sort();for(var r=0;r<e.length;r++){var o=this.a[e[r]];t.push([o.key,o.value])}return t},E.prototype.getEntryList=E.prototype.Eb,E.prototype.entries=function(){var t=[],e=O(this);e.sort();for(var r=0;r<e.length;r++){var o=this.a[e[r]];t.push([o.key,P(this,o)])}return new k(t)},E.prototype.entries=E.prototype.entries,E.prototype.keys=function(){var t=[],e=O(this);e.sort();for(var r=0;r<e.length;r++)t.push(this.a[e[r]].key);return new k(t)},E.prototype.keys=E.prototype.keys,E.prototype.values=function(){var t=[],e=O(this);e.sort();for(var r=0;r<e.length;r++)t.push(P(this,this.a[e[r]]));return new k(t)},E.prototype.values=E.prototype.values,E.prototype.forEach=function(t,e){var r=O(this);r.sort();for(var o=0;o<r.length;o++){var i=this.a[r[o]];t.call(e,P(this,i),i.key,this)}},E.prototype.forEach=E.prototype.forEach,E.prototype.set=function(t,e){var r=new C(t);return this.b?(r.a=e,r.value=e.g()):r.value=e,this.a[t.toString()]=r,this.arrClean=!1,this},E.prototype.set=E.prototype.set,E.prototype.get=function(t){if(t=this.a[t.toString()])return P(this,t)},E.prototype.get=E.prototype.get,E.prototype.has=function(t){return t.toString()in this.a},E.prototype.has=E.prototype.has,E.prototype.Jc=function(t,e,r,o,i){var n=O(this);n.sort();for(var s=0;s<n.length;s++){var a=this.a[n[s]];e.Va(t),r.call(e,1,a.key),this.b?o.call(e,2,P(this,a),i):o.call(e,2,a.value),e.Ya()}},E.prototype.serializeBinary=E.prototype.Jc,E.deserializeBinary=function(t,e,r,o,i,n,s){for(;e.oa()&&!e.bb();){var a=e.c;1==a?n=r.call(e):2==a&&(t.b?(S(i),s||(s=new t.b),o.call(e,s,i)):s=o.call(e))}S(null!=n),S(null!=s),t.set(n,s)};var R={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},_={"'":"\\'"},T={},A=null;function U(t,e){void 0===e&&(e=0),D(),e=T[e];for(var r=[],o=0;o<t.length;o+=3){var i=t[o],n=o+1<t.length,s=n?t[o+1]:0,a=o+2<t.length,p=a?t[o+2]:0,c=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|p>>6,p&=63,a||(p=64,n||(s=64)),r.push(e[c],e[i],e[s]||"",e[p]||"")}return r.join("")}function F(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1!="=.".indexOf(t[e-2])?r-2:r-1);var o=new Uint8Array(r),i=0;return function(t,e){function r(e){for(;o<t.length;){var r=t.charAt(o++),i=A[r];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return e}D();for(var o=0;;){var i=r(-1),n=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;e(i<<2|n>>4),64!=s&&(e(n<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,(function(t){o[i++]=t})),o.subarray(0,i)}function D(){if(!A){A={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=t.concat(e[r].split(""));T[r]=o;for(var i=0;i<o.length;i++){var n=o[i];void 0===A[n]&&(A[n]=i)}}}}l("jspb.ConstBinaryMessage",(function(){}),void 0),l("jspb.BinaryMessage",(function(){}),void 0),l("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),l("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),l("jspb.BinaryConstants.FieldTypeToWireType",(function(t){switch(t){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}}),void 0),l("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),l("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),l("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),l("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),l("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),l("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),l("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),l("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),l("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),l("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),l("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),l("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),l("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),l("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),l("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var M=0,N=0;function x(t){var e=t>>>0;t=Math.floor((t-e)/4294967296)>>>0,M=e,N=t}function j(t){var e=0>t,r=(t=Math.abs(t))>>>0;t=Math.floor((t-r)/4294967296),t>>>=0,e&&(t=~t>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++t&&(t=0))),M=r,N=t}function L(t){var e=0>t;x(t=2*Math.abs(t)),t=M;var r=N;e&&(0==t?0==r?r=t=4294967295:(r--,t=4294967295):t--),M=t,N=r}function V(t){var e=0>t?1:0;if(0===(t=e?-t:t))0<1/t?M=N=0:(N=0,M=2147483648);else if(isNaN(t))N=0,M=2147483647;else if(34028234663852886e22<t)N=0,M=(e<<31|2139095040)>>>0;else if(11754943508222875e-54>t)t=Math.round(t/Math.pow(2,-149)),N=0,M=(e<<31|t)>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-r),16777216<=(t=Math.round(8388608*t))&&++r,N=0,M=(e<<31|r+127<<23|8388607&t)>>>0}}function W(t){var e=0>t?1:0;if(0===(t=e?-t:t))N=0<1/t?0:2147483648,M=0;else if(isNaN(t))N=2147483647,M=4294967295;else if(17976931348623157e292<t)N=(e<<31|2146435072)>>>0,M=0;else if(22250738585072014e-324>t)t/=Math.pow(2,-1074),N=(e<<31|t/4294967296)>>>0,M=t>>>0;else{var r=t,o=0;if(2<=r)for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;t*=Math.pow(2,-o),N=(e<<31|o+1023<<20|1048576*t&1048575)>>>0,M=4503599627370496*t>>>0}}function G(t){var e=t.charCodeAt(4),r=t.charCodeAt(5),o=t.charCodeAt(6),i=t.charCodeAt(7);M=t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)>>>0,N=e+(r<<8)+(o<<16)+(i<<24)>>>0}function $(t,e){return 4294967296*e+(t>>>0)}function H(t,e){var r=2147483648&e;return r&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=$(t,e),r?-t:t}function z(t,e,r){var o=e>>31;return r(t<<1^o,(e<<1|t>>>31)^o)}function K(t,e){return q(t,e,H)}function q(t,e,r){var o=-(1&t);return r((t>>>1|e<<31)^o,e>>>1^o)}function J(t){var e=2*(t>>31)+1,r=t>>>23&255;return t&=8388607,255==r?t?NaN:1/0*e:0==r?e*Math.pow(2,-149)*t:e*Math.pow(2,r-150)*(t+Math.pow(2,23))}function Z(t,e){var r=2*(e>>31)+1,o=e>>>20&2047;return t=4294967296*(1048575&e)+t,2047==o?t?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*t:r*Math.pow(2,o-1075)*(t+4503599627370496)}function Y(t,e){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)}function X(t,e){function r(t,e){return t=t?String(t):"",e?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+$(t,e);var o=(t>>>24|e<<8)>>>0&16777215;return t=(16777215&t)+6777216*o+6710656*(e=e>>16&65535),o+=8147497*e,e*=2,1e7<=t&&(o+=Math.floor(t/1e7),t%=1e7),1e7<=o&&(e+=Math.floor(o/1e7),o%=1e7),r(e,0)+r(o,e)+r(t,1)}function Q(t,e){var r=2147483648&e;return r&&(e=~e+(0==(t=1+~t>>>0)?1:0)>>>0),t=X(t,e),r?"-"+t:t}function tt(t,e){G(t),t=M;var r=N;return e?Q(t,r):X(t,r)}function et(t){function e(t,e){for(var r=0;8>r&&(1!==t||0<e);r++)e=t*o[r]+e,o[r]=255&e,e>>>=8}S(0<t.length);var r=!1;"-"===t[0]&&(r=!0,t=t.slice(1));for(var o=[0,0,0,0,0,0,0,0],i=0;i<t.length;i++)e(10,t.charCodeAt(i)-48);return r&&(function(){for(var t=0;8>t;t++)o[t]=255&~o[t]}(),e(1,1)),B(o)}function rt(t){return String.fromCharCode(10>t?48+t:87+t)}function ot(t){return 97<=t?t-97+10:t-48}function it(t,e,r,o,i){var n=0;if(128>o)for(;e<r&&t[e++]==o;)n++,e+=i;else for(;e<r;){for(var s=o;128<s;){if(t[e++]!=(127&s|128))return n;s>>=7}if(t[e++]!=s)break;n++,e+=i}return n}function nt(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?F(t):t instanceof Uint8Array?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):(m("Type not convertible to Uint8Array."),new Uint8Array(0))}function st(t,e,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,t&&this.H(t,e,r)}l("jspb.utils.getSplit64Low",(function(){return M}),void 0),l("jspb.utils.getSplit64High",(function(){return N}),void 0),l("jspb.utils.splitUint64",x,void 0),l("jspb.utils.splitInt64",j,void 0),l("jspb.utils.splitZigzag64",L,void 0),l("jspb.utils.splitFloat32",V,void 0),l("jspb.utils.splitFloat64",W,void 0),l("jspb.utils.splitHash64",G,void 0),l("jspb.utils.joinUint64",$,void 0),l("jspb.utils.joinInt64",H,void 0),l("jspb.utils.toZigzag64",z,void 0),l("jspb.utils.joinZigzag64",K,void 0),l("jspb.utils.fromZigzag64",q,void 0),l("jspb.utils.joinFloat32",J,void 0),l("jspb.utils.joinFloat64",Z,void 0),l("jspb.utils.joinHash64",Y,void 0),l("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),l("jspb.utils.joinUnsignedDecimalString",X,void 0),l("jspb.utils.joinSignedDecimalString",Q,void 0),l("jspb.utils.hash64ToDecimalString",tt,void 0),l("jspb.utils.hash64ArrayToDecimalStrings",(function(t,e){for(var r=Array(t.length),o=0;o<t.length;o++)r[o]=tt(t[o],e);return r}),void 0),l("jspb.utils.decimalStringToHash64",et,void 0),l("jspb.utils.splitDecimalString",(function(t){G(et(t))}),void 0),l("jspb.utils.hash64ToHexString",(function(t){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var o=t.charCodeAt(7-r);e[2*r+2]=rt(o>>4),e[2*r+3]=rt(15&o)}return e.join("")}),void 0),l("jspb.utils.hexStringToHash64",(function(t){S(18==(t=t.toLowerCase()).length),S("0"==t[0]),S("x"==t[1]);for(var e="",r=0;8>r;r++)e=String.fromCharCode(16*ot(t.charCodeAt(2*r+2))+ot(t.charCodeAt(2*r+3)))+e;return e}),void 0),l("jspb.utils.hash64ToNumber",(function(t,e){G(t),t=M;var r=N;return e?H(t,r):$(t,r)}),void 0),l("jspb.utils.numberToHash64",(function(t){return j(t),Y(M,N)}),void 0),l("jspb.utils.countVarints",(function(t,e,r){for(var o=0,i=e;i<r;i++)o+=t[i]>>7;return r-e-o}),void 0),l("jspb.utils.countVarintFields",(function(t,e,r,o){var i=0;if(128>(o*=8))for(;e<r&&t[e++]==o;)for(i++;;){var n=t[e++];if(!(128&n))break}else for(;e<r;){for(n=o;128<n;){if(t[e]!=(127&n|128))return i;e++,n>>=7}if(t[e++]!=n)break;for(i++;128&(n=t[e++]););}return i}),void 0),l("jspb.utils.countFixed32Fields",(function(t,e,r,o){return it(t,e,r,8*o+5,4)}),void 0),l("jspb.utils.countFixed64Fields",(function(t,e,r,o){return it(t,e,r,8*o+1,8)}),void 0),l("jspb.utils.countDelimitedFields",(function(t,e,r,o){var i=0;for(o=8*o+2;e<r;){for(var n=o;128<n;){if(t[e++]!=(127&n|128))return i;n>>=7}if(t[e++]!=n)break;i++;for(var s=0,a=1;s+=(127&(n=t[e++]))*a,a*=128,128&n;);e+=s}return i}),void 0),l("jspb.utils.debugBytesToTextFormat",(function(t){var e='"';if(t){t=nt(t);for(var r=0;r<t.length;r++)e+="\\x",16>t[r]&&(e+="0"),e+=t[r].toString(16)}return e+'"'}),void 0),l("jspb.utils.debugScalarToTextFormat",(function(t){if("string"==typeof t){t=String(t);for(var e=['"'],r=0;r<t.length;r++){var o,i=t.charAt(r),n=i.charCodeAt(0),s=r+1;(o=R[i])||(31<n&&127>n||((n=i)in _?i=_[n]:n in R?i=_[n]=R[n]:(31<(o=n.charCodeAt(0))&&127>o?i=n:(256>o?(i="\\x",(16>o||256<o)&&(i+="0")):(i="\\u",4096>o&&(i+="0")),i+=o.toString(16).toUpperCase()),i=_[n]=i)),o=i),e[s]=o}e.push('"'),t=e.join("")}else t=t.toString();return t}),void 0),l("jspb.utils.stringToByteArray",(function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var o=t.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=o}return e}),void 0),l("jspb.utils.byteSourceToUint8Array",nt,void 0),l("jspb.BinaryDecoder",st,void 0);var at=[];function pt(t,e,r){if(at.length){var o=at.pop();return t&&o.H(t,e,r),o}return new st(t,e,r)}function ct(t,e,r){this.a=pt(t,e,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}st.getInstanceCacheLength=function(){return at.length},st.alloc=pt,st.prototype.Ca=function(){this.clear(),100>at.length&&at.push(this)},st.prototype.free=st.prototype.Ca,st.prototype.clone=function(){return pt(this.b,this.h,this.c-this.h)},st.prototype.clone=st.prototype.clone,st.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},st.prototype.clear=st.prototype.clear,st.prototype.Y=function(){return this.b},st.prototype.getBuffer=st.prototype.Y,st.prototype.H=function(t,e,r){this.b=nt(t),this.h=void 0!==e?e:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},st.prototype.setBlock=st.prototype.H,st.prototype.Db=function(){return this.c},st.prototype.getEnd=st.prototype.Db,st.prototype.setEnd=function(t){this.c=t},st.prototype.setEnd=st.prototype.setEnd,st.prototype.reset=function(){this.a=this.h},st.prototype.reset=st.prototype.reset,st.prototype.B=function(){return this.a},st.prototype.getCursor=st.prototype.B,st.prototype.Ma=function(t){this.a=t},st.prototype.setCursor=st.prototype.Ma,st.prototype.advance=function(t){this.a+=t,S(this.a<=this.c)},st.prototype.advance=st.prototype.advance,st.prototype.ya=function(){return this.a==this.c},st.prototype.atEnd=st.prototype.ya,st.prototype.Qb=function(){return this.a>this.c},st.prototype.pastEnd=st.prototype.Qb,st.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},st.prototype.getError=st.prototype.getError,st.prototype.w=function(t){for(var e=128,r=0,o=0,i=0;4>i&&128<=e;i++)r|=(127&(e=this.b[this.a++]))<<7*i;if(128<=e&&(r|=(127&(e=this.b[this.a++]))<<28,o|=(127&e)>>4),128<=e)for(i=0;5>i&&128<=e;i++)o|=(127&(e=this.b[this.a++]))<<7*i+3;if(128>e)return t(r>>>0,o>>>0);m("Failed to read varint, encoding is invalid."),this.v=!0},st.prototype.readSplitVarint64=st.prototype.w,st.prototype.ea=function(t){return this.w((function(e,r){return q(e,r,t)}))},st.prototype.readSplitZigzagVarint64=st.prototype.ea,st.prototype.ta=function(t){var e=this.b,r=this.a;this.a+=8;for(var o=0,i=0,n=r+7;n>=r;n--)o=o<<8|e[n],i=i<<8|e[n+4];return t(o,i)},st.prototype.readSplitFixed64=st.prototype.ta,st.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},st.prototype.skipVarint=st.prototype.kb,st.prototype.mb=function(t){for(;128<t;)this.a--,t>>>=7;this.a--},st.prototype.unskipVarint=st.prototype.mb,st.prototype.o=function(){var t=this.b,e=t[this.a],r=127&e;return 128>e?(this.a+=1,S(this.a<=this.c),r):(r|=(127&(e=t[this.a+1]))<<7,128>e?(this.a+=2,S(this.a<=this.c),r):(r|=(127&(e=t[this.a+2]))<<14,128>e?(this.a+=3,S(this.a<=this.c),r):(r|=(127&(e=t[this.a+3]))<<21,128>e?(this.a+=4,S(this.a<=this.c),r):(r|=(15&(e=t[this.a+4]))<<28,128>e?(this.a+=5,S(this.a<=this.c),r>>>0):(this.a+=5,128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&S(!1),S(this.a<=this.c),r)))))},st.prototype.readUnsignedVarint32=st.prototype.o,st.prototype.da=function(){return~~this.o()},st.prototype.readSignedVarint32=st.prototype.da,st.prototype.O=function(){return this.o().toString()},st.prototype.Ea=function(){return this.da().toString()},st.prototype.readSignedVarint32String=st.prototype.Ea,st.prototype.Ia=function(){var t=this.o();return t>>>1^-(1&t)},st.prototype.readZigzagVarint32=st.prototype.Ia,st.prototype.Ga=function(){return this.w($)},st.prototype.readUnsignedVarint64=st.prototype.Ga,st.prototype.Ha=function(){return this.w(X)},st.prototype.readUnsignedVarint64String=st.prototype.Ha,st.prototype.sa=function(){return this.w(H)},st.prototype.readSignedVarint64=st.prototype.sa,st.prototype.Fa=function(){return this.w(Q)},st.prototype.readSignedVarint64String=st.prototype.Fa,st.prototype.Ja=function(){return this.w(K)},st.prototype.readZigzagVarint64=st.prototype.Ja,st.prototype.fb=function(){return this.ea(Y)},st.prototype.readZigzagVarintHash64=st.prototype.fb,st.prototype.Ka=function(){return this.ea(Q)},st.prototype.readZigzagVarint64String=st.prototype.Ka,st.prototype.Gc=function(){var t=this.b[this.a];return this.a+=1,S(this.a<=this.c),t},st.prototype.readUint8=st.prototype.Gc,st.prototype.Ec=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,S(this.a<=this.c),t|e<<8},st.prototype.readUint16=st.prototype.Ec,st.prototype.m=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],o=this.b[this.a+3];return this.a+=4,S(this.a<=this.c),(t|e<<8|r<<16|o<<24)>>>0},st.prototype.readUint32=st.prototype.m,st.prototype.ga=function(){return $(this.m(),this.m())},st.prototype.readUint64=st.prototype.ga,st.prototype.ha=function(){return X(this.m(),this.m())},st.prototype.readUint64String=st.prototype.ha,st.prototype.Xb=function(){var t=this.b[this.a];return this.a+=1,S(this.a<=this.c),t<<24>>24},st.prototype.readInt8=st.prototype.Xb,st.prototype.Vb=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,S(this.a<=this.c),(t|e<<8)<<16>>16},st.prototype.readInt16=st.prototype.Vb,st.prototype.P=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],o=this.b[this.a+3];return this.a+=4,S(this.a<=this.c),t|e<<8|r<<16|o<<24},st.prototype.readInt32=st.prototype.P,st.prototype.ba=function(){return H(this.m(),this.m())},st.prototype.readInt64=st.prototype.ba,st.prototype.ca=function(){return Q(this.m(),this.m())},st.prototype.readInt64String=st.prototype.ca,st.prototype.aa=function(){return J(this.m())},st.prototype.readFloat=st.prototype.aa,st.prototype.Z=function(){return Z(this.m(),this.m())},st.prototype.readDouble=st.prototype.Z,st.prototype.pa=function(){return!!this.b[this.a++]},st.prototype.readBool=st.prototype.pa,st.prototype.ra=function(){return this.da()},st.prototype.readEnum=st.prototype.ra,st.prototype.fa=function(t){var e=this.b,r=this.a;t=r+t;for(var o=[],i="";r<t;){var n=e[r++];if(128>n)o.push(n);else{if(192>n)continue;if(224>n){var s=e[r++];o.push((31&n)<<6|63&s)}else if(240>n){s=e[r++];var a=e[r++];o.push((15&n)<<12|(63&s)<<6|63&a)}else 248>n&&(n=(7&n)<<18|(63&(s=e[r++]))<<12|(63&(a=e[r++]))<<6|63&e[r++],n-=65536,o.push(55296+(n>>10&1023),56320+(1023&n)))}8192<=o.length&&(i+=String.fromCharCode.apply(null,o),o.length=0)}return i+=B(o),this.a=r,i},st.prototype.readString=st.prototype.fa,st.prototype.Dc=function(){var t=this.o();return this.fa(t)},st.prototype.readStringWithLength=st.prototype.Dc,st.prototype.qa=function(t){if(0>t||this.a+t>this.b.length)return this.v=!0,m("Invalid byte length!"),new Uint8Array(0);var e=this.b.subarray(this.a,this.a+t);return this.a+=t,S(this.a<=this.c),e},st.prototype.readBytes=st.prototype.qa,st.prototype.ia=function(){return this.w(Y)},st.prototype.readVarintHash64=st.prototype.ia,st.prototype.$=function(){var t=this.b,e=this.a,r=t[e],o=t[e+1],i=t[e+2],n=t[e+3],s=t[e+4],a=t[e+5],p=t[e+6];return t=t[e+7],this.a+=8,String.fromCharCode(r,o,i,n,s,a,p,t)},st.prototype.readFixedHash64=st.prototype.$,l("jspb.BinaryReader",ct,void 0);var ut=[];function lt(t,e,r){if(ut.length){var o=ut.pop();return t&&o.a.H(t,e,r),o}return new ct(t,e,r)}function ht(t,e){S(2==t.b);var r=t.a.o();r=t.a.B()+r;for(var o=[];t.a.B()<r;)o.push(e.call(t.a));return o}function ft(t,e,r,o,i){this.ma=t,this.Ba=e,this.la=r,this.Na=o,this.na=i}function dt(t,e,r,o,i,n){this.Za=t,this.za=e,this.Aa=r,this.Wa=o,this.Ab=i,this.Nb=n}function gt(){}ct.clearInstanceCache=function(){ut=[]},ct.getInstanceCacheLength=function(){return ut.length},ct.alloc=lt,ct.prototype.zb=lt,ct.prototype.alloc=ct.prototype.zb,ct.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ut.length&&ut.push(this)},ct.prototype.free=ct.prototype.Ca,ct.prototype.Fb=function(){return this.O},ct.prototype.getFieldCursor=ct.prototype.Fb,ct.prototype.B=function(){return this.a.B()},ct.prototype.getCursor=ct.prototype.B,ct.prototype.Y=function(){return this.a.Y()},ct.prototype.getBuffer=ct.prototype.Y,ct.prototype.Hb=function(){return this.c},ct.prototype.getFieldNumber=ct.prototype.Hb,ct.prototype.Lb=function(){return this.b},ct.prototype.getWireType=ct.prototype.Lb,ct.prototype.Mb=function(){return 2==this.b},ct.prototype.isDelimited=ct.prototype.Mb,ct.prototype.bb=function(){return 4==this.b},ct.prototype.isEndGroup=ct.prototype.bb,ct.prototype.getError=function(){return this.h||this.a.getError()},ct.prototype.getError=ct.prototype.getError,ct.prototype.H=function(t,e,r){this.a.H(t,e,r),this.b=this.c=-1},ct.prototype.setBlock=ct.prototype.H,ct.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ct.prototype.reset=ct.prototype.reset,ct.prototype.advance=function(t){this.a.advance(t)},ct.prototype.advance=ct.prototype.advance,ct.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return m("Decoder hit an error"),!1;this.O=this.a.B();var t=this.a.o(),e=t>>>3;return 0!=(t&=7)&&5!=t&&1!=t&&2!=t&&3!=t&&4!=t?(m("Invalid wire type: %s (at position %s)",t,this.O),this.h=!0,!1):(this.c=e,this.b=t,!0)},ct.prototype.nextField=ct.prototype.oa,ct.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ct.prototype.unskipHeader=ct.prototype.Oa,ct.prototype.Lc=function(){var t=this.c;for(this.Oa();this.oa()&&this.c==t;)this.C();this.a.ya()||this.Oa()},ct.prototype.skipMatchingFields=ct.prototype.Lc,ct.prototype.lb=function(){0!=this.b?(m("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ct.prototype.skipVarintField=ct.prototype.lb,ct.prototype.gb=function(){if(2!=this.b)m("Invalid wire type for skipDelimitedField"),this.C();else{var t=this.a.o();this.a.advance(t)}},ct.prototype.skipDelimitedField=ct.prototype.gb,ct.prototype.hb=function(){5!=this.b?(m("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ct.prototype.skipFixed32Field=ct.prototype.hb,ct.prototype.ib=function(){1!=this.b?(m("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ct.prototype.skipFixed64Field=ct.prototype.ib,ct.prototype.jb=function(){for(var t=this.c;;){if(!this.oa()){m("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=t&&(m("Unmatched end-group tag"),this.h=!0);break}this.C()}},ct.prototype.skipGroup=ct.prototype.jb,ct.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:m("Invalid wire encoding for field.")}},ct.prototype.skipField=ct.prototype.C,ct.prototype.Hc=function(t,e){null===this.v&&(this.v={}),S(!this.v[t]),this.v[t]=e},ct.prototype.registerReadCallback=ct.prototype.Hc,ct.prototype.Ic=function(t){return S(null!==this.v),S(t=this.v[t]),t(this)},ct.prototype.runReadCallback=ct.prototype.Ic,ct.prototype.Yb=function(t,e){S(2==this.b);var r=this.a.c,o=this.a.o();o=this.a.B()+o,this.a.setEnd(o),e(t,this),this.a.Ma(o),this.a.setEnd(r)},ct.prototype.readMessage=ct.prototype.Yb,ct.prototype.Ub=function(t,e,r){S(3==this.b),S(this.c==t),r(e,this),this.h||4==this.b||(m("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ct.prototype.readGroup=ct.prototype.Ub,ct.prototype.Gb=function(){S(2==this.b);var t=this.a.o(),e=this.a.B(),r=e+t;return t=pt(this.a.Y(),e,t),this.a.Ma(r),t},ct.prototype.getFieldDecoder=ct.prototype.Gb,ct.prototype.P=function(){return S(0==this.b),this.a.da()},ct.prototype.readInt32=ct.prototype.P,ct.prototype.Wb=function(){return S(0==this.b),this.a.Ea()},ct.prototype.readInt32String=ct.prototype.Wb,ct.prototype.ba=function(){return S(0==this.b),this.a.sa()},ct.prototype.readInt64=ct.prototype.ba,ct.prototype.ca=function(){return S(0==this.b),this.a.Fa()},ct.prototype.readInt64String=ct.prototype.ca,ct.prototype.m=function(){return S(0==this.b),this.a.o()},ct.prototype.readUint32=ct.prototype.m,ct.prototype.Fc=function(){return S(0==this.b),this.a.O()},ct.prototype.readUint32String=ct.prototype.Fc,ct.prototype.ga=function(){return S(0==this.b),this.a.Ga()},ct.prototype.readUint64=ct.prototype.ga,ct.prototype.ha=function(){return S(0==this.b),this.a.Ha()},ct.prototype.readUint64String=ct.prototype.ha,ct.prototype.zc=function(){return S(0==this.b),this.a.Ia()},ct.prototype.readSint32=ct.prototype.zc,ct.prototype.Ac=function(){return S(0==this.b),this.a.Ja()},ct.prototype.readSint64=ct.prototype.Ac,ct.prototype.Bc=function(){return S(0==this.b),this.a.Ka()},ct.prototype.readSint64String=ct.prototype.Bc,ct.prototype.Rb=function(){return S(5==this.b),this.a.m()},ct.prototype.readFixed32=ct.prototype.Rb,ct.prototype.Sb=function(){return S(1==this.b),this.a.ga()},ct.prototype.readFixed64=ct.prototype.Sb,ct.prototype.Tb=function(){return S(1==this.b),this.a.ha()},ct.prototype.readFixed64String=ct.prototype.Tb,ct.prototype.vc=function(){return S(5==this.b),this.a.P()},ct.prototype.readSfixed32=ct.prototype.vc,ct.prototype.wc=function(){return S(5==this.b),this.a.P().toString()},ct.prototype.readSfixed32String=ct.prototype.wc,ct.prototype.xc=function(){return S(1==this.b),this.a.ba()},ct.prototype.readSfixed64=ct.prototype.xc,ct.prototype.yc=function(){return S(1==this.b),this.a.ca()},ct.prototype.readSfixed64String=ct.prototype.yc,ct.prototype.aa=function(){return S(5==this.b),this.a.aa()},ct.prototype.readFloat=ct.prototype.aa,ct.prototype.Z=function(){return S(1==this.b),this.a.Z()},ct.prototype.readDouble=ct.prototype.Z,ct.prototype.pa=function(){return S(0==this.b),!!this.a.o()},ct.prototype.readBool=ct.prototype.pa,ct.prototype.ra=function(){return S(0==this.b),this.a.sa()},ct.prototype.readEnum=ct.prototype.ra,ct.prototype.fa=function(){S(2==this.b);var t=this.a.o();return this.a.fa(t)},ct.prototype.readString=ct.prototype.fa,ct.prototype.qa=function(){S(2==this.b);var t=this.a.o();return this.a.qa(t)},ct.prototype.readBytes=ct.prototype.qa,ct.prototype.ia=function(){return S(0==this.b),this.a.ia()},ct.prototype.readVarintHash64=ct.prototype.ia,ct.prototype.Cc=function(){return S(0==this.b),this.a.fb()},ct.prototype.readSintHash64=ct.prototype.Cc,ct.prototype.w=function(t){return S(0==this.b),this.a.w(t)},ct.prototype.readSplitVarint64=ct.prototype.w,ct.prototype.ea=function(t){return S(0==this.b),this.a.w((function(e,r){return q(e,r,t)}))},ct.prototype.readSplitZigzagVarint64=ct.prototype.ea,ct.prototype.$=function(){return S(1==this.b),this.a.$()},ct.prototype.readFixedHash64=ct.prototype.$,ct.prototype.ta=function(t){return S(1==this.b),this.a.ta(t)},ct.prototype.readSplitFixed64=ct.prototype.ta,ct.prototype.gc=function(){return ht(this,this.a.da)},ct.prototype.readPackedInt32=ct.prototype.gc,ct.prototype.hc=function(){return ht(this,this.a.Ea)},ct.prototype.readPackedInt32String=ct.prototype.hc,ct.prototype.ic=function(){return ht(this,this.a.sa)},ct.prototype.readPackedInt64=ct.prototype.ic,ct.prototype.jc=function(){return ht(this,this.a.Fa)},ct.prototype.readPackedInt64String=ct.prototype.jc,ct.prototype.qc=function(){return ht(this,this.a.o)},ct.prototype.readPackedUint32=ct.prototype.qc,ct.prototype.rc=function(){return ht(this,this.a.O)},ct.prototype.readPackedUint32String=ct.prototype.rc,ct.prototype.sc=function(){return ht(this,this.a.Ga)},ct.prototype.readPackedUint64=ct.prototype.sc,ct.prototype.tc=function(){return ht(this,this.a.Ha)},ct.prototype.readPackedUint64String=ct.prototype.tc,ct.prototype.nc=function(){return ht(this,this.a.Ia)},ct.prototype.readPackedSint32=ct.prototype.nc,ct.prototype.oc=function(){return ht(this,this.a.Ja)},ct.prototype.readPackedSint64=ct.prototype.oc,ct.prototype.pc=function(){return ht(this,this.a.Ka)},ct.prototype.readPackedSint64String=ct.prototype.pc,ct.prototype.bc=function(){return ht(this,this.a.m)},ct.prototype.readPackedFixed32=ct.prototype.bc,ct.prototype.cc=function(){return ht(this,this.a.ga)},ct.prototype.readPackedFixed64=ct.prototype.cc,ct.prototype.dc=function(){return ht(this,this.a.ha)},ct.prototype.readPackedFixed64String=ct.prototype.dc,ct.prototype.kc=function(){return ht(this,this.a.P)},ct.prototype.readPackedSfixed32=ct.prototype.kc,ct.prototype.lc=function(){return ht(this,this.a.ba)},ct.prototype.readPackedSfixed64=ct.prototype.lc,ct.prototype.mc=function(){return ht(this,this.a.ca)},ct.prototype.readPackedSfixed64String=ct.prototype.mc,ct.prototype.fc=function(){return ht(this,this.a.aa)},ct.prototype.readPackedFloat=ct.prototype.fc,ct.prototype.$b=function(){return ht(this,this.a.Z)},ct.prototype.readPackedDouble=ct.prototype.$b,ct.prototype.Zb=function(){return ht(this,this.a.pa)},ct.prototype.readPackedBool=ct.prototype.Zb,ct.prototype.ac=function(){return ht(this,this.a.ra)},ct.prototype.readPackedEnum=ct.prototype.ac,ct.prototype.uc=function(){return ht(this,this.a.ia)},ct.prototype.readPackedVarintHash64=ct.prototype.uc,ct.prototype.ec=function(){return ht(this,this.a.$)},ct.prototype.readPackedFixedHash64=ct.prototype.ec,l("jspb.ExtensionFieldInfo",ft,void 0),l("jspb.ExtensionFieldBinaryInfo",dt,void 0),ft.prototype.F=function(){return!!this.la},ft.prototype.isMessageType=ft.prototype.F,l("jspb.Message",gt,void 0),gt.GENERATE_TO_OBJECT=!0,gt.GENERATE_FROM_OBJECT=!0;var yt="function"==typeof Uint8Array;gt.prototype.Ib=function(){return this.b},gt.prototype.getJsPbMessageId=gt.prototype.Ib,gt.initialize=function(t,e,r,o,i,n){if(t.f=null,e||(e=r?[r]:[]),t.b=r?String(r):void 0,t.D=0===r?-1:0,t.u=e,e=-1,!(r=t.u.length)||(e=r-1,null===(r=t.u[e])||"object"!=typeof r||Array.isArray(r)||yt&&r instanceof Uint8Array)?-1<o?(t.G=Math.max(o,e+1-t.D),t.i=null):t.G=Number.MAX_VALUE:(t.G=e-t.D,t.i=r),t.a={},i)for(o=0;o<i.length;o++)(e=i[o])<t.G?(e+=t.D,t.u[e]=t.u[e]||vt):(bt(t),t.i[e]=t.i[e]||vt);if(n&&n.length)for(o=0;o<n.length;o++)_t(t,n[o])};var vt=Object.freeze?Object.freeze([]):[];function bt(t){var e=t.G+t.D;t.u[e]||(t.i=t.u[e]={})}function St(t,e,r){for(var o=[],i=0;i<t.length;i++)o[i]=e.call(t[i],r,t[i]);return o}function mt(t,e){if(e<t.G){e+=t.D;var r=t.u[e];return r===vt?t.u[e]=[]:r}if(t.i)return(r=t.i[e])===vt?t.i[e]=[]:r}function wt(t,e){return null==(t=mt(t,e))?t:+t}function It(t,e){return null==(t=mt(t,e))?t:!!t}function Et(t){return null==t||"string"==typeof t?t:yt&&t instanceof Uint8Array?U(t):(m("Cannot coerce to b64 string: "+h(t)),null)}function kt(t){return null==t||t instanceof Uint8Array?t:"string"==typeof t?F(t):(m("Cannot coerce to Uint8Array: "+h(t)),null)}function Pt(t){if(t&&1<t.length){var e=h(t[0]);g(t,(function(t){h(t)!=e&&m("Inconsistent type in JSPB repeated field array. Got "+h(t)+" expected "+e)}))}}function Ot(t,e,r){return null==(t=mt(t,e))?r:t}function Ct(t,e,r){return w(t,gt),e<t.G?t.u[e+t.D]=r:(bt(t),t.i[e]=r),t}function Bt(t,e,r,o){return w(t,gt),r!==o?Ct(t,e,r):e<t.G?t.u[e+t.D]=null:(bt(t),delete t.i[e]),t}function Rt(t,e,r,o){return w(t,gt),(r=_t(t,r))&&r!==e&&void 0!==o&&(t.f&&r in t.f&&(t.f[r]=void 0),Ct(t,r,void 0)),Ct(t,e,o)}function _t(t,e){for(var r,o,i=0;i<e.length;i++){var n=e[i],s=mt(t,n);null!=s&&(r=n,o=s,Ct(t,n,void 0))}return r?(Ct(t,r,o),r):0}function Tt(t,e,r){if(t.f||(t.f={}),!t.f[r]){for(var o=mt(t,r),i=[],n=0;n<o.length;n++)i[n]=new e(o[n]);t.f[r]=i}}function At(t){if(t.f)for(var e in t.f){var r=t.f[e];if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]&&r[o].g();else r&&r.g()}}function Ut(t,e){t=t||{},e=e||{};var r,o={};for(r in t)o[r]=0;for(r in e)o[r]=0;for(r in o)if(!Ft(t[r],e[r]))return!1;return!0}function Ft(t,e){if(t==e)return!0;if(!f(t)||!f(e))return!!("number"==typeof t&&isNaN(t)||"number"==typeof e&&isNaN(e))&&String(t)==String(e);if(t.constructor!=e.constructor)return!1;if(yt&&t.constructor===Uint8Array){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}if(t.constructor===Array){var o=void 0,i=void 0,n=Math.max(t.length,e.length);for(r=0;r<n;r++){var s=t[r],a=e[r];if(s&&s.constructor==Object&&(S(void 0===o),S(r===t.length-1),o=s,s=void 0),a&&a.constructor==Object&&(S(void 0===i),S(r===e.length-1),i=a,a=void 0),!Ft(s,a))return!1}return!o&&!i||Ut(o=o||{},i=i||{})}if(t.constructor===Object)return Ut(t,e);throw Error("Invalid type in JSPB array")}function Dt(t){return new t.constructor(Mt(t.g()))}function Mt(t){if(Array.isArray(t)){for(var e=Array(t.length),r=0;r<t.length;r++){var o=t[r];null!=o&&(e[r]="object"==typeof o?Mt(S(o)):o)}return e}if(yt&&t instanceof Uint8Array)return new Uint8Array(t);for(r in e={},t)null!=(o=t[r])&&(e[r]="object"==typeof o?Mt(S(o)):o);return e}gt.toObjectList=St,gt.toObjectExtension=function(t,e,r,o,i){for(var n in r){var s=r[n],a=o.call(t,s);if(null!=a){for(var p in s.Ba)if(s.Ba.hasOwnProperty(p))break;e[p]=s.Na?s.na?St(a,s.Na,i):s.Na(i,a):a}}},gt.serializeBinaryExtensions=function(t,e,r,o){for(var i in r){var n=r[i],s=n.Za;if(!n.Aa)throw Error("Message extension present that was generated without binary serialization support");var a=o.call(t,s);if(null!=a)if(s.F()){if(!n.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");n.Aa.call(e,s.ma,a,n.Wa)}else n.Aa.call(e,s.ma,a)}},gt.readBinaryExtension=function(t,e,r,o,i){var n=r[e.c];if(n){if(r=n.Za,!n.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var s=new r.la;n.za.call(e,s,n.Ab)}else s=n.za.call(e);r.na&&!n.Nb?(e=o.call(t,r))?e.push(s):i.call(t,r,[s]):i.call(t,r,s)}else e.C()},gt.getField=mt,gt.getRepeatedField=function(t,e){return mt(t,e)},gt.getOptionalFloatingPointField=wt,gt.getBooleanField=It,gt.getRepeatedFloatingPointField=function(t,e){var r=mt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var o=0;o<r.length;o++)r[o]=+r[o];t.a[e]=!0}return r},gt.getRepeatedBooleanField=function(t,e){var r=mt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var o=0;o<r.length;o++)r[o]=!!r[o];t.a[e]=!0}return r},gt.bytesAsB64=Et,gt.bytesAsU8=kt,gt.bytesListAsB64=function(t){return Pt(t),t.length&&"string"!=typeof t[0]?y(t,Et):t},gt.bytesListAsU8=function(t){return Pt(t),!t.length||t[0]instanceof Uint8Array?t:y(t,kt)},gt.getFieldWithDefault=Ot,gt.getBooleanFieldWithDefault=function(t,e,r){return null==(t=It(t,e))?r:t},gt.getFloatingPointFieldWithDefault=function(t,e,r){return null==(t=wt(t,e))?r:t},gt.getFieldProto3=Ot,gt.getMapField=function(t,e,r,o){if(t.f||(t.f={}),e in t.f)return t.f[e];var i=mt(t,e);if(!i){if(r)return;Ct(t,e,i=[])}return t.f[e]=new E(i,o)},gt.setField=Ct,gt.setProto3IntField=function(t,e,r){return Bt(t,e,r,0)},gt.setProto3FloatField=function(t,e,r){return Bt(t,e,r,0)},gt.setProto3BooleanField=function(t,e,r){return Bt(t,e,r,!1)},gt.setProto3StringField=function(t,e,r){return Bt(t,e,r,"")},gt.setProto3BytesField=function(t,e,r){return Bt(t,e,r,"")},gt.setProto3EnumField=function(t,e,r){return Bt(t,e,r,0)},gt.setProto3StringIntField=function(t,e,r){return Bt(t,e,r,"0")},gt.addToRepeatedField=function(t,e,r,o){return w(t,gt),e=mt(t,e),null!=o?e.splice(o,0,r):e.push(r),t},gt.setOneofField=Rt,gt.computeOneofCase=_t,gt.getWrapperField=function(t,e,r,o){if(t.f||(t.f={}),!t.f[r]){var i=mt(t,r);(o||i)&&(t.f[r]=new e(i))}return t.f[r]},gt.getRepeatedWrapperField=function(t,e,r){return Tt(t,e,r),(e=t.f[r])==vt&&(e=t.f[r]=[]),e},gt.setWrapperField=function(t,e,r){w(t,gt),t.f||(t.f={});var o=r?r.g():r;return t.f[e]=r,Ct(t,e,o)},gt.setOneofWrapperField=function(t,e,r,o){w(t,gt),t.f||(t.f={});var i=o?o.g():o;return t.f[e]=o,Rt(t,e,r,i)},gt.setRepeatedWrapperField=function(t,e,r){w(t,gt),t.f||(t.f={}),r=r||[];for(var o=[],i=0;i<r.length;i++)o[i]=r[i].g();return t.f[e]=r,Ct(t,e,o)},gt.addToRepeatedWrapperField=function(t,e,r,o,i){Tt(t,o,e);var n=t.f[e];return n||(n=t.f[e]=[]),r=r||new o,t=mt(t,e),null!=i?(n.splice(i,0,r),t.splice(i,0,r.g())):(n.push(r),t.push(r.g())),r},gt.toMap=function(t,e,r,o){for(var i={},n=0;n<t.length;n++)i[e.call(t[n])]=r?r.call(t[n],o,t[n]):t[n];return i},gt.prototype.g=function(){return At(this),this.u},gt.prototype.toArray=gt.prototype.g,gt.prototype.toString=function(){return At(this),this.u.toString()},gt.prototype.getExtension=function(t){if(this.i){this.f||(this.f={});var e=t.ma;if(t.na){if(t.F())return this.f[e]||(this.f[e]=y(this.i[e]||[],(function(e){return new t.la(e)}))),this.f[e]}else if(t.F())return!this.f[e]&&this.i[e]&&(this.f[e]=new t.la(this.i[e])),this.f[e];return this.i[e]}},gt.prototype.getExtension=gt.prototype.getExtension,gt.prototype.Kc=function(t,e){this.f||(this.f={}),bt(this);var r=t.ma;return t.na?(e=e||[],t.F()?(this.f[r]=e,this.i[r]=y(e,(function(t){return t.g()}))):this.i[r]=e):t.F()?(this.f[r]=e,this.i[r]=e?e.g():e):this.i[r]=e,this},gt.prototype.setExtension=gt.prototype.Kc,gt.difference=function(t,e){if(!(t instanceof e.constructor))throw Error("Messages have different types.");var r=t.g();e=e.g();var o=[],i=0,n=r.length>e.length?r.length:e.length;for(t.b&&(o[0]=t.b,i=1);i<n;i++)Ft(r[i],e[i])||(o[i]=e[i]);return new t.constructor(o)},gt.equals=function(t,e){return t==e||!(!t||!e)&&t instanceof e.constructor&&Ft(t.g(),e.g())},gt.compareExtensions=Ut,gt.compareFields=Ft,gt.prototype.Bb=function(){return Dt(this)},gt.prototype.cloneMessage=gt.prototype.Bb,gt.prototype.clone=function(){return Dt(this)},gt.prototype.clone=gt.prototype.clone,gt.clone=function(t){return Dt(t)},gt.copyInto=function(t,e){w(t,gt),w(e,gt),S(t.constructor==e.constructor,"Copy source and target message should have the same type."),t=Dt(t);for(var r=e.g(),o=t.g(),i=r.length=0;i<o.length;i++)r[i]=o[i];e.f=t.f,e.i=t.i},gt.registerMessageType=function(t,e){e.we=t};var Nt={dump:function(t){return w(t,gt,"jspb.Message instance expected"),S(t.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Nt.X(t)}};function xt(){this.a=[]}function jt(t,e){this.lo=t,this.hi=e}function Lt(t,e){var r=65535&t,o=65535&e,i=e>>>16;for(e=r*o+65536*(r*i&65535)+65536*((t>>>=16)*o&65535),r=t*i+(r*i>>>16)+(t*o>>>16);4294967296<=e;)e-=4294967296,r+=1;return new jt(e>>>0,r>>>0)}function Vt(t){for(var e=new jt(0,0),r=new jt(0,0),o=0;o<t.length;o++){if("0">t[o]||"9"<t[o])return null;r.lo=parseInt(t[o],10),e=e.eb(10).add(r)}return e}function Wt(t,e){this.lo=t,this.hi=e}function Gt(t){var e=0<t.length&&"-"==t[0];return e&&(t=t.substring(1)),null===(t=Vt(t))?null:(e&&(t=new jt(0,0).sub(t)),new Wt(t.lo,t.hi))}function $t(){this.c=[],this.b=0,this.a=new xt,this.h=[]}function Ht(t,e){var r=t.a.end();t.c.push(r),t.c.push(e),t.b+=r.length+e.length}function zt(t,e){return qt(t,e,2),e=t.a.end(),t.c.push(e),t.b+=e.length,e.push(t.b),e}function Kt(t,e){var r=e.pop();for(S(0<=(r=t.b+t.a.length()-r));127<r;)e.push(127&r|128),r>>>=7,t.b++;e.push(r),t.b++}function qt(t,e,r){S(1<=e&&e==Math.floor(e)),t.a.j(8*e+r)}function Jt(t,e,r){null!=r&&(qt(t,e,0),t.a.j(r))}function Zt(t,e,r){null!=r&&(qt(t,e,0),t.a.M(r))}l("jspb.debug.dump",Nt.dump,void 0),Nt.X=function(t){var e=h(t);if("number"==e||"string"==e||"boolean"==e||"null"==e||"undefined"==e||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array)return t;if("array"==e)return function(t,e,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];Array.isArray(t)||b("Expected array but got %s: %s.",[h(t),t],e,o)}(t),y(t,Nt.X);if(t instanceof E){for(var r={},o=(t=t.entries()).next();!o.done;o=t.next())r[o.value[0]]=Nt.X(o.value[1]);return r}w(t,gt,"Only messages expected: "+t);var i={$name:(e=t.constructor).name||e.displayName};for(a in e.prototype){var n=/^get([A-Z]\w*)/.exec(a);if(n&&"getExtension"!=a&&"getJsPbMessageId"!=a){var s="has"+n[1];t[s]&&!t[s]()||(s=t[a](),i[Nt.$a(n[1])]=Nt.X(s))}}if(t.extensionObject_)return i.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",i;for(o in e.extensions)if(/^\d+$/.test(o)){s=e.extensions[o];var a=t.getExtension(s);n=void 0,s=s.Ba;var p=[],c=0;for(n in s)p[c++]=n;n=p[0],null!=a&&(r||(r=i.$extensions={}),r[Nt.$a(n)]=Nt.X(a))}return i},Nt.$a=function(t){return t.replace(/^[A-Z]/,(function(t){return t.toLowerCase()}))},l("jspb.BinaryEncoder",xt,void 0),xt.prototype.length=function(){return this.a.length},xt.prototype.length=xt.prototype.length,xt.prototype.end=function(){var t=this.a;return this.a=[],t},xt.prototype.end=xt.prototype.end,xt.prototype.l=function(t,e){for(S(t==Math.floor(t)),S(e==Math.floor(e)),S(0<=t&&4294967296>t),S(0<=e&&4294967296>e);0<e||127<t;)this.a.push(127&t|128),t=(t>>>7|e<<25)>>>0,e>>>=7;this.a.push(t)},xt.prototype.writeSplitVarint64=xt.prototype.l,xt.prototype.A=function(t,e){S(t==Math.floor(t)),S(e==Math.floor(e)),S(0<=t&&4294967296>t),S(0<=e&&4294967296>e),this.s(t),this.s(e)},xt.prototype.writeSplitFixed64=xt.prototype.A,xt.prototype.j=function(t){for(S(t==Math.floor(t)),S(0<=t&&4294967296>t);127<t;)this.a.push(127&t|128),t>>>=7;this.a.push(t)},xt.prototype.writeUnsignedVarint32=xt.prototype.j,xt.prototype.M=function(t){if(S(t==Math.floor(t)),S(-2147483648<=t&&2147483648>t),0<=t)this.j(t);else{for(var e=0;9>e;e++)this.a.push(127&t|128),t>>=7;this.a.push(1)}},xt.prototype.writeSignedVarint32=xt.prototype.M,xt.prototype.va=function(t){S(t==Math.floor(t)),S(0<=t&&0x10000000000000000>t),j(t),this.l(M,N)},xt.prototype.writeUnsignedVarint64=xt.prototype.va,xt.prototype.ua=function(t){S(t==Math.floor(t)),S(-0x8000000000000000<=t&&0x8000000000000000>t),j(t),this.l(M,N)},xt.prototype.writeSignedVarint64=xt.prototype.ua,xt.prototype.wa=function(t){S(t==Math.floor(t)),S(-2147483648<=t&&2147483648>t),this.j((t<<1^t>>31)>>>0)},xt.prototype.writeZigzagVarint32=xt.prototype.wa,xt.prototype.xa=function(t){S(t==Math.floor(t)),S(-0x8000000000000000<=t&&0x8000000000000000>t),L(t),this.l(M,N)},xt.prototype.writeZigzagVarint64=xt.prototype.xa,xt.prototype.Ta=function(t){this.W(et(t))},xt.prototype.writeZigzagVarint64String=xt.prototype.Ta,xt.prototype.W=function(t){var e=this;G(t),z(M,N,(function(t,r){e.l(t>>>0,r>>>0)}))},xt.prototype.writeZigzagVarintHash64=xt.prototype.W,xt.prototype.be=function(t){S(t==Math.floor(t)),S(0<=t&&256>t),this.a.push(t>>>0&255)},xt.prototype.writeUint8=xt.prototype.be,xt.prototype.ae=function(t){S(t==Math.floor(t)),S(0<=t&&65536>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},xt.prototype.writeUint16=xt.prototype.ae,xt.prototype.s=function(t){S(t==Math.floor(t)),S(0<=t&&4294967296>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},xt.prototype.writeUint32=xt.prototype.s,xt.prototype.V=function(t){S(t==Math.floor(t)),S(0<=t&&0x10000000000000000>t),x(t),this.s(M),this.s(N)},xt.prototype.writeUint64=xt.prototype.V,xt.prototype.Qc=function(t){S(t==Math.floor(t)),S(-128<=t&&128>t),this.a.push(t>>>0&255)},xt.prototype.writeInt8=xt.prototype.Qc,xt.prototype.Pc=function(t){S(t==Math.floor(t)),S(-32768<=t&&32768>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},xt.prototype.writeInt16=xt.prototype.Pc,xt.prototype.S=function(t){S(t==Math.floor(t)),S(-2147483648<=t&&2147483648>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},xt.prototype.writeInt32=xt.prototype.S,xt.prototype.T=function(t){S(t==Math.floor(t)),S(-0x8000000000000000<=t&&0x8000000000000000>t),j(t),this.A(M,N)},xt.prototype.writeInt64=xt.prototype.T,xt.prototype.ka=function(t){S(t==Math.floor(t)),S(-0x8000000000000000<=+t&&0x8000000000000000>+t),G(et(t)),this.A(M,N)},xt.prototype.writeInt64String=xt.prototype.ka,xt.prototype.L=function(t){S(1/0===t||-1/0===t||isNaN(t)||-34028234663852886e22<=t&&34028234663852886e22>=t),V(t),this.s(M)},xt.prototype.writeFloat=xt.prototype.L,xt.prototype.J=function(t){S(1/0===t||-1/0===t||isNaN(t)||-17976931348623157e292<=t&&17976931348623157e292>=t),W(t),this.s(M),this.s(N)},xt.prototype.writeDouble=xt.prototype.J,xt.prototype.I=function(t){S("boolean"==typeof t||"number"==typeof t),this.a.push(t?1:0)},xt.prototype.writeBool=xt.prototype.I,xt.prototype.R=function(t){S(t==Math.floor(t)),S(-2147483648<=t&&2147483648>t),this.M(t)},xt.prototype.writeEnum=xt.prototype.R,xt.prototype.ja=function(t){this.a.push.apply(this.a,t)},xt.prototype.writeBytes=xt.prototype.ja,xt.prototype.N=function(t){G(t),this.l(M,N)},xt.prototype.writeVarintHash64=xt.prototype.N,xt.prototype.K=function(t){G(t),this.s(M),this.s(N)},xt.prototype.writeFixedHash64=xt.prototype.K,xt.prototype.U=function(t){var e=this.a.length;!function(t,e,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];"string"!=typeof t&&b("Expected string but got %s: %s.",[h(t),t],e,o)}(t);for(var r=0;r<t.length;r++){var o=t.charCodeAt(r);if(128>o)this.a.push(o);else if(2048>o)this.a.push(o>>6|192),this.a.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<t.length){var i=t.charCodeAt(r+1);56320<=i&&57343>=i&&(o=1024*(o-55296)+i-56320+65536,this.a.push(o>>18|240),this.a.push(o>>12&63|128),this.a.push(o>>6&63|128),this.a.push(63&o|128),r++)}else this.a.push(o>>12|224),this.a.push(o>>6&63|128),this.a.push(63&o|128)}return this.a.length-e},xt.prototype.writeString=xt.prototype.U,l("jspb.arith.UInt64",jt,void 0),jt.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.lo?0:1},jt.prototype.cmp=jt.prototype.cmp,jt.prototype.La=function(){return new jt((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jt.prototype.rightShift=jt.prototype.La,jt.prototype.Da=function(){return new jt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jt.prototype.leftShift=jt.prototype.Da,jt.prototype.cb=function(){return!!(2147483648&this.hi)},jt.prototype.msb=jt.prototype.cb,jt.prototype.Ob=function(){return!!(1&this.lo)},jt.prototype.lsb=jt.prototype.Ob,jt.prototype.Ua=function(){return 0==this.lo&&0==this.hi},jt.prototype.zero=jt.prototype.Ua,jt.prototype.add=function(t){return new jt((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},jt.prototype.add=jt.prototype.add,jt.prototype.sub=function(t){return new jt((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},jt.prototype.sub=jt.prototype.sub,jt.mul32x32=Lt,jt.prototype.eb=function(t){var e=Lt(this.lo,t);return(t=Lt(this.hi,t)).hi=t.lo,t.lo=0,e.add(t)},jt.prototype.mul=jt.prototype.eb,jt.prototype.Xa=function(t){if(0==t)return[];var e=new jt(0,0),r=new jt(this.lo,this.hi);t=new jt(t,0);for(var o=new jt(1,0);!t.cb();)t=t.Da(),o=o.Da();for(;!o.Ua();)0>=t.cmp(r)&&(e=e.add(o),r=r.sub(t)),t=t.La(),o=o.La();return[e,r]},jt.prototype.div=jt.prototype.Xa,jt.prototype.toString=function(){for(var t="",e=this;!e.Ua();){var r=(e=e.Xa(10))[0];t=e[1].lo+t,e=r}return""==t&&(t="0"),t},jt.prototype.toString=jt.prototype.toString,jt.fromString=Vt,jt.prototype.clone=function(){return new jt(this.lo,this.hi)},jt.prototype.clone=jt.prototype.clone,l("jspb.arith.Int64",Wt,void 0),Wt.prototype.add=function(t){return new Wt((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Wt.prototype.add=Wt.prototype.add,Wt.prototype.sub=function(t){return new Wt((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Wt.prototype.sub=Wt.prototype.sub,Wt.prototype.clone=function(){return new Wt(this.lo,this.hi)},Wt.prototype.clone=Wt.prototype.clone,Wt.prototype.toString=function(){var t=!!(2147483648&this.hi),e=new jt(this.lo,this.hi);return t&&(e=new jt(0,0).sub(e)),(t?"-":"")+e.toString()},Wt.prototype.toString=Wt.prototype.toString,Wt.fromString=Gt,l("jspb.BinaryWriter",$t,void 0),$t.prototype.pb=function(t,e,r){Ht(this,t.subarray(e,r))},$t.prototype.writeSerializedMessage=$t.prototype.pb,$t.prototype.Pb=function(t,e,r){null!=t&&null!=e&&null!=r&&this.pb(t,e,r)},$t.prototype.maybeWriteSerializedMessage=$t.prototype.Pb,$t.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},$t.prototype.reset=$t.prototype.reset,$t.prototype.ab=function(){S(0==this.h.length);for(var t=new Uint8Array(this.b+this.a.length()),e=this.c,r=e.length,o=0,i=0;i<r;i++){var n=e[i];t.set(n,o),o+=n.length}return e=this.a.end(),t.set(e,o),S((o+=e.length)==t.length),this.c=[t],t},$t.prototype.getResultBuffer=$t.prototype.ab,$t.prototype.Kb=function(t){return U(this.ab(),t)},$t.prototype.getResultBase64String=$t.prototype.Kb,$t.prototype.Va=function(t){this.h.push(zt(this,t))},$t.prototype.beginSubMessage=$t.prototype.Va,$t.prototype.Ya=function(){S(0<=this.h.length),Kt(this,this.h.pop())},$t.prototype.endSubMessage=$t.prototype.Ya,$t.prototype.Nc=function(t,e,r){switch(t){case 1:this.J(e,r);break;case 2:this.L(e,r);break;case 3:this.T(e,r);break;case 4:this.V(e,r);break;case 5:this.S(e,r);break;case 6:this.Qa(e,r);break;case 7:this.Pa(e,r);break;case 8:this.I(e,r);break;case 9:this.U(e,r);break;case 10:m("Group field type not supported in writeAny()");break;case 11:m("Message field type not supported in writeAny()");break;case 12:this.ja(e,r);break;case 13:this.s(e,r);break;case 14:this.R(e,r);break;case 15:this.Ra(e,r);break;case 16:this.Sa(e,r);break;case 17:this.rb(e,r);break;case 18:this.sb(e,r);break;case 30:this.K(e,r);break;case 31:this.N(e,r);break;default:m("Invalid field type in writeAny()")}},$t.prototype.writeAny=$t.prototype.Nc,$t.prototype.S=function(t,e){null!=e&&(S(-2147483648<=e&&2147483648>e),Zt(this,t,e))},$t.prototype.writeInt32=$t.prototype.S,$t.prototype.ob=function(t,e){null!=e&&(S(-2147483648<=(e=parseInt(e,10))&&2147483648>e),Zt(this,t,e))},$t.prototype.writeInt32String=$t.prototype.ob,$t.prototype.T=function(t,e){null!=e&&(S(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(qt(this,t,0),this.a.ua(e)))},$t.prototype.writeInt64=$t.prototype.T,$t.prototype.ka=function(t,e){null!=e&&(e=Gt(e),qt(this,t,0),this.a.l(e.lo,e.hi))},$t.prototype.writeInt64String=$t.prototype.ka,$t.prototype.s=function(t,e){null!=e&&(S(0<=e&&4294967296>e),Jt(this,t,e))},$t.prototype.writeUint32=$t.prototype.s,$t.prototype.ub=function(t,e){null!=e&&(S(0<=(e=parseInt(e,10))&&4294967296>e),Jt(this,t,e))},$t.prototype.writeUint32String=$t.prototype.ub,$t.prototype.V=function(t,e){null!=e&&(S(0<=e&&0x10000000000000000>e),null!=e&&(qt(this,t,0),this.a.va(e)))},$t.prototype.writeUint64=$t.prototype.V,$t.prototype.vb=function(t,e){null!=e&&(e=Vt(e),qt(this,t,0),this.a.l(e.lo,e.hi))},$t.prototype.writeUint64String=$t.prototype.vb,$t.prototype.rb=function(t,e){null!=e&&(S(-2147483648<=e&&2147483648>e),null!=e&&(qt(this,t,0),this.a.wa(e)))},$t.prototype.writeSint32=$t.prototype.rb,$t.prototype.sb=function(t,e){null!=e&&(S(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(qt(this,t,0),this.a.xa(e)))},$t.prototype.writeSint64=$t.prototype.sb,$t.prototype.$d=function(t,e){null!=e&&null!=e&&(qt(this,t,0),this.a.W(e))},$t.prototype.writeSintHash64=$t.prototype.$d,$t.prototype.Zd=function(t,e){null!=e&&null!=e&&(qt(this,t,0),this.a.Ta(e))},$t.prototype.writeSint64String=$t.prototype.Zd,$t.prototype.Pa=function(t,e){null!=e&&(S(0<=e&&4294967296>e),qt(this,t,5),this.a.s(e))},$t.prototype.writeFixed32=$t.prototype.Pa,$t.prototype.Qa=function(t,e){null!=e&&(S(0<=e&&0x10000000000000000>e),qt(this,t,1),this.a.V(e))},$t.prototype.writeFixed64=$t.prototype.Qa,$t.prototype.nb=function(t,e){null!=e&&(e=Vt(e),qt(this,t,1),this.a.A(e.lo,e.hi))},$t.prototype.writeFixed64String=$t.prototype.nb,$t.prototype.Ra=function(t,e){null!=e&&(S(-2147483648<=e&&2147483648>e),qt(this,t,5),this.a.S(e))},$t.prototype.writeSfixed32=$t.prototype.Ra,$t.prototype.Sa=function(t,e){null!=e&&(S(-0x8000000000000000<=e&&0x8000000000000000>e),qt(this,t,1),this.a.T(e))},$t.prototype.writeSfixed64=$t.prototype.Sa,$t.prototype.qb=function(t,e){null!=e&&(e=Gt(e),qt(this,t,1),this.a.A(e.lo,e.hi))},$t.prototype.writeSfixed64String=$t.prototype.qb,$t.prototype.L=function(t,e){null!=e&&(qt(this,t,5),this.a.L(e))},$t.prototype.writeFloat=$t.prototype.L,$t.prototype.J=function(t,e){null!=e&&(qt(this,t,1),this.a.J(e))},$t.prototype.writeDouble=$t.prototype.J,$t.prototype.I=function(t,e){null!=e&&(S("boolean"==typeof e||"number"==typeof e),qt(this,t,0),this.a.I(e))},$t.prototype.writeBool=$t.prototype.I,$t.prototype.R=function(t,e){null!=e&&(S(-2147483648<=e&&2147483648>e),qt(this,t,0),this.a.M(e))},$t.prototype.writeEnum=$t.prototype.R,$t.prototype.U=function(t,e){null!=e&&(t=zt(this,t),this.a.U(e),Kt(this,t))},$t.prototype.writeString=$t.prototype.U,$t.prototype.ja=function(t,e){null!=e&&(e=nt(e),qt(this,t,2),this.a.j(e.length),Ht(this,e))},$t.prototype.writeBytes=$t.prototype.ja,$t.prototype.Rc=function(t,e,r){null!=e&&(t=zt(this,t),r(e,this),Kt(this,t))},$t.prototype.writeMessage=$t.prototype.Rc,$t.prototype.Sc=function(t,e,r){null!=e&&(qt(this,1,3),qt(this,2,0),this.a.M(t),t=zt(this,3),r(e,this),Kt(this,t),qt(this,1,4))},$t.prototype.writeMessageSet=$t.prototype.Sc,$t.prototype.Oc=function(t,e,r){null!=e&&(qt(this,t,3),r(e,this),qt(this,t,4))},$t.prototype.writeGroup=$t.prototype.Oc,$t.prototype.K=function(t,e){null!=e&&(S(8==e.length),qt(this,t,1),this.a.K(e))},$t.prototype.writeFixedHash64=$t.prototype.K,$t.prototype.N=function(t,e){null!=e&&(S(8==e.length),qt(this,t,0),this.a.N(e))},$t.prototype.writeVarintHash64=$t.prototype.N,$t.prototype.A=function(t,e,r){qt(this,t,1),this.a.A(e,r)},$t.prototype.writeSplitFixed64=$t.prototype.A,$t.prototype.l=function(t,e,r){qt(this,t,0),this.a.l(e,r)},$t.prototype.writeSplitVarint64=$t.prototype.l,$t.prototype.tb=function(t,e,r){qt(this,t,0);var o=this.a;z(e,r,(function(t,e){o.l(t>>>0,e>>>0)}))},$t.prototype.writeSplitZigzagVarint64=$t.prototype.tb,$t.prototype.Ed=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)Zt(this,t,e[r])},$t.prototype.writeRepeatedInt32=$t.prototype.Ed,$t.prototype.Fd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ob(t,e[r])},$t.prototype.writeRepeatedInt32String=$t.prototype.Fd,$t.prototype.Gd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(qt(this,t,0),this.a.ua(o))}},$t.prototype.writeRepeatedInt64=$t.prototype.Gd,$t.prototype.Qd=function(t,e,r,o){if(null!=e)for(var i=0;i<e.length;i++)this.A(t,r(e[i]),o(e[i]))},$t.prototype.writeRepeatedSplitFixed64=$t.prototype.Qd,$t.prototype.Rd=function(t,e,r,o){if(null!=e)for(var i=0;i<e.length;i++)this.l(t,r(e[i]),o(e[i]))},$t.prototype.writeRepeatedSplitVarint64=$t.prototype.Rd,$t.prototype.Sd=function(t,e,r,o){if(null!=e)for(var i=0;i<e.length;i++)this.tb(t,r(e[i]),o(e[i]))},$t.prototype.writeRepeatedSplitZigzagVarint64=$t.prototype.Sd,$t.prototype.Hd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ka(t,e[r])},$t.prototype.writeRepeatedInt64String=$t.prototype.Hd,$t.prototype.Ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)Jt(this,t,e[r])},$t.prototype.writeRepeatedUint32=$t.prototype.Ud,$t.prototype.Vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ub(t,e[r])},$t.prototype.writeRepeatedUint32String=$t.prototype.Vd,$t.prototype.Wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(qt(this,t,0),this.a.va(o))}},$t.prototype.writeRepeatedUint64=$t.prototype.Wd,$t.prototype.Xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.vb(t,e[r])},$t.prototype.writeRepeatedUint64String=$t.prototype.Xd,$t.prototype.Md=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(qt(this,t,0),this.a.wa(o))}},$t.prototype.writeRepeatedSint32=$t.prototype.Md,$t.prototype.Nd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(qt(this,t,0),this.a.xa(o))}},$t.prototype.writeRepeatedSint64=$t.prototype.Nd,$t.prototype.Od=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(qt(this,t,0),this.a.Ta(o))}},$t.prototype.writeRepeatedSint64String=$t.prototype.Od,$t.prototype.Pd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(qt(this,t,0),this.a.W(o))}},$t.prototype.writeRepeatedSintHash64=$t.prototype.Pd,$t.prototype.yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Pa(t,e[r])},$t.prototype.writeRepeatedFixed32=$t.prototype.yd,$t.prototype.zd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Qa(t,e[r])},$t.prototype.writeRepeatedFixed64=$t.prototype.zd,$t.prototype.Ad=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.nb(t,e[r])},$t.prototype.writeRepeatedFixed64String=$t.prototype.Ad,$t.prototype.Jd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Ra(t,e[r])},$t.prototype.writeRepeatedSfixed32=$t.prototype.Jd,$t.prototype.Kd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Sa(t,e[r])},$t.prototype.writeRepeatedSfixed64=$t.prototype.Kd,$t.prototype.Ld=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.qb(t,e[r])},$t.prototype.writeRepeatedSfixed64String=$t.prototype.Ld,$t.prototype.Cd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.L(t,e[r])},$t.prototype.writeRepeatedFloat=$t.prototype.Cd,$t.prototype.wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.J(t,e[r])},$t.prototype.writeRepeatedDouble=$t.prototype.wd,$t.prototype.ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.I(t,e[r])},$t.prototype.writeRepeatedBool=$t.prototype.ud,$t.prototype.xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.R(t,e[r])},$t.prototype.writeRepeatedEnum=$t.prototype.xd,$t.prototype.Td=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.U(t,e[r])},$t.prototype.writeRepeatedString=$t.prototype.Td,$t.prototype.vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ja(t,e[r])},$t.prototype.writeRepeatedBytes=$t.prototype.vd,$t.prototype.Id=function(t,e,r){if(null!=e)for(var o=0;o<e.length;o++){var i=zt(this,t);r(e[o],this),Kt(this,i)}},$t.prototype.writeRepeatedMessage=$t.prototype.Id,$t.prototype.Dd=function(t,e,r){if(null!=e)for(var o=0;o<e.length;o++)qt(this,t,3),r(e[o],this),qt(this,t,4)},$t.prototype.writeRepeatedGroup=$t.prototype.Dd,$t.prototype.Bd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.K(t,e[r])},$t.prototype.writeRepeatedFixedHash64=$t.prototype.Bd,$t.prototype.Yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.N(t,e[r])},$t.prototype.writeRepeatedVarintHash64=$t.prototype.Yd,$t.prototype.ad=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.M(e[r]);Kt(this,t)}},$t.prototype.writePackedInt32=$t.prototype.ad,$t.prototype.bd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.M(parseInt(e[r],10));Kt(this,t)}},$t.prototype.writePackedInt32String=$t.prototype.bd,$t.prototype.cd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.ua(e[r]);Kt(this,t)}},$t.prototype.writePackedInt64=$t.prototype.cd,$t.prototype.md=function(t,e,r,o){if(null!=e){t=zt(this,t);for(var i=0;i<e.length;i++)this.a.A(r(e[i]),o(e[i]));Kt(this,t)}},$t.prototype.writePackedSplitFixed64=$t.prototype.md,$t.prototype.nd=function(t,e,r,o){if(null!=e){t=zt(this,t);for(var i=0;i<e.length;i++)this.a.l(r(e[i]),o(e[i]));Kt(this,t)}},$t.prototype.writePackedSplitVarint64=$t.prototype.nd,$t.prototype.od=function(t,e,r,o){if(null!=e){t=zt(this,t);for(var i=this.a,n=0;n<e.length;n++)z(r(e[n]),o(e[n]),(function(t,e){i.l(t>>>0,e>>>0)}));Kt(this,t)}},$t.prototype.writePackedSplitZigzagVarint64=$t.prototype.od,$t.prototype.dd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++){var o=Gt(e[r]);this.a.l(o.lo,o.hi)}Kt(this,t)}},$t.prototype.writePackedInt64String=$t.prototype.dd,$t.prototype.pd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.j(e[r]);Kt(this,t)}},$t.prototype.writePackedUint32=$t.prototype.pd,$t.prototype.qd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.j(parseInt(e[r],10));Kt(this,t)}},$t.prototype.writePackedUint32String=$t.prototype.qd,$t.prototype.rd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.va(e[r]);Kt(this,t)}},$t.prototype.writePackedUint64=$t.prototype.rd,$t.prototype.sd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++){var o=Vt(e[r]);this.a.l(o.lo,o.hi)}Kt(this,t)}},$t.prototype.writePackedUint64String=$t.prototype.sd,$t.prototype.hd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.wa(e[r]);Kt(this,t)}},$t.prototype.writePackedSint32=$t.prototype.hd,$t.prototype.jd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.xa(e[r]);Kt(this,t)}},$t.prototype.writePackedSint64=$t.prototype.jd,$t.prototype.kd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.W(et(e[r]));Kt(this,t)}},$t.prototype.writePackedSint64String=$t.prototype.kd,$t.prototype.ld=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.W(e[r]);Kt(this,t)}},$t.prototype.writePackedSintHash64=$t.prototype.ld,$t.prototype.Wc=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.s(e[t])},$t.prototype.writePackedFixed32=$t.prototype.Wc,$t.prototype.Xc=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.V(e[t])},$t.prototype.writePackedFixed64=$t.prototype.Xc,$t.prototype.Yc=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++){var r=Vt(e[t]);this.a.A(r.lo,r.hi)}},$t.prototype.writePackedFixed64String=$t.prototype.Yc,$t.prototype.ed=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.S(e[t])},$t.prototype.writePackedSfixed32=$t.prototype.ed,$t.prototype.fd=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.T(e[t])},$t.prototype.writePackedSfixed64=$t.prototype.fd,$t.prototype.gd=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.ka(e[t])},$t.prototype.writePackedSfixed64String=$t.prototype.gd,$t.prototype.$c=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.L(e[t])},$t.prototype.writePackedFloat=$t.prototype.$c,$t.prototype.Uc=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.J(e[t])},$t.prototype.writePackedDouble=$t.prototype.Uc,$t.prototype.Tc=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(e.length),t=0;t<e.length;t++)this.a.I(e[t])},$t.prototype.writePackedBool=$t.prototype.Tc,$t.prototype.Vc=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.R(e[r]);Kt(this,t)}},$t.prototype.writePackedEnum=$t.prototype.Vc,$t.prototype.Zc=function(t,e){if(null!=e&&e.length)for(qt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.K(e[t])},$t.prototype.writePackedFixedHash64=$t.prototype.Zc,$t.prototype.td=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.N(e[r]);Kt(this,t)}},$t.prototype.writePackedVarintHash64=$t.prototype.td,e.debug=Nt,e.Map=E,e.Message=gt,e.BinaryReader=ct,e.BinaryWriter=$t,e.ExtensionFieldInfo=ft,e.ExtensionFieldBinaryInfo=dt,e.exportSymbol=function(t,e,r){l(t,e,r)},e.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},e.object={extend:function(t,e){for(var r,o,i=1;i<arguments.length;i++){for(r in o=arguments[i])t[r]=o[r];for(var n=0;n<d.length;n++)r=d[n],Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}}},e.typeOf=h},364:(t,e,r)=>{"use strict";r.d(e,{C:()=>o});class o{constructor(){}isSecure(){return window.isSecureContext}supportsServiceWorkers(){return"serviceWorker"in navigator}supportsPush(){return"PushManager"in window}}},407:(t,e,r)=>{"use strict";var o;r.d(e,{A:()=>n});var i=new Uint8Array(16);function n(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}},471:(t,e,r)=>{"use strict";r.d(e,{L:()=>o,e:()=>s});var o,i=r(248),n=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.BLOCKED=1]="BLOCKED",t[t.GENERIC_FAILURE=2]="GENERIC_FAILURE"}(o||(o={}));class s{constructor(t,e){this.pnConfig=t,this.loggerService=e}subscribe(t,e,r,s,a,p,c,u){return n(this,void 0,void 0,(function*(){const{apiUrl:n,apiKey:l}=this.pnConfig,h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sub:Object.assign(Object.assign({},t.toJSON()),{optinVersion:"1.0.6"}),subscriberId:a,urlParams:e},r?{websiteId:r}:{}),s?{pkid:s}:{}),p?{psfp:p}:{}),c?{psfpv4:c}:{}),u?{token:u}:{});!a&&this.pnConfig.trackingVersion&&(h.urlParams?h.urlParams.pstag_android=this.pnConfig.trackingVersion:h.urlParams={pstag_android:this.pnConfig.trackingVersion}),this.loggerService.log(i.$.DEBUG,`Attempting registration request with psfpv3 ${p||""} psfpv4 ${c||""}`);const f=yield fetch(`${n}/api/push/subscribe`,{method:"POST",body:JSON.stringify(h),mode:"cors",redirect:"follow",headers:new Headers({key:l})});if(!f.ok&&403==f.status)return{outcome:o.BLOCKED};const d=yield f.json();return(null==d?void 0:d.subscriberId)?{outcome:o.SUCCESS,subscriberId:d.subscriberId}:{outcome:o.GENERIC_FAILURE}}))}update(t,e,r,s){return n(this,void 0,void 0,(function*(){const{websiteId:n,apiKey:a,apiUrl:p}=this.pnConfig,c=Object.assign({svu:!0},e),u=Object.assign(Object.assign({sub:{},urlParams:c,subscriberId:t,websiteId:n},r?{psfp:r}:{}),s?{psfpv4:s}:{});let l;try{l=yield fetch(`${p}/api/push/subscribe`,{method:"POST",body:JSON.stringify(u),mode:"cors",redirect:"follow",headers:new Headers({key:a})})}catch(t){return this.loggerService.error(i.$.ERROR,"Failed to update subscriber",t),o.GENERIC_FAILURE}return l.ok?o.SUCCESS:o.GENERIC_FAILURE}))}}},505:(t,e,r)=>{"use strict";r.d(e,{j:()=>o});const o=t=>{const e=(4-t.length%4)%4;let r="";for(let t=0;t<e;t++)r+="=";const o=(t+r).replace(/-/g,"+").replace(/_/g,"/"),i=window.atob(o),n=new Uint8Array(i.length);for(let t=0;t<i.length;++t)n[t]=i.charCodeAt(t);return n}},526:(t,e,r)=>{"use strict";r.d(e,{A:()=>o,m:()=>u});var o,i=r(308),n=r(248),s=r(841),a=r(744),p=r(182),c=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};!function(t){t.SW_REGISTRATION_FAILED="SW_REGISTRATION_FAILED",t.PUSH_SUBSCRIPTION_FAILED="PUSH_SUBSCRIPTION_FAILED",t.PUSH_PERMISSION_DENIED="PUSH_PERMISSION_DENIED",t.PUSH_PERMISSION_DISMISSED="PUSH_PERMISSION_DISMISSED",t.PUSH_PERMISSION_ERROR="PUSH_PERMISSION_ERROR",t.PUSHNAMI_REGISTRATION_BLOCKED="PUSHNAMI_REGISTRATION_BLOCKED",t.PUSHNAMI_REGISTRATION_BLOCKED_PREVIOUSLY="PUSHNAMI_REGISTRATION_BLOCKED_PREVIOUSLY",t.PUSHNAMI_REGISTRATION_BLOCKED_BOT="PUSHNAMI_REGISTRATION_BLOCKED_BOT",t.PUSHNAMI_REGISTRATION_FAILURE="PUSHNAMI_REGISTRATION_FAILURE",t.GENERIC_API_FAILURE="GENERIC_API_FAILURE",t.INCOMPATIBLE_BROWSER="INCOMPATIBLE_BROWSER",t.INCOMPATIBLE_BROWSER_SECURE="INCOMPATIBLE_BROWSER_SECURE",t.INCOMPATIBLE_BROWSER_PUSH="INCOMPATIBLE_BROWSER_PUSH",t.INCOMPATIBLE_BROWSER_WORKERS="INCOMPATIBLE_BROWSER_WORKERS",t.NOT_ALLOWED="NOT_ALLOWED",t.SUCCESS_UPDATED_SUBSCRIBER="SUCCESS_UPDATED_SUBSCRIBER",t.SUCCESS_NEW_SUBSCRIBER="SUCCESS_NEW_SUBSCRIBER"}(o||(o={}));class u{constructor(t,e,r,o,i,n,s,a,p,c,u){this.pnConfig=t,this.storageService=e,this.variableService=r,this.eventService=o,this.subscriberApiService=i,this.psfpService=n,this.loggerService=s,this.trackingService=a,this.compatibilityService=p,this.firebaseService=c,this.filteringService=u}prompt(t){return c(this,void 0,void 0,(function*(){return yield(0,a.jn)(this,this.pnConfig,t)}))}update(){return c(this,void 0,void 0,(function*(){return yield(0,a.WX)(this)}))}unsubscribe(){return c(this,void 0,void 0,(function*(){return yield(0,a.kn)(this)}))}checkBrowserCompatibility(){const{websiteId:t}=this.pnConfig,e=this.compatibilityService.isSecure(),r=this.compatibilityService.supportsServiceWorkers(),a=this.compatibilityService.supportsPush(),c=e&&a&&r;if(this.loggerService.log(n.$.DEBUG,`Compatibility check result ${c}`),!c){this.eventService.triggerEvent(i.c.PERMISSIONS_NOT_COMPATIBILE),this.trackingService.trackStatsEvent(s.N5.OPTIN_NOT_COMPATIBLE,s.bi.WEBSITE,t);let n=o.INCOMPATIBLE_BROWSER;throw e||(n=o.INCOMPATIBLE_BROWSER_SECURE),r||(n=o.INCOMPATIBLE_BROWSER_WORKERS),a||(n=o.INCOMPATIBLE_BROWSER_PUSH),new p.U("Browser is not compatible",n)}}checkBlockStatus(){const{websiteId:t}=this.pnConfig,e=this.storageService.isBlocked();if(this.loggerService.log(n.$.DEBUG,`Block check result ${e}`),e)throw this.trackingService.trackStatsEvent(s.N5.OPTIN_BLOCKED_PREV,s.bi.WEBSITE,t),new p.U("Browser was previously blocked",o.PUSHNAMI_REGISTRATION_BLOCKED_PREVIOUSLY)}checkBotStatus(){var t;const{websiteId:e}=this.pnConfig,r=null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.userAgent,i=r&&/(Ads|Google|Yandex|Pinterest|Cookie|HeadlessChrome)(Mobile)?bot/i.test(r);if(this.loggerService.log(n.$.DEBUG,`Bot check result ${i}`),i)throw this.trackingService.trackStatsEvent(s.N5.OPTIN_BLOCKED_BOT,s.bi.WEBSITE,e),new p.U("Browser is a bot",o.PUSHNAMI_REGISTRATION_BLOCKED_BOT)}checkFilterStatus(){return c(this,void 0,void 0,(function*(){if(yield this.filteringService.shouldHide())throw yield this.trackingService.trackStatsEvent(s.N5.OPTIN_NOT_SHOWN,s.bi.WEBSITE,this.pnConfig.websiteId),new p.U("Prompt not allowed",o.NOT_ALLOWED)}))}}},552:(t,e,r)=>{"use strict";r.d(e,{Lz:()=>u,UT:()=>h,mT:()=>l});var o=r(182),i=r(841),n=r(505),s=r(526),a=r(308),p=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};const c="/service-worker.js";function u(){return p(this,arguments,void 0,(function*(t=c,e){var r,i;try{let o=t;(null===(r=e.flaggedFeatures)||void 0===r?void 0:r.hardcodeOrigin)&&(o=`${location.origin}${t}`);const n=yield navigator.serviceWorker.register(o);return(null===(i=e.performanceTests)||void 0===i?void 0:i.skipServiceWorkerReady)?n:yield navigator.serviceWorker.ready}catch(t){throw new o.U("Failed to register service worker",s.A.SW_REGISTRATION_FAILED,t)}}))}function l(t,e,r,n){return p(this,void 0,void 0,(function*(){var p;try{let c;const{multi:u}=r;if(c=(null===(p=null==r?void 0:r.performanceTests)||void 0===p?void 0:p.skipPermissionsQuery)?"prompt":(yield navigator.permissions.query({name:"notifications"})).state,"denied"===c)throw n.triggerEvent(a.c.PERMISSIONS_DENY),n.triggerEvent(a.c.PERMISSIONS_BLOCK),yield t.trackStatsEvent(i.N5.OPTIN_BLOCKED_PREV,i.bi.WEBSITE,e),new o.U("Notification permission denied",s.A.PUSH_PERMISSION_DENIED);if("prompt"===c){if(n.triggerEvent(a.c.PERMISSIONS_PROMPT),yield t.trackStatsEvent(i.N5.OPTIN_SHOWN,i.bi.WEBSITE,e),u){const t=yield Notification.requestPermission();if("default"===t)throw n.triggerEvent(a.c.PERMISSIONS_IGNORED),new o.U("Notification permission dismissed",s.A.PUSH_PERMISSION_DISMISSED);if("denied"===t)throw n.triggerEvent(a.c.PERMISSIONS_DENY),new o.U("Notification permission denied",s.A.PUSH_PERMISSION_DENIED);return t}return"granted"}}catch(t){throw t instanceof o.U?t:(n.triggerEvent(a.c.PERMISSIONS_FAILED),new o.U("Failed to request permission",s.A.PUSH_PERMISSION_ERROR,t))}}))}function h(t,e,r,i,a){return p(this,void 0,void 0,(function*(){var c,u;const l=e&&e.length>0?(0,n.j)(e):void 0;try{let e;if(!(null===(c=null==a?void 0:a.performanceTests)||void 0===c?void 0:c.skipFirebase))try{e=yield i.getToken(t)}catch(t){}let o=null;return(null===(u=null==a?void 0:a.performanceTests)||void 0===u?void 0:u.disablePreemptedPermission)||(o=yield function(t,e){return p(this,void 0,void 0,(function*(){var r;return!("granted"!==e||!(null===(r=null===window||void 0===window?void 0:window.navigator)||void 0===r?void 0:r.userAgent)||!/samsungbrowser/i.test(window.navigator.userAgent))&&(yield t.pushManager.getSubscription())}))}(t,r)),{sub:o||(yield t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:l})),token:e}}catch(t){if("FirebaseError"===t.name&&t.message&&t.message.includes("messaging/permission-blocked"))throw new o.U("Notification permission denied",s.A.PUSH_PERMISSION_DENIED);throw new o.U("Failed to create push subscription",s.A.PUSH_SUBSCRIPTION_FAILED,t)}}))}},562:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var o=r(943),i=r(407),n=r(823);const s=function(t,e,r){if(o.A.randomUUID&&!e&&!t)return o.A.randomUUID();var s=(t=t||{}).random||(t.rng||i.A)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e){r=r||0;for(var a=0;a<16;++a)e[r+a]=s[a];return e}return(0,n.k)(s)}},617:(t,e,r)=>{"use strict";r.d(e,{N:()=>s});var o=r(526),i=r(182),n=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};function s(t,e,r,s,a,p,c,u,l){return n(this,void 0,void 0,(function*(){try{return yield t.subscribe(e,r,s,a,p,c,u,l)}catch(t){throw new i.U("Failed to register with Pushnami API",o.A.PUSHNAMI_REGISTRATION_FAILURE,t)}}))}},666:(t,e,r)=>{"use strict";r.d(e,{g:()=>i});var o=r(248);class i{constructor(t,e){this.pnConfig=t,this.loggerService=e,this.deviceInfo=null;const r=!!this.pnConfig.gatherDeviceInfo;this.ready=r?this.attemptToRetrieveDeviceInformation():Promise.resolve()}attemptToRetrieveDeviceInformation(){return t=this,e=void 0,i=function*(){var t;this.loggerService.log(o.$.DEBUG,"Attempting to retrieve device information.");try{if(null===(t=this.pnConfig.performanceTests)||void 0===t?void 0:t.disableDeviceService)return void(this.deviceInfo={userAgent:navigator.userAgent});if(this.deviceInfo={userAgent:navigator.userAgent},"userAgentData"in navigator){const t=navigator.userAgentData,e=yield t.getHighEntropyValues(["platformVersion","fullVersionList"]);let r,i;const n=navigator;(null==n?void 0:n.connection)&&(r=n.connection.downlink,i=n.connection.effectiveType),this.deviceInfo={mobile:e.mobile,platform:e.platform,platformVersion:e.platformVersion,userAgent:navigator.userAgent,brands:e.fullVersionList.reduce(((t,e)=>(t[e.brand]=e.version,t)),{}),downlink:r,connectionType:i},this.loggerService.log(o.$.DEBUG,`Device information retrieved successfully ${JSON.stringify(this.deviceInfo)}`)}else this.loggerService.log(o.$.DEBUG,"userAgentData is not available in this browser.")}catch(t){this.loggerService.error(o.$.DEBUG,"Failed to retrieve device information",t)}},new((r=void 0)||(r=Promise))((function(o,n){function s(t){try{p(i.next(t))}catch(t){n(t)}}function a(t){try{p(i.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((i=i.apply(t,e||[])).next())}));var t,e,r,i}}},744:(t,e,r)=>{"use strict";r.d(e,{WX:()=>f,jn:()=>h,kn:()=>d});var o=r(182),i=r(233),n=r(308),s=r(248),a=r(471),p=r(552),c=r(617),u=r(526),l=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};function h(t,e,r){return l(this,void 0,void 0,(function*(){var i,l,h;const{applicationServerKey:f,websiteId:d,pkid:g,serviceWorkerPath:y}=t.pnConfig;try{(null===(i=null==e?void 0:e.performanceTests)||void 0===i?void 0:i.immediatePermissionRequest)&&"Notification"in window&&"function"==typeof Notification.requestPermission&&Notification.requestPermission(),t.checkBrowserCompatibility(),t.checkBlockStatus(),t.checkBotStatus(),yield t.checkFilterStatus(),t.eventService.triggerEvent(n.c.PERMISSIONS_INITIALIZING);const o=yield(0,p.Lz)(y,e),h=yield(0,p.mT)(t.trackingService,d,e,t.eventService),{sub:v,token:b}=yield(0,p.UT)(o,f,h,t.firebaseService,e);r&&(yield r);const S=t.storageService.getPSID(),m=t.variableService.data,w=b?null===(l=t.pnConfig.firebaseConfig)||void 0===l?void 0:l.pkid:g,{psfpv3:I,psfpv4:E}=t.psfpService||{},k=yield(0,c.N)(t.subscriberApiService,v,m,d,w,S,I,E,b);if(t.loggerService.log(s.$.DEBUG,"Processing registration side-effects"),k.outcome===a.L.SUCCESS){const e=t.storageService.isSubscribed();return t.storageService.setSubscriberId(k.subscriberId),t.eventService.triggerEvent(n.c.SUBSCRIBED),e?(t.loggerService.log(s.$.DEBUG,`Updated subscription ${k.subscriberId}`),{outcome:u.A.SUCCESS_UPDATED_SUBSCRIBER,subscriberId:k.subscriberId}):(t.loggerService.log(s.$.DEBUG,`New subscription created ${k.subscriberId}`),t.eventService.triggerEvent(n.c.NEW_SUBSCRIPTION),{outcome:u.A.SUCCESS_NEW_SUBSCRIBER,subscriberId:k.subscriberId})}return k.outcome===a.L.BLOCKED?{outcome:u.A.PUSHNAMI_REGISTRATION_BLOCKED}:{outcome:u.A.GENERIC_API_FAILURE}}catch(e){return e instanceof o.U?(t.loggerService.error(s.$.ERROR,e.message,e.originalError),{outcome:e.outcome,errorDetails:e.message,originalError:null===(h=e.originalError)||void 0===h?void 0:h.message}):(t.loggerService.error(s.$.ERROR,"Generic API Failure",e),{outcome:u.A.GENERIC_API_FAILURE,errorDetails:e.message})}}))}function f(t){return l(this,void 0,void 0,(function*(){const e=t.storageService.getPSID(),r=t.storageService.isBlocked();if(!e||r)return;const o=t.variableService.data,{psfpv3:i,psfpv4:n}=t.psfpService||{};return yield t.subscriberApiService.update(e,o,i,n)}))}function d(t){return l(this,void 0,void 0,(function*(){const e=t.storageService.getPSID(),{apiUrl:r,apiKey:o}=t.pnConfig;if(!e||!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return;const n=yield navigator.serviceWorker.ready,a=yield n.pushManager.getSubscription();return yield a.unsubscribe(),t.loggerService.log(s.$.DEBUG,`Attempting to unsubscribe ${e}`),fetch(`${r}/api/push/unsubscribe`,{method:"POST",body:JSON.stringify({state:"blocked",subscriberId:e,forget:!1}),mode:"cors",redirect:"follow",headers:new Headers({key:o})}).then((function(r){return r.ok?(t.storageService.setSubscriptionStatus(i.d.UNSUBSCRIBED),t.storageService.setBlockStatus(),t.loggerService.log(s.$.INFO,`Successfully unsubscribed ${e}`),!0):(t.loggerService.log(s.$.INFO,`Failed to unsubscribe ${e}`),!1)}))}))}},793:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var o=r(562);class i{constructor(t){var e;this.pnconfig=t,this.userId=null,this.ipqsPromise=null,this.injectScript=t=>new Promise((e=>{const r=document.createElement("script");r.src=t,r.async=!0,r.onload=()=>e(),document.head.appendChild(r)})),(null===(e=this.pnconfig.filteringBehaviors)||void 0===e?void 0:e.fraudDetection)&&(this.ipqsPromise=this.load())}getId(){var t;return(null===(t=this.pnconfig.filteringBehaviors)||void 0===t?void 0:t.fraudDetection)?this.userId?Promise.resolve(this.userId):(this.ipqsPromise||(this.ipqsPromise=this.load()),this.ipqsPromise):Promise.resolve(null)}load(){return t=this,e=void 0,i=function*(){return yield this.injectScript("https://www.ipqscloud.com/api/*/m8zPzmRVCf6VNpV1fvs3kiQ7IcYRT7NUZy23ONt257Fx7C78MaA6lleVtlXPNsGj15bOEUV5o4hBXSVj1XN7NmdwpTt5JoOeVvksrrSSadWyq0CPrxm5huzUo1wxhh7HkXWM13vIopI50PCOK3X0thJX6bVzSl3mALYzrY5O9eYFjaBi3dRbur4IGL9lEt7HZzQ5rBjFFkjFNYsR8UsgiAKXBc3DlObtIpjxrdEhhcg4ViSGzoXiPRJV6Odl0fc3/learn.js"),(yield this.waitForStartup())&&window.Startup&&(this.userId=(0,o.A)(),window.Startup.Store("userID",this.userId)),this.userId},new((r=void 0)||(r=Promise))((function(o,n){function s(t){try{p(i.next(t))}catch(t){n(t)}}function a(t){try{p(i.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((i=i.apply(t,e||[])).next())}));var t,e,r,i}waitForStartup(t=5e3,e=250){return new Promise((r=>{let o=0;const i=setInterval((()=>{window.Startup?(clearInterval(i),r(!0)):(o+=e)>=t&&(clearInterval(i),r(!1))}),e)}))}}},806:(t,e,r)=>{"use strict";r.d(e,{G:()=>o});class o{constructor(t){this.pnConfig=t}urlMatches(t){return Array.isArray(t)&&t.includes(window.location.href)}originMatches(t){return Array.isArray(t)&&t.includes(window.location.hostname)}domainMatches(t){const e=this.getRootDomain(window.location.hostname);return Array.isArray(t)&&t.includes(e)}isChromeBrowser(){try{const t=navigator.userAgent;return/Chrome/.test(t)&&!/Edg|OPR|Brave|SamsungBrowser/.test(t)}catch(t){return!1}}getRootDomain(t){try{const e=t.split(".");if(e.length<=2)return t;const r=["co.uk","com.au","com.br","co.nz","co.jp","com.mx"],o=e.slice(-2).join("."),i=e.slice(-3).join(".");return r.includes(o)?i:o}catch(t){return""}}shouldHide(){return t=this,e=void 0,o=function*(){var t,e,r,o,i,n;return!!((null===(t=this.pnConfig.filteringBehaviors)||void 0===t?void 0:t.hide)||(null===(e=this.pnConfig.filteringBehaviors)||void 0===e?void 0:e.hideOptInOnUrl)&&this.urlMatches(null===(r=this.pnConfig.filteringBehaviors)||void 0===r?void 0:r.hideOptInOnUrl)||(null===(o=this.pnConfig.filteringBehaviors)||void 0===o?void 0:o.hideOptInOnOrigin)&&this.originMatches(null===(i=this.pnConfig.filteringBehaviors)||void 0===i?void 0:i.hideOptInOnOrigin)||(null===(n=this.pnConfig.filteringBehaviors)||void 0===n?void 0:n.hideOptInOnDomains)&&this.domainMatches(this.pnConfig.filteringBehaviors.hideOptInOnDomains)&&this.isChromeBrowser())},new((r=void 0)||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}));var t,e,r,o}}},823:(t,e,r)=>{"use strict";r.d(e,{k:()=>n});for(var o=[],i=0;i<256;++i)o.push((i+256).toString(16).slice(1));function n(t,e=0){return(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase()}},827:(t,e,r)=>{t.exports={CrossStorageClient:r(12),CrossStorageHub:r(300)}},841:(t,e,r)=>{"use strict";r.d(e,{N5:()=>i,bI:()=>u,bi:()=>n});var o,i,n,s,a=r(891),p=r(248),c=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.GENERIC_API_FAILURE=1]="GENERIC_API_FAILURE"}(o||(o={})),function(t){t.OPTIN_SHOWN="webpush-ssl-optin-shown",t.OPTIN_BLOCKED="webpush-ssl-optin-blocked",t.OPTIN_BLOCKED_PREV="webpush-ssl-optin-blocked-prev",t.OPTIN_NOT_COMPATIBLE="webpush-ssl-optin-not-compatible",t.OPTIN_BLOCKED_BOT="optin-notshown-bot",t.OPTIN_NOT_SHOWN="webpush-not-shown"}(i||(i={})),function(t){t.WEBSITE="Website"}(n||(n={})),function(t){t[t.SUCCESS=0]="SUCCESS",t[t.GENERIC_API_FAILURE=1]="GENERIC_API_FAILURE"}(s||(s={}));class u{constructor(t,e,r,o){this.pnConfig=t,this.loggerService=e,this.deviceService=r,this.ipqs=o,this.enhancedLogging=!(!this.pnConfig.enhancedLogging||!this.pnConfig.optinTrackingUrl)}logConversion(t){if(!this.isValidCampaignId(t))return!1;const e=this.createUri(t);return"function"==typeof fetch&&this.sendTrackingRequest(e),!0}isValidCampaignId(t){return/^[a-z0-9]{24}$/.test(t)}createUri(t){const e=encodeURIComponent(location.href);return`event=webpush-conversion&scope=Campaign&scopeId=${t}${e?`&l=${e}`:""}`}sendTrackingRequest(t){return c(this,void 0,void 0,(function*(){yield fetch(`${this.pnConfig.trackingUrl}/api/push/track`,{method:"POST",body:encodeURI(t),mode:"cors",redirect:"follow",headers:new Headers({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded",key:this.pnConfig.apiKey})})}))}trackLegacyVisit(t,e,r){return c(this,void 0,void 0,(function*(){var i,n,s;if(!t)return;const{pspApiUrl:a,apiKey:c}=this.pnConfig,u=(null===(n=null===(i=this.pnConfig)||void 0===i?void 0:i.psfpv4)||void 0===n?void 0:n.signals)&&e,l=u?e:t;let h,f="psp="+l;if(u&&(f+="&altPsfp="+t),this.pnConfig.visitTracking){const t=Object.assign({},r);e&&(t.psfpv4=e),f+="&extras="+JSON.stringify(t)}if(null===(s=this.pnConfig.filteringBehaviors)||void 0===s?void 0:s.fraudDetection){let t;try{t=yield this.ipqs.getId()}catch(t){this.loggerService.error(p.$.DEBUG,"Failed to retrieve fraud id",t)}t&&(f+="&fraudId="+t)}localStorage.setItem("pushnami-psfp",t);try{h=yield fetch(`${a}/api/psp`,{method:"POST",body:encodeURI(f),mode:"cors",redirect:"follow",headers:new Headers({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded",key:c})})}catch(t){return this.loggerService.error(p.$.DEBUG,"Failed to track visit",t),o.GENERIC_API_FAILURE}return h.ok?(this.loggerService.log(p.$.DEBUG,`Successfully logged a visit for psfp ${l}`),o.SUCCESS):(this.loggerService.log(p.$.DEBUG,`Failed to log a visit for psfp ${l}`),o.GENERIC_API_FAILURE)}))}trackStatsEvent(t,e,r){return c(this,void 0,void 0,(function*(){const{trackingUrl:o,apiKey:n}=this.pnConfig;let a=`event=${t}&scope=${e}&scopeId=${r}`;t===i.OPTIN_SHOWN&&this.pnConfig.trackingVersion&&(a+=`&pstag_android=${this.pnConfig.trackingVersion}`);const c=encodeURI(a);let u;try{u=yield fetch(`${o}/api/push/track`,{method:"POST",body:c,mode:"cors",redirect:"follow",headers:new Headers({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded",key:n})})}catch(e){return this.loggerService.error(p.$.DEBUG,`Failed to track ${t} stats event`,e),s.GENERIC_API_FAILURE}return(null==u?void 0:u.ok)?(this.loggerService.log(p.$.DEBUG,`Tracked event ${t}`),s.SUCCESS):(this.loggerService.error(p.$.DEBUG,`Failed to track ${t} stats event`),s.GENERIC_API_FAILURE)}))}trackVisit(t,e,r){return c(this,void 0,void 0,(function*(){if(!this.enhancedLogging)return;const o=new a.VisitTracking,i=new URL(window.location.href),n=this.deviceService.deviceInfo,s=new a.DeviceInfo;s.setMobile(n.mobile||!1),s.setPlatform(n.platform||""),s.setPlatformVersion(n.platformVersion||"");for(const t in n.brands)s.getBrandsMap().set(t,n.brands[t]);s.setUserAgent(n.userAgent),n.downlink&&s.setDownlink(n.downlink),n.connectionType&&s.setConnectiontype(n.connectionType);const c=(new Date).toISOString();o.setDeviceInfo(s),o.setPsfpv3(e),o.setPsfpv4(r),o.setDomain(i.hostname),o.setApiKey(this.pnConfig.apiKey),o.setPagePath(i.pathname),o.setTimestamp(c),o.setUuid(t),this.loggerService.log(p.$.DEBUG,`Tracking visit ${JSON.stringify(o.toObject())}`);try{const t=o.serializeBinary();yield fetch(`${this.pnConfig.optinTrackingUrl}/optin-tracking/visit`,{method:"POST",body:t,mode:"cors",redirect:"follow",headers:new Headers({"Content-Type":"application/octet-stream"})}),this.loggerService.log(p.$.DEBUG,"Visit tracked successfully")}catch(t){this.loggerService.error(p.$.ERROR,"Failed to track visit",t)}}))}trackOutcome(t,e,r,o){return c(this,void 0,void 0,(function*(){if(!this.enhancedLogging)return;const i=new a.OutcomeTracking,n=new URL(window.location.href),s=(new Date).toISOString();i.setOutcome(t),e&&i.setErrorMessage(e),i.setApiKey(this.pnConfig.apiKey),i.setDomain(n.hostname),i.setPagePath(n.pathname),o&&i.setSubscriberId(o),i.setTimestamp(s),i.setUuid(r);try{const t=i.serializeBinary();yield fetch(`${this.pnConfig.optinTrackingUrl}/optin-tracking/outcome`,{method:"POST",body:t,mode:"cors",redirect:"follow",headers:new Headers({"Content-Type":"application/octet-stream"})}),this.loggerService.log(p.$.DEBUG,"Outcome tracked successfully")}catch(t){this.loggerService.error(p.$.ERROR,"Failed to track outcome",t)}}))}}},847:(t,e,r)=>{"use strict";r.d(e,{f:()=>p});var o,i=r(248),n=r(526),s=r(562),a=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};!function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.READY=1]="READY"}(o||(o={}));class p{constructor(t,e,r,i,n,a,p,c){this.storageService=t,this.variableService=e,this.eventService=r,this.trackingService=i,this.subscriberService=n,this.psfpService=a,this.loggerService=p,this.deviceService=c,this.state=o.INITIALIZING,this.initializing=this.init(),this.visitUuid=(0,s.A)()}init(){return a(this,void 0,void 0,(function*(){this.loggerService.log(i.$.DEBUG,"Initializing"),yield this.deviceService.ready;try{this.loggerService.log(i.$.DEBUG,"Collecting Subscriber Variables From URL"),this.variableService.collectFromUrl()}catch(t){this.loggerService.error(i.$.DEBUG,"Failed to set subscriber variables",t)}try{this.loggerService.log(i.$.DEBUG,"Computing PSFP"),this.psfpService&&(yield this.psfpService.compute())}catch(t){this.loggerService.error(i.$.ERROR,"Failed to compute PSFP",t)}try{const{psfpv3:t,psfpv4:e}=this.psfpService,r=this.variableService.data;this.trackingService.trackLegacyVisit(t,e,r),this.loggerService.log(i.$.DEBUG,"Ready"),this.state=o.READY,this.trackingService.trackVisit(this.visitUuid,t,e)}catch(t){this.loggerService.error(i.$.ERROR,"Failed to finish initialization",t)}}))}getPsid(){return this.storageService.getPSID()}setVariables(t){this.variableService.collect(t)}update(t){return this.setVariables(t),this.subscriberService.update()}on(t,e){return this.eventService.registerListener(t,e)}fire(t){return this.eventService.triggerEvent(t)}convert(t){return this.trackingService.logConversion(t)}unsubscribe(){return this.subscriberService.unsubscribe()}trackOutcome(t){return a(this,void 0,void 0,(function*(){const{outcome:e,errorDetails:r,subscriberId:o,originalError:s}=t;this.loggerService.log(i.$.INFO,"Pushnami Outcome "+(null===n.A||void 0===n.A?void 0:n.A[e]));try{const t=s||r;yield this.trackingService.trackOutcome(e,t,this.visitUuid,o)}catch(t){this.loggerService.error(i.$.DEBUG,`Failed to track outcome ${e}`,t)}}))}prompt(){return a(this,void 0,void 0,(function*(){const t=yield this.subscriberService.prompt(this.initializing);return yield this.trackOutcome(t),t.outcome}))}}},873:(t,e,r)=>{"use strict";r.d(e,{f:()=>n});var o=r(927),i=function(t,e,r,o){return new(r||(r=Promise))((function(i,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))};class n{constructor(t){var e;this.pnConfig=t,this.enabled=!1,(null===(e=t.firebaseConfig)||void 0===e?void 0:e.moduleBundleUrl)&&(this.enabled=!0,this.initialized=this.initialize())}initialize(){return i(this,void 0,void 0,(function*(){var t;yield(0,o.Q)(null===(t=this.pnConfig.firebaseConfig)||void 0===t?void 0:t.moduleBundleUrl),"undefined"!=typeof pnFirebaseImpl&&pnFirebaseImpl.setConfiguration(this.pnConfig.firebaseConfig)}))}getToken(t){return i(this,void 0,void 0,(function*(){return this.enabled?(yield this.initialized,yield pnFirebaseImpl.getMessagingDeviceToken(t)):Promise.resolve(null)}))}loadModule(){}}},891:(t,e,r)=>{var o=r(339),i=o,n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==n&&n||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")();i.exportSymbol("proto.tracking.DeviceInfo",null,n),i.exportSymbol("proto.tracking.OutcomeTracking",null,n),i.exportSymbol("proto.tracking.VisitTracking",null,n),proto.tracking.DeviceInfo=function(t){o.Message.initialize(this,t,0,-1,null,null)},i.inherits(proto.tracking.DeviceInfo,o.Message),i.DEBUG&&!COMPILED&&(proto.tracking.DeviceInfo.displayName="proto.tracking.DeviceInfo"),proto.tracking.VisitTracking=function(t){o.Message.initialize(this,t,0,-1,null,null)},i.inherits(proto.tracking.VisitTracking,o.Message),i.DEBUG&&!COMPILED&&(proto.tracking.VisitTracking.displayName="proto.tracking.VisitTracking"),proto.tracking.OutcomeTracking=function(t){o.Message.initialize(this,t,0,-1,null,null)},i.inherits(proto.tracking.OutcomeTracking,o.Message),i.DEBUG&&!COMPILED&&(proto.tracking.OutcomeTracking.displayName="proto.tracking.OutcomeTracking"),o.Message.GENERATE_TO_OBJECT&&(proto.tracking.DeviceInfo.prototype.toObject=function(t){return proto.tracking.DeviceInfo.toObject(t,this)},proto.tracking.DeviceInfo.toObject=function(t,e){var r,i={mobile:o.Message.getBooleanFieldWithDefault(e,1,!1),platform:o.Message.getFieldWithDefault(e,2,""),platformVersion:o.Message.getFieldWithDefault(e,3,""),brandsMap:(r=e.getBrandsMap())?r.toObject(t,void 0):[],userAgent:o.Message.getFieldWithDefault(e,5,""),downlink:o.Message.getFieldWithDefault(e,6,0),connectiontype:o.Message.getFieldWithDefault(e,7,"")};return t&&(i.$jspbMessageInstance=e),i}),proto.tracking.DeviceInfo.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.tracking.DeviceInfo;return proto.tracking.DeviceInfo.deserializeBinaryFromReader(r,e)},proto.tracking.DeviceInfo.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var r=e.readBool();t.setMobile(r);break;case 2:r=e.readString(),t.setPlatform(r);break;case 3:r=e.readString(),t.setPlatformVersion(r);break;case 4:r=t.getBrandsMap(),e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;case 5:r=e.readString(),t.setUserAgent(r);break;case 6:r=e.readInt32(),t.setDownlink(r);break;case 7:r=e.readString(),t.setConnectiontype(r);break;default:e.skipField()}return t},proto.tracking.DeviceInfo.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.tracking.DeviceInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.tracking.DeviceInfo.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getMobile())&&e.writeBool(1,r),(r=t.getPlatform()).length>0&&e.writeString(2,r),(r=t.getPlatformVersion()).length>0&&e.writeString(3,r),(r=t.getBrandsMap(!0))&&r.getLength()>0&&r.serializeBinary(4,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString),(r=t.getUserAgent()).length>0&&e.writeString(5,r),0!==(r=t.getDownlink())&&e.writeInt32(6,r),(r=t.getConnectiontype()).length>0&&e.writeString(7,r)},proto.tracking.DeviceInfo.prototype.getMobile=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.tracking.DeviceInfo.prototype.setMobile=function(t){return o.Message.setProto3BooleanField(this,1,t)},proto.tracking.DeviceInfo.prototype.getPlatform=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.tracking.DeviceInfo.prototype.setPlatform=function(t){return o.Message.setProto3StringField(this,2,t)},proto.tracking.DeviceInfo.prototype.getPlatformVersion=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.tracking.DeviceInfo.prototype.setPlatformVersion=function(t){return o.Message.setProto3StringField(this,3,t)},proto.tracking.DeviceInfo.prototype.getBrandsMap=function(t){return o.Message.getMapField(this,4,t,null)},proto.tracking.DeviceInfo.prototype.clearBrandsMap=function(){return this.getBrandsMap().clear(),this},proto.tracking.DeviceInfo.prototype.getUserAgent=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.tracking.DeviceInfo.prototype.setUserAgent=function(t){return o.Message.setProto3StringField(this,5,t)},proto.tracking.DeviceInfo.prototype.getDownlink=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.tracking.DeviceInfo.prototype.setDownlink=function(t){return o.Message.setProto3IntField(this,6,t)},proto.tracking.DeviceInfo.prototype.getConnectiontype=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.tracking.DeviceInfo.prototype.setConnectiontype=function(t){return o.Message.setProto3StringField(this,7,t)},o.Message.GENERATE_TO_OBJECT&&(proto.tracking.VisitTracking.prototype.toObject=function(t){return proto.tracking.VisitTracking.toObject(t,this)},proto.tracking.VisitTracking.toObject=function(t,e){var r,i={deviceInfo:(r=e.getDeviceInfo())&&proto.tracking.DeviceInfo.toObject(t,r),psfpv3:o.Message.getFieldWithDefault(e,2,""),psfpv4:o.Message.getFieldWithDefault(e,3,""),domain:o.Message.getFieldWithDefault(e,4,""),apiKey:o.Message.getFieldWithDefault(e,5,""),pagePath:o.Message.getFieldWithDefault(e,6,""),timestamp:o.Message.getFieldWithDefault(e,7,""),uuid:o.Message.getFieldWithDefault(e,8,"")};return t&&(i.$jspbMessageInstance=e),i}),proto.tracking.VisitTracking.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.tracking.VisitTracking;return proto.tracking.VisitTracking.deserializeBinaryFromReader(r,e)},proto.tracking.VisitTracking.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var r=new proto.tracking.DeviceInfo;e.readMessage(r,proto.tracking.DeviceInfo.deserializeBinaryFromReader),t.setDeviceInfo(r);break;case 2:r=e.readString(),t.setPsfpv3(r);break;case 3:r=e.readString(),t.setPsfpv4(r);break;case 4:r=e.readString(),t.setDomain(r);break;case 5:r=e.readString(),t.setApiKey(r);break;case 6:r=e.readString(),t.setPagePath(r);break;case 7:r=e.readString(),t.setTimestamp(r);break;case 8:r=e.readString(),t.setUuid(r);break;default:e.skipField()}return t},proto.tracking.VisitTracking.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.tracking.VisitTracking.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.tracking.VisitTracking.serializeBinaryToWriter=function(t,e){var r=void 0;null!=(r=t.getDeviceInfo())&&e.writeMessage(1,r,proto.tracking.DeviceInfo.serializeBinaryToWriter),(r=t.getPsfpv3()).length>0&&e.writeString(2,r),(r=t.getPsfpv4()).length>0&&e.writeString(3,r),(r=t.getDomain()).length>0&&e.writeString(4,r),(r=t.getApiKey()).length>0&&e.writeString(5,r),(r=t.getPagePath()).length>0&&e.writeString(6,r),(r=t.getTimestamp()).length>0&&e.writeString(7,r),(r=t.getUuid()).length>0&&e.writeString(8,r)},proto.tracking.VisitTracking.prototype.getDeviceInfo=function(){return o.Message.getWrapperField(this,proto.tracking.DeviceInfo,1)},proto.tracking.VisitTracking.prototype.setDeviceInfo=function(t){return o.Message.setWrapperField(this,1,t)},proto.tracking.VisitTracking.prototype.clearDeviceInfo=function(){return this.setDeviceInfo(void 0)},proto.tracking.VisitTracking.prototype.hasDeviceInfo=function(){return null!=o.Message.getField(this,1)},proto.tracking.VisitTracking.prototype.getPsfpv3=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.tracking.VisitTracking.prototype.setPsfpv3=function(t){return o.Message.setProto3StringField(this,2,t)},proto.tracking.VisitTracking.prototype.getPsfpv4=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.tracking.VisitTracking.prototype.setPsfpv4=function(t){return o.Message.setProto3StringField(this,3,t)},proto.tracking.VisitTracking.prototype.getDomain=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.tracking.VisitTracking.prototype.setDomain=function(t){return o.Message.setProto3StringField(this,4,t)},proto.tracking.VisitTracking.prototype.getApiKey=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.tracking.VisitTracking.prototype.setApiKey=function(t){return o.Message.setProto3StringField(this,5,t)},proto.tracking.VisitTracking.prototype.getPagePath=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.tracking.VisitTracking.prototype.setPagePath=function(t){return o.Message.setProto3StringField(this,6,t)},proto.tracking.VisitTracking.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.tracking.VisitTracking.prototype.setTimestamp=function(t){return o.Message.setProto3StringField(this,7,t)},proto.tracking.VisitTracking.prototype.getUuid=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.tracking.VisitTracking.prototype.setUuid=function(t){return o.Message.setProto3StringField(this,8,t)},o.Message.GENERATE_TO_OBJECT&&(proto.tracking.OutcomeTracking.prototype.toObject=function(t){return proto.tracking.OutcomeTracking.toObject(t,this)},proto.tracking.OutcomeTracking.toObject=function(t,e){var r={outcome:o.Message.getFieldWithDefault(e,1,""),errorMessage:o.Message.getFieldWithDefault(e,2,""),apiKey:o.Message.getFieldWithDefault(e,3,""),domain:o.Message.getFieldWithDefault(e,4,""),pagePath:o.Message.getFieldWithDefault(e,5,""),subscriberId:o.Message.getFieldWithDefault(e,6,""),timestamp:o.Message.getFieldWithDefault(e,7,""),uuid:o.Message.getFieldWithDefault(e,8,"")};return t&&(r.$jspbMessageInstance=e),r}),proto.tracking.OutcomeTracking.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.tracking.OutcomeTracking;return proto.tracking.OutcomeTracking.deserializeBinaryFromReader(r,e)},proto.tracking.OutcomeTracking.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var r=e.readString();t.setOutcome(r);break;case 2:r=e.readString(),t.setErrorMessage(r);break;case 3:r=e.readString(),t.setApiKey(r);break;case 4:r=e.readString(),t.setDomain(r);break;case 5:r=e.readString(),t.setPagePath(r);break;case 6:r=e.readString(),t.setSubscriberId(r);break;case 7:r=e.readString(),t.setTimestamp(r);break;case 8:r=e.readString(),t.setUuid(r);break;default:e.skipField()}return t},proto.tracking.OutcomeTracking.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.tracking.OutcomeTracking.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.tracking.OutcomeTracking.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOutcome()).length>0&&e.writeString(1,r),(r=t.getErrorMessage()).length>0&&e.writeString(2,r),(r=t.getApiKey()).length>0&&e.writeString(3,r),(r=t.getDomain()).length>0&&e.writeString(4,r),(r=t.getPagePath()).length>0&&e.writeString(5,r),(r=t.getSubscriberId()).length>0&&e.writeString(6,r),(r=t.getTimestamp()).length>0&&e.writeString(7,r),(r=t.getUuid()).length>0&&e.writeString(8,r)},proto.tracking.OutcomeTracking.prototype.getOutcome=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.tracking.OutcomeTracking.prototype.setOutcome=function(t){return o.Message.setProto3StringField(this,1,t)},proto.tracking.OutcomeTracking.prototype.getErrorMessage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.tracking.OutcomeTracking.prototype.setErrorMessage=function(t){return o.Message.setProto3StringField(this,2,t)},proto.tracking.OutcomeTracking.prototype.getApiKey=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.tracking.OutcomeTracking.prototype.setApiKey=function(t){return o.Message.setProto3StringField(this,3,t)},proto.tracking.OutcomeTracking.prototype.getDomain=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.tracking.OutcomeTracking.prototype.setDomain=function(t){return o.Message.setProto3StringField(this,4,t)},proto.tracking.OutcomeTracking.prototype.getPagePath=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.tracking.OutcomeTracking.prototype.setPagePath=function(t){return o.Message.setProto3StringField(this,5,t)},proto.tracking.OutcomeTracking.prototype.getSubscriberId=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.tracking.OutcomeTracking.prototype.setSubscriberId=function(t){return o.Message.setProto3StringField(this,6,t)},proto.tracking.OutcomeTracking.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.tracking.OutcomeTracking.prototype.setTimestamp=function(t){return o.Message.setProto3StringField(this,7,t)},proto.tracking.OutcomeTracking.prototype.getUuid=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.tracking.OutcomeTracking.prototype.setUuid=function(t){return o.Message.setProto3StringField(this,8,t)},i.object.extend(e,proto.tracking)},927:(t,e,r)=>{"use strict";r.d(e,{Q:()=>o});const o=t=>{return e=void 0,r=void 0,i=function*(){return new Promise(((e,r)=>{const o=document.createElement("script");o.type="text/javascript",o.src=t,o.onload=function(){return e(null)},o.onerror=function(){return r()},document.getElementsByTagName("head")[0].appendChild(o)}))},new((o=void 0)||(o=Promise))((function(t,n){function s(t){try{p(i.next(t))}catch(t){n(t)}}function a(t){try{p(i.throw(t))}catch(t){n(t)}}function p(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(s,a)}p((i=i.apply(e,r||[])).next())}));var e,r,o,i}},943:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});const o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}}},e={};function r(o){var i=e[o];if(void 0!==i)return i.exports;var n=e[o]={exports:{}};return t[o].call(n.exports,n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{clear:()=>W,convert:()=>M,data:()=>v,enroll:()=>L,fire:()=>D,getPSID:()=>U,on:()=>F,prompt:()=>N,setSWPath:()=>j,setVariables:()=>T,showOverlay:()=>G,unenroll:()=>V,unsubscribe:()=>x,update:()=>A});var t=r(308),e=r(248),i=r(27),n=r(847),s=r(233),a=r(471),p=r(526),c=r(841),u=r(72),l=r(364),h=r(873),f=r(666),d=r(806),g=r(793);const y=new u.Q,v=y.data,b=new e.g(pnConfig),S=new s.n,m=new t.U,w=new l.C,I=new f.g(pnConfig,b),E=new g.y(pnConfig),k=new c.bI(pnConfig,b,I,E),P=new a.e(pnConfig,b);let O;O=new i.j(pnConfig,b);const C=new h.f(pnConfig),B=new d.G(pnConfig),R=new p.m(pnConfig,S,y,m,P,O,b,k,w,C,B),_=new n.f(S,y,m,k,R,O,b,I);function T(t){return _.setVariables(t),this}function A(t){return _.update(t),this}function U(){return _.getPsid()}function F(t,e){return _.on(t,e),this}function D(t){return _.fire(t),this}function M(t){return _.convert(t),this}function N(){return _.prompt(),this}function x(){return _.unsubscribe(),this}function j(){return this}function L(){return console.error("Pushnami.enroll is deprecated"),this}function V(){return console.error("Pushnami.unenroll is deprecated"),this}function W(){return console.error("Pushnami.clear is deprecated"),this}function G(){return console.error("Pushnami.showOverlay is deprecated"),this}})(),o})()));

