PageSourceSearch

https://static.snapchat.com/sc-com/_next/static/chunks/2x-0_z_5dvxz1.js

js snapchat.com collected 2026-09-24 09:04:28 UTC 1,123,038 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c6626c39-554e-0ca4-0a24-c813b3d994a2")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,186325,(e,t,i)=>{!function(n,a){"use strict";if("function"==typeof define&&define.amd){let n;void 0!==(n=a(e.r,i,t))&&e.v(n)}else t.exports?t.exports=a():n.log=a()}(e.e,function(){"use strict";var e=function(){},t="undefined",i=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],a={},o=null;function r(e,t){var i=e[t];if("function"==typeof i.bind)return i.bind(e);try{return Function.prototype.bind.call(i,e)}catch(t){return function(){return Function.prototype.apply.apply(i,[e,arguments])}}}function d(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(){for(var i=this.getLevel(),a=0;a<n.length;a++){var o=n[a];this[o]=a<i?e:this.methodFactory(o,i,this.name)}if(this.log=this.debug,typeof console===t&&i<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(s.call(this),this[e].apply(this,arguments))}}function c(n,a,o){var s;return"debug"===(s=n)&&(s="log"),typeof console!==t&&("trace"===s&&i?d:void 0!==console[s]?r(console,s):void 0!==console.log?r(console,"log"):e)||l.apply(this,arguments)}function u(e,i){var r,d,l,u=this,p="loglevel";function f(){var e;if(typeof window!==t&&p){try{e=window.localStorage[p]}catch(e){}if(typeof e===t)try{var i=window.document.cookie,n=encodeURIComponent(p),a=i.indexOf(n+"=");-1!==a&&(e=/^([^;]+)/.exec(i.slice(a+n.length+1))[1])}catch(e){}return void 0===u.levels[e]&&(e=void 0),e}}function T(e){var t=e;if("string"==typeof t&&void 0!==u.levels[t.toUpperCase()]&&(t=u.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=u.levels.SILENT)return t;throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=i||c,u.getLevel=function(){return null!=l?l:null!=d?d:r},u.setLevel=function(e,i){return l=T(e),!1!==i&&function(e){var i=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{window.localStorage[p]=i;return}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+i+";"}catch(e){}}}(l),s.call(u)},u.setDefaultLevel=function(e){d=T(e),f()||u.setLevel(e,!1)},u.resetLevel=function(){if(l=null,typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}s.call(u)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)},u.rebuild=function(){if(o!==u&&(r=T(o.getLevel())),s.call(u),o===u)for(var e in a)a[e].rebuild()},r=T(o?o.getLevel():"WARN");var m=f();null!=m&&(l=T(m)),s.call(u)}(o=new u).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=a[e];return t||(t=a[e]=new u(e,o.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=p),o},o.getLoggers=function(){return a},o.default=o,o})},12447,(e,t,i)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},100236,(e,t,i)=>{t.exports=e.g&&e.g.Object===Object&&e.g},139088,(e,t,i)=>{var n=e.r(100236),a="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||a||Function("return this")()},631926,(e,t,i)=>{var n=e.r(139088);t.exports=function(){return n.Date.now()}},748891,(e,t,i)=>{var n=/\s/;t.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},830364,(e,t,i)=>{var n=e.r(748891),a=/^\s+/;t.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},630353,(e,t,i)=>{t.exports=e.r(139088).Symbol},243436,(e,t,i)=>{var n=e.r(630353),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,d=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,d),i=e[d];try{e[d]=void 0;var n=!0}catch(e){}var a=r.call(e);return n&&(t?e[d]=i:delete e[d]),a}},223243,(e,t,i)=>{var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}}
2,377684,(e,t,i)=>{var n=e.r(630353),a=e.r(243436),o=e.r(223243),r=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?a(e):o(e)}},877289,(e,t,i)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},361884,(e,t,i)=>{var n=e.r(377684),a=e.r(877289);t.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},773759,(e,t,i)=>{var n=e.r(830364),a=e.r(12447),o=e.r(361884),r=0/0,d=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(o(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=s.test(e);return i||l.test(e)?c(e.slice(2),i?2:8):d.test(e)?r:+e}},374009,(e,t,i)=>{var n=e.r(12447),a=e.r(631926),o=e.r(773759),r=Math.max,d=Math.min;t.exports=function(e,t,i){var s,l,c,u,p,f,T=0,m=!1,E=!1,_=!0;if("function"!=typeof e)throw TypeError("Expected a function");function S(t){var i=s,n=l;return s=l=void 0,T=t,u=e.apply(n,i)}function I(e){var i=e-f,n=e-T;return void 0===f||i>=t||i<0||E&&n>=c}function v(){var e,i,n,o=a();if(I(o))return A(o);p=setTimeout(v,(e=o-f,i=o-T,n=t-e,E?d(n,c-i):n))}function A(e){return(p=void 0,_&&s)?S(e):(s=l=void 0,u)}function k(){var e,i=a(),n=I(i);if(s=arguments,l=this,f=i,n){if(void 0===p)return T=e=f,p=setTimeout(v,t),m?S(e):u;if(E)return clearTimeout(p),p=setTimeout(v,t),S(f)}return void 0===p&&(p=setTimeout(v,t)),u}return t=o(t)||0,n(i)&&(m=!!i.leading,c=(E="maxWait"in i)?r(o(i.maxWait)||0,t):c,_="trailing"in i?!!i.trailing:_),k.cancel=function(){void 0!==p&&clearTimeout(p),T=0,s=f=l=p=void 0},k.flush=function(){return void 0===p?u:A(a())},k}},224283,(e,t,i)=>{var n=e.r(374009),a=e.r(12447);t.exports=function(e,t,i){var o=!0,r=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),n(e,t,{leading:o,maxWait:t,trailing:r})}},382560,(e,t,i)=>{var n=e.r(773759),a=1/0;t.exports=function(e){return e?(e=n(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},304653,(e,t,i)=>{var n=e.r(382560);t.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},800281,(e,t,i)=>{var n=e.r(304653);t.exports=function(e,t){var i;if("function"!=typeof t)throw TypeError("Expected a function");return e=n(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=void 0),i}}},323883,(e,t,i)=>{var n=e.r(800281);t.exports=function(e){return n(2,e)}},629873,(e,t,i)=>{t.exports=function(e){return null==e}},665742,(e,t,i)=>{t.exports=function(){this.__data__=[],this.size=0}},25172,(e,t,i)=>{t.exports=function(e,t){return e===t||e!=e&&t!=t}},134314,(e,t,i)=>{var n=e.r(25172);t.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return -1}},419206,(e,t,i)=>{var n=e.r(134314),a=Array.prototype.splice;t.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():a.call(t,i,1),--this.size,!0)}},467763,(e,t,i)=>{var n=e.r(134314);t.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},523407,(e,t,i)=>{var n=e.r(134314);t.exports=function(e){return n(this.__data__,e)>-1}},553833,(e,t,i)=>{var n=e.r(134314);t.exports=function(e,t){var i=this.__data__,a=n(i,e);return a<0?(++this.size,i.push([e,t])):i[a][1]=t,this}},729039,(e,t,i)=>{var n=e.r(665742),a=e.r(419206),o=e.r(467763),r=e.r(523407),d=e.r(553833);function s(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=o,s.prototype.has=r,s.prototype.set=d,t.exports=s},405400,(e,t,i)=>{var n=e.r(729039);t.exports=function(){this.__data__=new n,this.size=0}},986238,(e,t,i)=>{t.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},957831,(e,t,i)=>{t.exports=function(e){return this.__data__.get(e)}},977802,(e,t,i)=>{t.exports=function(e){return this.__data__.has(e)}},771223,(e,t,i)=>{var n=e.r(377684),a=e.r(12447);t.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},853789,(e,t,i)=>{t.exports=e.r(139088)["__core-js_shared__"]},269553,(e,t,i)=>{var n,a=e.r(853789),o=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+n:"";t.exports=function(e){return!!o&&o in e}},776366,(e,t,i)=>{var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},54368,(e,t,i)=>{var n=e.r(771223),a=e.r(269553),o=e.r(12447),r=e.r(776366),d=/^\[object .+?Constructor\]$/,s=Object.prototype,l=Function.prototype.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!o(e)||a(e))&&(n(e)?u:d).test(r(e))}},263958,(e,t,i)=>{t.exports=function(e,t){return null==e?void 0:e[t]}},841920,(e,t,i)=>{var n=e.r(54368),a=e.r(263958);t.exports=function(e,t){var i=a(e,t);return n(i)?i:void 0}},687362,(e,t,i)=>{t.exports=e.r(841920)(e.r(139088),"Map")},932760,(e,t,i)=>{t.exports=e.r(841920)(Object,"create")},150514,(e,t,i)=>{var n=e.r(932760);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},197617,(e,t,i)=>{t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},757412,(e,t,i)=>{var n=e.r(932760),a=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return a.call(t,e)?t[e]:void 0}},623592,(e,t,i)=>{var n=e.r(932760),a=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},239004,(e,t,i)=>{var n=e.r(932760);t.exports=function(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},734421,(e,t,i)=>{var n=e.r(150514),a=e.r(197617),o=e.r(757412),r=e.r(623592),d=e.r(239004);function s(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=o,s.prototype.has=r,s.prototype.set=d,t.exports=s},848994,(e,t,i)=>{var n=e.r(734421),a=e.r(729039),o=e.r(687362);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||a),string:new n}}},224053,(e,t,i)=>{t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},487994,(e,t,i)=>{var n=e.r(224053);t.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},996768,(e,t,i)=>{var n=e.r(487994);t.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},929932,(e,t,i)=>{var n=e.r(487994);t.exports=function(e){return n(this,e).get(e)}},892647,(e,t,i)=>{var n=e.r(487994);t.exports=function(e){return n(this,e).has(e)}},446644,(e,t,i)=>{var n=e.r(487994);t.exports=function(e,t){var i=n(this,e),a=i.size;return i.set(e,t),this.size+=+(i.size!=a),this}},587547,(e,t,i)=>{var n=e.r(848994),a=e.r(996768),o=e.r(929932),r=e.r(892647),d=e.r(446644);function s(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=o,s.prototype.has=r,s.prototype.set=d,t.exports=s},320517,(e,t,i)=>{var n=e.r(729039),a=e.r(687362),o=e.r(587547);t.exports=function(e,t){var i=this.__data__;if(i instanceof n){var r=i.__data__;if(!a||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(r)}return i.set(e,t),this.size=i.size,this}},901551,(e,t,i)=>{var n=e.r(729039),a=e.r(405400),o=e.r(986238),r=e.r(957831),d=e.r(977802),s=e.r(320517);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=d,l.prototype.set=s,t.exports=l},221274,(e,t,i)=>{t.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},439805,(e,t,i)=>{t.exports=function(e){return this.__data__.has(e)}},27493,(e,t,i)=>{var n=e.r(587547),a=e.r(221274),o=e.r(439805);function r(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},851477,(e,t,i)=>{t.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},315262,(e,t,i)=>{t.exports=function(e,t){return e.has(t)}},206856,(e,t,i)=>{var n=e.r(27493),a=e.r(851477),o=e.r(315262);t.exports=function(e,t,i,r,d,s){var l=1&i,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var T=-1,m=!0,E=2&i?new n:void 0;for(s.set(e,t),s.set(t,e);++T<c;){var _=e[T],S=t[T];
2if(r)var I=l?r(S,_,T,t,e,s):r(_,S,T,e,t,s);if(void 0!==I){if(I)continue;m=!1;break}if(E){if(!a(t,function(e,t){if(!o(E,t)&&(_===e||d(_,e,i,r,s)))return E.push(t)})){m=!1;break}}else if(!(_===S||d(_,S,i,r,s))){m=!1;break}}return s.delete(e),s.delete(t),m}},263750,(e,t,i)=>{t.exports=e.r(139088).Uint8Array},75331,(e,t,i)=>{t.exports=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}},899850,(e,t,i)=>{t.exports=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}},678012,(e,t,i)=>{var n=e.r(630353),a=e.r(263750),o=e.r(25172),r=e.r(206856),d=e.r(75331),s=e.r(899850),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(e,t,i,n,l,u,p){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!u(new a(e),new a(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=d;case"[object Set]":var T=1&n;if(f||(f=s),e.size!=t.size&&!T)break;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var E=r(f(e),f(t),n,l,u,p);return p.delete(e),E;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},169102,(e,t,i)=>{t.exports=function(e,t){for(var i=-1,n=t.length,a=e.length;++i<n;)e[a+i]=t[i];return e}},45350,(e,t,i)=>{t.exports=Array.isArray},823403,(e,t,i)=>{var n=e.r(169102),a=e.r(45350);t.exports=function(e,t,i){var o=t(e);return a(e)?o:n(o,i(e))}},536100,(e,t,i)=>{t.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,a=0,o=[];++i<n;){var r=e[i];t(r,i,e)&&(o[a++]=r)}return o}},45159,(e,t,i)=>{t.exports=function(){return[]}},717332,(e,t,i)=>{var n=e.r(536100),a=e.r(45159),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;t.exports=r?function(e){return null==e?[]:n(r(e=Object(e)),function(t){return o.call(e,t)})}:a},855803,(e,t,i)=>{t.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},566645,(e,t,i)=>{var n=e.r(377684),a=e.r(877289);t.exports=function(e){return a(e)&&"[object Arguments]"==n(e)}},108524,(e,t,i)=>{var n=e.r(566645),a=e.r(877289),o=Object.prototype,r=o.hasOwnProperty,d=o.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return a(e)&&r.call(e,"callee")&&!d.call(e,"callee")}},24013,(e,t,i)=>{t.exports=function(){return!1}},356956,(e,t,i)=>{var n=e.r(139088),a=e.r(24013),o=i&&!i.nodeType&&i,r=o&&t&&!t.nodeType&&t,d=r&&r.exports===o?n.Buffer:void 0;t.exports=(d?d.isBuffer:void 0)||a},66397,(e,t,i)=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var i=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},98376,(e,t,i)=>{t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},476602,(e,t,i)=>{var n=e.r(377684),a=e.r(98376),o=e.r(877289),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(e){return o(e)&&a(e.length)&&!!r[n(e)]}},233999,(e,t,i)=>{t.exports=function(e){return function(t){return e(t)}}},180156,(e,t,i)=>{var n=e.r(100236),a=i&&!i.nodeType&&i,o=a&&t&&!t.nodeType&&t,r=o&&o.exports===a&&n.process;t.exports=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return r&&r.binding&&r.binding("util")}catch(e){}}()},3023,(e,t,i)=>{var n=e.r(476602),a=e.r(233999),o=e.r(180156),r=o&&o.isTypedArray;t.exports=r?a(r):n},458877,(e,t,i)=>{var n=e.r(855803),a=e.r(108524),o=e.r(45350),r=e.r(356956),d=e.r(66397),s=e.r(3023),l=Object.prototype.hasOwnProperty;t.exports=function(e,t){var i=o(e),c=!i&&a(e),u=!i&&!c&&r(e),p=!i&&!c&&!u&&s(e),f=i||c||u||p,T=f?n(e.length,String):[],m=T.length;for(var E in e)(t||l.call(e,E))&&!(f&&("length"==E||u&&("offset"==E||"parent"==E)||p&&("buffer"==E||"byteLength"==E||"byteOffset"==E)||d(E,m)))&&T.push(E);return T}},763996,(e,t,i)=>{var n=Object.prototype;
2t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},825717,(e,t,i)=>{t.exports=function(e,t){return function(i){return e(t(i))}}},942369,(e,t,i)=>{t.exports=e.r(825717)(Object.keys,Object)},848477,(e,t,i)=>{var n=e.r(763996),a=e.r(942369),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return a(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}},351095,(e,t,i)=>{var n=e.r(771223),a=e.r(98376);t.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},33679,(e,t,i)=>{var n=e.r(458877),a=e.r(848477),o=e.r(351095);t.exports=function(e){return o(e)?n(e):a(e)}},413370,(e,t,i)=>{var n=e.r(823403),a=e.r(717332),o=e.r(33679);t.exports=function(e){return n(e,o,a)}},330698,(e,t,i)=>{var n=e.r(413370),a=Object.prototype.hasOwnProperty;t.exports=function(e,t,i,o,r,d){var s=1&i,l=n(e),c=l.length;if(c!=n(t).length&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:a.call(t,p)))return!1}var f=d.get(e),T=d.get(t);if(f&&T)return f==t&&T==e;var m=!0;d.set(e,t),d.set(t,e);for(var E=s;++u<c;){var _=e[p=l[u]],S=t[p];if(o)var I=s?o(S,_,p,t,e,d):o(_,S,p,e,t,d);if(!(void 0===I?_===S||r(_,S,i,o,d):I)){m=!1;break}E||(E="constructor"==p)}if(m&&!E){var v=e.constructor,A=t.constructor;v!=A&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A)&&(m=!1)}return d.delete(e),d.delete(t),m}},801419,(e,t,i)=>{t.exports=e.r(841920)(e.r(139088),"DataView")},717074,(e,t,i)=>{t.exports=e.r(841920)(e.r(139088),"Promise")},106966,(e,t,i)=>{t.exports=e.r(841920)(e.r(139088),"Set")},573895,(e,t,i)=>{t.exports=e.r(841920)(e.r(139088),"WeakMap")},367426,(e,t,i)=>{var n=e.r(801419),a=e.r(687362),o=e.r(717074),r=e.r(106966),d=e.r(573895),s=e.r(377684),l=e.r(776366),c="[object Map]",u="[object Promise]",p="[object Set]",f="[object WeakMap]",T="[object DataView]",m=l(n),E=l(a),_=l(o),S=l(r),I=l(d),v=s;(n&&v(new n(new ArrayBuffer(1)))!=T||a&&v(new a)!=c||o&&v(o.resolve())!=u||r&&v(new r)!=p||d&&v(new d)!=f)&&(v=function(e){var t=s(e),i="[object Object]"==t?e.constructor:void 0,n=i?l(i):"";if(n)switch(n){case m:return T;case E:return c;case _:return u;case S:return p;case I:return f}return t}),t.exports=v},178353,(e,t,i)=>{var n=e.r(901551),a=e.r(206856),o=e.r(678012),r=e.r(330698),d=e.r(367426),s=e.r(45350),l=e.r(356956),c=e.r(3023),u="[object Arguments]",p="[object Array]",f="[object Object]",T=Object.prototype.hasOwnProperty;t.exports=function(e,t,i,m,E,_){var S=s(e),I=s(t),v=S?p:d(e),A=I?p:d(t);v=v==u?f:v,A=A==u?f:A;var k=v==f,b=A==f,g=v==A;if(g&&l(e)){if(!l(t))return!1;S=!0,k=!1}if(g&&!k)return _||(_=new n),S||c(e)?a(e,t,i,m,E,_):o(e,t,v,i,m,E,_);if(!(1&i)){var N=k&&T.call(e,"__wrapped__"),R=b&&T.call(t,"__wrapped__");
2if(N||R){var P=N?e.value():e,O=R?t.value():t;return _||(_=new n),E(P,O,i,m,_)}}return!!g&&(_||(_=new n),r(e,t,i,m,E,_))}},14943,(e,t,i)=>{var n=e.r(178353),a=e.r(877289);t.exports=function e(t,i,o,r,d){return t===i||(null!=t&&null!=i&&(a(t)||a(i))?n(t,i,o,r,e,d):t!=t&&i!=i)}},748299,(e,t,i)=>{var n=e.r(901551),a=e.r(14943);t.exports=function(e,t,i,o){var r=i.length,d=r,s=!o;if(null==e)return!d;for(e=Object(e);r--;){var l=i[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<d;){var c=(l=i[r])[0],u=e[c],p=l[1];if(s&&l[2]){if(void 0===u&&!(c in e))return!1}else{var f=new n;if(o)var T=o(u,p,c,e,t,f);if(!(void 0===T?a(p,u,3,o,f):T))return!1}}return!0}},715782,(e,t,i)=>{var n=e.r(12447);t.exports=function(e){return e==e&&!n(e)}},741903,(e,t,i)=>{var n=e.r(715782),a=e.r(33679);t.exports=function(e){for(var t=a(e),i=t.length;i--;){var o=t[i],r=e[o];t[i]=[o,r,n(r)]}return t}},165570,(e,t,i)=>{t.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},623426,(e,t,i)=>{var n=e.r(748299),a=e.r(741903),o=e.r(165570);t.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},9903,(e,t,i)=>{var n=e.r(45350),a=e.r(361884),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||a(e))||r.test(e)||!o.test(e)||null!=t&&e in Object(t)}},657588,(e,t,i)=>{var n=e.r(587547);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=i.cache;if(o.has(a))return o.get(a);var r=e.apply(this,n);return i.cache=o.set(a,r)||o,r};return i.cache=new(a.Cache||n),i}
2a.Cache=n,t.exports=a},688832,(e,t,i)=>{var n=e.r(657588);t.exports=function(e){var t=n(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}},902677,(e,t,i)=>{var n=e.r(688832),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;t.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,i,n,a){t.push(n?a.replace(o,"$1"):i||e)}),t})},892708,(e,t,i)=>{t.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,a=Array(n);++i<n;)a[i]=t(e[i],i,e);return a}},372537,(e,t,i)=>{var n=e.r(630353),a=e.r(892708),o=e.r(45350),r=e.r(361884),d=1/0,s=n?n.prototype:void 0,l=s?s.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(r(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-d?"-0":i}},702922,(e,t,i)=>{var n=e.r(372537);t.exports=function(e){return null==e?"":n(e)}},186287,(e,t,i)=>{var n=e.r(45350),a=e.r(9903),o=e.r(902677),r=e.r(702922);t.exports=function(e,t){return n(e)?e:a(e,t)?[e]:o(r(e))}},2054,(e,t,i)=>{var n=e.r(361884),a=1/0;t.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},333141,(e,t,i)=>{var n=e.r(186287),a=e.r(2054);t.exports=function(e,t){t=n(t,e);for(var i=0,o=t.length;null!=e&&i<o;)e=e[a(t[i++])];return i&&i==o?e:void 0}},482820,(e,t,i)=>{var n=e.r(333141);t.exports=function(e,t,i){var a=null==e?void 0:n(e,t);return void 0===a?i:a}},240688,(e,t,i)=>{t.exports=function(e,t){return null!=e&&t in Object(e)}},215359,(e,t,i)=>{var n=e.r(186287),a=e.r(108524),o=e.r(45350),r=e.r(66397),d=e.r(98376),s=e.r(2054);t.exports=function(e,t,i){t=n(t,e);for(var l=-1,c=t.length,u=!1;++l<c;){var p=s(t[l]);if(!(u=null!=e&&i(e,p)))break;e=e[p]}return u||++l!=c?u:!!(c=null==e?0:e.length)&&d(c)&&r(p,c)&&(o(e)||a(e))}},76590,(e,t,i)=>{var n=e.r(240688),a=e.r(215359);t.exports=function(e,t){return null!=e&&a(e,t,n)}},772298,(e,t,i)=>{var n=e.r(14943),a=e.r(482820),o=e.r(76590),r=e.r(9903),d=e.r(715782),s=e.r(165570),l=e.r(2054);t.exports=function(e,t){return r(e)&&d(t)?s(l(e),t):function(i){var r=a(i,e);return void 0===r&&r===t?o(i,e):n(t,r,3)}}},653336,(e,t,i)=>{t.exports=function(e){return e}},601079,(e,t,i)=>{t.exports=function(e){return function(t){return null==t?void 0:t[e]}}},430970,(e,t,i)=>{var n=e.r(333141);t.exports=function(e){return function(t){return n(t,e)}}},433906,(e,t,i)=>{var n=e.r(601079),a=e.r(430970),o=e.r(9903),r=e.r(2054);t.exports=function(e){return o(e)?n(r(e)):a(e)}},666305,(e,t,i)=>{var n=e.r(623426),a=e.r(772298),o=e.r(653336),r=e.r(45350),d=e.r(433906);t.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?r(e)?a(e[0],e[1]):n(e):d(e)}},972745,(e,t,i)=>{t.exports=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},524251,(e,t,i)=>{var n=e.r(841920);t.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},674548,(e,t,i)=>{var n=e.r(524251);t.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},4300,(e,t,i)=>{var n=e.r(674548),a=e.r(25172),o=Object.prototype.hasOwnProperty;t.exports=function(e,t,i){var r=e[t];o.call(e,t)&&a(r,i)&&(void 0!==i||t in e)||n(e,t,i)}},942173,(e,t,i)=>{var n=e.r(4300),a=e.r(186287),o=e.r(66397),r=e.r(12447),d=e.r(2054);t.exports=function(e,t,i,s){if(!r(e))return e;t=a(t,e);for(var l=-1,c=t.length,u=c-1,p=e;null!=p&&++l<c;){var f=d(t[l]),T=i;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(l!=u){var m=p[f];void 0===(T=s?s(m,f,p):void 0)&&(T=r(m)?m:o(t[l+1])?[]:{})}n(p,f,T),p=p[f]}return e}},181829,(e,t,i)=>{var n=e.r(333141),a=e.r(942173),o=e.r(186287);t.exports=function(e,t,i){for(var r=-1,d=t.length,s={};++r<d;){var l=t[r],c=n(e,l);i(c,l)&&a(s,o(l,e),c)}return s}},962413,(e,t,i)=>{t.exports=e.r(825717)(Object.getPrototypeOf,Object)},233648,(e,t,i)=>{var n=e.r(169102),a=e.r(962413),o=e.r(717332),r=e.r(45159);t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=a(e);return t}:r},513730,(e,t,i)=>{t.exports=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}},385689,(e,t,i)=>{var n=e.r(12447),a=e.r(763996),o=e.r(513730),r=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return o(e);var t=a(e),i=[];for(var d in e)"constructor"==d&&(t||!r.call(e,d))||i.push(d);return i}},689695,(e,t,i)=>{var n=e.r(458877),a=e.r(385689),o=e.r(351095);t.exports=function(e){return o(e)?n(e,!0):a(e)}},807889,(e,t,i)=>{var n=e.r(823403),a=e.r(233648),o=e.r(689695);t.exports=function(e){return n(e,o,a)}},584262,(e,t,i)=>{var n=e.r(892708),a=e.r(666305),o=e.r(181829),r=e.r(807889);t.exports=function(e,t){if(null==e)return{};var i=n(r(e),function(e){return[e]});return t=a(t),o(e,i,function(e,i){return t(e,i[0])})}},468212,(e,t,i)=>{var n=e.r(666305),a=e.r(972745),o=e.r(584262);t.exports=function(e,t){return o(e,a(n(t)))}},898892,(e,t,i)=>{var n=e.r(14943);t.exports=function(e,t){return n(e,t)}},976075,(e,t,i)=>{var n=e.r(139088),a=e.r(304653),o=e.r(773759),r=e.r(702922),d=n.isFinite,s=Math.min;t.exports=function(e){var t=Math[e];return function(e,i){if(e=o(e),(i=null==i?0:s(a(i),292))&&d(e)){var n=(r(e)+"e").split("e");return+((n=(r(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(n[1]-i))}return t(e)}}},357705,(e,t,i)=>{t.exports=e.r(976075)("round")},212895,(e,t,i)=>{t.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},372351,(e,t,i)=>{var n=e.r(4300),a=e.r(674548);t.exports=function(e,t,i,o){var r=!i;i||(i={});for(var d=-1,s=t.length;++d<s;){var l=t[d],c=o?o(i[l],e[l],l,i,e):void 0;void 0===c&&(c=e[l]),r?a(i,l,c):n(i,l,c)}return i}},860196,(e,t,i)=>{var n=e.r(372351),a=e.r(33679);t.exports=function(e,t){return e&&n(t,a(t),e)}},52624,(e,t,i)=>{var n=e.r(372351),a=e.r(689695);t.exports=function(e,t){return e&&n(t,a(t),e)}},622781,(e,t,i)=>{var n=e.r(139088),a=i&&!i.nodeType&&i,o=a&&t&&!t.nodeType&&t,r=o&&o.exports===a?n.Buffer:void 0,d=r?r.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var i=e.length,n=d?d(i):new e.constructor(i);return e.copy(n),n}},776736,(e,t,i)=>{t.exports=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}},174071,(e,t,i)=>{var n=e.r(372351),a=e.r(717332);t.exports=function(e,t){return n(e,a(e),t)}},345001,(e,t,i)=>{var n=e.r(372351),a=e.r(233648);t.exports=function(e,t){return n(e,a(e),t)}},153265,(e,t,i)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},425393,(e,t,i)=>{var n=e.r(263750);t.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},664146,(e,t,i)=>{var n=e.r(425393);t.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}},984046,(e,t,i)=>{var n=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},298430,(e,t,i)=>
2{var n=e.r(630353),a=n?n.prototype:void 0,o=a?a.valueOf:void 0;t.exports=function(e){return o?Object(o.call(e)):{}}},514712,(e,t,i)=>{var n=e.r(425393);t.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}},749769,(e,t,i)=>{var n=e.r(425393),a=e.r(664146),o=e.r(984046),r=e.r(298430),d=e.r(514712);t.exports=function(e,t,i){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return a(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return d(e,i);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return o(e);case"[object Symbol]":return r(e)}}},646352,(e,t,i)=>{var n=e.r(12447),a=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(a)return a(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()},992433,(e,t,i)=>{var n=e.r(646352),a=e.r(962413),o=e.r(763996);t.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(a(e))}},181198,(e,t,i)=>{var n=e.r(367426),a=e.r(877289);t.exports=function(e){return a(e)&&"[object Map]"==n(e)}},954284,(e,t,i)=>{var n=e.r(181198),a=e.r(233999),o=e.r(180156),r=o&&o.isMap;t.exports=r?a(r):n},936206,(e,t,i)=>{var n=e.r(367426),a=e.r(877289);t.exports=function(e){return a(e)&&"[object Set]"==n(e)}},240158,(e,t,i)=>{var n=e.r(936206),a=e.r(233999),o=e.r(180156),r=o&&o.isSet;t.exports=r?a(r):n},64324,(e,t,i)=>{var n=e.r(901551),a=e.r(212895),o=e.r(4300),r=e.r(860196),d=e.r(52624),s=e.r(622781),l=e.r(776736),c=e.r(174071),u=e.r(345001),p=e.r(413370),f=e.r(807889),T=e.r(367426),m=e.r(153265),E=e.r(749769),_=e.r(992433),S=e.r(45350),I=e.r(356956),v=e.r(954284),A=e.r(12447),k=e.r(240158),b=e.r(33679),g=e.r(689695),N="[object Arguments]",R="[object Function]",P="[object Object]",O={};O[N]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[P]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[R]=O["[object WeakMap]"]=!1,t.exports=function e(t,i,C,y,h,L){var D,w=1&i,M=2&i,U=4&i;if(C&&(D=h?C(t,y,h,L):C(t)),void 0!==D)return D;if(!A(t))return t;var V=S(t);if(V){if(D=m(t),!w)return l(t,D)}else{var B=T(t),F=B==R||"[object GeneratorFunction]"==B;if(I(t))return s(t,w);if(B==P||B==N||F&&!h){if(D=M||F?{}:_(t),!w)return M?u(t,d(D,t)):c(t,r(D,t))}else{if(!O[B])return h?t:{};D=E(t,B,w)}}L||(L=new n);var G=L.get(t);if(G)return G;L.set(t,D),k(t)?t.forEach(function(n){D.add(e(n,i,C,n,t,L))}):v(t)&&t.forEach(function(n,a){D.set(a,e(n,i,C,a,t,L))});var W=U?M?f:p:M?g:b,x=V?void 0:W(t);return a(x||t,function(n,a){x&&(n=t[a=n]),o(D,a,e(n,i,C,a,t,L))}),D}},4879,(e,t,i)=>{t.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},795014,(e,t,i)=>{t.exports=function(e,t,i){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o}},534888,(e,t,i)=>{var n=e.r(333141),a=e.r(795014);t.exports=function(e,t){return t.length<2?e:n(e,a(t,0,-1))}},785834,(e,t,i)=>{var n=e.r(186287),a=e.r(4879),o=e.r(534888),r=e.r(2054),d=Object.prototype.hasOwnProperty;t.exports=function(e,t){t=n(t,e);var i=-1,s=t.length;if(!s)return!0;for(;++i<s;){var l=r(t[i]);if("__proto__"===l&&!d.call(e,"__proto__")||("constructor"===l||"prototype"===l)&&i<s-1)return!1}var c=o(e,t);return null==c||delete c[r(a(t))]}},101320,(e,t,i)=>{var n=e.r(377684),a=e.r(962413),o=e.r(877289),r=Object.prototype,d=Function.prototype.toString,s=r.hasOwnProperty,l=d.call(Object);t.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=a(e);if(null===t)return!0;var i=s.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&d.call(i)==l}},979083,(e,t,i)=>{var n=e.r(101320);t.exports=function(e){return n(e)?void 0:e}},733803,(e,t,i)=>{var n=e.r(630353),a=e.r(108524),o=e.r(45350),r=n?n.isConcatSpreadable:void 0;t.exports=function(e){return o(e)||a(e)||!!(r&&e&&e[r])}},541891,(e,t,i)=>{var n=e.r(169102),a=e.r(733803);t.exports=function e(t,i,o,r,d){var s=-1,l=t.length;for(o||(o=a),d||(d=[]);++s<l;){var c=t[s];i>0&&o(c)?i>1?e(c,i-1,o,r,d):n(d,c):r||(d[d.length]=c)}return d}},272810,(e,t,i)=>{var n=e.r(541891);t.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},987160,(e,t,i)=>{t.exports=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}},172953,(e,t,i)=>{var n=e.r(987160),a=Math.max;t.exports=function(e,t,i){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,d=a(o.length-t,0),s=Array(d);++r<d;)s[r]=o[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=o[r];return l[t]=i(s),n(e,this,l)}}},556751,(e,t,i)=>{t.exports=function(e){return function(){return e}}},801647,(e,t,i)=>{var n=e.r(556751),a=e.r(524251),o=e.r(653336);t.exports=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o},851994,(e,t,i)=>{var n=Date.now;t.exports=function(e){var t=0,i=0;return function(){var a=n(),o=16-(a-i);if(i=a,o>
20){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},184665,(e,t,i)=>{var n=e.r(801647);t.exports=e.r(851994)(n)},6227,(e,t,i)=>{var n=e.r(272810),a=e.r(172953),o=e.r(184665);t.exports=function(e){return o(a(e,void 0,n),e+"")}},691027,(e,t,i)=>{var n=e.r(892708),a=e.r(64324),o=e.r(785834),r=e.r(186287),d=e.r(372351),s=e.r(979083),l=e.r(6227),c=e.r(807889);t.exports=l(function(e,t){var i={};if(null==e)return i;var l=!1;t=n(t,function(t){return t=r(t,e),l||(l=t.length>1),t}),d(e,c(e),i),l&&(i=a(i,7,s));for(var u=t.length;u--;)o(i,t[u]);return i})},882222,(e,t,i)=>{var n=Math.floor,a=Math.random;t.exports=function(e,t){return e+n(a()*(t-e+1))}},170237,(e,t,i)=>{var n=e.r(25172),a=e.r(351095),o=e.r(66397),r=e.r(12447);t.exports=function(e,t,i){if(!r(i))return!1;var d=typeof t;return("number"==d?!!(a(i)&&o(t,i.length)):"string"==d&&t in i)&&n(i[t],e)}},313067,(e,t,i)=>{var n=e.r(882222),a=e.r(170237),o=e.r(382560),r=parseFloat,d=Math.min,s=Math.random;t.exports=function(e,t,i){if(i&&"boolean"!=typeof i&&a(e,t,i)&&(t=i=void 0),void 0===i&&("boolean"==typeof t?(i=t,t=void 0):"boolean"==typeof e&&(i=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var l=e;e=t,t=l}if(i||e%1||t%1){var c=s();return d(e+c*(t-e+r("1e-"+((c+"").length-1))),t)}return n(e,t)}},145301,(e,t,i)=>{e.e,t.exports=function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function i(e){var i=e.length;return i?1===i?[e[0]]:2===i?[e[0],e[1]]:3===i?[e[0],e[1],e[2]]:t.call(e,0):[]}function n(e,t){return e===t||e!=e&&t!=t}function a(e,t){var i={};for(var n in e)i[n]=e[n];for(var n in t)i[n]=t[n];return i}var o=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:i(this.keys),size:this.size,values:i(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,i=t.isMatchingKey,n=t.maxSize,a=this.keys,o=a.length;if(!o)return -1;if(i(a[0],e))return 0;if(n>1){for(var r=1;r<o;r++)if(i(a[r],e))return r}return -1},e.prototype._getKeyIndexForMany=function(e){var t,i,n=this.options.isEqual,a=this.keys,o=a.length;if(!o)return -1;if(1===o)return this._getKeyIndexForSingle(e);var r=e.length;if(r>1){for(var d=0;d<o;d++)if((t=a[d]).length===r){for(i=0;i<r&&n(t[i],e[i]);i++);if(i===r)return d}}else for(var d=0;d<o;d++)if((t=a[d]).length===r&&n(t[0],e[0]))return d;return -1},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return -1;var i=t[0],n=i.length;if(e.length!==n)return -1;var a=this.options.isEqual;if(n>1){for(var o=0;o<n;o++)if(!a(i[o],e[o]))return -1;return 0}return a(i[0],e[0])?0:-1},e.prototype.orderByLru=function(e,t,i){for(var n=this.keys,a=this.values,o=n.length,r=i;r--;)n[r+1]=n[r],a[r+1]=a[r];n[0]=e,a[0]=t;var d=this.options.maxSize;o===d&&i===o?(n.pop(),a.pop()):i>=d&&(n.length=a.length=d)},e.prototype.updateAsyncCache=function(e){var t=this,i=this.options,n=i.onCacheChange,a=i.onCacheHit,o=this.keys[0],r=this.values[0];this.values[0]=r.then(function(i){return t.shouldUpdateOnHit&&a(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),i},function(e){var i=t.getKeyIndex(o);throw -1!==i&&(t.keys.splice(i,1),t.values.splice(i,1)),e})},e}();return function t(r,d){if(void 0===d&&(d={}),"function"==typeof r&&r.isMemoized)return t(r.fn,a(r.options,d));if("function"!=typeof r)throw TypeError("You must pass a function to `memoize`.");var s=d.isEqual,l=d.isMatchingKey,c=d.isPromise,u=void 0!==c&&c,p=d.maxSize,f=d.onCacheAdd,T=d.onCacheChange,m=d.onCacheHit,E=d.transformKey,_=a({isEqual:void 0===s?n:s,isMatchingKey:l,isPromise:u,maxSize:void 0===p?1:p,onCacheAdd:f,onCacheChange:T,onCacheHit:m,transformKey:E},function(t){var i={};for(var n in t)e[n]||(i[n]=t[n]);return i}(d)),S=new o(_),I=S.keys,v=S.values,A=S.canTransformKey,k=S.shouldCloneArguments,b=S.shouldUpdateOnAdd,g=S.shouldUpdateOnChange,N=S.shouldUpdateOnHit,R=function(){var e=k?i(arguments):arguments;A&&(e=E(e));var t=I.length?S.getKeyIndex(e):-1;if(-1!==t)N&&m(S,_,R),t&&(S.orderByLru(I[t],v[t],t),g&&T(S,_,R));else{var n=r.apply(this,arguments),a=k?e:i(arguments);S.orderByLru(a,n,I.length),u&&S.updateAsyncCache(R),b&&f(S,_,R),g&&T(S,_,R)}return v[0]};return R.cache=S,R.fn=r,R.isMemoized=!0,R.options=_,R}}()},847252,(e,t,i)=>{"use strict";
2t.exports=a;var n=e.r(861539);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=a.zero=new a(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var r=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/0x100000000>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>0xffffffff&&(i=0,++n>0xffffffff&&(n=0))),new a(i,n)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(n.isString(e))if(!n.Long)return a.fromNumber(parseInt(e,10));else e=n.Long.fromString(e);return e.low||e.high?new a(e.low>>>0,e.high>>>0):o},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+0x100000000*i)}return this.lo+0x100000000*this.hi},a.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var d=String.prototype.charCodeAt;a.fromHash=function(e){return e===r?o:new a((d.call(e,0)|d.call(e,1)<<8|d.call(e,2)<<16|d.call(e,3)<<24)>>>0,(d.call(e,4)|d.call(e,5)<<8|d.call(e,6)<<16|d.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},861539,(e,t,i)=>{"use strict";function n(e,t,i){for(var n=Object.keys(t),a=0;a<n.length;++a)void 0!==e[n[a]]&&i||"__proto__"===n[a]||(e[n[a]]=t[n[a]]);return e}function a(e){function t(e,i){if(!(this instanceof t))return new t(e,i);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||""}),i&&n(this,i)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}i.asPromise=e.r(911966),i.base64=e.r(930284),i.EventEmitter=e.r(793545),i.float=e.r(482253),i.inquire=e.r(411166),i.utf8=e.r(352677),i.pool=e.r(66762),i.LongBits=e.r(847252),i.isNode=!!(e.g&&e.g.process&&e.g.process.versions&&e.g.process.versions.node),i.global=i.isNode&&e.g||"u">typeof window&&window||"u">typeof self&&self||e.e,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},i.isString=function(e){return"string"==typeof e||e instanceof String},i.isObject=function(e){return e&&"object"==typeof e},i.isset=i.isSet=function(e,t){var i=e[t];return!!(null!=i&&e.hasOwnProperty(t))&&("object"!=typeof i||(Array.isArray(i)?i.length:Object.keys(i).length)>0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"u"<typeof Uint8Array?e:new Uint8Array(e)},i.Array="u">typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var n=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(n.lo,n.hi,t):n.toNumber(!!t)},i.merge=n,i.recursionLimit=100,i.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=a,i.ProtocolError=a("ProtocolError"),i.oneOfGetter=function(e){for(var t={},i=0;i<e.length;++i)t[e[i]]=1;return function(){for(var e=Object.keys(this),i=e.length-1;i>-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},i.oneOfSetter=function(e){return function(t){for(var i=0;i<e.length;++i)e[i]!==t&&delete this[e[i]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var e=i.Buffer;if(!e){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,i){return new e(t,i)},i._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},3847,(e,t,i)=>{"use strict";
vendor: 8,013 bytes, line 2
2t.exports=u;var n,a=e.r(861539),o=a.LongBits,r=a.base64,d=a.utf8;function s(e,t,i){this.fn=e,this.len=t,this.next=void 0,this.val=i}function l(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new s(l,0,0),this.tail=this.head,this.states=null}var p=function(){return a.Buffer?function(){return(u.create=function(){return new n})()}:function(){return new u}};function f(e,t,i){t[i]=255&e}function T(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function E(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}u.create=p(),u.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(u.alloc=a.pool(u.alloc,a.Array.prototype.subarray)),u.prototype._push=function(e,t,i){return this.tail=this.tail.next=new s(e,t,i),this.len+=t,this},T.prototype=Object.create(s.prototype),T.prototype.fn=function(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e},u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new T((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(m,10,o.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=o.from(e);return this._push(m,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(m,t.length(),t)},u.prototype.bool=function(e){return this._push(f,1,+!!e)},u.prototype.fixed32=function(e){return this._push(E,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=o.from(e);return this._push(E,4,t.lo)._push(E,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var _=a.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var n=0;n<e.length;++n)t[i+n]=e[n]};u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(a.isString(e)){var i=u.alloc(t=r.length(e));r.decode(e,i,0),e=i}return this.uint32(t)._push(_,t,e)},u.prototype.string=function(e){var t=d.length(e);return t?this.uint32(t)._push(d.write,t,e):this._push(f,1,0)},u.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new s(l,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new s(l,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},u._configure=function(e){n=e,u.create=p(),n._configure()}},339242,(e,t,i)=>{"use strict";t.exports=o;var n=e.r(3847);(o.prototype=Object.create(n.prototype)).constructor=o;var a=e.r(861539);function o(){n.call(this)}function r(e,t,i){e.length<40?a.utf8.write(e,t,i):t.utf8Write?t.utf8Write(e,i):t.write(e,i)}o._configure=function(){o.alloc=a._Buffer_allocUnsafe,o.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var n=0;n<e.length;)t[i++]=e[n++]}},o.prototype.bytes=function(e){a.isString(e)&&(e=a._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(r,t,e),this},o._configure()},745001,(e,t,i)=>{"use strict";t.exports=l;var n,a,o=e.r(861539),r=o.LongBits,d=o.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var c="u">typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},u=function(){return o.Buffer?function(e){return(l.create=function(e){return o.Buffer.isBuffer(e)?new a(e):c(e)})(e)}:c};function p(){var e=new r(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function T(){if(this.pos+8>this.len)throw s(this,8);return new r(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=u(),l.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,l.prototype.uint32=(n=0xffffffff,function(){if(n=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(n=(n|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(n=(n|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(n=(n|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(n=(n|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return n;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return n}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,i);if(t===i){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,i)},l.prototype.string=function(){var e=this.bytes();return d.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do if(this.pos>=this.len)throw s(this);while(128&this.buf[this.pos++])return this},l.recursionLimit=o.recursionLimit,l.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>l.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){a=e,l.create=u(),a._configure();var t=o.Long?"toLong":"toNumber";o.merge(l.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return T.call(this)[t](!0)},sfixed64:function(){return T.call(this)[t](!1)}})}},247958,(e,t,i)=>{"use strict";
2t.exports=o;var n=e.r(745001);(o.prototype=Object.create(n.prototype)).constructor=o;var a=e.r(861539);function o(e){n.call(this,e)}o._configure=function(){a.Buffer&&(o.prototype._slice=a.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},279310,(e,t,i)=>{"use strict";t.exports=a;var n=e.r(861539);function a(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!i}(a.prototype=Object.create(n.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,i,a,o,r){if(!o)throw TypeError("request must be specified");var d=this;if(!r)return n.asPromise(e,d,t,i,a,o);if(!d.rpcImpl)return void setTimeout(function(){r(Error("already ended"))},0);try{return d.rpcImpl(t,i[d.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,i){if(e)return d.emit("error",e,t),r(e);if(null===i)return void d.end(!0);if(!(i instanceof a))try{i=a[d.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return d.emit("error",e,t),r(e)}return d.emit("data",i,t),r(null,i)})}catch(e){d.emit("error",e,t),setTimeout(function(){r(e)},0);return}},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},592923,(e,t,i)=>{"use strict";i.Service=e.r(279310)},129711,(e,t,i)=>{"use strict";t.exports={}},555952,(e,t,i)=>{"use strict";function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=e.r(3847),i.BufferWriter=e.r(339242),i.Reader=e.r(745001),i.BufferReader=e.r(247958),i.util=e.r(861539),i.rpc=e.r(592923),i.roots=e.r(129711),i.configure=n,n()},564248,(e,t,i)=>{"use strict";t.exports=e.r(555952)},832267,127447,e=>{"use strict";let t;function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}var n,a,o,r,d,s,l,c,u,p,f,T,m,E,_,S,I,v,A,k,b,g,N,R,P,O,C,y,h,L,D,w,M,U,V,B,F,G,W,x,H,Y,K,$,z,q,Z,j,X,Q,J,ee,et,ei,en,ea,eo,er,ed,es,el,ec,eu,ep,ef,eT,em,eE,e_,eS,eI,ev,eA,ek,eb,eg,eN,eR,eP,eO,eC,ey,eh,eL,eD,ew,eM,eU,eV,eB,eF,eG,eW,ex,eH,eY,eK,e$,ez,eq,eZ,ej,eX,eQ,eJ,e0,e2,e3,e1,e4,e8,e6,e7,e5,e9,te,tt,ti,tn,ta,to,tr,td,ts,tl,tc,tu,tp,tf,tT,tm,tE,t_,tS,tI,tv,tA,tk,tb,tg,tN,tR,tP,tO,tC,ty,th,tL,tD,tw,tM,tU,tV,tB,tF,tG,tW,tx,tH,tY,tK,t$,tz,tq,tZ,tj,tX,tQ,tJ,t0,t2,t3,t1,t4,t8,t6,t7,t5,t9,ie,it,ii,ia,io,ir,id,is,il,ic,iu,ip,iT,im,iE,i_,iS,iI,iv,iA,ik,ib,ig,iN,iR,iP,iO,iC,iy,ih,iL,iD,iw,iM,iU,iV,iB,iF,iG,iW,ix,iH,iY,iK,i$,iz,iq,iZ,ij,iX,iQ,iJ,i0,i2,i3,i1,i4,i8,i6,i7,i5,i9,ne,nt,ni,nn,na,no,nr,nd,ns,nl,nc,nu,np,nf,nT,nm,nE,n_,nS,nI,nv,nA,nk,nb,ng,nN,nR,nP,nO,nC,ny,nh,nL,nD,nw,nM,nU,nV,nB,nF,nG,nW,nx,nH,nY,nK,n$,nz,nq,nZ,nj,nX,nQ,nJ,n0,n2,n3,n1,n4,n8,n6,n7,n5,n9,ae,at,ai,an,aa,ao,ar,ad,as,al,ac,au,ap,af,aT,am,aE,a_,aS,aI,av,aA,ak,ab,ag,aN,aR,aP,aO,aC,ay,ah,aL,aD,aw,aM,aU,aV,aB,aF,aG,aW,ax,aH,aY,aK,a$,az,aq,aZ,aj,aX,aQ,aJ,a0,a2,a3,a1,a4,a8,a6,a7,a5,a9,oe,ot,oi,on,oa,oo,or,od,os,ol,oc,ou,op,of,oT,om=function e(t,n){function a(e,a,o){if("u">typeof document){"number"==typeof(o=i({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var d in o)o[d]&&(r+="; "+d,!0!==o[d]&&(r+="="+o[d].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+r}}return Object.create({set:a,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},a=0;a<i.length;a++){var o=i[a].split("="),r=o.slice(1).join("=");try{var d=decodeURIComponent(o[0]);if(n[d]=t.read(r,d),e===d)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){a(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
2URIComponent)}},{path:"/"}),oE=e.i(186325),o_=e.i(224283),oS=e.i(323883);let oI="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ov=new Uint8Array(16),oA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,ok=[];for(let e=0;e<256;++e)ok.push((e+256).toString(16).slice(1));let ob=function(e,i,n){if(oI&&!i&&!e)return oI();let a=(e=e||{}).random??e.rng?.()??function(){if(!t){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(ov)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,i){if((n=n||0)<0||n+16>i.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[n+e]=a[e];return i}return function(e,t=0){return(ok[e[t+0]]+ok[e[t+1]]+ok[e[t+2]]+ok[e[t+3]]+"-"+ok[e[t+4]]+ok[e[t+5]]+"-"+ok[e[t+6]]+ok[e[t+7]]+"-"+ok[e[t+8]]+ok[e[t+9]]+"-"+ok[e[t+10]]+ok[e[t+11]]+ok[e[t+12]]+ok[e[t+13]]+ok[e[t+14]]+ok[e[t+15]]).toLowerCase()}(a)};var og=["com","net","org","int","mil","edu","gov","io","as","co","ly","ht","ar","co.uk","app"],oN=(0,Object.defineProperty)(e=>{let t=og.find(t=>e.endsWith(t));if(!t)return e;let i=e.substring(0,e.length-t.length-1).lastIndexOf(".");return i>0?`${e.substring(i+1)}`:e},"name",{value:"getTopLevelDomain",configurable:!0}),oR=Object.defineProperty,oP=(e,t)=>
2oR(e,"name",{value:t,configurable:!0}),oO=/[-_]/,oC=oP(e=>{let[t,i]=e.split(oO),n=i?`${t}-${i.toUpperCase()}`:t,a=n.toLowerCase();if(!i&&t in oD)return oD[t];let o=oh.find(e=>e.toLowerCase()===a);if(o||(o=oL[n]))return o;if(t in oD)return oD[t];let r=`${t}-`;for(let e of oh)if(e.startsWith(r))return e;return null},"getSupportedLocale"),oy=((iI=oy||{}).ar="ar",iI.arAR="ar-AR",iI.bnBD="bn-BD",iI.bnIN="bn-IN",iI.daDK="da-DK",iI.deDE="de-DE",iI.elGR="el-GR",iI.enGB="en-GB",iI.enUS="en-US",iI.es="es",iI.esAR="es-AR",iI.esES="es-ES",iI.esMX="es-MX",iI.fiFI="fi-FI",iI.filPH="fil-PH",iI.frFR="fr-FR",iI.guIN="gu-IN",iI.hiIN="hi-IN",iI.idID="id-ID",iI.itIT="it-IT",iI.jaJP="ja-JP",iI.knIN="kn-IN",iI.koKR="ko-KR",iI.mlIN="ml-IN",iI.mrIN="mr-IN",iI.msMY="ms-MY",iI.nbNO="nb-NO",iI.nlNL="nl-NL",iI.pa="pa",iI.plPL="pl-PL",iI.ptBR="pt-BR",iI.ptPT="pt-PT",iI.roRO="ro-RO",iI.ruRU="ru-RU",iI.svSE="sv-SE",iI.taIN="ta-IN",iI.teIN="te-IN",iI.thTH="th-TH",iI.trTR="tr-TR",iI.urPK="ur-PK",iI.viVN="vi-VN",iI.zhHans="zh-Hans",iI.zhHant="zh-Hant",iI.enPLOC="en-PLOC",iI),oh=Object.values(oy),oL={"zh-TW":"zh-Hant","zh-CN":"zh-Hans"},oD={ar:"ar-AR",bn:"bn-BD",en:"en-US",es:"es-ES",pt:"pt-BR",zh:"zh-Hans"},ow="en-US",oM=oP(()=>{let e=new URLSearchParams(self.location.search);return e.get("locale")??e.get("lang")},"getLocaleFromQuery"),oU=oP(()=>{let e=self.navigator;if(Array.isArray(e?.languages)){for(let t of e.languages)if(t?.length)return t}return e?.language??null},"getFirstBrowserLanguage");function oV(e){return oC(oB(e))??ow}function oB(e){if(e)return e;let t=oM();if(t)return t;let i=om.get("sc-language");if(i)return i;let n=oU();return n||ow}oP(oV,"getLocale"),oP(oB,"deriveLocale");var oF=!1,oG=new Map;function oW(e){let t=oG.get(e);return void 0===t&&((t=oE.default.getLogger(oH+e)).setDefaultLevel(oE.default.levels.SILENT),oF&&t.setLevel(oE.default.levels.DEBUG),oG.set(e,t)),t}
2function ox(e){for(let t of(oF=e,oG.values()))oF?t.setLevel(oE.default.levels.DEBUG):t.resetLevel()}oP(oW,"getLogger"),oP(ox,"setAnalyticsLoggingEnabled");var oH="Analytics.";function oY(){return btoa(String.fromCharCode(...self.crypto.getRandomValues(new Uint8Array(12))))}function oK(){return ob()}oP(oY,"generate60BitUuid"),oP(oK,"generateUuid");var o$=((iv=o$||{}).CLIENT_ID="blizzard_client_id",iv.WEB_SESSION_ID="blizzard_web_session_id",iv);function oz(e,t,i){if(!oZ)return;let a=n??("u">typeof self?oN(self.location.hostname):void 0)??".snapchat.com";om.set(e,t,{expires:i.expireDays,domain:a})}function oq(e){if(oZ)return om.get(e)}oP(oz,"setBlizzardCookie"),oP(oq,"getBlizzardCookie");var oZ=!0;function oj(e){oZ=e}function oX(){return oZ}function oQ(e){n=e}oP(oj,"setCookiesEnabled"),oP(oX,"areCookiesEnabled"),oP(oQ,"setCookiesDomain");var oJ=oW("webSessionId");function o0(){return oX()?(void 0!==(a=oq("blizzard_web_session_id"))?oJ.info("Loaded blizzardWebSessionId from cookies:",a):a=o2(),a):""}function o2(){let e=oY();return o3(e),oJ.info("Generated new webSessionId and saved in cookies:",e),e}function o3(e){oz("blizzard_web_session_id",e,{expireDays:1/48}),oJ.info("Saved current webSessionId in cookies")}oP(o0,"getWebSessionId"),oP(o2,"generateAndSaveWebSessionIdInCookies"),oP(o3,"saveWebSessionIdInCookies");var o1=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart","mousedown","keyup"],o4=(0,oS.default)(()=>{if(!oX())return;let e=(0,o_.default)(()=>{o3(o0())},1e3);for(let t=0;t<o1.length;t++)window.addEventListener(o1[t],e),oJ.info("set eventListener for",o1[t])}
2),o8=oW("clientId"),o6=null;function o7(){if(null===o6){let e=oX()?oq("blizzard_client_id"):void 0;null!==(o6=e?o9.parse(e):null)&&o8.debug("Loaded clientId",o6)}if((o6?.isExpired()??!0)&&o5(),null===o6)throw"Unexpected null clientId";return o6.id}function o5(){o8.info("Generating new clientId"),o6=o9.generate(),oX()&&(oz("blizzard_client_id",o6.serialize(),{expireDays:re}),o8.info("clientId is set in Cookies"))}oP(o7,"getClientId"),oP(o5,"renewAndSaveClientId");var o9=class e{static{oP(this,"ClientId")}constructor(e){this.id=e.id,this.timestamp=e.timestamp}static generate(){return new e({id:oK(),timestamp:Date.now()})}static parse(t){var i;let n=t.split(":");if(1===n.length&&n.push(`${Date.now()}`),2!==n.length)return null;let a={id:n[0],timestamp:Number.parseInt(n[1],10)};return!("string"==typeof(i=a.id)&&oA.test(i))||Number.isNaN(a.timestamp)?null:new e(a)}isExpired(){let e=new Date;return e>new Date(this.timestamp+24*re*36e5)||e<new Date(this.timestamp)}serialize(){return`${this.id}:${this.timestamp}`}},re=30;function rt(e){re=e}oP(rt,"setBlizzardIdCookieExpireDays");var ri=e.i(467034),rn=Object.defineProperty,ra=(e,t)=>rn(e,"name",{value:t,configurable:!0}),ro=ra(()=>"u">typeof window,"isInWindow"),rr=ra(()=>"u">typeof WorkerGlobalScope,"isInWorker"),rd=ra(()=>ro()||rr(),"isInBrowser"),rs=new class{constructor(){this.debugMode=!1,this.log=ra((...e)=>{this.debugMode&&console.info("[Metrics SDK]",...e)},"log")}static{ra(this,"Logger")}setDebugMode(e){this.debugMode=e}},rl=class{constructor(){this.isInitialized=!1,this.isMetricEmpty=ra(()=>!this.metricCollector||this.metricCollector.isEmpty(),"isMetricEmpty"),this.flush=ra(()=>{if(!this.metricCollector||!this.networkHandler||this.metricCollector.isEmpty())return Promise.resolve();rs.log("flushing metrics",this.metricCollector.metrics);let e=this.metricCollector.getPayload();return this.metricCollector.clearMetrics(),this.networkHandler.sendRequest(e)},"flush")}static{ra(this,"BaseClient")}initialize(e){let{debugMode:t=!1,logTimeInterval:i=5e3,onIncrement:n=ra(e=>[e],"onIncrement"),onAddHistogram:a=ra(e=>[e],"onAddHistogram"),onAddTimer:o=ra(e=>[e],"onAddTimer")}=e;rs.setDebugMode(t),this.networkHandler=e.networkHandler,this.metricCollector=this.networkHandler?.config.collector,this.onIncrement=n,this.onAddHistogram=a,this.onAddTimer=o,this.timerId=setInterval(this.flush,i),ro()&&window.addEventListener("beforeunload",this.flush),this.isInitialized=!0,rs.log("initializing SDK with config",e)}destroy(){rs.log("destroying SDK."),this.timerId&&(clearInterval(this.timerId),this.timerId=void 0),this.heartBeatId&&(clearInterval(this.heartBeatId),this.heartBeatId=void 0),this.isInitialized=!1,this.metricCollector?.clearMetrics(),ro()&&window.removeEventListener("beforeunload",this.flush)}isReady(){return this.isInitialized}increment(e){if(this.isInitialized&&this.metricCollector)for(let t of this.onIncrement?.(e)??[]){let{metricsName:e,dimensions:i,value:n=1}=t;if(!Number.isInteger(n))throw Error("value must be an integer in increment.");this.metricCollector.increment({metricsName:e,dimensions:i,value:n}),rs.log(`increment counter ${e} with dimension `,i," with value ",n)}}addHistogram(e){if(this.isInitialized&&this.metricCollector)for(let t of this.onAddHistogram?.(e)??[]){let{metricsName:e,dimensions:i,value:n}=t;this.metricCollector.addHistogram({metricsName:e,dimensions:i,value:n}),rs.log(`addHistogram level ${e} with dimension `,i," with value ",n)}}addTimer(e){if(this.isInitialized&&this.metricCollector)for(let t of this.onAddTimer?.(e)??[]){let{metricsName:e,dimensions:i,milliSec:n}=t,a=Math.round(n);this.metricCollector.addTimer({metricsName:e,dimensions:i,milliSec:a}),rs.log(`addTimer timer ${e} with dimension `,i," with milliSec ",a)}}getCollectedMetrics(){return this.metricCollector?.metrics}},rc="webAttestation",ru=class{static{ra(this,"Authenticator")}},rp=class{static{ra(this,"MetricCollector")}constructor(){this.metrics=this.getFreshMetrics()}getFreshMetrics(){return{counters:{},timers:{},levels:{}}}isEmpty(){return!Object.keys(this.metrics.counters).length&&!Object.keys(this.metrics.timers).length&&!Object.keys(this.metrics.levels).length}clearMetrics(){this.metrics=this.getFreshMetrics()}},rf=class{static{ra(this,"BaseNetworkHandler")}constructor(e){this.config=e}}
2,rT=class extends Error{static{ra(this,"FetchError")}constructor(e){super(`Fetch error: ${e.status} - ${e.statusText}`),this.status=e.status,this.statusText=e.statusText}},rm=class extends rf{static{ra(this,"FetchNetworkHandler")}sendRequest(e){let{authType:t,authenticator:i,protocol:n,host:a,path:o,headers:r}=this.config;return i.authRequest(t,e,r).then(t=>new Promise((i,r)=>fetch(`${n}//${a}${o}`,{method:"POST",headers:t,body:e}).then(e=>{rs.log("Received response from metrics server. Status code:",e.status,e.statusText),e.ok?i():r(new rT({status:e.status,statusText:e.statusText}))}).catch(e=>{r(new rT({status:-1,statusText:e.message}))}))).catch(e=>{rs.log("Got error when sending request:",e)})}},rE=ra(({metricsName:e,dimensions:t,prefixes:i=[]})=>{let n=[...i];return n.push(e),t&&Object.keys(t).sort().forEach(e=>{let i=t[e];n.push(e,i)}),n.join(".")},"computeMetricKey"),r_=ra((e,t)=>Math.floor(Math.random()*(t-e+1))+e,"getRandomIntFromRange"),rS=ra((e,t)=>{if(e.length<=t)return e;let i=e.slice(0,t);for(let n=t;n<e.length;n++){let a=r_(0,n);a<t&&(i[a]=e[n])}return i},"reservoirSample"),rI=ra(e=>ri.Buffer.from(e,"binary").toString("base64"),"inlineBtoa"),rv=e.i(124908),rA=e.i(279209);function rk(){return{versionNumber:void 0,flavor:"",variant:""}}(iA=o||(o={}))[iA.UNKNOWN_OS_TYPE=0]="UNKNOWN_OS_TYPE",iA[iA.OS_IOS=1]="OS_IOS",iA[iA.OS_ANDROID=2]="OS_ANDROID",iA[iA.OS_WEB=3]="OS_WEB",iA[iA.OS_SDK_IOS=4]="OS_SDK_IOS",iA[iA.OS_SDK_ANDROID=5]="OS_SDK_ANDROID",iA[iA.OS_SNAPOS=6]="OS_SNAPOS",iA[iA.UNRECOGNIZED=-1]="UNRECOGNIZED";let rb={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.versionNumber&&rN.encode(e.versionNumber,t.uint32(10).fork()).ldelim(),""!==e.flavor&&t.uint32(18).string(e.flavor),""!==e.variant&&t.uint32(26).string(e.variant),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=rk();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.versionNumber=rN.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.flavor=i.string();continue;case 3:if(26!==e)break;a.variant=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>rb.fromPartial(e??{}),fromPartial(e){let t=rk();return t.versionNumber=void 0!==e.versionNumber&&null!==e.versionNumber?rN.fromPartial(e.versionNumber):void 0,t.flavor=e.flavor??"",t.variant=e.variant??"",t}};function rg(){return{major:0,minor:0,patch:0,build:0}}let rN={encode:(e,t=rA.default.Writer.create())=>(0!==e.major&&t.uint32(8).int32(e.major),0!==e.minor&&t.uint32(16).int32(e.minor),0!==e.patch&&t.uint32(24).int32(e.patch),0!==e.build&&t.uint32(32).int32(e.build),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=rg();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.major=i.int32();continue;case 2:if(16!==e)break;a.minor=i.int32();continue;case 3:if(24!==e)break;a.patch=i.int32();continue;case 4:if(32!==e)break;a.build=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>rN.fromPartial(e??{}),fromPartial(e){let t=rg();return t.major=e.major??0,t.minor=e.minor??0,t.patch=e.patch??0,t.build=e.build??0,t}};function rR(){return{partitionName:"",metricName:"",customDimensions:{},values:[]}}let rP={encode(e,t=rA.default.Writer.create()){for(let i of(""!==e.partitionName&&t.uint32(10).string(e.partitionName),""!==e.metricName&&t.uint32(18).string(e.metricName),Object.entries(e.customDimensions).forEac
2h(([e,i])=>{rC.encode({key:e,value:i},t.uint32(26).fork()).ldelim()}),t.uint32(34).fork(),e.values))t.int64(i);return t.ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=rR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.partitionName=i.string();continue;case 2:if(18!==e)break;a.metricName=i.string();continue;case 3:if(26!==e)break;let t=rC.decode(i,i.uint32());void 0!==t.value&&(a.customDimensions[t.key]=t.value);continue;case 4:if(32===e){a.values.push(rL(i.int64()));continue}if(34===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.values.push(rL(i.int64()));continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>rP.fromPartial(e??{}),fromPartial(e){let t=rR();return t.partitionName=e.partitionName??"",t.metricName=e.metricName??"",t.customDimensions=Object.entries(e.customDimensions??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=globalThis.String(i)),e),{}),t.values=e.values?.map(e=>e)||[],t}};function rO(){return{key:"",value:""}}let rC={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=rO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>rC.fromPartial(e??{}),fromPartial(e){let t=rO();return t.key=e.key??"",t.value=e.value??"",t}};function ry(){return{timers:[],counters:[],levels:[],protocolVersion:0,bufferStartTimestampMillis:"0",bufferEndTimestampMillis:"0",appVersion:void 0,clientOsType:0,userName:"",samplingId:0,userGuid:"",abC4Token:new Uint8Array(0),cofContext:new Uint8Array(0)}}let rh={encode(e,t=rA.default.Writer.create()){for(let i of e.timers)rP.encode(i,t.uint32(10).fork()).ldelim();for(let i of e.counters)rP.encode(i,t.uint32(18).fork()).ldelim();for(let i of e.levels)rP.encode(i,t.uint32(26).fork()).ldelim();return 0!==e.protocolVersion&&t.uint32(32).uint32(e.protocolVersion),"0"!==e.bufferStartTimestampMillis&&t.uint32(40).uint64(e.bufferStartTimestampMillis),"0"!==e.bufferEndTimestampMillis&&t.uint32(48).uint64(e.bufferEndTimestampMillis),void 0!==e.appVersion&&rb.encode(e.appVersion,t.uint32(58).fork()).ldelim(),0!==e.clientOsType&&t.uint32(64).int32(e.clientOsType),""!==e.userName&&t.uint32(74).string(e.userName),0!==e.samplingId&&t.uint32(85).fixed32(e.samplingId),""!==e.userGuid&&t.uint32(90).string(e.userGuid),0!==e.abC4Token.length&&t.uint32(98).bytes(e.abC4Token),0!==e.cofContext.length&&t.uint32(114).bytes(e.cofContext),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ry();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.timers.push(rP.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.counters.push(rP.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.levels.push(rP.decode(i,i.uint32()));continue;case 4:if(32!==e)break;a.protocolVersion=i.uint32();continue;case 5:if(40!==e)break;a.bufferStartTimestampMillis=rL(i.uint64());continue;case 6:if(48!==e)break;a.bufferEndTimestampMillis=rL(i.uint64());continue;case 7:if(58!==e)break;a.appVersion=rb.decode(i,i.uint32());continue;case 8:if(64!==e)break;a.clientOsType=i.int32();continue;case 9:if(74!==e)break;a.userName=i.string();continue;case 10:if(85!==e)break;a.samplingId=i.fixed32();continue;case 11:if(90!==e)break;a.userGuid=i.string();continue;case 12:if(98!==e)break;a.abC4Token=i.bytes();continue;case 14:if(114!==e)break;a.cofContext=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>rh.fromPartial(e??{}),fromPartial(e){let t=ry();return t.timers=e.timers?.map(e=>rP.fromPartial(e))||[],t.counters=e.counters?.map(e=>rP.fromPartial(e))||[],t.levels=e.levels?.map(e=>rP.fromPartial(e))||[],t.protocolVersion=e.protocolVersion??0,t.bufferStartTimestampMillis=e.bufferStartTimestampMillis??"0",t.bufferEndTimestampMillis=e.bufferEndTimestampMillis??"0",t.appVersion=void 0!==e.appVersion&&null!==e.appVersion?rb.fromPartial(e.appVersion):void 0,t.clientOsType=e.clientOsType??0,t.userName=e.userName??"",t.samplingId=e.samplingId??0,t.userGuid=e.userGuid??"",t.abC4Token=e.abC4Token??new Uint8Array(0),t.cofContext=e.cofContext??new Uint8Array(0),t}};function rL(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());var rD=Object.defineProperty,rw=(e,t)=>rD(e,"name",{value:t,configurable:!0});let rM=rw(async e=>rU(await window.crypto.subtle.digest("SHA-256",e)),"sha256");function rU(e){return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("")}rw(rU,"bufferToHex");var rV=Object.defineProperty,rB=(e,t)=>rV(e,"name",{value:t,configurable:!0}),rF=((ik=rF||{}).UNDEFINED="undefined",ik.ADS_LIBRARY="ads_library",ik.ADS_MANAGER="ads_manager",ik.BUSINESS_MANAGER="business_manager",ik.PROFILE_MANAGER="profile_manager",ik.REVIEW_TOOL="review_tool",ik.SNAP_MAPS="snap_maps",ik.FOR_BUSINESS="for_business",ik.ADFORMATS_WEB="adformats_web",ik.DISCOVER_CMS="discover_cms",ik.SNAP_WEB="snap_web",ik.NEWSROOM="newsroom",ik.YELLOW_LA="yellow_la",ik.CITIZEN_SNAP="citizen_snap",ik.SNAP_FOUNDATION="snap_foundation",ik.ENG_BLOG="eng_blog",ik.RESEARCH_SNAP="research_snap",ik.MY_LENSES="my_lenses",ik.PLAYCANVAS="playcanvas",ik.MEASUREMENT_PORTAL="measurement_portal",ik.TRUST="trust",ik.CHEERIOS="cheerios",ik.SPS="sps",ik.AR_SNAP="ar_snap",ik.DEVELOPER_SNAP="developer_snap",ik.DANDELION="dandelion",ik.CREATORS_SNAP="creators_snap",ik.DIVERSITY="diversity",ik.SNAPCHAT_WEB="snapchat_web",ik.EMBEDDED_WEBVIEW_ADS="embedded_webview_ads",ik.METRICS_MONITOR="metrics_monitor",ik.SNAPGRAPH="snapgraph",ik.MEASUREMENT_RESONANCE_SURVEY="measurement_resonance_survey",ik.MEASUREMENT_MR_SURVEY="measurement_mr_survey",ik.MEASUREMENT_COLLECTION_SURVEY="measurement_collection_survey",ik.STORY_ST
2UDIO_LITE="story_studio_lite",ik.WEB_SELF_SERVE_ADS="web_self_serve_ads",ik.ARCADIA="arcadia",ik.SNAP_523="snap_523",ik.ORIGINALS="originals",ik.LEO_WEB="leo_web",ik.DWEB="dweb",ik.SCN_CONTENT_MANAGER="scn_content_manager",ik.ADVERTISER_360="advertiser_360",ik.CAREERS="careers",ik.PRIVACY_INFRA="privacy_infra",ik.BLIZZARD="blizzard",ik.COOKIE_MODAL_COMPONENTS="cookie_modal_components",ik.CONTENT_TOOLS="content_tools",ik.WEB_ACCOUNTS="web_accounts",ik.MARKETING_WEB_PLATFORM="marketing_web_platform",ik.ARES_SDK="ares_sdk",ik.SNAP_ORCA="snap_orca",ik.SAFETY_REVIEW_TOOL="safety_review_tool",ik.REPORTING_SERVICE="reporting_service",ik.SCN_ADDLIVE="scn_addlive",ik.QUALITY="quality",ik.PARENTS="parents",ik.ENTERPRISE_MANAGER="enterprise_manager",ik.DIGITAL_ASSET_MANAGER="digital_asset_manager",ik.LENS_WEB_BUILDER="lens_web_builder",ik.SNAPCHAT_CAMERA_BROWSER_EXTENSION="snapchat_camera_browser_extension",ik.WEB_AR_PLAYER="web_ar_player",ik.WEB_COMMON="web_common",ik.HOSTED_LENSES="hosted_lenses",ik.AVALON="avalon",ik.ATTESTATION="attestation",ik.EXPERIENCE="experience",ik.AR_WEB="ar_web",ik.SNAP_LESS="snap-less",ik.SNAP_IAM_WEB="snap_iam_web",ik.MY_AI_ENTERPRISE="my_ai_enterprise",ik.BILLBOARD_SELF_SERVE="billboard_self_serve",ik.LENS_STUDIO_WEB="lens_studio_web",ik.WEB_PLATFORM="web_platform",ik.WEB_REPORTING="web_reporting",ik.SNAP_EDUCATORS="snap_educators",ik.CLOUD_CONSOLE="cloud_console",ik.SNAP_CI="snap_ci",ik.AB_CONSOLE="ab_console",ik.SHERLOCK="sherlock",ik.STINSON="stinson",ik.PLUS_SUBSCRIPTION_CMS="plus_subscription_cms",ik.BITMOJI_MAKER="bitmoji_maker",ik);function rG(e){return!!e&&(!!Object.values(rF).includes(e)||/^[a-z][a-z0-9]*(?:[_-][a-z0-9]+)*$/.test(e))}rB(rG,"isValidPartitionName");var rW=["mousedown","mousemove","keydown","scroll","touchstart"],rx=class{constructor(e){this.destroy=rB(()=>{rW.forEach(e=>{document.removeEventListener(e,this.onActivity,!0)})},"destroy"),this.onActivity=rB(()=>{this.lastActivityTimestamp=Date.now()},"onActivity"),this.registerListeners=rB(()=>{rW.forEach(e=>{document.addEventListener(e,this.onActivity,!0)})},"registerListeners"),this.getSecondsSinceLastActivity=rB(()=>Math.round((Date.now()-this.lastActivityTimestamp)/1e3),"getSecondsSinceLastActivity"),this.getIsActive=rB(()=>this.getSecondsSinceLastActivity()<this.inactiveThresholdInSecond,"getIsActive"),this.lastActivityTimestamp=Date.now(),this.inactiveThresholdInSecond=e,this.registerListeners()}static{rB(this,"ActivityDetector")}},rH=class extends rl{constructor(){super(...arguments),this.sendHeartBeatCounter=rB(e=>{if(!this.isInitialized)return;let t=rB(()=>{let t=this.activityDetector?.getIsActive()?"active":"inactive";this.increment({metricsName:"heart_beat",dimensions:{version:e,active:t}})},"sendHeartBeatEvent");t(),this.heartBeatId=setInterval(t,6e4)},"sendHeartBeatCounter")}static{rB(this,"Graphene")}initialize(e){if(this.isInitialized)throw Error("this instance has been initialized. Can't re-initialize it.");super.initialize(e);let{inactiveThresholdInSecond:t=60}=e;ro()&&(this.activityDetector=new rx(t),window.addEventListener("beforeunload",this.flush))}destroy(){super.destroy(),ro()&&window.removeEventListener("beforeunload",this.flush),this.activityDetector&&this.activityDetector.destroy()}};function rY(e){let t=e.trim();if(0===t.length)return"0";let i=/^([+-]?)(\d+)$/.exec(t);if(i){let e="-"===i[1]?"-":"",t=i[2].replace(/^0+(?=\d)/,"");return`${e}${t}`}let n=/^([+-]?)(\d+)\.\d+$/.exec(t);if(n){let e="-"===n[1]?"-":"",t=n[2].replace(/^0+(?=\d)/,"");return`${e}${t}`}}function rK(e){if("bigint"==typeof e)return e.toString();if("string"==typeof e){let t=rY(e);if(void 0!==t)return t;let i=Number(e);return Number.isFinite(i)?String(Math.trunc(i)):"0"}return Number.isFinite(e)?String(Math.trunc(e)):"0"}new rH,rB(rY,"normalizeDecimalString"),rB(rK,"normalizeInt64Value");var r$=class extends rp{static{rB(this,"WebMetricCollector")}constructor(e){if(super(),!e.partitionName&&!e.serviceName)throw Error("Partition name or service name is required!");const t=e.partitionName??e.serviceName??"";if(!rG(t))throw Error("Invalid partition name format! Partition name should be in lower_snake_case or kebab-case format.");this.partitionName=t,this.flavor=e.flavor,this.variant=e.variant,this.versionNumber=e.versionNumber,this.maxSizePerMetric=e.maxSizePerMetric||50,this.defaultDimensions=e.defaultDimensions}increment({metricsName:e,dimensions:t,value:i}){let n=rE({metricsName:e,dimensions:t}),a=this.metrics.counters[n];this.metrics.counters[n]=this.updateMetricObject({prevMetricObject:a,metricsName:e,dimensions:this._decorateDimensions(t),value:i,shouldAggregate:!0})}addHistogram({metricsName:e,dimensions:t,value:i}){let n=rE({metricsName:e,dimensions:t}),a=this.metrics.levels[n];this.metrics.levels[n]=this.updateMetricObject({prevMetricObject:a,metricsName:e,dimensions:this._decorateDimensions(t),value:i,shouldAggregate:!1})}addTimer({metricsName:e,dimensions:t,milliSec:i}){let n=rE({metricsName:e,dimensions:t}),a=this.metrics.timers[n];this.metrics.timers[n]=this.updateMetricObject({prevMetricObject:a,metricsName:e,dimensions:this._decorateDimensions(t),value:i,shouldAggregate:!1})}getPayload(){let e=this.convertToMetricFrame(this.metrics);return rh.encode(e).finish()}
2truncateInt64Values(e){e.counters.forEach(e=>{e.values=e.values.map(rK)}),e.timers.forEach(e=>{e.values=e.values.map(rK)}),e.levels.forEach(e=>{e.values=e.values.map(rK)})}updateMetricObject({prevMetricObject:e,metricsName:t,dimensions:i={},value:n,shouldAggregate:a=!1}){let o=e;if(o||(o=rP.fromPartial({partitionName:this.partitionName,metricName:t,customDimensions:i})),a){let e=n+(Number(o.values[0])||0);o.values=[String(e)]}else o.values.push(String(n));return o}convertToMetricFrame(e){let t=rh.create();if(t.clientOsType=o.OS_WEB,this.flavor||this.variant||this.versionNumber){let e=rb.create();this.flavor&&(e.flavor=this.flavor),this.variant&&(e.variant=this.variant),this.versionNumber&&(e.versionNumber=this.versionNumber),t.appVersion=e}return Object.keys(e.counters).forEach(i=>{let n=e.counters[i];t.counters.push(n)}),Object.keys(e.timers).forEach(i=>{let n=this.sampleMetricValues(e.timers[i]);t.timers.push(n)}),Object.keys(e.levels).forEach(i=>{let n=this.sampleMetricValues(e.levels[i]);t.levels.push(n)}),this.truncateInt64Values(t),t}sampleMetricValues(e){return e.values=rS(e.values,this.maxSizePerMetric),e}_decorateDimensions(e){return this.defaultDimensions?{...this.defaultDimensions,...e??{}}:e}},rz=rB(async e=>{let t=await rM(e),i=`${t}:${Date.now()}`;return rd()?btoa(i):rI(i)},"computeWebAttestation"),rq=class extends ru{static{rB(this,"WebAuthenticator")}async authRequest(e,t,i){switch(e){case"none":return i;case rc:{let e=await rz(t);return{...i,"X-Snapchat-Web-Client-Auth":e}}default:throw Error(`Unsupported auth type: ${e}`)}}},rZ=rB(e=>({protocol:"https:",host:"gcp.api.snapchat.com",path:"/web/metrics",headers:{"Content-Type":"application/x-protobuf"},authType:rc,authenticator:new rq,collector:new r$(e)}),"getWebConfig"),rj=e.i(629873),rX=e.i(468212);function rQ(){return{events:[],sequentialItems:[]}}(ib=r||(r={}))[ib.APP_APPLICATION_OPEN=0]="APP_APPLICATION_OPEN",ib[ib.APP_APPLICATION_CLOSE=1]="APP_APPLICATION_CLOSE",ib[ib.UNRECOGNIZED=-1]="UNRECOGNIZED",(ig=d||(d={}))[ig.EN=0]="EN",ig[ig.EN_US=1]="EN_US",ig[ig.UNRECOGNIZED=-1]="UNRECOGNIZED",(iN=s||(s={}))[iN.UNKNOWN=0]="UNKNOWN",iN[iN.UNRECOGNIZED=-1]="UNRECOGNIZED",(iR=l||(l={}))[iR.OPERATING_SYSTEM_ANDROID=0]="OPERATING_SYSTEM_ANDROID",iR[iR.IOS=1]="IOS",iR[iR.OPERATING_SYSTEM_OTHER=2]="OPERATING_SYSTEM_OTHER",iR[iR.OPERATING_SYSTEM_WINDOWS=3]="OPERATING_SYSTEM_WINDOWS",iR[iR.OPERATING_SYSTEM_OSX=4]="OPERATING_SYSTEM_OSX",iR[iR.OPERATING_SYSTEM_CHROMIUM_OS=5]="OPERATING_SYSTEM_CHROMIUM_OS",iR[iR.OPERATING_SYSTEM_SNAPOS=6]="OPERATING_SYSTEM_SNAPOS",iR[iR.UNRECOGNIZED=-1]="UNRECOGNIZED",(iP=c||(c={}))[iP.MUSHROOM=0]="MUSHROOM",iP[iP.OG=1]="OG",iP[iP.HMS=2]="HMS",iP[iP.LOCKSCREEN=3]="LOCKSCREEN",iP[iP.CONSUMER_WEB=4]="CONSUMER_WEB",iP[iP.DESKTOP_WEB=5]="DESKTOP_WEB",iP[iP.UNRECOGNIZED=-1]="UNRECOGNIZED",(iO=u||(u={}))[iO.UNKNOWN_CONNECTIVITY_TYPE=0]="UNKNOWN_CONNECTIVITY_TYPE",iO[iO.WIFI=1]="WIFI",iO[iO.MOBILE=2]="MOBILE",iO[iO.UNREACHABLE=3]="UNREACHABLE",iO[iO.BLUETOOTH=4]="BLUETOOTH",iO[iO.CONNECTIVITY_TYPE_ETHERNET=5]="CONNECTIVITY_TYPE_ETHERNET",iO[iO.UNRECOGNIZED=-1]="UNRECOGNIZED",(iC=p||(p={}))[iC.UNKNOWN_PAGE_TAB_TYPE=0]="UNKNOWN_PAGE_TAB_TYPE",iC[iC.MAPS=1]="MAPS",iC[iC.CHAT=2]="CHAT",iC[iC.CAMERA=3]="CAMERA",iC[iC.DISCOVER=4]="DISCOVER",iC[iC.SPOTLIGHT=5]="SPOTLIGHT",iC[iC.UNRECOGNIZED=-1]="UNRECOGNIZED",(iy=f||(f={}))[iy.BLIZZARD_EVENT_SOURCE_PLATFORM=0]="BLIZZARD_EVENT_SOURCE_PLATFORM",iy[iy.BLIZZARD_EVENT_SOURCE_NATIVE=1]="BLIZZARD_EVENT_SOURCE_NATIVE",iy[iy.BLIZZARD_EVENT_SOURCE_COMPOSER=2]="BLIZZARD_EVENT_SOURCE_COMPOSER",iy[iy.BLIZZARD_EVENT_SOURCE_IOS_EXTENSION=3]="BLIZZARD_EVENT_SOURCE_IOS_EXTENSION",iy[iy.BLIZZARD_EVENT_SOURCE_COMPOSER_MAP=4]="BLIZZARD_EVENT_SOURCE_COMPOSER_MAP",iy[iy.UNRECOGNIZED=-1]="UNRECOGNIZED",(ih=T||(T={}))[ih.APP_TYPE_UNKNOWN=0]="APP_TYPE_UNKNOWN",ih[ih.APP_TYPE_WEB_DESKTOP=1]="APP_TYPE_WEB_DESKTOP",ih[ih.APP_TYPE_WEB_MOBILE=2]="APP_TYPE_WEB_MOBILE",ih[ih.APP_TYPE_IOS_WATCH_APP=3]="APP_TYPE_IOS_WATCH_APP",ih[ih.UNRECOGNIZED=-1]="UNRECOGNIZED",(iL=m||(m={}))[iL.APP_UI_UNKNOWN=0]="APP_UI_UNKNOWN",iL[iL.APP_UI_5_TAB=1]="APP_UI_5_TAB",iL[iL.APP_UI_3_TAB=2]="APP_UI_3_TAB",iL[iL.APP_UI_TAB_SWAP=3]="APP_UI_TAB_SWAP",iL[iL.UNRECOGNIZED=-1]="UNRECOGNIZED";let rJ={encode(e,t=rA.default.Writer.create()){for(let i of e.events)r1.encode(i,t.uint32(10).fork()).ldelim();for(let i of e.sequentialItems)r2.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=rQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.events.push(r1.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.sequentialItems.push(r2.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>rJ.fromPartial(e??{}),fromPartial(e){let t=rQ();return t.events=e.events?.map(e=>r1.fromPartial(e))||[],t.sequentialItems=e.sequentialItems?.map(e=>r2.fromPartial(e))||[],t}};function r0(){return{item:void 0}}let r2={encode(e,t=rA.default.Writer.create()){switch(e.item?.$case){case"frameStart":r8.encode(e.item.frameStart,t.uint32(10).fork()).ldelim();break;case"event":r7.encode(e.item.event,t.uint32(18).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=r0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.item={$case:"frameStart",frameStart:r8.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.item={$case:"event",event:r7.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>r2.fromPartial(e??{}),fromPartial(e){let t=r0();return e.item?.$case==="frameStart"&&e.item?.frameStart!==void 0&&e.item?.frameStart!==null&&(t.item={$case:"frameStart",frameStart:r8.fromPartial(e.item.frameStart)}),e.item?.$case==="event"&&e.item?.event!==void 0&&e.item?.event!==null&&(t.item={$case:"event",event:r7.fromPartial(e.item.event)}),t}};function r3(){return{startFrame:void 0,events:[],endFrame:void 0}}let r1={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.startFrame&&r8.encode(e.startFrame,t.uint32(10).fork()).ldelim(),e.events))r7.encode(i,t.uint32(18).fork()).ldelim();return void 0!==e.endFrame&&r9.encode(e.endFrame,t.uint32(26).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=r3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.startFrame=r8.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.events.push(r7.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.endFrame=r9.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>r1.fromPartial(e??{}),fromPartial(e){let t=r3();return t.startFrame=void 0!==e.startFrame&&null!==e.startFrame?r8.fromPartial(e.startFrame):void 0,t.events=e.events?.map(e=>r7.fromPartial(e))||[],t.endFrame=void 0!==e.endFrame&&null!==e.endFrame?r9.fromPartial(e.endFrame):void 0,t}};function r4(){return{sessionId:new Uint8Array(0),clientReferenceTs:"0",telemetrySessionId:new Uint8Array(0),appVersion:0,osVersion:0,locale:0,osType:0,deviceModel:0,appVariant:0,userId:"",clientId:new Uint8Array(0),priority:0,localeFallback:"",osMinorVersion:0,sequenceIdStart:0,connectionDownloadBandwidthKbytesPerSecond:0,deviceModelFallback:"",userAgent:ne
2w Uint8Array(0),appBuildFallback:new Uint8Array(0),osMinorVersionFallback:new Uint8Array(0),appDataSaverMode:!1,appStartupTypeFallback:new Uint8Array(0),userGuid:new Uint8Array(0),logQueueName:new Uint8Array(0),appVersionString:"",osVersionString:"",blizzardSchemaVersion:"",appMultiWindowMode:!1,appType:0,browser:"",browserVersion:"",domain:"",referrer:"",blizzardWebSessionId:"",appUi:0,deviceMemoryMb:0,isLowMemoryDevice:!1,snapDeviceId:""}}let r8={encode:(e,t=rA.default.Writer.create())=>(0!==e.sessionId.length&&t.uint32(10).bytes(e.sessionId),"0"!==e.clientReferenceTs&&t.uint32(16).int64(e.clientReferenceTs),0!==e.telemetrySessionId.length&&t.uint32(98).bytes(e.telemetrySessionId),0!==e.appVersion&&t.uint32(29).fixed32(e.appVersion),0!==e.osVersion&&t.uint32(37).fixed32(e.osVersion),0!==e.locale&&t.uint32(40).int32(e.locale),0!==e.osType&&t.uint32(48).int32(e.osType),0!==e.deviceModel&&t.uint32(56).int32(e.deviceModel),0!==e.appVariant&&t.uint32(64).int32(e.appVariant),""!==e.userId&&t.uint32(74).string(e.userId),0!==e.clientId.length&&t.uint32(90).bytes(e.clientId),0!==e.priority&&t.uint32(104).int32(e.priority),""!==e.localeFallback&&t.uint32(290).string(e.localeFallback),0!==e.osMinorVersion&&t.uint32(256).int32(e.osMinorVersion),0!==e.sequenceIdStart&&t.uint32(248).int32(e.sequenceIdStart),0!==e.connectionDownloadBandwidthKbytesPerSecond&&t.uint32(272).int32(e.connectionDownloadBandwidthKbytesPerSecond),""!==e.deviceModelFallback&&t.uint32(282).string(e.deviceModelFallback),0!==e.userAgent.length&&t.uint32(306).bytes(e.userAgent),0!==e.appBuildFallback.length&&t.uint32(314).bytes(e.appBuildFallback),0!==e.osMinorVersionFallback.length&&t.uint32(322).bytes(e.osMinorVersionFallback),!1!==e.appDataSaverMode&&t.uint32(328).bool(e.appDataSaverMode),0!==e.appStartupTypeFallback.length&&t.uint32(338).bytes(e.appStartupTypeFallback),0!==e.userGuid.length&&t.uint32(346).bytes(e.userGuid),0!==e.logQueueName.length&&t.uint32(354).bytes(e.logQueueName),""!==e.appVersionString&&t.uint32(362).string(e.appVersionString),""!==e.osVersionString&&t.uint32(370).string(e.osVersionString),""!==e.blizzardSchemaVersion&&t.uint32(378).string(e.blizzardSchemaVersion),!1!==e.appMultiWindowMode&&t.uint32(384).bool(e.appMultiWindowMode),0!==e.appType&&t.uint32(392).int32(e.appType),""!==e.browser&&t.uint32(402).string(e.browser),""!==e.browserVersion&&t.uint32(410).string(e.browserVersion),""!==e.domain&&t.uint32(418).string(e.domain),""!==e.referrer&&t.uint32(426).string(e.referrer),""!==e.blizzardWebSessionId&&t.uint32(434).string(e.blizzardWebSessionId),0!==e.appUi&&t.uint32(440).int32(e.appUi),0!==e.deviceMemoryMb&&t.uint32(448).int32(e.deviceMemoryMb),!1!==e.isLowMemoryDevice&&t.uint32(456).bool(e.isLowMemoryDevice),""!==e.snapDeviceId&&t.uint32(466).string(e.snapDeviceId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=r4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.sessionId=i.bytes();continue;case 2:if(16!==e)break;a.clientReferenceTs=de(i.int64());continue;case 12:if(98!==e)break;a.telemetrySessionId=i.bytes();continue;case 3:if(29!==e)break;a.appVersion=i.fixed32();continue;case 4:if(37!==e)break;a.osVersion=i.fixed32();continue;case 5:if(40!==e)break;a.locale=i.int32();continue;case 6:if(48!==e)break;a.osType=i.int32();continue;case 7:if(56!==e)break;a.deviceModel=i.int32();continue;case 8:if(64!==e)break;a.appVariant=i.int32();continue;case 9:if(74!==e)break;a.userId=i.string();continue;case 11:if(90!==e)break;a.clientId=i.bytes();continue;case 13:if(104!==e)break;a.priority=i.int32();continue;case 36:if(290!==e)break;a.localeFallback=i.string();continue;case 32:if(256!==e)break;a.osMinorVersion=i.int32();continue;case 31:if(248!==e)break;a.sequenceIdStart=i.int32();continue;case 34:if(272!==e)break;a.connectionDownloadBandwidthKbytesPerSecond=i.int32();continue;case 35:if(282!==e)break;a.deviceModelFallback=i.string();continue;case 38:if(306!==e)break;a.userAgent=i.bytes();continue;case 39:if(314!==e)break;a.appBuildFallback=i.bytes();continue;case 40:if(322!==e)break;a.osMinorVersionFallback=i.bytes();continue;case 41:if(328!==e)break;a.appDataSaverMode=i.bool();continue;case 42:if(338!==e)break;a.appStartupTypeFallback=i.bytes();continue;case 43:if(346!==e)break;a.userGuid=i.bytes();continue;case 44:if(354!==e)break;a.logQueueName=i.bytes();continue;case 45:if(362!==e)break;a.appVersionString=i.string();continue;case 46:if(370!==e)break;a.osVersionString=i.string();continue;case 47:if(378!==e)break;a.blizzardSchemaVersion=i.string();continue;case 48:if(384!==e)break;a.appMultiWindowMode=i.bool();continue;case 49:if(392!==e)break;a.appType=i.int32();continue;case 50:if(402!==e)break;a.browser=i.string();continue;case 51:if(410!==e)break;a.browserVersion=i.string();continue;case 52:if(418!==e)break;a.domain=i.string();continue;case 53:if(426!==e)break;a.referrer=i.string();continue;case 54:if(434!==e)break;a.blizzardWebSessionId=i.string();continue;case 55:if(440!==e)break;a.appUi=i.int32();continue;case 56:if(448!==e)break;a.deviceMemoryMb=i.int32();continue;case 57:if(456!==e)break;a.isLowMemoryDevice=i.bool();continue;case 58:if(466!==e)break;a.snapDeviceId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>r8.fromPartial(e??{}),fromPartial(e){let t=r4();return t.sessionId=e.sessionId??new Uint8Array(0),t.clientReferenceTs=e.clientReferenceTs??"0",t.telemetrySessionId=e.telemetrySessionId??new Uint8Array(0),t.appVersion=e.appVersion??0,t.osVersion=e.osVersion??0,t.locale=e.locale??0,t.osType=e.osType??0,t.deviceModel=e.deviceModel??0,t.appVariant=e.appVariant??0,t.userId=e.userId??"",t.clientId=e.clientId??new Uint8Array(0),t.priority=e.priority??0,t.localeFallback=e.localeFallback??"",t.osMinorVersion=e.osMinorVersion??0,t.sequenceIdStart=e.sequenceIdStart??0,t.connectionDownloadBandwidthKbytesPerSecond=e.connectionDownloadBandwidthKbytesPerSecond??0,t.deviceModelFallback=e.deviceModelFallback??"",t.userAgent=e.userAgent??new Uint8Array(0),t.appBuildFallback=e.appBuildFallback??new Uint8Array(0),t.osMinorVersionFallback=e.osMinorVersionFallback??new Uint8Array(0),t.appDataSaverMode=e.appDataSaverMode??!1,t.appStartupTypeFallback=e.appStartupTypeFallback??new Uint8Array(0),t.userGuid=e.userGuid??new Uint8Array(0),t.logQueueName=e.logQueueName??new Uint8Array(0),t.appVersionString=e.appVersionString??"",t.osVersionString=e.osVersionString??"",t.blizzardSchemaVersion=e.blizzardSchemaVersion??"",t.appMultiWindowMode=e.appMultiWindowMode??!1,t.appType=e.appType??0,t.browser=e.browser??"",t.browserVersion=e.browserVersion??"",t.domain=e.domain??"",t.referrer=e.referrer??"",t.blizzardWebSessionId=e.blizzardWebSessionId??"",t.appUi=e.appUi??0,t.deviceMemoryMb=e.deviceMemoryMb??0,t.isLowMemoryDevice=e.isLowMemoryDevice??!1,t.snapDeviceId=e.snapDeviceId??"",t}};function r6(){return{eventName:"0",offsetTsStart:0,sequenceNumber:0,payloadIdentifier:0,payloadBytes:new Uint8Array(0),payloadProto:new Uint8Array(0),payloadJson:new Uint8Array(0),deviceConnectivity:0,connectionDownloadBandwidthBps:"0",eventSamplingRate:0,userSamplingRate:0,pageViewId:"0",pageTabType:0,isInCall:!1,blizzardEventSource:0}}let r7={encode:(e,t=rA.default.Writer.create())=>("0"!==e.eventName&&t.uint32(8).int64(e.eventName),0!==e.offsetTsStart&&t.uint32(16).int32(e.offsetTsStart),0!==e.sequenceNumber&&t.uint32(48).int32(e.sequenceNumber),0!==e.payloadIdentifier&&t.uint32(32).int32(e.payloadIdentifier),0!==e.payloadBytes.length&&t.uint32(42).bytes(e.payloadBytes),0!==e.payloadProto.length&&t.uint32(90).bytes(e.payloadProto),0!==e.payloadJson.length&&t.uint32(98).bytes(e.payloadJson),0!==e.deviceConnectivity&&t.uint32(64).int32(e.deviceConnectivity),"0"!==e.connectionDownloadBandwidthBps&&t.uint32(72).int64(e.connectionDownloadBandwidthBps),0!==e.eventSamplingRate&&t.uint32(105).double(e.eventSamplingRate),0!==e.userSamplingRate&&t.uint32(113).double(e.userSamplingRate),"0"!==e.pageViewId&&t.uint32(120).int64(e.pageViewId),0!==e.pageTabType&&t.uint32(136).int32(e.pageTabType),!1!==e.isInCall&&t.uint32(128).bool(e.isInCall),0!==e.blizzardEventSource&&t.uint32(144).int32(e.blizzardEventSource),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=r6();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.eventName=de(i.int64());continue;case 2:if(16!==e)break;a.offsetTsStart=i.int32();continue;case 6:if(48!==e)break;a.sequenceNumber=i.int32();continue;case 4:if(32!==e)break;a.payloadIdentifier=i.int32();continue;case 5:if(42!==e)break;a.payloadBytes=i.bytes();continue;case 11:if(90!==e)break;a.payloadProto=i.bytes();continue;case 12:if(98!==e)break;a.payloadJson=i.bytes();continue;case 8:if(64!==e)break;a.deviceConnectivity=i.int32();continue;case 9:if(72!==e)break;a.connectionDownloadBandwidthBps=de(i.int64());continue;case 13:if(105!==e)break;a.eventSamplingRate=i.double();continue;case 14:if(113!==e)break;a.userSamplingRate=i.double();continue;case 15:if(120!==e)break;a.pageViewId=de(i.int64());continue;case 17:if(136!==e)break;a.pageTabType=i.int32();continue;case 16:if(128!==e)break;a.isInCall=i.bool();continue;case 18:if(144!==e)break;a.blizzardEventSource=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>r7.fromPartial(e??{}),fromPartial(e){let t=r6();return t.eventName=e.eventName??"0",t.offsetTsStart=e.offsetTsStart??0,t.sequenceNumber=e.sequenceNumber??0,t.payloadIdentifier=e.payloadIdentifier??0,t.payloadBytes=e.payloadBytes??new Uint8Array(0),t.payloadProto=e.payloadProto??new Uint8Array(0),t.payloadJson=e.payloadJson??new Uint8Array(0),t.deviceConnectivity=e.deviceConnectivity??0,t.connectionDownloadBandwidthBps=e.connectionDownloadBandwidthBps??"0",t.eventSamplingRate=e.eventSamplingRate??0,t.userSamplingRate=e.userSamplingRate??0,t.pageViewId=e.pageViewId??"0",t.pageTabType=e.pageTabType??0,t.isInCall=e.isInCall??!1,t.blizzardEventSource=e.blizzardEventSource??0,t}};function r5(){return{lastSequenceNumber:0}}let r9={encode:(e,t=rA.default.Writer.create())=>(0!==e.lastSequenceNumber&&t.uint32(8).int32(e.lastSequenceNumber),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=r5();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.lastSequenceNumber=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>r9.fromPartial(e??{}),fromPartial(e){let t=r5();return t.lastSequenceNumber=e.lastSequenceNumber??0,t}};function de(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());var dt=e.i(898892),di=e.i(357705),dn="user-agent",da="function",dr="object",dd="string",ds="undefined",dl="browser",dc="device",du="engine",dp="result",df="name",dT="type",dm="vendor",dE="version",d_="architecture",dS="major",dI="model",dv="console",dA="mobile",dk="tablet",db="smarttv",dg="wearable",dN="embedded",dR="inapp",dP="brands",dO="formFactors",dC="fullVersionList",dy="platform",dh="platformVersion",dL="bitness",dD="sec-ch-ua",dw=dD+"-full-version-list",dM=dD+"-arch",dU=dD+"-"+dL,dV=dD+"-form-factors",dB=dD+"-"+dA,dF=dD+"-"+dI,dG=dD+"-"+dy,dW=dG+"-version",dx=[dP,dC,dA,dI,dy,dh,d_,dO,dL],dH="Amazon",dY="Apple",dK="ASUS",d$="BlackBerry",dz="Google",dq="Huawei",dZ="Lenovo",dj="Honor",dX="Microsoft",dQ="Motorola",dJ="Nvidia",d0="OnePlus",d2="OPPO",d3="Samsung",d1="Sharp",d4="Sony",d8="Xiaomi",d6="Zebra",d7="Chrome",d5="Chromium",d9="Chromecast",se="Edge",st="Firefox",si="Opera",sn="Facebook",sa="Sogou",so="Mobile ",sr=" Browser",sd="Windows",ss=typeof window!==ds&&window.navigator?window.navigator:void 0,sl=ss&&ss.userAgentData?ss.userAgentData:void 0,sc=function(e,t){var i={},n=t;if(!sf(t))for(var a in n={},t)for(var o in t[a])n[o]=t[a][o].concat(n[o]?n[o]:[]);for(var r in e)i[r]=n[r]&&n[r].length%2==0?n[r].concat(e[r]):e[r];return i},su=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},sp=function(e,t){if(typeof e===dr&&e.length>0){for(var i in e)if(sE(t)==sE(e[i]))return!0;return!1}return!!sT(e)&&sE(t)==sE(e)},sf=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||!!t&&sf(e[i])},sT=function(e){return typeof e===dd},sm=function(e){if(e){for(var t=[],i=sI(/\\?\"/g,e).split(","),n=0;n<i.length;n++)if(i[n].indexOf(";")>-1){var a=sA(i[n]).split(";v=");t[n]={brand:a[0],version:a[1]}}else t[n]=sA(i[n]);return t}},sE=function(e){return sT(e)?e.toLowerCase():e},s_=function(e){return sT(e)?sI(/[^\d\.]/g,e).split(".")[0]:void 0},sS=function(e){for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];typeof i==dr&&2==i.length?this[i[0]]=i[1]:this[i]=void 0}return this},sI=function(e,t){return sT(t)?t.replace(e,""):t},sv=function(e){return sI(/\\?\"/g,e)},sA=function(e,t){return e=sI(/^\s\s*/,String(e)),typeof t===ds?e:e.substring(0,t)},sk=function(e,t){if(e&&t)for(var i,n,a,o,r,d,s=0;s<t.length&&!r;){var l=t[s],c=t[s+1];for(i=n=0;i<l.length&&!r&&l[i];)if(r=l[i++].exec(e))for(a=0;a<c.length;a++)d=r[++n],typeof(o=c[a])===dr&&o.length>0?2===o.length?typeof o[1]==da?this[o[0]]=o[1].call(this,d):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]!==da||o[1].exec&&o[1].test?3==o.length?this[o[0]]=d?d.replace(o[
21],o[2]):void 0:4==o.length?this[o[0]]=d?o[3].call(this,d.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=d?o[3].apply(this,[d.replace(o[1],o[2])].concat(o.slice(4))):void 0):o.length>3?this[o[0]]=d?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=d?o[1].call(this,d,o[2]):void 0):this[o]=d||void 0;s+=2}},sb=function(e,t){for(var i in t)if(typeof t[i]===dr&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(sp(t[i][n],e))return"?"===i?void 0:i}else if(sp(t[i],e))return"?"===i?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},sg={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},sN={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},sR={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},sP={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[dE,[df,so+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[dE,[df,se+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[dE,[df,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[df,dE],[/opios[\/ ]+([\w\.]+)/i],[dE,[df,si+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[dE,[df,si+" GX"]],[/\bopr\/([\w\.]+)/i],[dE,[df,si]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[dE,[df,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[dE,[df,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[df,dE],[/quark(?:pc)?\/([-\w\.]+)/i],[dE,[df,"Quark"]],[/\bddg\/([\w\.]+)/i],[dE,[df,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[dE,[df,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[dE,[df,"WeChat"]],[/konqueror\/([\w\.]+)/i],[dE,[df,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[dE,[df,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[dE,[df,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[dE,[df,"Smart "+dZ+sr]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[df,/(.+)/,"$1 Secure"+sr],dE
vendor: 4,157 bytes, line 2
2],[/norton\/([\w\.]+)/i],[dE,[df,"Norton Private"+sr]],[/\bfocus\/([\w\.]+)/i],[dE,[df,st+" Focus"]],[/ mms\/([\w\.]+)$/i],[dE,[df,si+" Neon"]],[/ opt\/([\w\.]+)$/i],[dE,[df,si+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[dE,[df,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[dE,[df,"Dolphin"]],[/coast\/([\w\.]+)/i],[dE,[df,si+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[dE,[df,"MIUI"+sr]],[/fxios\/([\w\.-]+)/i],[dE,[df,so+st]],[/\bqihoobrowser\/?([\w\.]*)/i],[dE,[df,"360"]],[/\b(qq)\/([\w\.]+)/i],[[df,/(.+)/,"$1Browser"],dE],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[df,/(.+)/,"$1"+sr],dE],[/samsungbrowser\/([\w\.]+)/i],[dE,[df,d3+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[dE,[df,sa+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[df,sa+" Mobile"],dE],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[df,dE],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[df],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[dE,df],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[df,sn],dE,[dT,dR]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[df,dE,[dT,dR]],[/\bgsa\/([\w\.]+) .*safari\//i],[dE,[df,"GSA"],[dT,dR]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[dE,[df,"TikTok"],[dT,dR]],[/\[(linkedin)app\]/i],[df,[dT,dR]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[df,/(.+)/,"Zalo"],dE,[dT,dR]],[/(chromium)[\/ ]([-\w\.]+)/i],[df,dE],[/ome-(lighthouse)$/i],[df,[dT,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[dE,[df,d7+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[dE,[df,se+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[df,d7+" WebView"],dE],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[dE,[df,"Android"+sr]],[/chrome\/([\w\.]+) mobile/i],[dE,[df,so+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[df,dE],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[dE,[df,so+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[df,so+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[dE,df],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[df,[dE,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[df,dE],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[df,so+st],dE],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[df,"Netscape"],dE],[/(wolvic|librewolf)\/([\w\.]+)/i],[df,dE],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[dE,[df,st+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[df,[dE,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[df,[dE,/[^\d\.]+./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[d_,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[d_,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[d_,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[d_,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[d_,"arm"]],[/ sun4\w[;\)]/i],[[d_,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[d_,/ower/,"",sE]],[/mc680.0/i],[[d_,"68k"]],[/winnt.+\[axp/i],[[d_,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[dI,[dm,d3],[dT,dk]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[dI,[dm,d3],[dT,dA]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[dI,[dm,dY],[dT,dA]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;
2\] ].+(mac |i(pad)?)os/i],[dI,[dm,dY],[dT,dk]],[/(macintosh);/i],[dI,[dm,dY]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[dI,[dm,d1],[dT,dA]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[dI,[dm,dj],[dT,dk]],[/honor([-\w ]+)[;\)]/i],[dI,[dm,dj],[dT,dA]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[dI,[dm,dq],[dT,dk]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[dI,[dm,dq],[dT,dA]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[dI,/_/g," "],[dm,d8],[dT,dk]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[dI,/_/g," "],[dm,d8],[dT,dA]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[dI,[dm,d0],[dT,dA]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[dI,[dm,d2],[dT,dA]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[dI,[dm,sb,{OnePlus:["203","304","403","404","413","415"],"*":d2}],[dT,dk]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[dI,[dm,"BLU"],[dT,dA]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[dI,[dm,"Vivo"],[dT,dA]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[dI,[dm,"Realme"],[dT,dA]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[dI,[dm,dZ],[dT,dk]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[dI,[dm,dZ],[dT,dA]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[dI,[dm,dQ],[dT,dA]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[dI,[dm,dQ],[dT,dk]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[dI,[dm,"LG"],[dT,dk]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[dI,[dm,"LG"],[dT,dA]],[/(nokia) (t[12][01])/i],[dm,dI,[dT,dk]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[dI,/_/g," "],[dT,dA],[dm,"Nokia"]],[/(pixel (c|tablet))\b/i],[dI,[dm,dz],[dT,dk]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[dI,[dm,dz],[dT,dA]],[/(google) (pixelbook( go)?)/i],[dm,dI],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[dI,[dm,d4],[dT,dA]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[dI,"Xperia Tablet"],[dm,d4],[dT,dk]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[dI,[dm,dH],[dT,dk]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[dI,/(.+)/g,"Fire Phone $1"],[dm,dH],[dT,dA]],[/(playbook);[-\w\),; ]+(rim)/i],[dI,dm,[dT,dk]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[dI,[dm,d$],[dT,dA]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[dI,[dm,dK],[dT,dk]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[dI,[dm,dK],[dT,dA]],[/(nexus 9)/i],[dI,[dm,"HTC"],[dT,dk]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[dm,[dI,/_/g," "],[dT,dA]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w)
vendor: 5,404 bytes, line 2
2)?(\)| bui)/i],[dI,[dm,"TCL"],[dT,dk]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[dI,[dm,"TCL"],[dT,dA]],[/(itel) ((\w+))/i],[[dm,sE],dI,[dT,sb,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[dI,[dm,"Acer"],[dT,dk]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[dI,[dm,"Meizu"],[dT,dA]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[dI,[dm,"Ulefone"],[dT,dA]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[dI,[dm,"Energizer"],[dT,dA]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[dI,[dm,"Cat"],[dT,dA]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[dI,[dm,"Smartfren"],[dT,dA]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[dI,[dm,"Nothing"],[dT,dA]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[dI,[dm,"Archos"],[dT,dk]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[dI,[dm,"Archos"],[dT,dA]],[/; (n159v)/i],[dI,[dm,"HMD"],[dT,dA]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[dm,dI,[dT,dk]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[dm,dI,[dT,dA]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[dm,dI,[dT,dk]],[/(surface duo)/i],[dI,[dm,dX],[dT,dk]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[dI,[dm,"Fairphone"],[dT,dA]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[dI,[dm,dJ],[dT,dk]],[/(sprint) (\w+)/i],[dm,dI,[dT,dA]],[/(kin\.[onetw]{3})/i],[[dI,/\./g," "],[dm,dX],[dT,dA]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[dI,[dm,d6],[dT,dk]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[dI,[dm,d6],[dT,dA]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[dm,[dT,db]],[/hbbtv.+maple;(\d+)/i],[[dI,/^/,"SmartTV"],[dm,d3],[dT,db]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[dm,dI,[dT,db]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[dm,"LG"],[dT,db]],[/(apple) ?tv/i],[dm,[dI,dY+" TV"],[dT,db]],[/crkey.*devicetype\/chromecast/i],[[dI,d9+" Third Generation"],[dm,dz],[dT,db]],[/crkey.*devicetype\/([^/]*)/i],[[dI,/^/,"Chromecast "],[dm,dz],[dT,db]],[/fuchsia.*crkey/i],[[dI,d9+" Nest Hub"],[dm,dz],[dT,db]],[/crkey/i],[[dI,d9],[dm,dz],[dT,db]],[/(portaltv)/i],[dI,[dm,sn],[dT,db]],[/droid.+aft(\w+)( bui|\))/i],[dI,[dm,dH],[dT,db]],[/(shield \w+ tv)/i],[dI,[dm,dJ],[dT,db]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[dI,[dm,d1],[dT,db]],[/(bravia[\w ]+)( bui|\))/i],[dI,[dm,d4],[dT,db]],[/(mi(tv|box)-?\w+) bui/i],[dI,[dm,d8],[dT,db]],[/Hbbtv.*(technisat) (.*);/i],[dm,dI,[dT,db]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[dm,/.+\/(\w+)/,"$1",sb,{LG:"lge"}],[dI,sA],[dT,db]],[/(playstation \w+)/i],[dI,[dm,d4],[dT,dv]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[dI,[dm,dX],[dT,dv]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[dm,sb,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],dI,[dT,dv]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[dI,[dm,d3],[dT,dg]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[dm,dI,[dT,dg]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[dI,[dm,d2],[dT,dg]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[dI,[dm,dY],[dT,dg]],[/(opwwe\d{3})/i],[dI,[dm,d0],[dT,dg]],[/(moto 360)/i],[dI,[dm,dQ],[dT,dg]],[/(smartwatch 3)/i],[dI,[dm,d4],[dT,dg]],[/(g watch r)/i],[dI,[dm,"LG"],[dT,dg]],[/droid.+; (wt63?0{2,3})\)/i],[dI,[dm,d6],[dT,dg]],[/droid.+; (glass) \d/i],[dI,[dm,dz],[dT,"xr"]],[/(pico) ([\w ]+) os\d/i],[dm,dI,[dT,"xr"]],[/(quest( \d| pro)?s?).+vr/i],[dI,[dm,sn],[dT,"xr"]],[/mobile vr; rv.+firefox/i],[[dT,"xr"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[dm,[dT,dN]],[/(aeobc)\b/i],[dI,[dm,dH],[dT,dN]],[/(homepod).+mac os/i],[dI,[dm,dY],[dT,dN]],[/windows iot/i],[[dT,dN]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[dI,[dT,db]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[dT,db]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[dI,[dT,sb,{mobile:"Mobile",xr:"VR","*":dk}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[dT,dk]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[dT,dA]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[dI,[dm,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[dE,[df,se+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[df,dE],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[dE,[df,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[df,dE],[/ladybird\//i],[[df,"LibWeb"]],[/rv\
2:([\w\.]{1,9})\b.+(gecko)/i],[dE,df]],os:[[/(windows nt) (6\.[23]); arm/i],[[df,/N/,"R"],[dE,sb,sg]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[df,dE],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[dE,/(;|\))/g,"",sb,sg],[df,sd]],[/(windows ce)\/?([\d\.]*)/i],[df,dE],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[dE,/_/g,"."],[df,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[df,"macOS"],[dE,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[dE,[df,d9+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[dE,[df,d9+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[dE,[df,d9+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[dE,[df,d9+" Linux"]],[/crkey\/([\d\.]+)/i],[dE,[df,d9]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[dE,df],[/(ubuntu) ([\w\.]+) like android/i],[[df,/(.+)/,"$1 Touch"],dE],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[df,dE],[/\(bb(10);/i],[dE,[df,d$]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[dE,[df,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[dE,[df,st+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[dE,[df,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[dE,sb,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[df,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[dE,[df,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[dE,[df,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[dE,[df,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[df,dE],[/(sunos) ?([\d\.]*)/i],[[df,"Solaris"],dE],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[df,dE]]},sO=(iD={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},sS.call(iD.init,[[dl,[df,dE,dS,dT]],["cpu",[d_]],[dc,[dT,dI,dm]],[du,[df,dE]],["os",[df,dE]]]),sS.call(iD.isIgnore,[[dl,[dE,dS]],[du,[dE]],["os",[dE]]]),sS.call(iD.isIgnoreRgx,[[dl,/ ?browser$/i],["os",/ ?os$/i]]),sS.call(iD.toString,[[dl,[df,dE]],["cpu",[d_]],[dc,[dm,dI]],[du,[df,dE]],["os",[df,dE]]]),iD),sC=function(e,t){var i=sO.init[t],n=sO.isIgnore[t]||0,a=sO.isIgnoreRgx[t]||0,o=sO.toString[t]||0;function r(){sS.call(this,i)}return r.prototype.getItem=function(){return e},r.prototype.withClientHints=function(){return sl?sl.getHighEntropyValues(dx).then(function(t){return e.setCH(new sy(t,!1)).parseCH().get()}):e.parseCH().get()},r.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=dp&&(r.prototype.is=function(e){var t=!1;for(var i in this)if(this.hasOwnProperty(i)&&!sp(n,i)&&sE(a?sI(a,this[i]):this[i])==sE(a?sI(a,e):e)){if(t=!0,e!=ds)break}else if(e==ds&&t){t=!t;break}return t},r.prototype.toString=function(){var e="";for(var t in o)typeof this[o[t]]!==ds&&(e+=(e?" ":"")+this[o[t]]);return e||ds}),r.prototype.then=function(e){var t=this,i=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};i.prototype={is:r.prototype.is,toString:r.prototype.toString,withClientHints:r.prototype.withClientHints,withFeatureCheck:r.prototype.withFeatureCheck};var n=new i;return e(n),n},new r};function sy(e,t){if(e=e||{},sS.call(this,dx),t)sS.call(this,[[dP,sm(e[dD])],[dC,sm(e[dw])],[dA,/\?1/.test(e[dB])],[dI,sv(e[dF])],[dy,sv(e[dG])],[dh,sv(e[dW])],[d_,sv(e[dM])],[dO,sm(e[dV])],[dL,sv(e[dU])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==ds&&(this[i]=e[i])}function sh(e,t,i,n){return sS.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",i],["data",sC(this,e)]]),this}function sL(e,t,i){if(typeof e===dr?(sf(e,!0)?(typeof t===dr&&(i=t),t=e):(i=e,t=void 0),e=void 0):typeof e!==dd||sf(t,!0)||(i=t,t=void 0),i)if(typeof i.append===da){var n={};
2i.forEach(function(e,t){n[String(t).toLowerCase()]=e}),i=n}else{var a={};for(var o in i)i.hasOwnProperty(o)&&(a[String(o).toLowerCase()]=i[o]);i=a}if(!(this instanceof sL))return new sL(e,t,i).getResult();var r=typeof e===dd?e:i&&i[dn]?i[dn]:ss&&ss.userAgent?ss.userAgent:"",d=new sy(i,!0),s=t?sc(sP,t):sP,l=function(e){return e==dp?function(){return new sh(e,r,s,d).set("ua",r).set(dl,this.getBrowser()).set("cpu",this.getCPU()).set(dc,this.getDevice()).set(du,this.getEngine()).set("os",this.getOS()).get()}:function(){return new sh(e,r,s[e],d).parseUA().get()}};return sS.call(this,[["getBrowser",l(dl)],["getCPU",l("cpu")],["getDevice",l(dc)],["getEngine",l(du)],["getOS",l("os")],["getResult",l(dp)],["getUA",function(){return r}],["setUA",function(e){return sT(e)&&(r=sA(e,500)),this}]]).setUA(r),this}sh.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},sh.prototype.set=function(e,t){return this.data[e]=t,this},sh.prototype.setCH=function(e){return this.uaCH=e,this},sh.prototype.detectFeature=function(){if(ss&&ss.userAgent==this.ua)switch(this.itemType){case dl:ss.brave&&typeof ss.brave.isBrave==da&&this.set(df,"Brave");break;case dc:!this.get(dT)&&sl&&sl[dA]&&this.set(dT,dA),"Macintosh"==this.get(dI)&&ss&&typeof ss.standalone!==ds&&ss.maxTouchPoints&&ss.maxTouchPoints>2&&this.set(dI,"iPad").set(dT,dk);break;case"os":!this.get(df)&&sl&&sl[dy]&&this.set(df,sl[dy]);break;case dp:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(dl,t(dl)).set("cpu",t("cpu")).set(dc,t(dc)).set(du,t(du)).set("os",t("os"))}return this},sh.prototype.parseUA=function(){switch(this.itemType!=dp&&sk.call(this.data,this.ua,this.rgxMap),this.itemType){case dl:this.set(dS,s_(this.get(dE)));break;case"os":if("iOS"==this.get(df)&&"18.6"==this.get(dE)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(dE,e[1])}}return this},sh.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case dl:case du:var i,n=e[dC]||e[dP];if(n)for(var a=0;a<n.length;a++){var o=n[a].brand||n[a],r=n[a].version;this.itemType==dl&&!/not.a.brand/i.test(o)&&(!i||/Chrom/.test(i)&&o!=d5||i==se&&/WebView2/.test(o))&&(o=sb(o,sR),(i=this.get(df))&&!/Chrom/.test(i)&&/Chrom/.test(o)||this.set(df,o).set(dE,r).set(dS,s_(r)),i=o),this.itemType==du&&o==d5&&this.set(dE,r)}break;case"cpu":var d=e[d_];d&&(d&&"64"==e[dL]&&(d+="64"),sk.call(this.data,d+";",t));break;case dc:if(e[dA]&&this.set(dT,dA),e[dI]&&(this.set(dI,e[dI]),!this.get(dT)||!this.get(dm))){var s,l={};sk.call(l,"droid 9; "+e[dI]+")",t),!this.get(dT)&&l.type&&this.set(dT,l.type),!this.get(dm)&&l.vendor&&this.set(dm,l.vendor)}if(e[dO]){if("string"!=typeof e[dO])for(var c=0;!s&&c<e[dO].length;)s=sb(e[dO][c++],sN);else s=sb(e[dO],sN);this.set(dT,s)}break;case"os":var u=e[dy];if(u){var p=e[dh];u==sd&&(p=parseInt(s_(p),10)>=13?"11":"10"),this.set(df,u).set(dE,p)}this.get(df)==sd&&"Xbox"==e[dI]&&this.set(df,"Xbox").set(dE,void 0);break;case dp:var f=this.data,T=function(t){return f[t].getItem().setCH(e).parseCH().get()};this.set(dl,T(dl)).set("cpu",T("cpu")).set(dc,T(dc)).set(du,T(du)).set("os",T("os"))}return this},sL.VERSION="2.0.9",sL.BROWSER=su([df,dE,dS,dT]),sL.CPU=su([d_]),sL.DEVICE=su([dI,dm,dT,dv,dA,db,dk,dg,dN]),sL.ENGINE=sL.OS=su([df,dE]);var sD=e.i(691027),sw=e.i(313067),sM=e.i(145301),sU=e.i(564248);function sV(){return{typeUrl:"",value:new Uint8Array(0)}}let sB={encode:(e,t=sU.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.typeUrl=i.string();continue;case 2:if(18!==e)break;a.value=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sB.fromPartial(e??{}),fromPartial(e){let t=sV();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array(0),t}};function sF(){return{key:"",value:""}}let sG={encode:(e,t=sU.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sG.fromPartial(e??{}),fromPartial(e){let t=sF();return t.key=e.key??"",t.value=e.value??"",t}};function sW(){return{records:[]}}let sx={encode(e,t=sU.default.Writer.create()){for(let i of e.records)sG.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.records.push(sG.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sx.fromPartial(e??{}),fromPartial(e){let t=sW();return t.records=e.records?.map(e=>sG.fromPartial(e))||[],t}};function sH(){return{value:[]}}let sY={encode(e,t=sU.default.Writer.create()){for(let i of e.value)t.uint32(10).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.value.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sY.fromPartial(e??{}),fromPartial(e){let t=sH();return t.value=e.value?.map(e=>e)||[],t}};function sK(){return{kind:void 0}}let s$={encode(e,t=sU.default.Writer.create()){switch(e.kind?.$case){case"intValue":t.uint32(8).int32(e.kind.intValue);break;case"longValue":t.uint32(16).int64(e.kind.longValue);break;case"floatValue":t.uint32(29).float(e.kind.floatValue);break;case"doubleValue":t.uint32(73).double(e.kind.doubleValue);break;case"boolValue":t.uint32(32).bool(e.kind.boolValue);break;case"stringValue":t.uint32(42).string(e.kind.stringValue);break;case"anyValue":sB.encode(e.kind.anyValue,t.uint32(50).fork()).ldelim();break;case"mapValue":sx.encode(e.kind.mapValue,t.uint32(58).fork()).ldelim();break;case"intPairValue":t.uint32(65).fixed64(e.kind.intPairValue);break;case"stringArrayValue":sY.encode(e.kind.stringArrayValue,t.uint32(82).fork()).ldelim()}return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.kind={$case:"intValue",intValue:i.int32()};continue;case 2:if(16!==e)break;a.kind={$case:"longValue",longValue:sz(i.int64())};continue;case 3:if(29!==e)break;a.kind={$case:"floatValue",floatValue:i.float()};continue;case 9:if(73!==e)break;a.kind={$case:"doubleValue",doubleValue:i.double()};continue;case 4:if(32!==e)break;a.kind={$case:"boolValue",boolValue:i.bool()};continue;case 5:if(42!==e)break;a.kind={$case:"stringValue",stringValue:i.string()};continue;case 6:if(50!==e)break;a.kind={$case:"anyValue",anyValue:sB.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.kind={$case:"mapValue",mapValue:sx.decode(i,i.uint32())};continue;case 8:if(65!==e)break;a.kind={$case:"intPairValue",intPairValue:sz(i.fixed64())};continue;case 10:if(82!==e)break;a.kind={$case:"stringArrayValue",stringArrayValue:sY.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>s$.fromPartial(e??{}),fromPartial(e){let t=sK();return e.kind?.$case==="intValue"&&e.kind?.intValue!==void 0&&e.kind?.intValue!==null&&(t.kind={$case:"intValue",intValue:e.kind.intValue}),e.kind?.$case==="longValue"&&e.kind?.longValue!==void 0&&e.kind?.longValue!==null&&(t.kind={$case:"longValue",longValue:e.kind.longValue}),e.kind?.$case==="floatValue"&&e.kind?.floatValue!==void 0&&e.kind?.floatValue!==null&&(t.kind={$case:"floatValue",floatValue:e.kind.floatValue}),e.kind?.$case==="doubleValue"&&e.kind?.doubleValue!==void 0&&e.kind?.doubleValue!==null&&(t.kind={$case:"doubleValue",doubleValue:e.kind.doubleValue}),e.kind?.$case==="boolValue"&&e.kind?.boolValue!==void 0&&e.kind?.boolValue!==null&&(t.kind={$case:"boolValue",boolValue:e.kind.boolValue}),e.kind?.$case==="stringValue"&&e.kind?.stringValue!==void 0&&e.kind?.stringValue!==null&&(t.kind={$case:"stringValue",stringValue:e.kind.stringValue}),e.kind?.$case==="anyValue"&&e.kind?.anyValue!==void 0&&e.kind?.anyValue!==null&&(t.kind={$case:"anyValue",anyValue:sB.fromPartial(e.kind.anyValue)}),e.kind?.$case==="mapValue"&&e.kind?.mapValue!==void 0&&e.kind?.mapValue!==null&&(t.kind={$case:"mapValue",mapValue:sx.fromPartial(e.kind.mapValue)}),e.kind?.$case==="intPairValue"&&e.kind?.intPairValue!==void 0&&e.kind?.intPairValue!==null&&(t.kind={$case:"intPairValue",intPairValue:e.kind.intPairValue}),e.kind?.$case==="stringArrayValue"&&e.kind?.stringArrayValue!==void 0&&e.kind?.stringArrayValue!==null&&(t.kind={$case:"stringArrayValue",stringArrayValue:sY.fromPartial(e.kind.stringArrayValue)}),t}};function sz(e){return e.toString()}function sq(){return{configId:"",value:void 0,targetingExpression:void 0,ttlSeconds:"0",configRuleUuidBytes:new Uint8Array(0),priority:0,namespace:0,studyName:"",experimentId:0,delete:!1,servePlatforms:[],sequenceId:0,ruidType:0,segmentOrdinal:0,generatedFromAbAllowlists:!1,internalFields:void 0,configIntId:0}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure()),(iw=E||(E={}))[iw.UNKNOWN_CONTEXT_PLATFORM=0]="UNKNOWN_CONTEXT_PLATFORM",iw[iw.IOS_PLATFORM=1]="IOS_PLATFORM",iw[iw.ANDROID_PLATFORM=2]="ANDROID_PLATFORM",iw[iw.SERVER_PLATFORM=3]="SERVER_PLATFORM",iw[iw.UNRECOGNIZED=-1]="UNRECOGNIZED",(iM=_||(_={}))[iM.UNKNOWN_OPERATOR=0]="UNKNOWN_OPERATOR",iM[iM.AND=1]="AND",iM[iM.OR=2]="OR",iM[iM.UNRECOGNIZED=-1]="UNRECOGNIZED",(iU=S||(S={}))[iU.UNKNOWN_PREDICATE_OPERATOR=0]="UNKNOWN_PREDICATE_OPERATOR",iU[iU.EQUAL=1]="EQUAL",iU[iU.NOT_EQUAL=2]="NOT_EQUAL",iU[iU.GREATER_THAN_OR_EQUAL_TO=3]="GREATER_THAN_OR_EQUAL_TO",iU[iU.LESS_THAN_OR_EQUAL_TO=4]="LESS_THAN_OR_EQUAL_TO",iU[iU.UNRECOGNIZED=-1]="UNRECOGNIZED",(iV=I||(I={}))[iV.UNSET=0]="UNSET",iV[iV.CLIENT=1]="CLIENT",iV[iV.SERVER=2]="SERVER",iV[iV.UNRECOGNIZED=-1]="UNRECOGNIZED",(iB=v||(v={}))[iB.UNKNOWN_PROPERTY=0]="UNKNOWN_PROPERTY",iB[iB.BATTERY_LEVEL=1]="BATTERY_LEVEL",iB[iB.IS_OFFLINE=2]="IS_OFFLINE",iB[iB.IS_CHARGING=3]="IS_CHARGING",iB[iB.BANDWIDTH=4]="BANDWIDTH",iB[iB.DISK_SIZE=5]="DISK_SIZE",iB[iB.DISK_AVAILABLE=6]="DISK_AVAILABLE",iB[iB.MEDIA_TYPE_DEPRECATED=7]="MEDIA_TYPE_DEPRECATED",iB[iB.IS_PUBLIC_STORY=8]="IS_PUBLIC_STORY",iB[iB.IS_OFFICIAL_STORY=9]="IS_OFFICIAL_STORY",iB[iB.CAMERA_DIRECTION=10]="CAMERA_DIRECTION",iB[iB.CAMERA_CONTEXT=11]="CAMERA_CONTEXT",iB[iB.CAMERA_API=12]="CAMERA_API",iB[iB.CAMERA_FLASH_STATE=13]="CAMERA_FLASH_STATE",iB[iB.SNAP_SOURCE=14]="SNAP_SOURCE",iB[iB.LEGACY_MUSHROOM_CONTENT_TYPE=15]="LEGACY_MUSHROOM_CONTENT_TYPE",iB[iB.UPLOAD_BANDWIDTH=16]="UPLOAD_BANDWIDTH",iB[iB.CAMERA2_LEVEL=17]="CAMERA2_LEVEL",iB[iB.CAMERA_NIGHT_MODE_STATE=18]="CAMERA_NIGHT_MODE_STATE",iB[iB.USER_LANGUAGE=19]="USER_LANGUAGE",
2iB[iB.VIDEO_DURATION=20]="VIDEO_DURATION",iB[iB.REALTIME_MOBILE_NETWORK_GENERATION=21]="REALTIME_MOBILE_NETWORK_GENERATION",iB[iB.REALTIME_NETWORK_TYPE=22]="REALTIME_NETWORK_TYPE",iB[iB.REALTIME_NETWORK_IS_METERED=23]="REALTIME_NETWORK_IS_METERED",iB[iB.REALTIME_NETWORK_IS_ROAMING=24]="REALTIME_NETWORK_IS_ROAMING",iB[iB.CAMERA_IS_FIRST_CAPTURE=25]="CAMERA_IS_FIRST_CAPTURE",iB[iB.PICTURE_MODE=26]="PICTURE_MODE",iB[iB.BOLT_USE_CASE=27]="BOLT_USE_CASE",iB[iB.BOLT_CDN_EXPERIMENTATION_ID=28]="BOLT_CDN_EXPERIMENTATION_ID",iB[iB.MINS_SINCE_LAST_LENS_ACTIVATION=29]="MINS_SINCE_LAST_LENS_ACTIVATION",iB[iB.MINS_SINCE_LAST_SNAPPABLE_LENS_ACTIVATION=30]="MINS_SINCE_LAST_SNAPPABLE_LENS_ACTIVATION",iB[iB.DAYS_SINCE_LAST_LOGIN_OR_OPEN=31]="DAYS_SINCE_LAST_LOGIN_OR_OPEN",iB[iB.SPECTACLES_VERSION=32]="SPECTACLES_VERSION",iB[iB.STICKY_MAX_CONNECTION_TYPE=33]="STICKY_MAX_CONNECTION_TYPE",iB[iB.WITH_ANIMATED_OVERLAY=34]="WITH_ANIMATED_OVERLAY",iB[iB.ESTIMATED_DURATION_FOR_EVENT_MS=35]="ESTIMATED_DURATION_FOR_EVENT_MS",iB[iB.URL=36]="URL",iB[iB.MEDIA_SOURCE=37]="MEDIA_SOURCE",iB[iB.ASSET_TYPE=38]="ASSET_TYPE",iB[iB.BOLT_IS_CONTENT_POPULAR=39]="BOLT_IS_CONTENT_POPULAR",iB[iB.CAPTURE_MODE=40]="CAPTURE_MODE",iB[iB.VP9_SOFTWARE_DECODING_SUPPORTED=41]="VP9_SOFTWARE_DECODING_SUPPORTED",iB[iB.AV1_SOFTWARE_DECODING_SUPPORTED=42]="AV1_SOFTWARE_DECODING_SUPPORTED",iB[iB.WITH_MUSIC=43]="WITH_MUSIC",iB[iB.FEATURE_PROVIDED_SIZE=44]="FEATURE_PROVIDED_SIZE",iB[iB.MEDIA_TYPE=45]="MEDIA_TYPE",iB[iB.SCANNED_CATEGORY_IDS=46]="SCANNED_CATEGORY_IDS",iB[iB.CONTENT_VIEW_SOURCE=47]="CONTENT_VIEW_SOURCE",iB[iB.RECIPIENTS_SUPPORT_HEVC=48]="RECIPIENTS_SUPPORT_HEVC",iB[iB.COGNAC_APP_ID=49]="COGNAC_APP_ID",iB[iB.EMAIL_VERIFIED=50]="EMAIL_VERIFIED",iB[iB.PHONE_VERIFIED=51]="PHONE_VERIFIED",iB[iB.NOTIFICATION_PERM_GRANTED=52]="NOTIFICATION_PERM_GRANTED",iB[iB.CONTACT_PERM_GRANTED=53]="CONTACT_PERM_GRANTED",iB[iB.MUTUAL_FRIENDS_COUNT=54]="MUTUAL_FRIENDS_COUNT",iB[iB.GROUPS_COUNT=55]="GROUPS_COUNT",iB[iB.HAS_NON_TEAM_SNAPCHAT_CONVERSATIONS=56]="HAS_NON_TEAM_SNAPCHAT_CONVERSATIONS",iB[iB.PLAYBACK_ITEM_TYPE=57]="PLAYBACK_ITEM_TYPE",iB[iB.SUP_BOOLEAN_PROPERTY=58]="SUP_BOOLEAN_PROPERTY",iB[iB.SUP_INTEGER_PROPERTY=59]="SUP_INTEGER_PROPERTY",iB[iB.SUP_LONG_PROPERTY=60]="SUP_LONG_PROPERTY",iB[iB.SUP_STRING_PROPERTY=61]="SUP_STRING_PROPERTY",iB[iB.SUP_DOUBLE_PROPERTY=62]="SUP_DOUBLE_PROPERTY",iB[iB.SUP_MILLIS_PROPERTY_TO_NOW=63]="SUP_MILLIS_PROPERTY_TO_NOW",iB[iB.HAS_USED_SPECTACLES=64]="HAS_USED_SPECTACLES",iB[iB.SUP_SECS_PROPERTY_TO_NOW=65]="SUP_SECS_PROPERTY_TO_NOW",iB[iB.BOLT_CLIENT_APP_STATE=66]="BOLT_CLIENT_APP_STATE",iB[iB.EMAIL_SET=67]="EMAIL_SET",iB[iB.BITMOJI_SET=68]="BITMOJI_SET",iB[iB.QUICK_TAP_CAMERA_SUPPORTED_ENABLED=69]="QUICK_TAP_CAMERA_SUPPORTED_ENABLED",iB[iB.HAS_ADD_FRIENDS_REQUEST=70]="HAS_ADD_FRIENDS_REQUEST",iB[iB.APP_LAUNCH_FROM_PUSH=71]="APP_LAUNCH_FROM_PUSH",iB[iB.APP_LAUNCH_TYPE=72]="APP_LAUNCH_TYPE",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_IMPRESSION_COUNT=73]="BILLBOARD_CAMPAIGN_LOCAL_IMPRESSION_COUNT",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_LAST_IMPRESSION_TIME_SECS_TO_NOW=74]="BILLBOARD_CAMPAIGN_LOCAL_LAST_IMPRESSION_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_CONTINUOUS_DISMISS_COUNT=75]="BILLBOARD_CAMPAIGN_LOCAL_CONTINUOUS_DISMISS_COUNT",iB[iB.FST_NUM_IN_APP_WARNINGS=76]="FST_NUM_IN_APP_WARNINGS",iB[iB.FST_SHOULD_CHANGE_PASSWORD=77]="FST_SHOULD_CHANGE_PASSWORD",iB[iB.FST_IS_BACKGROUND_CHECK=78]="FST_IS_BACKGROUND_CHECK",iB[iB.AUDIO_RECORD_PERM_GRANTED=79]="AUDIO_RECORD_PERM_GRANTED",iB[iB.MUTUAL_FRIENDS_WITH_BIRTHDAY_COUNT=80]="MUTUAL_FRIENDS_WITH_BIRTHDAY_COUNT",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_DISMISS_COUNT=81]="BILLBOARD_CAMPAIGN_LOCAL_DISMISS_COUNT",iB[iB.USE_VERTICAL_NAVIGATION=82]="USE_VERTICAL_NAVIGATION",iB[iB.FREEABLE_DISK_AVAILABLE=83]="FREEABLE_DISK_AVAILABLE",iB[iB.MEMORIES_COUNT=84]="MEMORIES_COUNT",iB[iB.DEVICE_MODEL=85]="DEVICE_MODEL",iB[iB.COUNTRY=86]="COUNTRY",iB[iB.OS=87]="OS",iB[iB.OS_VERSION=88]="OS_VERSION",iB[iB.APP_VERSION=89]="APP_VERSION",iB[iB.BUILD_FLAVOR=90]="BUILD_FLAVOR",iB[iB.USER_ID=91]="USER_ID",iB[iB.LOCALE=92]="LOCALE",iB[iB.DEVICE_CLUSTER=93]="DEVICE_CLUSTER",iB[iB.DEVICE_BRAND=94]="DEVICE_BRAND",iB[iB.IS_EMPLOYEE=95]="IS_EMPLOYEE",iB[iB.USERNAME=96]="USERNAME",iB[iB.IS_TEST_USER=97]="IS_TEST_USER",iB[iB.USER_PROFILE=98]="USER_PROFILE",iB[iB.SCREEN_WIDTH=99]="SCREEN_WIDTH",iB[iB.SCREEN_HEIGHT=100]="SCREEN_HEIGHT",iB[iB.HEVC_SUPPORT=101]="HEVC_SUPPORT",iB[iB.NETWORK_TYPE=102]="NETWORK_TYPE",iB[iB.MAX_VIDEO_WIDTH=103]="MAX_VIDEO_WIDTH",iB[iB.MAX_VIDEO_HEIGHT=104]="MAX_VIDEO_HEIGHT",iB[iB.IS_NETWORK_METERED=105]="IS_NETWORK_METERED",iB[iB.IS_ROAMING=106]="IS_ROAMING",iB[iB.APP_ENGAGEMENT_LEVEL=107]="APP_ENGAGEMENT_LEVEL",iB[iB.COMMUNICATION_ENGAGEMENT_LEVEL=108]="COMMUNICATION_ENGAGEMENT_LEVEL",iB[iB.FRIEND_STORY_ENGAGEMENT_LEVEL=109]="FRIEND_STORY_ENGAGEMENT_LEVEL",iB[iB.PUBLIC_USER_STORY_ENGAGEMENT_LEVEL=110]="PUBLIC_USER_STORY_ENGAGEMENT_LEVEL",iB[iB.PUBLISHER_STORY_ENGAGEMENT_LEVEL=111]="PUBLISHER_STORY_ENGAGEMENT_LEVEL",iB[iB.LENS_ENGAGEMENT_LEVEL=112]="LENS_ENGAGEMENT_LEVEL",iB[iB.NON_FRIEND_STORY_ENGAGEMENT_LEVEL=113]="NON_FRIEND_STORY_ENGAGEMENT_LEVEL",iB[iB.FOLLOWER_SIZE_LEVEL=114]="FOLLOWER_SIZE_LEVEL",iB[iB.DAYS_SINCE_CREATION=115]="DAYS_SINCE_CREATION",iB[iB.USER_PERSONA=116]="USER_PERSONA",iB[iB.USER_CREATION_TIME=117]="USER_CREATION_TIME",iB[iB.MOBILE_NETWORK_TYPE=118]="MOBILE_NETWORK_TYPE",iB[iB.AGGREGATED_USER_BANDWIDTH=119]="AGGREGATED_USER_BANDWIDTH",iB[iB.LENS_CLUSTER_BIASED=120]="LENS_CLUSTER_BIASED",iB[iB.LENS_CLUSTER_LOG=121]="LENS_CLUSTER_LOG",iB[iB.LENS_CLUSTER_ORIG=122]="LENS_CLUSTER_ORIG",iB[iB.LENS_CLUSTER_ORIG_4=123]="LENS_CLUSTER_ORIG_4",iB[iB.LENS_CLUSTER_BIASED_LOG=124]="LENS_CLUSTER_BIASED_LOG",iB[iB.APP_LOCALE=125]="APP_LOCALE",iB[iB.DEVICE_COMMON_NAME=126]="DEVICE_COMMON_NAME",iB[iB.USER_FRIEND_COUNT=127]="USER_FRIEND_COUNT",iB[iB.L90_COUNTRY=128]="L90_COUNTRY",iB[iB.STUB=129]="STUB",iB[iB.IS_TRUE=130]="IS_TRUE",iB[iB.STORY_POST_RATIO=131]="STORY_POST_RATIO",iB[iB.GENDER=132]="GENDER",iB[iB.INFERRED_AGE_BUCKET=133]="INFERRED_AGE_BUCKET",iB[iB.STORIES=134]="STORIES",iB[iB.SENDS=135]="SENDS",iB[iB.SNAP_CREATE_L7=136]="SNAP_CREATE_L7",iB[iB.STORY_POST_L7=137]="STORY_POST_L7",iB[iB.COMMUNICATION_L7=138]="COMMUNICATION_L7",iB[iB.DF_L7=139]="DF_L7",iB[iB.APP_L7=140]="APP_L7",iB[iB.DAYS_SINCE_CREATION_BUCKET=141]="DAYS_SINCE_CREATION_BUCKET",iB[iB.BIDIRECTIONAL_FRIEND_STATUS=142]="BIDIRECTIONAL_FRIEND_STATUS",iB[iB.STORY_POST_PREDICTION=143]="STORY_POST_PREDICTION",iB[iB.APP_OPENS=144]="APP_OPENS",iB[iB.LENS_SWIPES=145]="LENS_SWIPES",iB[iB.LENS_SNAPS=146]="LENS_SNAPS",iB[iB.LENS_OPS=147]="LENS_OPS",iB[iB.W1_APP_OPENS=148]="W1_APP_OPENS",iB[iB.W1_LENS_SWIPES=149]="W1_LENS_SWIPES",iB[iB.W1_LENS_SNAPS=150]="W1_LENS_SNAPS",iB[iB.W1_LENS_OPS=151]="W1_LENS_OPS",iB[iB.W2_APP_OPENS=152]="W2_APP_OPENS",iB[iB.W2_LENS_SWIPES=153]="W2_LENS_SWIPES",iB[iB.W2_LENS_SNAPS=154]="W2_LENS_SNAPS",iB[iB.W2_LENS_OPS=155]="W2_LENS_OPS",iB[iB.W34_APP_OPENS=156]="W34_APP_OPENS",iB[iB.W34_LENS_SWIPES=157]="W34_LENS_SWIPES",iB[iB.W34_LENS_SNAPS=158]="W34_LENS_SNAPS",iB[iB.W34_LENS_OPS=159]="W34_LENS_OPS",iB[iB.LENS_SWIPES_PREDICTION=160]="LENS_SWIPES_PREDICTION",iB[iB.REGISTRATION_COUNTRY=161]="REGISTRATION_COUNTRY",iB[iB.IP_ASN=162]="IP_ASN",iB[iB.IP_REGION=163]="IP_REGION",iB[iB.IP_CITY=164]="IP_CITY",iB[iB.HAS_USER_ID=165]="HAS_USER_ID",iB[iB.HAS_BITMOJI=166]="HAS_BITMOJI",iB[iB.NUM_APP_OPENS_LAST_8_DAYS=167]="NUM_APP_OPENS_LAST_8_DAYS",iB[iB.NUM_FEATURE_STORY_VIEW_DAYS_L7=168]="NUM_FEATURE_STORY_VIEW_DAYS_L7",iB[iB.NUM_FEATURE_STORY_SYNC_DAYS_L7=169]="NUM_FEATURE_STORY_SYNC_DAYS_L7",iB[iB.HEXAGON_NN_SUPPORTED_VERSION=170]="HEXAGON_NN_SUPPORTED_VERSION",iB[iB.NETWORK_QUALITY=171]="NETWORK_QUALITY",iB[iB.DEVICE_MEMORY_MB=172]="DEVICE_MEMORY_MB",iB[iB.DEVICE_GL_VERSION=173]="DEVICE_GL_VERSION",iB[iB.SNAP_PRO_STATUS=174]="SNAP_PRO_STATUS",iB[iB.DEVICE_VP9_DECODING_SUPPORT=175]="DEVICE_VP9_DECODING_SUPPORT",iB[iB.AVG_FRIEND_STORY_VIEW_COUNT_L7=176]="AVG_FRIEND_STORY_VIEW_COUNT_L7",iB[iB.GAME_JOIN_TIME=177]="GAME_JOIN_TIME",iB[iB.GAME_LAST_ACTIVE_TIME=178]="GAME_LAST_ACTIVE_TIME",iB[iB.DAYS_SINCE_FIRST_GAME_ACTIVITY=179]="DAYS_SINCE_FIRST_GAME_ACTIVITY",iB[iB.DAYS_SINCE_LAST_GAME_ACTIVITY=180]="DAYS_SINCE_LAST_GAME_ACTIVITY",iB[iB.PF_PAGE_SESSIONS_WITH_LONG_IMP=181]="PF_PAGE_SESSIONS_WITH_LONG_IMP",iB[iB.WIRELESS_CARRIER=182]="WIRELESS_CARRIER",iB[iB.MINIS_JOIN_TIME=183]="MINIS_JOIN_TIME",iB[iB.MINIS_LAST_ACTIVE_TIME=184]="MINIS_LAST_ACTIVE_TIME",iB[iB.DAYS_SINCE_FIRST_MINIS_ACTIVITY=185]="DAYS_SINCE_FIRST_MINIS_ACTIVITY",iB[iB.DAYS_SINCE_LAST_MINIS_ACTIVITY=186]="DAYS_SINCE_LAST_MINIS_ACTIVITY",iB[iB.DEVICE_AV1_DECODING_SUPPORT=187]="DEVICE_AV1_DECODING_SUPPORT",iB[iB.APP_PACKAGE_INSTALLER=188]="APP_PACKAGE_INSTALLER",iB[iB.STORY_VIEWS_5TH_TAB_ENGAGEMENT_LEVEL=189]="STORY_VIEWS_5TH_TAB_ENGAGEMENT_LEVEL",iB[iB.REPORTED_AGE=190]="REPORTED_AGE",iB[iB.ANDROID_MOBILE_SERVICES_PROVIDER=191]="ANDROID_MOBILE_SERVICES_PROVIDER",iB[iB.IS_ACQUIRED_USER=192]="IS_ACQUIRED_USER",iB[iB.YDPI=193]="YDPI",iB[iB.BIDIRECTIONAL_FRIEND_STATUS_VELLUM=194]="BIDIRECTIONAL_FRIEND_STATUS_VELLUM",iB[iB.ORIGIN=195]="ORIGIN",iB[iB.LENSCORE_VERSION=196]="LENSCORE_VERSION",iB[iB.SNAPKIT_APP_ID=197]="SNAPKIT_APP_ID",iB[iB.GPU=198]="GPU",iB[iB.CHIPSET_NAME=199]="CHIPSET_NAME",iB[iB.CHIPSET_VERSION=200]="CHIPSET_VERSION",iB[iB.HAS_ZERO_IDFA=201]="HAS_ZERO_IDFA",iB[iB.LIMIT_AD_TRACKING=202]="LIMIT_AD_TRACKING",iB[iB.ATT_AUTH_STATUS=203]="ATT_AUTH_STATUS",iB[iB.CAMERA2_FRONT_SS_GAIN_OVER_TPA=204]="CAMERA2_FRONT_SS_GAIN_OVER_TPA",iB[iB.ATTACHMENT_TOOL_V2=205]="ATTACHMENT_TOOL_V2",iB[iB.USER_PERSONA_V3=206]="USER_PERSONA_V3",iB[iB.SNAPS_SEND_WITH_HEVC=207]="SNAPS_SEND_WITH_HEVC",iB[iB.SNAPS_SEND_WITHOUT_HEVC=208]="SNAPS_SEND_WITHOUT_HEVC",iB[iB.CAMERA2_NATIVE_CRASH_OVER_CAMERA1=209]="CAMERA2_NATIVE_CRASH_OVER_CAMERA1",iB[iB.CAMERA2_G2S_LATENCY_OVER_CAMERA1=210]="CAMERA2_G2S_LATENCY_OVER_CAMERA1",iB[iB.IS_INTERNAL=211]="IS_INTERNAL",iB[iB.IS_WEB=212]="IS_WEB",iB[iB.APP_OPEN_TO_MAP=213]="APP_OPEN_TO_MAP",iB[iB.APP_OPEN_TO_FRIENDSFEED=214]="APP_OPEN_TO_FRIENDSFEED",iB[iB.APP_OPEN_TO_LENSES=215]="APP_OPEN_TO_LENSES",iB[iB.APP_OPEN_TO_MEMORIES=216]="APP_OPEN_TO_MEMORIES",iB[iB.APP_OPEN_TO_COMMUNITY=217]="APP_OPEN_TO_COMMUNITY",iB[iB.APP_OPEN_TO_SPOTLIGHT=218]="APP_OPEN_TO_SPOTLIGHT",iB[iB.IS_IMPACTED_BY_PINC_893=219]="IS_IMPACTED_BY_PINC_893",iB[iB.DAYS_BEFORE_BIRTHDAY=220]="DAYS_BEFORE_BIRTHDAY",iB[iB.HAS_BIPA=221]="HAS_BIPA",iB[iB.SPOTLIGHT_STORY_ENGAGEMENT_STATUS=222]="SPOTLIGHT_STORY_ENGAGEMENT_STATUS",iB[iB.INCLUSION_PANEL_MEMBER=223]="INCLUSION_PANEL_MEMBER",iB[iB.HEVC_HW_DECODER=224]="HEVC_HW_DECODER",iB[iB.HEVC_SW_DECODER=225]="HEVC_SW_DECODER",iB[iB.HASH_MURMUR3_128_MOD_100=226]="HASH_MURMUR3_128_MOD_100",iB[iB.HAS_ACTIVE_SNAPCHAT_PLUS=227]="HAS_ACTIVE_SNAPCHAT_PLUS",iB[iB.SNAP_KIT_OAUTH_ID=228]="SNAP_KIT_OAUTH_ID",iB[iB.ORGANIZATION_TYPE=229]="ORGANIZATION_TYPE",iB[iB.CHUNK_UPLOAD_SUPPORT_REQUIRED=230]="CHUNK_UPLOAD_SUPPORT_REQUIRED",iB[iB.CLOUDFRONT_POP=231]="CLOUDFRONT_POP",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_FIRST_IMPRESSION_TIME_SECS_TO_NOW=232]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_IMPRESSION_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_CLICK_COUNT=233]="BILLBOARD_CAMPAIGN_LOCAL_CLICK_COUNT",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_INTERACTION_COUNT=234]="BILLBOARD_CAMPAIGN_LOCAL_INTERACTION_COUNT",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_LAST_INTERACTION_TIME_SECS_TO_NOW=235]="BILLBOARD_CAMPAIGN_LOCAL_LAST_INTERACTION_TIME_SECS_TO_NOW",iB[iB.FST_LOCK_SCREEN_WIDGET_BILLBOARD_LAUNCHED_FROM_PUSH=236]="FST_LOCK_SCREEN_WIDGET_BILLBOARD_LAUNCHED_FROM_PUSH",iB[iB.WEB_SCREEN_WIDTH=237]="WEB_SCREEN_WIDTH",iB[iB.WEB_SCREEN_HEIGHT=238]="WEB_SCREEN_HEIGHT",iB[iB.SUP_IOS_LOCK_SCREEN_WIDGET_ENABLED=239]="SUP_IOS_LOCK_SCREEN_WIDGET_ENABLED",iB[iB.SNAP_PRIVACY=240]="SNAP_PRIVACY",iB[iB.ADS_INTERFACES_IS_NEW_ORGANIZATION=241]="ADS_INTERFACES_IS_NEW_ORGANIZATION",iB[iB.SERVER_ONLY=242]="SERVER_ONLY",iB[iB.GHE_ORGANIZATION=243]="GHE_ORGANIZATION",iB[iB.GHE_REPOSITORY=244]="GHE_REPOSITORY",iB[iB.GHE_USER_EMAIL=245]="GHE_USER_EMAIL",iB[iB.BUILD_DEFINITION_ID=246]="BUILD_DEFINITION_ID",iB[iB.BUILD_DEFINITION_NAME=247]="BUILD_DEFINITION_NAME",iB[iB.LCA_PRINCIPAL=248]="LCA_PRINCIPAL",iB[iB.MEDIA_PERFORMANCE_CLASS=249]="MEDIA_PERFORMANCE_CLASS",iB[iB.COMMUNITY_COUNT=250]="COMMUNITY_COUNT",iB[iB.RECIPIENTS_SUPPORT_FMP4=251]="RECIPIENTS_SUPPORT_FMP4",iB[iB.SCREEN_ASPECT_RATIO=252]="SCREEN_ASPECT_RATIO",iB[iB.USER_GROUP=253]="USER_GROUP",iB[iB.USER_HAS_DENIED_CAMERA_PERM=254]="USER_HAS_DENIED_CAMERA_PERM",iB[iB.CAMEOS_ENGAGEMENT_LEVEL=255]="CAMEOS_ENGAGEMENT_LEVEL",iB[iB.HAS_CAMEOS=256]="HAS_CAMEOS",iB[iB.IS_ACTIVE_LENS_VIDEO_CHAT_USER=257]="IS_ACTIVE_LENS_VIDEO_CHAT_USER",iB[iB.NUM_SPOTLIGHT_POSTS_L7=258]="NUM_SPOTLIGHT_POSTS_L7",iB[iB.NUM_MAP_POSTS_L7=259]="NUM_MAP_POSTS_L7",iB[iB.HAS_CREATED_PUBLIC_PROFILE=260]="HAS_CREATED_PUBLIC_PROFILE",iB[iB.HAS_PUBLIC_PROFILE_ACCESS_VIA_ROLE=261]="HAS_PUBLIC_PROFILE_ACCESS_VIA_ROLE",iB[iB.DAYS_SINCE_LAST_CAMERA_PERM_DENY=262]="DAYS_SINCE_LAST_CAMERA_PERM_DENY",iB[iB.DAYS_SINCE_AD_ORG_JOIN=263]="DAYS_SINCE_AD_ORG_JOIN",iB[iB.DAYS_SINCE_FIRST_AD_CREATE=264]="DAYS_SINCE_FIRST_AD_CREATE",iB[iB.ORGANIZATION_COUNTRY=265]="ORGANIZATION_COUNTRY",iB[iB.DAYS_SINCE_FIRST_DWEB_VISIT=266]="DAYS_SINCE_FIRST_DWEB_VISIT",iB[iB.DAYS_SINCE_LAST_DWEB_VISIT=267]="DAYS_SINCE_LAST_DWEB_VISIT",iB[iB.WEEKS_SINCE_USING_DWEB=268]="WEEKS_SINCE_USING_DWEB",iB[iB.HAS_LENS=269]="HAS_LENS",iB[iB.BILLBOARD_SERVER_IMPRESSION_COUNT=270]="BILLBOARD_SERVER_IMPRESSION_COUNT",iB[iB.BILLBOARD_SERVER_CLICK_COUNT=271]="BILLBOARD_SERVER_CLICK_COUNT",iB[iB.BILLBOARD_SERVER_DISMISS_COUNT=272]="BILLBOARD_SERVER_DISMISS_COUNT",iB[iB.BILLBOARD_SERVER_INTERACTION_COUNT=273]="BILLBOARD_SERVER_INTERACTION_COUNT",iB[iB.BILLBOARD_SERVER_FIRST_IMPRESSION_TIME_SECS_TO_NOW=274]="BILLBOARD_SERVER_FIRST_IMPRESSION_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_LAST_IMPRESSION_TIME_SECS_TO_NOW=275]="BILLBOARD_SERVER_LAST_IMPRESSION_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_FIRST_CLICK_TIME_SECS_TO_NOW=276]="BILLBOARD_SERVER_FIRST_CLICK_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_LAST_CLICK_TIME_SECS_TO_NOW=277]="BILLBOARD_SERVER_LAST_CLICK_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_FIRST_DISMISS_TIME_SECS_TO_NOW=278]="BILLBOARD_SERVER_FIRST_DISMISS_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_LAST_DISM
2ISS_TIME_SECS_TO_NOW=279]="BILLBOARD_SERVER_LAST_DISMISS_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_FIRST_INTERACTION_TIME_SECS_TO_NOW=280]="BILLBOARD_SERVER_FIRST_INTERACTION_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_LAST_INTERACTION_TIME_SECS_TO_NOW=281]="BILLBOARD_SERVER_LAST_INTERACTION_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_SERVER_CONTINUOUS_DISMISS_COUNT=282]="BILLBOARD_SERVER_CONTINUOUS_DISMISS_COUNT",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_FIRST_CLICK_TIME_SECS_TO_NOW=283]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_CLICK_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_LAST_CLICK_TIME_SECS_TO_NOW=284]="BILLBOARD_CAMPAIGN_LOCAL_LAST_CLICK_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_FIRST_DISMISS_TIME_SECS_TO_NOW=285]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_DISMISS_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_LAST_DISMISS_TIME_SECS_TO_NOW=286]="BILLBOARD_CAMPAIGN_LOCAL_LAST_DISMISS_TIME_SECS_TO_NOW",iB[iB.BILLBOARD_CAMPAIGN_LOCAL_FIRST_INTERACTION_TIME_SECS_TO_NOW=287]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_INTERACTION_TIME_SECS_TO_NOW",iB[iB.DAYS_SINCE_FIRST_AD_SPEND=288]="DAYS_SINCE_FIRST_AD_SPEND",iB[iB.DAYS_SINCE_LAST_AD_SPEND=289]="DAYS_SINCE_LAST_AD_SPEND",iB[iB.SPOTLIGHT_2_PLUS_STORY_SESSION_7D_STATUS_DETAILED=290]="SPOTLIGHT_2_PLUS_STORY_SESSION_7D_STATUS_DETAILED",iB[iB.SPOTLIGHT_5_PLUS_STORY_SESSION_7D_STATUS_DETAILED=291]="SPOTLIGHT_5_PLUS_STORY_SESSION_7D_STATUS_DETAILED",iB[iB.SPOTLIGHT_STORY_VIEW_7D_STATUS_DETAILED=292]="SPOTLIGHT_STORY_VIEW_7D_STATUS_DETAILED",iB[iB.LAST_USER_ACCEPTED_TOS=293]="LAST_USER_ACCEPTED_TOS",iB[iB.UPDATED_DEVICE_CLUSTER=294]="UPDATED_DEVICE_CLUSTER",iB[iB.CREATOR_TIER=295]="CREATOR_TIER",iB[iB.AV1_SW_DECODER=296]="AV1_SW_DECODER",iB[iB.AV1_HW_DECODER=297]="AV1_HW_DECODER",iB[iB.HAS_EXPLICIT_PUBLIC_PROFILE=298]="HAS_EXPLICIT_PUBLIC_PROFILE",iB[iB.LARGER_TEXT_DISPLAY_OPTION_ENABLED=299]="LARGER_TEXT_DISPLAY_OPTION_ENABLED",iB[iB.IS_PUBLIC_POSTING_PREFERRED_USER=300]="IS_PUBLIC_POSTING_PREFERRED_USER",iB[iB.RUID=301]="RUID",iB[iB.MUTABLE_USERNAME=302]="MUTABLE_USERNAME",iB[iB.BUDGET_GROUP_ID=303]="BUDGET_GROUP_ID",iB[iB.AB_POPULATION_RANGE_HASH_FUNC=304]="AB_POPULATION_RANGE_HASH_FUNC",iB[iB.AB_TREATMENT_RANGE_HASH_FUNC=305]="AB_TREATMENT_RANGE_HASH_FUNC",iB[iB.REGISTRATION_IP_REGION=306]="REGISTRATION_IP_REGION",iB[iB.RUID_TYPE=307]="RUID_TYPE",iB[iB.PLUS_INTERNAL_ONLY=308]="PLUS_INTERNAL_ONLY",iB[iB.COF_ROLLOUT_RANGE_HASH_FUNC=309]="COF_ROLLOUT_RANGE_HASH_FUNC",iB[iB.SUP_HAS_AI_SELFIE=341]="SUP_HAS_AI_SELFIE",iB[iB.SUP_HAS_DREAMS=342]="SUP_HAS_DREAMS",iB[iB.DAYS_SINCE_LAST_ACTIVITY=343]="DAYS_SINCE_LAST_ACTIVITY",iB[iB.CONTACT_PERM_OS_GRANTED=344]="CONTACT_PERM_OS_GRANTED",iB[iB.CONTACT_PERM_USER_GRANTED=345]="CONTACT_PERM_USER_GRANTED",iB[iB.LENS_CLUSTER_GPU_V2=346]="LENS_CLUSTER_GPU_V2",iB[iB.CAN_ACCESS_ADS_TAB=347]="CAN_ACCESS_ADS_TAB",iB[iB.GOOGLE_CDN_POP=348]="GOOGLE_CDN_POP",iB[iB.NUM_STRONG_RELATIONSHIPS_V3=349]="NUM_STRONG_RELATIONSHIPS_V3",iB[iB.NUM_CLOSE_PLUS_RELATIONSHIPS_V3=350]="NUM_CLOSE_PLUS_RELATIONSHIPS_V3",iB[iB.NUM_ACQUAINTANCE_PLUS_RELATIONSHIPS_V3=351]="NUM_ACQUAINTANCE_PLUS_RELATIONSHIPS_V3",iB[iB.DREAMS_ENGAGEMENT_STATUS=352]="DREAMS_ENGAGEMENT_STATUS",iB[iB.IS_LOW_LIGHT=353]="IS_LOW_LIGHT",iB[iB.GALLERY_HAS_2023_YEAR_END_STORY=354]="GALLERY_HAS_2023_YEAR_END_STORY",iB[iB.CHUNK_UPLOAD_PREFERENCE=355]="CHUNK_UPLOAD_PREFERENCE",iB[iB.ADMIN_USE_ONLY_IN_AB_TRAFFIC_SPLIT=356]="ADMIN_USE_ONLY_IN_AB_TRAFFIC_SPLIT",iB[iB.IS_IPHONE=357]="IS_IPHONE",iB[iB.IS_S11_COUNTRY=358]="IS_S11_COUNTRY",iB[iB.IS_S11_L90_COUNTRY=359]="IS_S11_L90_COUNTRY",iB[iB.NUM_ACTIVE_FRIENDS_L7=360]="NUM_ACTIVE_FRIENDS_L7",iB[iB.NUM_BIDIRECTIONAL_COMMUNICATION_FRIENDS_L7=361]="NUM_BIDIRECTIONAL_COMMUNICATION_FRIENDS_L7",iB[iB.FULLY_ROLLED_OUT_STUDIES_OPTIMIZATION_ENABLED=362]="FULLY_ROLLED_OUT_STUDIES_OPTIMIZATION_ENABLED",iB[iB.HAS_USER_ONBOARDED=367]="HAS_USER_ONBOARDED",iB[iB.ADS_STANDARD_AB_HASH_FUNC=368]="ADS_STANDARD_AB_HASH_FUNC",iB[iB.IS_TOP_STORY_POSTER=369]="IS_TOP_STORY_POSTER",iB[iB.COMMUNITY_COUNT_SERVER=370]="COMMUNITY_COUNT_SERVER",iB[iB.REPORT_VOLUME_LAST_14_DAYS=371]="REPORT_VOLUME_LAST_14_DAYS",iB[iB.IS_CONCURRENT_CAMERA_SUPPORTED=372]="IS_CONCURRENT_CAMERA_SUPPORTED",iB[iB.CONTACT_AUTHORIZATION_STATUS=373]="CONTACT_AUTHORIZATION_STATUS",iB[iB.DISCOVER_FEED_TYPE=374]="DISCOVER_FEED_TYPE",iB[iB.JOINED_VIA_USER_INVITE=377]="JOINED_VIA_USER_INVITE",iB[iB.STICKY_REGION=378]="STICKY_REGION",iB[iB.BIPA_REGION=379]="BIPA_REGION",iB[iB.GRADUAL_ROLLOUT_HASH_FUNC=380]="GRADUAL_ROLLOUT_HASH_FUNC",iB[iB.IS_COF_EDGE_CLIENT=381]="IS_COF_EDGE_CLIENT",iB[iB.COF_EDGE_CLIENT_VERSION=382]="COF_EDGE_CLIENT_VERSION",iB[iB.IS_DORMANT=383]="IS_DORMANT",iB[iB.HAS_FORMER_PHONE_NUMBER=384]="HAS_FORMER_PHONE_NUMBER",iB[iB.OS_BUILD_VERSION=385]="OS_BUILD_VERSION",iB[iB.SNAP_PROMOTE_DAYS_SINCE_FIRST_AD_CREATE=386]="SNAP_PROMOTE_DAYS_SINCE_FIRST_AD_CREATE",iB[iB.SNAP_PROMOTE_DAYS_SINCE_LAST_AD_CREATE=387]="SNAP_PROMOTE_DAYS_SINCE_LAST_AD_CREATE",iB[iB.SNAP_PROMOTE_DAYS_SINCE_FIRST_SPEND=388]="SNAP_PROMOTE_DAYS_SINCE_FIRST_SPEND",iB[iB.SNAP_PROMOTE_DAYS_SINCE_LAST_SPEND=389]="SNAP_PROMOTE_DAYS_SINCE_LAST_SPEND",iB[iB.SNAP_PROMOTE_TOTAL_SPEND_USD=390]="SNAP_PROMOTE_TOTAL_SPEND_USD",iB[iB.SNAP_PROMOTE_AVG_DAILY_SPEND_USD=391]="SNAP_PROMOTE_AVG_DAILY_SPEND_USD",iB[iB.SNAP_PROMOTE_LAST_OBJECTIVE=392]="SNAP_PROMOTE_LAST_OBJECTIVE",iB[iB.SNAP_PROMOTE_BUDGET_REMAINING=393]="SNAP_PROMOTE_BUDGET_REMAINING",iB[iB.IS_MONETIZATION_ELIGIBLE=394]="IS_MONETIZATION_ELIGIBLE",iB[iB.IS_OPTED_IN_DATA_SHARING=395]="IS_OPTED_IN_DATA_SHARING",iB[iB.ADS_BUDGET_AB_MACROSTATE_HASH_FUNC=396]="ADS_BUDGET_AB_MACROSTATE_HASH_FUNC",iB[iB.AB_TREATMENT=397]="AB_TREATMENT",iB[iB.DREAMS_IN_SNAPFEED_VIEW_ACTIVE_DAYS_L7=398]="DREAMS_IN_SNAPFEED_VIEW_ACTIVE_DAYS_L7",iB[iB.SPOTLIGHT_USER_ACTIVITY_LEVEL=399]="SPOTLIGHT_USER_ACTIVITY_LEVEL",iB[iB.NON_FRIEND_STORY_USER_ACTIVITY_LEVEL=400]="NON_FRIEND_STORY_USER_ACTIVITY_LEVEL",iB[iB.NON_FRIEND_CONTENT_USER_ACTIVITY_LEVEL=401]="NON_FRIEND_CONTENT_USER_ACTIVITY_LEVEL",iB[iB.SNAP_PROMOTE_UNVERIFIED_ORG=402]="SNAP_PROMOTE_UNVERIFIED_ORG",iB[iB.MEMORIES_RECAP_COLLAGE_GENERATION_COMPLETION_RATE=403]="MEMORIES_RECAP_COLLAGE_GENERATION_COMPLETION_RATE",iB[iB.SERVICE_ENVIRONMENT=404]="SERVICE_ENVIRONMENT",iB[iB.IS_ACTIVE_LENS_USER=405]="IS_ACTIVE_LENS_USER",iB[iB.DEVICE_MANUFACTURER=406]="DEVICE_MANUFACTURER",iB[iB.FOLLOWER_COUNT=407]="FOLLOWER_COUNT",iB[iB.FOLLOWER_AND_FRIEND_COUNT=408]="FOLLOWER_AND_FRIEND_COUNT",iB[iB.IS_IN_SIMPLE_SNAPCHAT_BGAB_CONTROL_EXPOSED_USERS_20250121=409]="IS_IN_SIMPLE_SNAPCHAT_BGAB_CONTROL_EXPOSED_USERS_20250121",iB[iB.IS_IN_SIMPLE_SNAPCHAT_BGAB_TREATMENT_EXPOSED_USERS_20250121=410]="IS_IN_SIMPLE_SNAPCHAT_BGAB_TREATMENT_EXPOSED_USERS_20250121",iB[iB.FAMILY_CENTER_ROLE=411]="FAMILY_CENTER_ROLE",iB[iB.NETWORK_USER_CLASSIFICATION_WAU_20241107_20241113=412]="NETWORK_USER_CLASSIFICATION_WAU_20241107_20241113",iB[iB.HAS_AP_ORG_IP_ATTR_VIA_PROFILE_LINK=413]="HAS_AP_ORG_IP_ATTR_VIA_PROFILE_LINK",iB[iB.SNAP_PRO_STATUS_FOR_ROLE=414]="SNAP_PRO_STATUS_FOR_ROLE",iB[iB.HAS_LINKED_SATURN=415]="HAS_LINKED_SATURN",iB[iB.ORGANIZATION_SIZE=416]="ORGANIZATION_SIZE",iB[iB.ORGANIZATION_CREATION_DATE=417]="ORGANIZATION_CREATION_DATE",iB[iB.WITH_TIMED_ELEMENT=418]="WITH_TIMED_ELEMENT",iB[iB.FRIEND_STORY_VIEW_L7=419]="FRIEND_STORY_VIEW_L7",iB[iB.NON_FRIEND_STORY_VIEW_L7=420]="NON_FRIEND_STORY_VIEW_L7",iB[iB.SPOTLIGHT_STORY_VIEW_L7=421]="SPOTLIGHT_STORY_VIEW_L7",iB[iB.CONTENT_STORY_VIEW_L7=422]="CONTENT_STORY_VIEW_L7",iB[iB.CONTENT_CONSUMPTION_CLUSTER_AGG=423]="CONTENT_CONSUMPTION_CLUSTER_AGG",iB[iB.HAS_PPLX_INTERACTION=424]="HAS_PPLX_INTERACTION",iB[iB.PPLX_1_PLUS_INTERACTION_7D_STATUS=425]="PPLX_1_PLUS_INTERACTION_7D_STATUS",iB[iB.PPLX_1_PLUS_INTERACTION_30D_STATUS=426]="PPLX_1_PLUS_INTERACTION_30D_STATUS",iB[iB.PPLX_5_PLUS_INTERACTION_7D_STATUS=427]="PPLX_5_PLUS_INTERACTION_7D_STATUS",iB[iB.PPLX_5_PLUS_INTERACTION_30D_STATUS=428]="PPLX_5_PLUS_INTERACTION_30D_STATUS",iB[iB.PPLX_25_PLUS_INTERACTION_7D_STATUS=429]="PPLX_25_PLUS_INTERACTION_7D_STATUS",iB[iB.PPLX_25_PLUS_INTERACTION_30D_STATUS=430]="PPLX_25_PLUS_INTERACTION_30D_STATUS",iB[iB.DISCOVER_FEED_FOR_YOU_ENGAGEMENT_LEVEL=431]="DISCOVER_FEED_FOR_YOU_ENGAGEMENT_LEVEL",iB[iB.MIXED_FEED_SPOTLIGHT_ENGAGEMENT_LEVEL=432]="MIXED_FEED_SPOTLIGHT_ENGAGEMENT_LEVEL",iB[iB.NOTIFICATION_ALERTS_LOCK_SCREEN_ENABLED=433]="NOTIFICATION_ALERTS_LOCK_SCREEN_ENABLED",iB[iB.NOTIFICATION_ALERTS_NOTIFICATION_CENTER_ENABLED=434]="NOTIFICATION_ALERTS_NOTIFICATION_CENTER_ENABLED",iB[iB.NOTIFICATION_ALERTS_BANNER_ENABLED=435]="NOTIFICATION_ALERTS_BANNER_ENABLED",iB[iB.FOLLOWS_CREATORTEST_STMS=436]="FOLLOWS_CREATORTEST_STMS",iB[iB.FOLLOWS_BBYBERNER=437]="FOLLOWS_BBYBERNER",iB[iB.FOLLOWS_GIGICHRISTIINE=438]="FOLLOWS_GIGICHRISTIINE",iB[iB.FOLLOWS_SAMRUSSO2=439]="FOLLOWS_SAMRUSSO2",iB[iB.FOLLOWS_SKAIJACKK=440]="FOLLOWS_SKAIJACKK",iB[iB.FOLLOWS_IMMACKMAINE=441]="FOLLOWS_IMMACKMAINE",iB[iB.FOLLOWS_ALYSSAMCKAYY=442]="FOLLOWS_ALYSSAMCKAYY",iB[iB.FOLLOWS_FINDJEREMIAH=443]="FOLLOWS_FINDJEREMIAH",iB[iB.FOLLOWS_ITSKCHEYENNE=444]="FOLLOWS_ITSKCHEYENNE",iB[iB.FOLLOWS_CUTIECARYN=445]="FOLLOWS_CUTIECARYN",iB[iB.FOLLOWS_JUGGLINJOSH=446]="FOLLOWS_JUGGLINJOSH",iB[iB.FOLLOWS_CATHERINEPAIZ=447]="FOLLOWS_CATHERINEPAIZ",iB[iB.FOLLOWS_HARRYJOWSEY=448]="FOLLOWS_HARRYJOWSEY",iB[iB.FOLLOWS_KAYLAMALLECC=449]="FOLLOWS_KAYLAMALLECC",iB[iB.INFERRED_AGE_BUCKET_GNN_V1=450]="INFERRED_AGE_BUCKET_GNN_V1",iB[iB.SERVICE_NAME=451]="SERVICE_NAME",iB[iB.FOLLOWS_DAVIDDOBRIK=452]="FOLLOWS_DAVIDDOBRIK",iB[iB.GROWTH_COHORT=453]="GROWTH_COHORT",iB[iB.APP_L30=454]="APP_L30",iB[iB.DAYS_SINCE_RETURN=455]="DAYS_SINCE_RETURN",iB[iB.PASSKEY_SET=456]="PASSKEY_SET",iB[iB.MARKET_CLUSTER_FINE=457]="MARKET_CLUSTER_FINE",iB[iB.MARKET_CLUSTER_MEDIUM=458]="MARKET_CLUSTER_MEDIUM",iB[iB.MARKET_CLUSTER_COARSE=459]="MARKET_CLUSTER_COARSE",iB[iB.IS_MACROSTATE_USER=460]="IS_MACROSTATE_USER",iB[iB.UNRECOGNIZED=-1]="UNRECOGNIZED",(iF=A||(A={}))[iF.UNKNOWN_SIGNAL_TO_HASH=0]="UNKNOWN_SIGNAL_TO_HASH",iF[iF.HASH_SEED_AND_USER_ID=1]="HASH_SEED_AND_USER_ID",iF[iF.HASH_USER_ID_AND_NAMESPACE=2]="HASH_USER_ID_AND_NAMESPACE",iF[iF.UNRECOGNIZED=-1]="UNRECOGNIZED";let sZ={encode(e,t=sU.default.Writer.create()){for(let i of(""!==e.configId&&t.uint32(10).string(e.configId),void 0!==e.value&&s$.encode(e.value,t.uint32(18).fork()).ldelim(),void 0!==e.targetingExpression&&s1.encode(e.targetingExpression,t.uint32(26).fork()).ldelim(),"0"!==e.ttlSeconds&&t.uint32(32).int64(e.ttlSeconds),0!==e.configRuleUuidBytes.length&&t.uint32(42).bytes(e.configRuleUuidBytes),0!==e.priority&&t.uint32(48).int32(e.priority),0!==e.namespace&&t.uint32(56).int32(e.namespace),""!==e.studyName&&t.uint32(66).string(e.studyName),0!==e.experimentId&&t.uint32(72).int32(e.experimentId),!1!==e.delete&&t.uint32(80).bool(e.delete),t.uint32(90).fork(),e.servePlatforms))t.int32(i);return t.ldelim(),0!==e.sequenceId&&t.uint32(96).int32(e.sequenceId),0!==e.ruidType&&t.uint32(104).int32(e.ruidType),0!==e.segmentOrdinal&&t.uint32(112).int32(e.segmentOrdinal),!1!==e.generatedFromAbAllowlists&&t.uint32(120).bool(e.generatedFromAbAllowlists),void 0!==e.internalFields&&sX.encode(e.internalFields,t.uint32(130).fork()).ldelim(),0!==e.configIntId&&t.uint32(149).sfixed32(e.configIntId),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sq();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configId=i.string();continue;case 2:if(18!==e)break;a.value=s$.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.targetingExpression=s1.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.ttlSeconds=s6(i.int64());continue;case 5:if(42!==e)break;a.configRuleUuidBytes=i.bytes();continue;case 6:if(48!==e)break;a.priority=i.int32();continue;case 7:if(56!==e)break;a.namespace=i.int32();continue;case 8:if(66!==e)break;a.studyName=i.string();continue;case 9:if(72!==e)break;a.experimentId=i.int32();continue;case 10:if(80!==e)break;a.delete=i.bool();continue;case 11:if(88===e){a.servePlatforms.push(i.int32());continue}if(90===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.servePlatforms.push(i.int32());continue}break;case 12:if(96!==e)break;a.sequenceId=i.int32();continue;case 13:if(104!==e)break;a.ruidType=i.int32();continue;case 14:if(112!==e)break;a.segmentOrdinal=i.int32();continue;case 15:if(120!==e)break;a.generatedFromAbAllowlists=i.bool();continue;case 16:if(130!==e)break;a.internalFields=sX.decode(i,i.uint32());continue;case 18:if(149!==e)break;a.configIntId=i.sfixed32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sZ.fromPartial(e??{}),fromPartial(e){let t=sq();return t.configId=e.configId??"",t.value=void 0!==e.value&&null!==e.value?s$.fromPartial(e.value):void 0,t.targetingExpression=void 0!==e.targetingExpression&&null!==e.targetingExpression?s1.fromPartial(e.targetingExpression):void 0,t.ttlSeconds=e.ttlSeconds??"0",t.configRuleUuidBytes=e.configRuleUuidBytes??new Uint8Array(0),t.priority=e.priority??0,t.namespace=e.namespace??0,t.studyName=e.studyName??"",t.experimentId=e.experimentId??0,t.delete=e.delete??!1,t.servePlatforms=e.servePlatforms?.map(e=>e)||[],t.sequenceId=e.sequenceId??0,t.ruidType=e.ruidType??0,t.segmentOrdinal=e.segmentOrdinal??0,t.generatedFromAbAllowlists=e.generatedFromAbAllowlists??!1,t.internalFields=void 0!==e.internalFields&&null!==e.internalFields?sX.fromPartial(e.internalFields):void 0,t.configIntId=e.configIntId??
20,t}};function sj(){return{configBitmapIndex:0,configResultBitmapIndex:0,hasServerPropertiesOnly:!1,globalPriority:0,sequenceIds:[],studySegmentOrdinal:0,experimentGuid:"0",isAbStudyStatusCompleted:!1,gradualRolloutId:"",gradualRolloutIsControl:!1,gradualRolloutIsDeleted:!1,isUserAllowListing:!1,abStudyPostAnalysisTs:"0",multiExposureGroupId:0,isPassThrough:!1,subPriority:0,additionalStudyContexts:[]}}let sX={encode(e,t=sU.default.Writer.create()){for(let i of(0!==e.configBitmapIndex&&t.uint32(8).int32(e.configBitmapIndex),0!==e.configResultBitmapIndex&&t.uint32(16).int32(e.configResultBitmapIndex),!1!==e.hasServerPropertiesOnly&&t.uint32(24).bool(e.hasServerPropertiesOnly),0!==e.globalPriority&&t.uint32(32).int32(e.globalPriority),e.sequenceIds))sJ.encode(i,t.uint32(42).fork()).ldelim();for(let i of(0!==e.studySegmentOrdinal&&t.uint32(48).int32(e.studySegmentOrdinal),"0"!==e.experimentGuid&&t.uint32(56).uint64(e.experimentGuid),!1!==e.isAbStudyStatusCompleted&&t.uint32(64).bool(e.isAbStudyStatusCompleted),""!==e.gradualRolloutId&&t.uint32(74).string(e.gradualRolloutId),!1!==e.gradualRolloutIsControl&&t.uint32(80).bool(e.gradualRolloutIsControl),!1!==e.gradualRolloutIsDeleted&&t.uint32(88).bool(e.gradualRolloutIsDeleted),!1!==e.isUserAllowListing&&t.uint32(96).bool(e.isUserAllowListing),"0"!==e.abStudyPostAnalysisTs&&t.uint32(104).uint64(e.abStudyPostAnalysisTs),0!==e.multiExposureGroupId&&t.uint32(112).int32(e.multiExposureGroupId),!1!==e.isPassThrough&&t.uint32(120).bool(e.isPassThrough),0!==e.subPriority&&t.uint32(128).int32(e.subPriority),e.additionalStudyContexts))s2.encode(i,t.uint32(138).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sj();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.configBitmapIndex=i.int32();continue;case 2:if(16!==e)break;a.configResultBitmapIndex=i.int32();continue;case 3:if(24!==e)break;a.hasServerPropertiesOnly=i.bool();continue;case 4:if(32!==e)break;a.globalPriority=i.int32();continue;case 5:if(42!==e)break;a.sequenceIds.push(sJ.decode(i,i.uint32()));continue;case 6:if(48!==e)break;a.studySegmentOrdinal=i.int32();continue;case 7:if(56!==e)break;a.experimentGuid=s6(i.uint64());continue;case 8:if(64!==e)break;a.isAbStudyStatusCompleted=i.bool();continue;case 9:if(74!==e)break;a.gradualRolloutId=i.string();continue;case 10:if(80!==e)break;a.gradualRolloutIsControl=i.bool();continue;case 11:if(88!==e)break;a.gradualRolloutIsDeleted=i.bool();continue;case 12:if(96!==e)break;a.isUserAllowListing=i.bool();continue;case 13:if(104!==e)break;a.abStudyPostAnalysisTs=s6(i.uint64());continue;case 14:if(112!==e)break;a.multiExposureGroupId=i.int32();continue;case 15:if(120!==e)break;a.isPassThrough=i.bool();continue;case 16:if(128!==e)break;a.subPriority=i.int32();continue;case 17:if(138!==e)break;a.additionalStudyContexts.push(s2.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sX.fromPartial(e??{}),fromPartial(e){let t=sj();return t.configBitmapIndex=e.configBitmapIndex??0,t.configResultBitmapIndex=e.configResultBitmapIndex??0,t.hasServerPropertiesOnly=e.hasServerPropertiesOnly??!1,t.globalPriority=e.globalPriority??0,t.sequenceIds=e.sequenceIds?.map(e=>sJ.fromPartial(e))||[],t.studySegmentOrdinal=e.studySegmentOrdinal??0,t.experimentGuid=e.experimentGuid??"0",t.isAbStudyStatusCompleted=e.isAbStudyStatusCompleted??!1,t.gradualRolloutId=e.gradualRolloutId??"",t.gradualRolloutIsControl=e.gradualRolloutIsControl??!1,t.gradualRolloutIsDeleted=e.gradualRolloutIsDeleted??!1,t.isUserAllowListing=e.isUserAllowListing??!1,t.abStudyPostAnalysisTs=e.abStudyPostAnalysisTs??"0",t.multiExposureGroupId=e.multiExposureGroupId??0,t.isPassThrough=e.isPassThrough??!1,t.subPriority=e.subPriority??0,t.additionalStudyContexts=e.additionalStudyContexts?.map(e=>s2.fromPartial(e))||[],t}};function sQ(){return{targetingExpression:void 0,sequenceId:0}}let sJ={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.targetingExpression&&s1.encode(e.targetingExpression,t.uint32(10).fork()).ldelim(),0!==e.sequenceId&&t.uint32(16).int32(e.sequenceId),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=sQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.targetingExpression=s1.decode(i,i.uint32());continue;case 2:if(16!==e)break;a.sequenceId=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>sJ.fromPartial(e??{}),fromPartial(e){let t=sQ();return t.targetingExpression=void 0!==e.targetingExpression&&null!==e.targetingExpression?s1.fromPartial(e.targetingExpression):void 0,t.sequenceId=e.sequenceId??0,t}}
2;function s0(){return{studyName:"",experimentId:0,experimentGuid:"0"}}let s2={encode:(e,t=sU.default.Writer.create())=>(""!==e.studyName&&t.uint32(10).string(e.studyName),0!==e.experimentId&&t.uint32(16).int32(e.experimentId),"0"!==e.experimentGuid&&t.uint32(24).uint64(e.experimentGuid),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=s0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.studyName=i.string();continue;case 2:if(16!==e)break;a.experimentId=i.int32();continue;case 3:if(24!==e)break;a.experimentGuid=s6(i.uint64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>s2.fromPartial(e??{}),fromPartial(e){let t=s0();return t.studyName=e.studyName??"",t.experimentId=e.experimentId??0,t.experimentGuid=e.experimentGuid??"0",t}};function s3(){return{operator:0,children:[],property:0,predicateOperator:0,value:void 0,propertyMetadata:void 0}}let s1={encode(e,t=sU.default.Writer.create()){for(let i of(0!==e.operator&&t.uint32(8).int32(e.operator),e.children))s1.encode(i,t.uint32(18).fork()).ldelim();return 0!==e.property&&t.uint32(24).int32(e.property),0!==e.predicateOperator&&t.uint32(32).int32(e.predicateOperator),void 0!==e.value&&s$.encode(e.value,t.uint32(42).fork()).ldelim(),void 0!==e.propertyMetadata&&s8.encode(e.propertyMetadata,t.uint32(50).fork()).ldelim(),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=s3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.operator=i.int32();continue;case 2:if(18!==e)break;a.children.push(s1.decode(i,i.uint32()));continue;case 3:if(24!==e)break;a.property=i.int32();continue;case 4:if(32!==e)break;a.predicateOperator=i.int32();continue;case 5:if(42!==e)break;a.value=s$.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.propertyMetadata=s8.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>s1.fromPartial(e??{}),fromPartial(e){let t=s3();return t.operator=e.operator??0,t.children=e.children?.map(e=>s1.fromPartial(e))||[],t.property=e.property??0,t.predicateOperator=e.predicateOperator??0,t.value=void 0!==e.value&&null!==e.value?s$.fromPartial(e.value):void 0,t.propertyMetadata=void 0!==e.propertyMetadata&&null!==e.propertyMetadata?s8.fromPartial(e.propertyMetadata):void 0,t}};function s4(){return{itemId:0,signalToHash:0,abNamespaceForHashing:"",abSeedForHashing:"",functionSignalInput:void 0,cofRolloutSeedForHashing:"",adsNonBudgetSegmentLayer:0,adsBudgetAbMacrostateName:""}}let s8={encode(e,t=sU.default.Writer.create()){switch(0!==e.itemId&&t.uint32(8).int32(e.itemId),0!==e.signalToHash&&t.uint32(16).int32(e.signalToHash),""!==e.abNamespaceForHashing&&t.uint32(26).string(e.abNamespaceForHashing),""!==e.abSeedForHashing&&t.uint32(34).string(e.abSeedForHashing),e.functionSignalInput?.$case){case"ruidType":t.uint32(40).int32(e.functionSignalInput.ruidType);break;case"useShardId":t.uint32(72).bool(e.functionSignalInput.useShardId)}return""!==e.cofRolloutSeedForHashing&&t.uint32(50).string(e.cofRolloutSeedForHashing),0!==e.adsNonBudgetSegmentLayer&&t.uint32(56).int32(e.adsNonBudgetSegmentLayer),""!==e.adsBudgetAbMacrostateName&&t.uint32(66).string(e.adsBudgetAbMacrostateName),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=s4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.itemId=i.int32();continue;case 2:if(16!==e)break;a.signalToHash=i.int32();continue;case 3:if(26!==e)break;a.abNamespaceForHashing=i.string();continue;case 4:if(34!==e)break;a.abSeedForHashing=i.string();continue;case 5:if(40!==e)break;a.functionSignalInput={$case:"ruidType",ruidType:i.int32()};continue;case 9:if(72!==e)break;a.functionSignalInput={$case:"useShardId",useShardId:i.bool()};continue;case 6:if(50!==e)break;a.cofRolloutSeedForHashing=i.string();continue;case 7:if(56!==e)break;a.adsNonBudgetSegmentLayer=i.int32();continue;case 8:if(66!==e)break;a.adsBudgetAbMacrostateName=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>s8.fromPartial(e??{}),fromPartial(e){let t=s4();return t.itemId=e.itemId??0,t.signalToHash=e.signalToHash??0,t.abNamespaceForHashing=e.abNamespaceForHashing??"",t.abSeedForHashing=e.abSeedForHashing??"",e.functionSignalInput?.$case==="ruidType"&&e.functionSignalInput?.ruidT
2ype!==void 0&&e.functionSignalInput?.ruidType!==null&&(t.functionSignalInput={$case:"ruidType",ruidType:e.functionSignalInput.ruidType}),e.functionSignalInput?.$case==="useShardId"&&e.functionSignalInput?.useShardId!==void 0&&e.functionSignalInput?.useShardId!==null&&(t.functionSignalInput={$case:"useShardId",useShardId:e.functionSignalInput.useShardId}),t.cofRolloutSeedForHashing=e.cofRolloutSeedForHashing??"",t.adsNonBudgetSegmentLayer=e.adsNonBudgetSegmentLayer??0,t.adsBudgetAbMacrostateName=e.adsBudgetAbMacrostateName??"",t}};function s6(e){return e.toString()}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());var s7=e.i(62805),s5=e.i(262851),s9=sU;function le(){return{type:0,stringValue:"",loggingIdValue:""}}(iG=k||(k={}))[iG.UNSET=0]="UNSET",iG[iG.USER=1]="USER",iG[iG.DEVICE=2]="DEVICE",iG[iG.WEB_CLIENT=3]="WEB_CLIENT",iG[iG.AD_ACCOUNT=4]="AD_ACCOUNT",iG[iG.USERNAME=5]="USERNAME",iG[iG.AD_MODERATION_AD=6]="AD_MODERATION_AD",iG[iG.WEB_SNAPCHAT_USER=7]="WEB_SNAPCHAT_USER",iG[iG.INTERNAL=8]="INTERNAL",iG[iG.AM_ORGANIZATION=9]="AM_ORGANIZATION",iG[iG.AM_MEMBER=10]="AM_MEMBER",iG[iG.AM_SESSION=11]="AM_SESSION",iG[iG.AM_PROFILE=12]="AM_PROFILE",iG[iG.AM_SNAPCHAT_USER=13]="AM_SNAPCHAT_USER",iG[iG.SNAPCHAT_ADVERTISING=14]="SNAPCHAT_ADVERTISING",iG[iG.AM_CLIENT=15]="AM_CLIENT",iG[iG.MISCHIEF=16]="MISCHIEF",iG[iG.ARES_VISITOR=17]="ARES_VISITOR",iG[iG.POD_NAME=18]="POD_NAME",iG[iG.UNRECOGNIZED=-1]="UNRECOGNIZED";let lt={encode:(e,t=sU.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),""!==e.stringValue&&t.uint32(18).string(e.stringValue),""!==e.loggingIdValue&&t.uint32(26).string(e.loggingIdValue),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=le();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue;case 2:if(18!==e)break;a.stringValue=i.string();continue;case 3:if(26!==e)break;a.loggingIdValue=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lt.fromPartial(e??{}),fromPartial(e){let t=le();return t.type=e.type??0,t.stringValue=e.stringValue??"",t.loggingIdValue=e.loggingIdValue??"",t}};function li(){return{value:!1}}let ln={encode:(e,t=sU.default.Writer.create())=>(!1!==e.value&&t.uint32(8).bool(e.value),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=li();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ln.fromPartial(e??{}),fromPartial(e){let t=li();return t.value=e.value??!1,t}};function la(){return{seconds:"0",nanos:0}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let lo={encode:(e,t=sU.default.Writer.create())=>("0"!==e.seconds&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=la();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.seconds=i.int64().toString();continue;case 2:if(16!==e)break;a.nanos=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lo.fromPartial(e??{}),fromPartial(e){let t=la();return t.seconds=e.seconds??"0",t.nanos=e.nanos??0,t}};function lr(){return{value:void 0}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let ld={encode(e,t=sU.default.Writer.create()){switch(e.value?.$case){case"intValue":t.uint32(8).int32(e.value.intValue);break;case"longValue":t.uint32(16).int64(e.value.longValue);break;case"boolValue":t.uint32(24).bool(e.value.boolValue);break;case"floatValue":t.uint32(37).float(e.value.floatValue)}return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lr();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value={$case:"intValue",intValue:i.int32()};continue;case 2:if(16!==e)break;a.value={$case:"longValue",longValue:i.int64().toString()};continue;case 3:if(24!==e)break;a.value={$case:"boolValue",boolValue:i.bool()};continue;case 4:if(37!==e)break;a.value={$case:"floatValue",floatValue:i.float()};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ld.fromPartial(e??{}),fromPartial(e){let t=lr();return e.value?.$case==="intValue"&&e.value?.intValue!==void 0&&e.value?.intValue!==null&&(t.value={$case:"intValue",intValue:e.value.intValue}),e.value?.$case==="longValue"&&e.value?.longValue!==void 0&&e.value?.longValue!==null&&(t.value={$case:"longValue",longValue:e.value.longValue}),e.value?.$case==="boolValue"&&e.value?.boolValue!==void 0&&e.value?.boolValue!==null&&(t.value={$case:"boolValue",boolValue:e.value.boolValue}),e.value?.$case==="floatValue"&&e.value?.floatValue!==void 0&&e.value?.floatValue!==null&&(t.value={$case:"floatValue",floatValue:e.value.floatValue}),t}};function ls(){return{benchmarkNames:[],expirationTimestamp:void 0}}let ll={encode(e,t=sU.default.Writer.create()){var i;for(let i of(t.uint32(10).fork(),e.benchmarkNames))t.int32(i);return t.ldelim(),void 0!==e.expirationTimestamp&&lo.encode({seconds:Math.trunc((i=e.expirationTimestamp).getTime()/1e3).toString(),nanos:i.getTime()%1e3*1e6},t.uint32(18).fork()).ldelim(),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ls();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.benchmarkNames.push(i.int32());continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.benchmarkNames.push(i.int32());continue}break;case 2:if(18!==e)break;a.expirationTimestamp=function(e){let t=1e3*(globalThis.Number(e.seconds)||0);return new globalThis.Date(t+=(e.nanos||0)/1e6)}(lo.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ll.fromPartial(e??{}),fromPartial(e){let t=ls();return t.benchmarkNames=e.benchmarkNames?.map(e=>e)||[],t.expirationTimestamp=e.expirationTimestamp??void 0,t}};function lc(){return{name:0,value:void 0}}let lu={encode:(e,t=sU.default.Writer.create())=>(0!==e.name&&t.uint32(8).int32(e.name),void 0!==e.value&&ld.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.name=i.int32();continue;case 2:if(18!==e)break;a.value=ld.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lu.fromPartial(e??{}),fromPartial(e){let t=lc();return t.name=e.name??0,t.value=void 0!==e.value&&null!==e.value?ld.fromPartial(e.value):void 0,t}};function lp(){return{configResultsEtag:"",namespaces:[],ghostId:"",countryCode:"",screenWidth:0,screenHeight:0,connectivity:void 0,maxVideoWidthPx:0,maxVideoHeightPx:0,benchmarkResults:[],deltaSync:!1,userAgent:"",triggerEventType:0,appState:0,locale:"",deviceId:"",userId:"",clientIp:"",isUnAuthorized:!1,appLocale:"",instrumentation:0,lastSuccessfulSync:"0",isLogout:!1,packageInstaller:"",syncTriggerBlizzardSessionId:"",syncExecutionBlizzardSessionId:"",cofSyncTriggerDelayFromStartupMs:0,cofSyncExecutionDelayFromStartupMs:0,syncTriggerTime:"0",decoderEncoderAvailability:void 0,snapkitAppId:"",lenscoreVersion:0,ruid:void 0,configNames:[],includeTestUserTreatments:!1,disableExposureLogging:!1,lensClusterOrig4:0,clientId:"",propertyOverrides:void 0,forLockscreenMo
2de:!1,osBuildVersion:"",safeModeStartTimeMs:"0",bitmap:new Uint8Array(0),gpuModel:""}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure()),(iW=b||(b={}))[iW.UNKNOWN_EVENT_TYPE=0]="UNKNOWN_EVENT_TYPE",iW[iW.COLD_START=1]="COLD_START",iW[iW.WARM_START=2]="WARM_START",iW[iW.FOREGROUND_TRIGGER=3]="FOREGROUND_TRIGGER",iW[iW.BACKGROUND_TRIGGER=4]="BACKGROUND_TRIGGER",iW[iW.UNRECOGNIZED=-1]="UNRECOGNIZED",(ix=g||(g={}))[ix.UNKNOWN_APP_STATE=0]="UNKNOWN_APP_STATE",ix[ix.FOREGROUND=1]="FOREGROUND",ix[ix.BACKGROUND=2]="BACKGROUND",ix[ix.UNRECOGNIZED=-1]="UNRECOGNIZED",(iH=N||(N={}))[iH.DEFAULT_INSTRUMENTATION=0]="DEFAULT_INSTRUMENTATION",iH[iH.USER_AUTHENTICATION=1]="USER_AUTHENTICATION",iH[iH.UNRECOGNIZED=-1]="UNRECOGNIZED",(iY=R||(R={}))[iY.UNKNOWN_NETWORK_TYPE=0]="UNKNOWN_NETWORK_TYPE",iY[iY.CELLULAR=1]="CELLULAR",iY[iY.WIFI=2]="WIFI",iY[iY.UNRECOGNIZED=-1]="UNRECOGNIZED";let lf={encode(e,t=sU.default.Writer.create()){for(let i of(""!==e.configResultsEtag&&t.uint32(10).string(e.configResultsEtag),t.uint32(18).fork(),e.namespaces))t.int32(i);for(let i of(t.ldelim(),""!==e.ghostId&&t.uint32(26).string(e.ghostId),""!==e.countryCode&&t.uint32(34).string(e.countryCode),0!==e.screenWidth&&t.uint32(40).int32(e.screenWidth),0!==e.screenHeight&&t.uint32(48).int32(e.screenHeight),void 0!==e.connectivity&&l_.encode(e.connectivity,t.uint32(58).fork()).ldelim(),0!==e.maxVideoWidthPx&&t.uint32(64).int32(e.maxVideoWidthPx),0!==e.maxVideoHeightPx&&t.uint32(72).int32(e.maxVideoHeightPx),e.benchmarkResults))lu.encode(i,t.uint32(82).fork()).ldelim();for(let i of(!1!==e.deltaSync&&t.uint32(88).bool(e.deltaSync),""!==e.userAgent&&t.uint32(98).string(e.userAgent),0!==e.triggerEventType&&t.uint32(104).int32(e.triggerEventType),0!==e.appState&&t.uint32(112).int32(e.appState),""!==e.locale&&t.uint32(122).string(e.locale),""!==e.deviceId&&t.uint32(130).string(e.deviceId),""!==e.userId&&t.uint32(138).string(e.userId),""!==e.clientIp&&t.uint32(146).string(e.clientIp),!1!==e.isUnAuthorized&&t.uint32(152).bool(e.isUnAuthorized),""!==e.appLocale&&t.uint32(162).string(e.appLocale),0!==e.instrumentation&&t.uint32(168).int32(e.instrumentation),"0"!==e.lastSuccessfulSync&&t.uint32(176).int64(e.lastSuccessfulSync),!1!==e.isLogout&&t.uint32(184).bool(e.isLogout),""!==e.packageInstaller&&t.uint32(194).string(e.packageInstaller),""!==e.syncTriggerBlizzardSessionId&&t.uint32(202).string(e.syncTriggerBlizzardSessionId),""!==e.syncExecutionBlizzardSessionId&&t.uint32(210).string(e.syncExecutionBlizzardSessionId),0!==e.cofSyncTriggerDelayFromStartupMs&&t.uint32(216).int32(e.cofSyncTriggerDelayFromStartupMs),0!==e.cofSyncExecutionDelayFromStartupMs&&t.uint32(224).int32(e.cofSyncExecutionDelayFromStartupMs),"0"!==e.syncTriggerTime&&t.uint32(232).int64(e.syncTriggerTime),void 0!==e.decoderEncoderAvailability&&lI.encode(e.decoderEncoderAvailability,t.uint32(242).fork()).ldelim(),""!==e.snapkitAppId&&t.uint32(250).string(e.snapkitAppId),0!==e.lenscoreVersion&&t.uint32(256).int32(e.lenscoreVersion),void 0!==e.ruid&&lt.encode(e.ruid,t.uint32(266).fork()).ldelim(),e.configNames))t.uint32(274).string(i);return!1!==e.includeTestUserTreatments&&t.uint32(288).bool(e.includeTestUserTreatments),!1!==e.disableExposureLogging&&t.uint32(296).bool(e.disableExposureLogging),0!==e.lensClusterOrig4&&t.uint32(304).int32(e.lensClusterOrig4),""!==e.clientId&&t.uint32(314).string(e.clientId),void 0!==e.propertyOverrides&&lm.encode(e.propertyOverrides,t.uint32(322).fork()).ldelim(),!1!==e.forLockscreenMode&&t.uint32(328).bool(e.forLockscreenMode),""!==e.osBuildVersion&&t.uint32(338).string(e.osBuildVersion),"0"!==e.safeModeStartTimeMs&&t.uint32(344).int64(e.safeModeStartTimeMs),0!==e.bitmap.length&&t.uint32(354).bytes(e.bitmap),""!==e.gpuModel&&t.uint32(362).string(e.gpuModel),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResultsEtag=i.string();continue;case 2:if(16===e){a.namespaces.push(i.int32());continue}if(18===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.namespaces.push(i.int32());continue}break;case 3:if(26!==e)break;a.ghostId=i.string();continue;case 4:if(34!==e)break;a.countryCode=i.string();continue;case 5:if(40!==e)break;a.screenWidth=i.int32();continue;case 6:if(48!==e)break;a.screenHeight=i.int32();continue;case 7:if(58!==e)break;a.connectivity=l_.decode(i,i.uint32());continue;case 8:if(64!==e)break;a.maxVideoWidthPx=i.int32();continue;case 9:if(72!==e)break;a.maxVideoHeightPx=i.int32();continue;case 10:if(82!==e)break;a.benchmarkResults.push(lu.decode(i,i.uint32()));continue;case 11:if(88!==e)break;a.deltaSync=i.bool();continue;case 12:if(98!==e)break;a.userAgent=i.string();continue;case 13:if(104!==e)break;a.triggerEventType=i.int32();continue;case 14:if(112!==e)break;a.appState=i.int32();continue;case 15:if(122!==e)break;a.locale=i.string();continue;case 16:if(130!==e)break;a.deviceId=i.string();continue;case 17:if(138!==e)break;a.userId=i.string();continue;case 18:if(146!==e)break;a.clientIp=i.string();continue;case 19:if(152!==e)break;a.isUnAuthorized=i.bool();continue;case 20:if(162!==e)break;a.appLocale=i.string();continue;case 21:if(168!==e)break;a.instrumentation=i.int32();continue;case 22:if(176!==e)break;a.lastSuccessfulSync=lv(i.int64());continue;case 23:if(184!==e)break;a.isLogout=i.bool();continue;case 24:if(194!==e)break;a.packageInstaller=i.string();continue;case 25:if(202!==e)break;a.syncTriggerBlizzardSessionId=i.string();continue;case 26:if(210!==e)break;a.syncExecutionBlizzardSessionId=i.string();continue;case 27:if(216!==e)break;a.cofSyncTriggerDelayFromStartupMs=i.int32();continue;case 28:if(224!==e)break;a.cofSyncExecutionDelayFromStartupMs=i.int32();continue;case 29:if(232!==e)break;a.syncTriggerTime=lv(i.int64());continue;case 30:if(242!==e)break;a.decoderEncoderAvailability=lI.decode(i,i.uint32());continue;case 31:if(250!==e)break;a.snapkitAppId=i.string();continue;case 32:if(256!==e)break;a.lenscoreVersion=i.int32();continue;case 33:if(266!==e)break;a.ruid=lt.decode(i,i.uint32());continue;case 34:if(274!==e)break;a.configNames.push(i.string());continue;case 36:if(288!==e)break;a.includeTestUserTreatments=i.bool();continue;case 37:if(296!==e)break;a.disableExposureLogging=i.bool();continue;case 38:if(304!==e)break;a.lensClusterOrig4=i.int32();continue;case 39:if(314!==e)break;a.clientId=i.string();continue;case 40:if(322!==e)break;a.propertyOverrides=lm.decode(i,i.uint32());continue;case 41:if(328!==e)break;
2a.forLockscreenMode=i.bool();continue;case 42:if(338!==e)break;a.osBuildVersion=i.string();continue;case 43:if(344!==e)break;a.safeModeStartTimeMs=lv(i.int64());continue;case 44:if(354!==e)break;a.bitmap=i.bytes();continue;case 45:if(362!==e)break;a.gpuModel=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lf.fromPartial(e??{}),fromPartial(e){let t=lp();return t.configResultsEtag=e.configResultsEtag??"",t.namespaces=e.namespaces?.map(e=>e)||[],t.ghostId=e.ghostId??"",t.countryCode=e.countryCode??"",t.screenWidth=e.screenWidth??0,t.screenHeight=e.screenHeight??0,t.connectivity=void 0!==e.connectivity&&null!==e.connectivity?l_.fromPartial(e.connectivity):void 0,t.maxVideoWidthPx=e.maxVideoWidthPx??0,t.maxVideoHeightPx=e.maxVideoHeightPx??0,t.benchmarkResults=e.benchmarkResults?.map(e=>lu.fromPartial(e))||[],t.deltaSync=e.deltaSync??!1,t.userAgent=e.userAgent??"",t.triggerEventType=e.triggerEventType??0,t.appState=e.appState??0,t.locale=e.locale??"",t.deviceId=e.deviceId??"",t.userId=e.userId??"",t.clientIp=e.clientIp??"",t.isUnAuthorized=e.isUnAuthorized??!1,t.appLocale=e.appLocale??"",t.instrumentation=e.instrumentation??0,t.lastSuccessfulSync=e.lastSuccessfulSync??"0",t.isLogout=e.isLogout??!1,t.packageInstaller=e.packageInstaller??"",t.syncTriggerBlizzardSessionId=e.syncTriggerBlizzardSessionId??"",t.syncExecutionBlizzardSessionId=e.syncExecutionBlizzardSessionId??"",t.cofSyncTriggerDelayFromStartupMs=e.cofSyncTriggerDelayFromStartupMs??0,t.cofSyncExecutionDelayFromStartupMs=e.cofSyncExecutionDelayFromStartupMs??0,t.syncTriggerTime=e.syncTriggerTime??"0",t.decoderEncoderAvailability=void 0!==e.decoderEncoderAvailability&&null!==e.decoderEncoderAvailability?lI.fromPartial(e.decoderEncoderAvailability):void 0,t.snapkitAppId=e.snapkitAppId??"",t.lenscoreVersion=e.lenscoreVersion??0,t.ruid=void 0!==e.ruid&&null!==e.ruid?lt.fromPartial(e.ruid):void 0,t.configNames=e.configNames?.map(e=>e)||[],t.includeTestUserTreatments=e.includeTestUserTreatments??!1,t.disableExposureLogging=e.disableExposureLogging??!1,t.lensClusterOrig4=e.lensClusterOrig4??0,t.clientId=e.clientId??"",t.propertyOverrides=void 0!==e.propertyOverrides&&null!==e.propertyOverrides?lm.fromPartial(e.propertyOverrides):void 0,t.forLockscreenMode=e.forLockscreenMode??!1,t.osBuildVersion=e.osBuildVersion??"",t.safeModeStartTimeMs=e.safeModeStartTimeMs??"0",t.bitmap=e.bitmap??new Uint8Array(0),t.gpuModel=e.gpuModel??"",t}};function lT(){return{isWeb:!1}}let lm={encode:(e,t=sU.default.Writer.create())=>(!1!==e.isWeb&&t.uint32(8).bool(e.isWeb),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isWeb=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lm.fromPartial(e??{}),fromPartial(e){let t=lT();return t.isWeb=e.isWeb??!1,t}};function lE(){return{networkType:0,isMetered:void 0,isRoaming:void 0,carrier:""}}let l_={encode:(e,t=sU.default.Writer.create())=>(0!==e.networkType&&t.uint32(8).int32(e.networkType),void 0!==e.isMetered&&ln.encode({value:e.isMetered},t.uint32(18).fork()).ldelim(),void 0!==e.isRoaming&&ln.encode({value:e.isRoaming},t.uint32(26).fork()).ldelim(),""!==e.carrier&&t.uint32(34).string(e.carrier),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.networkType=i.int32();continue;case 2:if(18!==e)break;a.isMetered=ln.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.isRoaming=ln.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.carrier=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>l_.fromPartial(e??{}),fromPartial(e){let t=lE();return t.networkType=e.networkType??0,t.isMetered=e.isMetered??void 0,t.isRoaming=e.isRoaming??void 0,t.carrier=e.carrier??"",t}};function lS(){return{isSnapVp9DecoderAvailable:!1,isSnapAv1DecoderAvailable:!1}}let lI={encode:(e,t=sU.default.Writer.create())=>(!1!==e.isSnapVp9DecoderAvailable&&t.uint32(8).bool(e.isSnapVp9DecoderAvailable),!1!==e.isSnapAv1DecoderAvailable&&t.uint32(16).bool(e.isSnapAv1DecoderAvailable),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isSnapVp9DecoderAvailable=i.bool();continue;case 2:if(16!==e)break;a.isSnapAv1DecoderAvailable=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lI.fromPartial(e??{}),fromPartial(e){let t=lS();return t.isSnapVp9DecoderAvailable=e.isSnapVp9DecoderAvailable??!1,t.isSnapAv1DecoderAvailable=e.isSnapAv1DecoderAvailable??!1,t}};function lv(e){return e.toString()}function lA(){return{abResultChecksumInput:""}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let lk={encode:(e,t=sU.default.Writer.create())=>(""!==e.abResultChecksumInput&&t.uint32(10).string(e.abResultChecksumInput),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.abResultChecksumInput=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lk.fromPartial(e??{}),fromPartial(e){let t=lA();return t.abResultChecksumInput=e.abResultChecksumInput??"",t}};function lb(){return{configResults:[],configResultsEtag:"",benchmarkRequest:void 0,fullResults:!1,abResultChecksum:0,iso3166Alpha2CountryCodeFromRequestIp:"",debugData:void 0,cofGrapheneContext:new Uint8Array(0),bitmap:new Uint8Array(0)}}let lg={encode(e,t=sU.default.Writer.create()){for(let i of e.configResults)sZ.encode(i,t.uint32(10).fork()).ldelim();return""!==e.configResultsEtag&&t.uint32(18).string(e.configResultsEtag),void 0!==e.benchmarkRequest&&ll.encode(e.benchmarkRequest,t.uint32(26).fork()).ldelim(),!1!==e.fullResults&&t.uint32(32).bool(e.fullResults),0!==e.abResultChecksum&&t.uint32(40).int32(e.abResultChecksum),""!==e.iso3166Alpha2CountryCodeFromRequestIp&&t.uint32(50).string(e.iso3166Alpha2CountryCodeFromRequestIp),void 0!==e.debugData&&lk.encode(e.debugData,t.uint32(58).fork()).ldelim(),0!==e.cofGrapheneContext.length&&t.uint32(106).bytes(e.cofGrapheneContext),0!==e.bitmap.length&&t.uint32(114).bytes(e.bitmap),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lb();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResults.push(sZ.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.configResultsEtag=i.string();continue;case 3:if(26!==e)break;a.benchmarkRequest=ll.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.fullResults=i.bool();continue;case 5:if(40!==e)break;a.abResultChecksum=i.int32();continue;case 6:if(50!==e)break;a.iso3166Alpha2CountryCodeFromRequestIp=i.string();continue;case 7:if(58!==e)break;a.debugData=lk.decode(i,i.uint32());continue;case 13:if(106!==e)break;a.cofGrapheneContext=i.bytes();continue;case 14:if(114!==e)break;a.bitmap=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lg.fromPartial(e??{}),fromPartial(e){let t=lb();return t.configResults=e.configResults?.map(e=>sZ.fromPartial(e))||[],t.configResultsEtag=e.configResultsEtag??"",t.benchmarkRequest=void 0!==e.benchmarkRequest&&null!==e.benchmarkRequest?ll.fromPartial(e.benchmarkRequest):void 0,t.fullResults=e.fullResults??!1,t.abResultChecksum=e.abResultChecksum??0,t.iso3166Alpha2CountryCodeFromRequestIp=e.iso3166Alpha2CountryCodeFromRequestIp??"",t.debugData=void 0!==e.debugData&&null!==e.debugData?lk.fromPartial(e.debugData):void 0,t.cofGrapheneContext=e.cofGrapheneContext??new Uint8Array(0),t.bitmap=e.bitmap??new Uint8Array(0),t}};function lN(){return{abStep:0,info:""}}(iK=P||(P={}))[iK.USER_WHITELISTED=0]="USER_WHITELISTED",iK[iK.USER_GROUP_WHITELISTED=1]="USER_GROUP_WHITELISTED",iK[iK.FILTER_CONDITIONS=2]="FILTER_CONDITIONS",iK[iK.SLICE_RANGE=3]="SLICE_RANGE",iK[iK.TRAFFIC_ALLOCATED=4]="TRAFFIC_ALLOCATED",iK[iK.UNRECOGNIZED=-1]="UNRECOGNIZED",(i$=O||(O={}))[i$.VALIDATE_REQUEST=0]="VALIDATE_REQUEST",i$[i$.REQUEST_ATLAS=1]="REQUEST_ATLAS",i$[i$.BUILD_TARGETING_INFO=2]="BUILD_TARGETING_INFO",i$[i$.QUERY_INDEX=3]="QUERY_INDEX",i$[i$.REQUEST_AB=4]="REQUEST_AB",i$[i$.UNRECOGNIZED=-1]="UNRECOGNIZED";let lR={encode:(e,t=sU.default.Writer.create())=>(0!==e.abStep&&t.uint32(8).int32(e.abStep),""!==e.info&&t.uint32(18).string(e.info),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.abStep=i.int32();continue;case 2:if(18!==e)break;a.info=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lR.fromPartial(e??{}),fromPartial(e){let t=lN();return t.abStep=e.abStep??0,t.info=e.info??"",t}};function lP(){return{cofStep:0,info:""}}let lO={encode:(e,t=sU.default.Writer.create())=>(0!==e.cofStep&&t.uint32(8).int32(e.cofStep),""!==e.info&&t.uint32(18).string(e.info),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.cofStep=i.int32();continue;case 2:if(18!==e)break;a.info=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lO.fromPartial(e??{}),fromPartial(e){let t=lP();return t.cofStep=e.cofStep??0,t.info=e.info??"",t}};function lC(){return{lastCofStep:void 0,lastAbStep:void 0,budgetGroupId:0}}let ly={encode:(e,t=sU.default.Writer.create())=>
2(void 0!==e.lastCofStep&&lO.encode(e.lastCofStep,t.uint32(10).fork()).ldelim(),void 0!==e.lastAbStep&&lR.encode(e.lastAbStep,t.uint32(18).fork()).ldelim(),0!==e.budgetGroupId&&t.uint32(24).uint32(e.budgetGroupId),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.lastCofStep=lO.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.lastAbStep=lR.decode(i,i.uint32());continue;case 3:if(24!==e)break;a.budgetGroupId=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ly.fromPartial(e??{}),fromPartial(e){let t=lC();return t.lastCofStep=void 0!==e.lastCofStep&&null!==e.lastCofStep?lO.fromPartial(e.lastCofStep):void 0,t.lastAbStep=void 0!==e.lastAbStep&&null!==e.lastAbStep?lR.fromPartial(e.lastAbStep):void 0,t.budgetGroupId=e.budgetGroupId??0,t}};var lh=sU;function lL(){return{mediaQualityType:0,videoPlaybackType:0}}(iz=C||(C={}))[iz.MEDIA_QUALITY_TYPE_UNKNOWN=0]="MEDIA_QUALITY_TYPE_UNKNOWN",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_1=100]="MEDIA_QUALITY_TYPE_LEVEL_1",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_2=200]="MEDIA_QUALITY_TYPE_LEVEL_2",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_3=300]="MEDIA_QUALITY_TYPE_LEVEL_3",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_4=400]="MEDIA_QUALITY_TYPE_LEVEL_4",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_5=500]="MEDIA_QUALITY_TYPE_LEVEL_5",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_6=600]="MEDIA_QUALITY_TYPE_LEVEL_6",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_7=700]="MEDIA_QUALITY_TYPE_LEVEL_7",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_MAX=5e3]="MEDIA_QUALITY_TYPE_LEVEL_MAX",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_4_5=450]="MEDIA_QUALITY_TYPE_LEVEL_4_5",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_2_1=210]="MEDIA_QUALITY_TYPE_LEVEL_2_1",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_2_2=220]="MEDIA_QUALITY_TYPE_LEVEL_2_2",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_2_5=250]="MEDIA_QUALITY_TYPE_LEVEL_2_5",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_3_2=320]="MEDIA_QUALITY_TYPE_LEVEL_3_2",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_3_5=350]="MEDIA_QUALITY_TYPE_LEVEL_3_5",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_2_7=270]="MEDIA_QUALITY_TYPE_LEVEL_2_7",iz[iz.MEDIA_QUALITY_TYPE_LEVEL_6_5=650]="MEDIA_QUALITY_TYPE_LEVEL_6_5",iz[iz.UNRECOGNIZED=-1]="UNRECOGNIZED",(iq=y||(y={}))[iq.UNKNOWN_VIDEO_PLAYBACK_TYPE=0]="UNKNOWN_VIDEO_PLAYBACK_TYPE",iq[iq.FASTSTART_DISABLED=1]="FASTSTART_DISABLED",iq[iq.FASTSTART_ENABLED=2]="FASTSTART_ENABLED",iq[iq.HTTP_STREAMING_DASH=3]="HTTP_STREAMING_DASH",iq[iq.HTTP_STREAMING_HLS=4]="HTTP_STREAMING_HLS",iq[iq.UNRECOGNIZED=-1]="UNRECOGNIZED",(iZ=h||(h={}))[iZ.CAN_EXTEND_MEDIA_CLAIM=0]="CAN_EXTEND_MEDIA_CLAIM",iZ[iZ.DO_NOT_CLAIM=1]="DO_NOT_CLAIM",iZ[iZ.UNRECOGNIZED=-1]="UNRECOGNIZED";let lD={encode:(e,t=sU.default.Writer.create())=>(0!==e.mediaQualityType&&t.uint32(16).int32(e.mediaQualityType),0!==e.videoPlaybackType&&t.uint32(8).int32(e.videoPlaybackType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 2:if(16!==e)break;a.mediaQualityType=i.int32();continue;case 1:if(8!==e)break;a.videoPlaybackType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lD.fromPartial(e??{}),fromPartial(e){let t=lL();return t.mediaQualityType=e.mediaQualityType??0,t.videoPlaybackType=e.videoPlaybackType??0,t}};function lw(){return{mediaListId:"0",claimBehavior:0,url:"",contentObject:new Uint8Array(0),localContentKey:"",localCacheKey:"",videoDescription:void 0,mediaType:0}}let lM={encode:(e,t=sU.default.Writer.create())=>("0"!==e.mediaListId&&t.uint32(48).int64(e.mediaListId),0!==e.claimBehavior&&t.uint32(56).int32(e.claimBehavior),""!==e.url&&t.uint32(18).string(e.url),0!==e.contentObject.length&&t.uint32(26).bytes(e.contentObject),""!==e.localContentKey&&t.uint32(74).string(e.localContentKey),""!==e.localCacheKey&&t.uint32(82).string(e.localCacheKey),void 0!==e.videoDescription&&lD.encode(e.videoDescription,t.uint32(42).fork()).ldelim(),0!==e.mediaType&&t.uint32(64).int32(e.mediaType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lw();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 6:if(48!==e)break;a.mediaListId=i.int64().toString();continue;case 7:if(56!==e)break;a.claimBehavior=i.int32();continue;case 2:if(18!==e)break;a.url=i.string();continue;case 3:if(26!==e)break;a.contentObject=i.bytes();continue;case 9:if(74!==e)break;a.localContentKey=i.string();continue;case 10:if(82!==e)break;a.localCacheKey=i.string();continue;case 5:if(42!==e)break;a.videoDescription=lD.decode(i,i.uint32());continue;case 8:if(64!==e)break;a.mediaType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lM.fromPartial(e??{}),fromPartial(e){let t=lw();return t.mediaListId=e.mediaListId??"0",t.claimBehavior=e.claimBehavior??0,t.url=e.url??"",t.contentObject=e.contentObject??new Uint8Array(0),t.localContentKey=e.localContentKey??"",t.localCacheKey=e.localCacheKey??"",t.videoDescription=void 0!==e.videoDescription&&null!==e.videoDescription?lD.fromPartial(e.videoDescription):void 0,t.mediaType=e.mediaType??0,t}};function lU(){return{highBits:"0",lowBits:"0"}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let lV={encode:(e,t=sU.default.Writer.create())=>("0"!==e.highBits&&t.uint32(9).fixed64(e.highBits),"0"!==e.lowBits&&t.uint32(17).fixed64(e.lowBits),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lU();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(9!==e)break;a.highBits=lB(i.fixed64());continue;case 2:if(17!==e)break;a.lowBits=lB(i.fixed64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lV.fromPartial(e??{}),fromPartial(e){let t=lU();return t.highBits=e.highBits??"0",t.lowBits=e.lowBits??"0",t}};function lB(e){return e.toString()}function lF(){return{flashOn:!1,frontFacing:!1}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let lG={encode:(e,t=sU.default.Writer.create())=>(!1!==e.flashOn&&t.uint32(8).bool(e.flashOn),!1!==e.frontFacing&&t.uint32(16).bool(e.frontFacing),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.flashOn=i.bool();continue;case 2:if(16!==e)break;a.frontFacing=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lG.fromPartial(e??{}),fromPartial(e){let t=lF();return t.flashOn=e.flashOn??!1,t.frontFacing=e.frontFacing??!1,t}};function lW(){return{mediaListId:"0"}}let lx={encode:(e,t=sU.default.Writer.create())=>("0"!==e.mediaListId&&t.uint32(8).int64(e.mediaListId),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mediaListId=i.int64().toString();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lx.fromPartial(e??{}),fromPartial(e){let t=lW();return t.mediaListId=e.mediaListId??"0",t}};function lH(){return{codecFormat:0}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure()),(ij=L||(L={}))[ij.VERTICAL=0]="VERTICAL",ij[ij.HORIZONTAL=1]="HORIZONTAL",ij[ij.UNRECOGNIZED=-1]="UNRECOGNIZED",(iX=D||(D={}
2))[iX.UNSET=0]="UNSET",iX[iX.UP=1]="UP",iX[iX.DOWN=2]="DOWN",iX[iX.LEFT=3]="LEFT",iX[iX.RIGHT=4]="RIGHT",iX[iX.UP_MIRRORED=5]="UP_MIRRORED",iX[iX.DOWN_MIRRORED=6]="DOWN_MIRRORED",iX[iX.LEFT_MIRRORED=7]="LEFT_MIRRORED",iX[iX.RIGHT_MIRRORED=8]="RIGHT_MIRRORED",iX[iX.UNRECOGNIZED=-1]="UNRECOGNIZED",(iQ=w||(w={}))[iQ.IMAGE=0]="IMAGE",iQ[iQ.VIDEO=1]="VIDEO",iQ[iQ.GIF=2]="GIF",iQ[iQ.AUDIO=3]="AUDIO",iQ[iQ.UNKNOWN=4]="UNKNOWN",iQ[iQ.UNRECOGNIZED=-1]="UNRECOGNIZED",(iJ=M||(M={}))[iJ.GCS=0]="GCS",iJ[iJ.S3=1]="S3",iJ[iJ.UNRECOGNIZED_VALUE=2]="UNRECOGNIZED_VALUE",iJ[iJ.UNRECOGNIZED=-1]="UNRECOGNIZED",(i0=U||(U={}))[i0.UNSET=0]="UNSET",i0[i0.NONE=1]="NONE",i0[i0.UNKNOWN=2]="UNKNOWN",i0[i0.SNAPCHAT=3]="SNAPCHAT",i0[i0.TIKTOK=4]="TIKTOK",i0[i0.INSTAGRAM=5]="INSTAGRAM",i0[i0.CAPCUT=6]="CAPCUT",i0[i0.MAP_SCREENSHOT=7]="MAP_SCREENSHOT",i0[i0.UNRECOGNIZED=-1]="UNRECOGNIZED",(i2=V||(V={}))[i2.UNSET=0]="UNSET",i2[i2.NONE=1]="NONE",i2[i2.GEN_ML=2]="GEN_ML",i2[i2.UCO=3]="UCO",i2[i2.UNRECOGNIZED=-1]="UNRECOGNIZED",(i3=B||(B={}))[i3.UNSET=0]="UNSET",i3[i3.CAPTURED=1]="CAPTURED",i3[i3.GENERATED=2]="GENERATED",i3[i3.UNRECOGNIZED=-1]="UNRECOGNIZED";let lY={encode:(e,t=lh.default.Writer.create())=>(0!==e.codecFormat&&t.uint32(8).int32(e.codecFormat),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.codecFormat=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lY.fromPartial(e??{}),fromPartial(e){let t=lH();return t.codecFormat=e.codecFormat??0,t}};function lK(){return{codecFormat:0}}let l$={encode:(e,t=lh.default.Writer.create())=>(0!==e.codecFormat&&t.uint32(8).int32(e.codecFormat),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.codecFormat=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>l$.fromPartial(e??{}),fromPartial(e){let t=lK();return t.codecFormat=e.codecFormat??0,t}};function lz(){return{codecFormat:0,containerFormat:0}}let lq={encode:(e,t=lh.default.Writer.create())=>(0!==e.codecFormat&&t.uint32(8).int32(e.codecFormat),0!==e.containerFormat&&t.uint32(16).int32(e.containerFormat),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lz();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.codecFormat=i.int32();continue;case 2:if(16!==e)break;a.containerFormat=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lq.fromPartial(e??{}),fromPartial(e){let t=lz();return t.codecFormat=e.codecFormat??0,t.containerFormat=e.containerFormat??0,t}};function lZ(){return{orientation:0,dimensions:void 0,mediaDurationMs:0,mediaId:void 0,encryptionInfoV1:void 0,encryptionInfoV2:void 0,masterKeyEncryptedEncryptionInfo:void 0,assetType:0,captureCharacteristics:void 0,origin:void 0,additionalOrigins:[],displayOrientation:0,audio:void 0,image:void 0,video:void 0,type:0,sourceMedia:void 0,mediaUrl:"",hasSound:!1,zipped:!1,frontFacing:!1,mediaReference:void 0}}let lj={encode(e,t=lh.default.Writer.create()){switch(0!==e.orientation&&t.uint32(24).int32(e.orientation),void 0!==e.dimensions&&lQ.encode(e.dimensions,t.uint32(42).fork()).ldelim(),0!==e.mediaDurationMs&&t.uint32(120).uint32(e.mediaDurationMs),void 0!==e.mediaId&&lx.encode(e.mediaId,t.uint32(146).fork()).ldelim(),void 0!==e.encryptionInfoV1&&l0.encode(e.encryptionInfoV1,t.uint32(34).fork()).ldelim(),void 0!==e.encryptionInfoV2&&l0.encode(e.encryptionInfoV2,t.uint32(154).fork()).ldelim(),void 0!==e.masterKeyEncryptedEncryptionInfo&&l0.encode(e.masterKeyEncryptedEncryptionInfo,t.uint32(250).fork()).ldelim(),0!==e.assetType&&t.uint32(160).int32(e.assetType),void 0!==e.captureCharacteristics&&lG.encode(e.captureCharacteristics,t.uint32(170).fork()).ldelim(),e.origin?.$case){case"mediaOriginCamera":l7.encode(e.origin.mediaOriginCamera,t.uint32(210).fork()).ldelim();break;case"mediaOriginExternalStorage":ct.encode(e.origin.mediaOriginExternalStorage,t.uint32(218).fork()).ldelim();break;case"mediaOriginPixy":l5.encode(e.origin.mediaOriginPixy,t.uint32(226).fork()).ldelim();break;case"mediaOriginSpectacles":l9.encode(e.origin.mediaOriginSpectacles,t.uint32(234).fork()).ldelim();break;case"mediaOriginAi":ca.encode(e.origin.mediaOriginAi,t.uint32(242).fork()).ldelim();break;case"dreamsMetadata":cr.encode(e.origin.dreamsMetadata,t.uint32(258).fork()).ldelim();break;case"mediaOriginMyAi":cd.encode(e.origin.mediaOriginMyAi,t.uint32(274).fork()).ldelim()}for(let i of e.additionalOrigins)l6.encode(i,t.uint32(266).fork()).ldelim();switch(0!==e.displayOrientation&&t.uint32(176).int32(e.displayOrientation),void 0!==e.audio&&lY.encode(e.audio,t.uint32(186).fork()).ldelim(),void 0!==e.image&&l$.encode(e.image,t.uint32(194).fork()).ldelim(),void 0!==e.video&&lq.encode(e.video,t.uint32(202).fork()).ldelim(),0!==e.type&&t.uint32(16).int32(e.type),e.sourceMedia?.$case){case"legacyMediaSource":l3.encode(e.sourceMedia.legacyMediaSource,t.uint32(50).fork()).ldelim();break;case"contentDescriptor":t.uint32(58).bytes(e.sourceMedia.contentDescriptor)}return""!==e.mediaUrl&&t.uint32(74).string(e.mediaUrl),!1!==e.hasSound&&t.uint32(96).bool(e.hasSound),!1!==e.zipped&&t.uint32(104).bool(e.zipped),!1!==e.frontFacing&&t.uint32(112).bool(e.frontFacing),void 0!==e.mediaReference&&lM.encode(e.mediaReference,t.uint32(138).fork()).ldelim(),t},decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lZ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 3:if(24!==e)break;a.orientation=i.int32();continue;case 5:if(42!==e)break;a.dimensions=lQ.decode(i,i.uint32());continue;case 15:if(120!==e)break;a.mediaDurationMs=i.uint32();continue;case 18:if(146!==e)break;a.mediaId=lx.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.encryptionInfoV1=l0.decode(i,i.uint32());continue;case 19:if(154!==e)break;a.encryptionInfoV2=l0.decode(i,i.uint32());continue;case 31:if(250!==e)break;a.masterKeyEncryptedEncryptionInfo=l0.decode(i,i.uint32());continue;case 20:if(160!==e)break;a.assetType=i.int32();continue;case 21:if(170!==e)break;a.captureCharacteristics=lG.decode(i,i.uint32());continue;case 26:if(210!==e)break;a.origin={$case:"mediaOriginCamera",mediaOriginCamera:l7.decode(i,i.uint32())};continue;case 27:if(218!==e)break;a.origin={$case:"mediaOriginExternalStorage",mediaOriginExternalStorage:ct.decode(i,i.uint32())};continue;case 28:if(226!==e)break;a.origin={$case:"mediaOriginPixy",mediaOriginPixy:l5.decode(i,i.uint32())};continue;case 29:if(234!==e)break;a.origin={$case:"mediaOriginSpectacles",mediaOriginSpectacles:l9.decode(i,i.uint32())};continue;case 30:if(242!==e)break;a.origin={$case:"mediaOriginAi",mediaOriginAi:ca.decode(i,i.uint32())};continue;case 32:if(258!==e)break;a.origin={$case:"dreamsMetadata",dreamsMetadata:cr.decode(i,i.uint32())};continue;case 34:if(274!==e)break;a.origin={$case:"mediaOriginMyAi",mediaOriginMyAi:cd.decode(i,i.uint32())};continue;case 33:if(266!==e)break;a.additionalOrigins.push(l6.decode(i,i.uint32()));continue;case 22:if(176!==e)break;a.displayOrientation=i.int32();continue;case 23:if(186!==e)break;a.audio=lY.decode(i,i.uint32());continue;case 24:if(194!==e)break;a.image=l$.decode(i,i.uint32());continue;case 25:if(202!==e)break;a.video=lq.decode(i,i.uint32());continue;case 2:if(16!==e)break;a.type=i.int32();continue;case 6:if(50!==e)break;a.sourceMedia={$case:"legacyMediaSource",legacyMediaSource:l3.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.sourceMedia={$case:"contentDescriptor",contentDescriptor:i.bytes()};continue;case 9:if(74!==e)break;a.mediaUrl=i.string();continue;case 12:if(96!==e)break;a.hasSound=i.bool();continue;case 13:if(104!==e)break;a.zipped=i.bool();continue;case 14:if(112!==e)break;a.frontFacing=i.bool();continue;case 17:if(138!==e)break;a.mediaReference=lM.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lj.fromPartial(e??{}),fromPartial(e){let t=lZ();return t.orientation=e.orientation??0,t.dimensions=void 0!==e.dimensions&&null!==e.dimensions?lQ.fromPartial(e.dimensions):void 0,t.mediaDurationMs=e.mediaDurationMs??0,t.mediaId=void 0!==e.mediaId&&null!==e.mediaId?lx.fromPartial(e.mediaId):void 0,t.encryptionInfoV1=void 0!==e.encryptionInfoV1&&null!==e.encryptionInfoV1?l0.fromPartial(e.encryptionInfoV1):void 0,t.encryptionInfoV2=void 0!==e.encryptionInfoV2&&null!==e.encryptionInfoV2?l0.fromPartial(e.encryptionInfoV2):void 0,t.masterKeyEncryptedEncryptionInfo=void 0!==e.masterKeyEncryptedEncryptionInfo&&null!==e.masterKeyEncryptedEncryptionInfo?l0.fromPartial(e.masterKeyEncryptedEncryptionInfo):void 0,t.assetType=e.assetType??0,t.captureCharacteristics=void 0!==e.captureCharacteristics&&null!==e.captureCharacteristics?lG.fromPartial(e.captureCharacteristics):void 0,e.origin?.$case==="mediaOriginCamera"&&e.origin?.mediaOriginCamera!==void 0&&e.origin?.mediaOriginCamera!==null&&(t.origin={$case:"mediaOriginCamera",mediaOriginCamera:l7.fromPartial(e.origin.mediaOriginCamera)}),e.origin?.$case==="mediaOriginExternalStorage"&&e.origin?.mediaOriginExternalStorage!==void 0&&e.origin?.mediaOriginExternalStorage!==null&&(t.origin={$case:"mediaOriginExternalStorage",mediaOriginExternalStorage:ct.fromPartial(e.origin.mediaOriginExternalStorage)}),e.origin?.$case==="mediaOriginPixy"&&e.origin?.mediaOriginPixy!==void 0&&e.origin?.mediaOriginPixy!==null&&(t.origin={$case:"mediaOriginPixy",mediaOriginPixy:l5.fromPartial(e.origin.mediaOriginPixy)}),e.origin?.$case==="mediaOriginSpectacles"&&e.origin?.mediaOriginSpectacles!==void 0&&e.origin?.mediaOriginSpectacles!==null&&(t.origin={$case:"mediaOriginSpectacles",mediaOriginSpectacles:l9.fromPartial(e.origin.mediaOriginSpectacles)}),e.origin?.$case==="mediaOriginAi"&&e.origin?.mediaOriginAi!==void 0&&e.origin?.mediaOriginAi!==null&&(t.origin={$case:"mediaOriginAi",mediaOriginAi:ca.fromPartial(e.origin.mediaOriginAi)}),e.origin?.$case==="dreamsMetadata"&&e.origin?.dreamsMetadata!==void 0&&e.origin?.dreamsMetadata!==null&&(t.origin={$case:"dreamsMetadata",dreamsMetadata:cr.fromPartial(e.origin.dreamsMetadata)}),e.origin?.$case==="mediaOriginMyAi"&&e.origin?.mediaOriginMyAi!==void 0&&e.origin?.mediaOriginMyAi!==null&&(t.origin={$case:"mediaOriginMyAi",mediaOriginMyAi:cd.fromPartial(e.origin.mediaOriginMyAi)}),t.additionalOrigins=e.additionalOrigins?.map(e=>l6.fromPartial(e))||[],t.displayOrientation=e.displayOrientation??0,t.audio=void 0!==e.audio&&null!==e.audio?lY.fromPartial(e.audio):void 0,t.image=void 0!==e.image&&null!==e.image?l$.fromPartial(e.image):void 0,t.video=void 0!==e.video&&null!==e.video?lq.fromPartial(e.video):void 0,t.type=e.type??0,e.sourceMedia?.$case==="legacyMediaSource"&&e.sourceMedia?.legacyMediaSource!==void 0&&e.sourceMedia?.legacyMediaSource!==null&&(t.sourceMedia={$case:"legacyMediaSource",legacyMediaSource:l3.fromPartial(e.sourceMedia.legacyMediaSource)}),e.sourceMedia?.$case==="contentDescriptor"&&e.sourceMedia?.contentDescriptor!==void 0&&e.sourceMedia?.contentDescriptor!==null&&(t.sourceMedia={$case:"contentDescriptor",contentDescriptor:e.sourceMedia.contentDescriptor}),t.mediaUrl=e.mediaUrl??"",t.hasSound=e.hasSound??!1,t.zipped=e.zipped??!1,t.frontFacing=e.frontFacing??!1,t.mediaReference=void 0!==e.mediaReference&&null!==e.mediaReference?lM.fromPartial(e.mediaReference):void 0,t}};function lX(){return{width:0,height:0}}let lQ={encode:(e,t=lh.default.Writer.create())=>(0!==e.width&&t.uint32(8).uint32(e.width),0!==e.height&&t.uint32(16).uint32(e.height),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.width=i.uint32();continue;case 2:if(16!==e)break;a.height=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>lQ.fromPartial(e??{}),fromPartial(e){let t=lX();return t.width=e.width??0,t.height=e.height??0,t}};function lJ(){return{key:new Uint8Array(0),iv:new Uint8Array(0)}}let l0={encode:(e,t=lh.default.Writer.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.iv.length&&t.uint32(18).bytes(e.iv),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=lJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.bytes();continue;case 2:if(18!==e)break;a.iv=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>l0.fromPartial(e??{}
2),fromPartial(e){let t=lJ();return t.key=e.key??new Uint8Array(0),t.iv=e.iv??new Uint8Array(0),t}};function l2(){return{sourceMediaId:"",directDownloadUrl:void 0}}let l3={encode:(e,t=lh.default.Writer.create())=>(""!==e.sourceMediaId&&t.uint32(10).string(e.sourceMediaId),void 0!==e.directDownloadUrl&&l4.encode(e.directDownloadUrl,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=l2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.sourceMediaId=i.string();continue;case 2:if(18!==e)break;a.directDownloadUrl=l4.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>l3.fromPartial(e??{}),fromPartial(e){let t=l2();return t.sourceMediaId=e.sourceMediaId??"",t.directDownloadUrl=void 0!==e.directDownloadUrl&&null!==e.directDownloadUrl?l4.fromPartial(e.directDownloadUrl):void 0,t}};function l1(){return{url:"",expirySeconds:"0",type:0,region:""}}let l4={encode:(e,t=lh.default.Writer.create())=>(""!==e.url&&t.uint32(10).string(e.url),"0"!==e.expirySeconds&&t.uint32(16).uint64(e.expirySeconds),0!==e.type&&t.uint32(24).int32(e.type),""!==e.region&&t.uint32(34).string(e.region),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=l1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.url=i.string();continue;case 2:if(16!==e)break;a.expirySeconds=cs(i.uint64());continue;case 3:if(24!==e)break;a.type=i.int32();continue;case 4:if(34!==e)break;a.region=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>l4.fromPartial(e??{}),fromPartial(e){let t=l1();return t.url=e.url??"",t.expirySeconds=e.expirySeconds??"0",t.type=e.type??0,t.region=e.region??"",t}};function l8(){return{origin:void 0}}let l6={encode(e,t=lh.default.Writer.create()){switch(e.origin?.$case){case"mediaOriginCamera":l7.encode(e.origin.mediaOriginCamera,t.uint32(10).fork()).ldelim();break;case"mediaOriginExternalStorage":ct.encode(e.origin.mediaOriginExternalStorage,t.uint32(18).fork()).ldelim();break;case"mediaOriginPixy":l5.encode(e.origin.mediaOriginPixy,t.uint32(26).fork()).ldelim();break;case"mediaOriginSpectacles":l9.encode(e.origin.mediaOriginSpectacles,t.uint32(34).fork()).ldelim();break;case"mediaOriginAi":ca.encode(e.origin.mediaOriginAi,t.uint32(42).fork()).ldelim();break;case"dreamsMetadata":cr.encode(e.origin.dreamsMetadata,t.uint32(50).fork()).ldelim();break;case"mediaOriginMyAi":cd.encode(e.origin.mediaOriginMyAi,t.uint32(58).fork()).ldelim()}return t},decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=l8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.origin={$case:"mediaOriginCamera",mediaOriginCamera:l7.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.origin={$case:"mediaOriginExternalStorage",mediaOriginExternalStorage:ct.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.origin={$case:"mediaOriginPixy",mediaOriginPixy:l5.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.origin={$case:"mediaOriginSpectacles",mediaOriginSpectacles:l9.decode(i,i.uint32())};continue;case 5:if(42!==e)break;a.origin={$case:"mediaOriginAi",mediaOriginAi:ca.decode(i,i.uint32())};continue;case 6:if(50!==e)break;a.origin={$case:"dreamsMetadata",dreamsMetadata:cr.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.origin={$case:"mediaOriginMyAi",mediaOriginMyAi:cd.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>l6.fromPartial(e??{}),fromPartial(e){let t=l8();return e.origin?.$case==="mediaOriginCamera"&&e.origin?.mediaOriginCamera!==void 0&&e.origin?.mediaOriginCamera!==null&&(t.origin={$case:"mediaOriginCamera",mediaOriginCamera:l7.fromPartial(e.origin.mediaOriginCamera)}),e.origin?.$case==="mediaOriginExternalStorage"&&e.origin?.mediaOriginExternalStorage!==void 0&&e.origin?.mediaOriginExternalStorage!==null&&(t.origin={$case:"mediaOriginExternalStorage",mediaOriginExternalStorage:ct.fromPartial(e.origin.mediaOriginExternalStorage)}),e.origin?.$case==="mediaOriginPixy"&&e.origin?.mediaOriginPixy!==void 0&&e.origin?.mediaOriginPixy!==null&&(t.origin={$case:"mediaOriginPixy",mediaOriginPixy:l5.fromPartial(e.origin.mediaOriginPixy)}),e.origin?.$case==="mediaOriginSpectacles"&&e.origin?.mediaOriginSpectacles!==void 0&&e.origin?.mediaOriginSpectacles!==null&&(t.origin={$case:"mediaOriginSpectacles",mediaOriginSpectacles:l9.fromPartial(e.origin.mediaOriginSpectacles)}),e.origin?.$case==="mediaOriginAi"&&e.origin?.mediaOriginAi!==void 0&&e.origin?.mediaOriginAi!==null&&(t.origin={$case:"mediaOriginAi",mediaOriginAi:ca.fromPartial(e.origin.mediaOriginAi)}),e.origin?.$case==="dreamsMetadata"&&e.origin?.dreamsMetadata!==void 0&&e.origin?.dreamsMetadata!==null&&(t.origin={$case:"dreamsMetadata",dreamsMetadata:cr.fromPartial(e.origin.dreamsMetadata)}),e.origin?.$case==="mediaOriginMyAi"&&e.origin?.mediaOriginMyAi!==void 0&&e.origin?.mediaOriginMyAi!==null&&(t.origin={$case:"mediaOriginMyAi",mediaOriginMyAi:cd.fromPartial(e.origin.mediaOriginMyAi)}),t}},l7={encode:(e,t=lh.default.Writer.create())=>t,decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>l7.fromPartial(e??{}),fromPartial:e=>({})},l5={encode:(e,t=lh.default.Writer.create())=>t,decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>l5.fromPartial(e??{}),fromPartial:e=>({})},l9={encode:(e,t=lh.default.Writer.create())=>t,decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>l9.fromPartial(e??{}),fromPartial:e=>({})};function ce(){return{creationTimestamp:"0",mediaSource:0,insecureFileMetadata:void 0,originalLocalIds:[]}}let ct={encode(e,t=lh.default.Writer.create()){for(let i of("0"!==e.creationTimestamp&&t.uint32(8).uint64(e.creationTimestamp),0!==e.mediaSource&&t.uint32(16).int32(e.mediaSource),void 0!==e.insecureFileMetadata&&cn.encode(e.insecureFileMetadata,t.uint32(42).fork()).ldelim(),e.originalLocalIds))t.uint32(50).string(i);return t},decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ce();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.creationTimestamp=cs(i.uint64());continue;case 2:if(16!==e)break;a.mediaSource=i.int32();continue;case 5:if(42!==e)break;a.insecureFileMetadata=cn.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.originalLocalIds.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ct.fromPartial(e??{}),fromPartial(e){let t=ce();return t.creationTimestamp=e.creationTimestamp??"0",t.mediaSource=e.mediaSource??0,t.insecureFileMetadata=void 0!==e.insecureFileMetadata&&null!==e.insecureFileMetadata?cn.fromPartial(e.insecureFileMetadata):void 0,t.originalLocalIds=e.originalLocalIds?.map(e=>e)||[],t}};function ci(){return{lensId:[],musicTrackId:"0"}}let cn={encode(e,t=lh.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.lensId))t.uint64(i);return t.ldelim(),"0"!==e.musicTrackId&&t.uint32(16).uint64(e.musicTrackId),t},decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ci();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.lensId.push(cs(i.uint64()));continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.lensId.push(cs(i.uint64()));continue}break;case 2:if(16!==e)break;a.musicTrackId=cs(i.uint64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cn.fromPartial(e??{}),fromPartial(e){let t=ci();return t.lensId=e.lensId?.map(e=>e)||[],t.musicTrackId=e.musicTrackId??"0",t}},ca={encode:(e,t=lh.default.Writer.create())=>t,decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>ca.fromPartial(e??{}),fromPartial:e=>({})};function co(){return{packId:"",templateId:"",contentType:[],originalUserId:"",usersId:[],generationId:void 0,identityIds:[]}}let cr={encode(e,t=lh.default.Writer.create()){for(let i of(""!==e.packId&&t.uint32(10).string(e.packId),""!==e.templateId&&t.uint32(18).string(e.templateId),t.uint32(26).fork(),e.contentType))t.int32(i);for(let i of(t.ldelim(),""!==e.originalUserId&&t.uint32(34).string(e.originalUserId),e.usersId))t.uint32(42).string(i);for(let i of(void 0!==e.generationId&&lV.encode(e.generationId,t.uint32(50).fork()).ldelim(),e.identityIds))t.uint32(58).string(i);return t},decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=co();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.packId=i.string();continue;case 2:if(18!==e)break;a.templateId=i.string();continue;case 3:if(24===e){a.contentType.push(i.int32());continue}if(26===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.contentType.push(i.int32());continue}break;case 4:if(34!==e)break;a.originalUserId=i.string();continue;case 5:if(42!==e)break;a.usersId.push(i.string());continue;case 6:if(50!==e)break;a.generationId=lV.decode(i,i.uint32());continue;case 7:if(58!==e)break;a.identityIds.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cr.fromPartial(e??{}),fromPartial(e){let t=co();return t.packId=e.packId??"",t.templateId=e.templateId??"",t.contentType=e.contentType?.map(e=>e)||[],t.originalUserId=e.originalUserId??"",t.usersId=e.usersId?.map(e=>e)||[],t.generationId=void 0!==e.generationId&&null!==e.generationId?lV.fromPartial(e.generationId):void 0,t.identityIds=e.identityIds?.map(e=>e)||[],t}},cd={encode:(e,t=lh.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){let i=e instanceof lh.default.Reader?e:lh.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={type:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cd.fromPartial(e??{}),fromPartial(e){let t={type:0};return t.type=e.type??0,t}};function cs(e){return e.toString()}function cl(){return{emailVerified:!1,phoneVerified:!1,notificationPermGranted:!1,contactPermGranted:!1,mutualFriendsCount:0,groupsCount:0,hasNonTeamSnapchatConversations:!1,emailSet:!1,bitmojiSet:!1,hasAddFriendsRequest:!1,appLaunchFromPush:!1,appLaunchType:0,campaignLocalImpressionCount:0,campaignLocalLastImpressionTimeSecsToNow:"0",campaignLocalContinuousDismissCount:0,fstNumInAppWarnings:0,fstShouldChangePassword:!1,audioRecordPermGranted:!1,mutualFriendsWithBirthdayCount:0,campaignLocalDismissCount:0,memoriesCount:0,campaignLocalFirstImpressionTimeSecsToNow:"0",campaignLocalClickCount:0,campaignLocalInteractionCount:0,campaignLocalLastInteractionTimeSecsToNow:"0",lockScreenWidgetAppOpenFromPush:!1,communityCount:0,campaignLocalFirstClickTimeSecsToNow:"0",campaignLocalLastClickTimeSecsToNow:"0",campaignLocalFirstDismissT
2imeSecsToNow:"0",campaignLocalLastDismissTimeSecsToNow:"0",campaignLocalFirstInteractionTimeSecsToNow:"0",serverImpressionCount:0,serverClickCount:0,serverDismissCount:0,serverInteractionCount:0,serverFirstImpressionTimeSecsToNow:"0",serverLastImpressionTimeSecsToNow:"0",serverFirstClickTimeSecsToNow:"0",serverLastClickTimeSecsToNow:"0",serverFirstDismissTimeSecsToNow:"0",serverLastDismissTimeSecsToNow:"0",serverFirstInteractionTimeSecsToNow:"0",serverLastInteractionTimeSecsToNow:"0",serverContinuousDismissCount:0,contactPermOsGranted:!1,contactPermUserGranted:!1,contactPermOsAuthorizationStatus:0,notificationAlertsLockScreenEnabled:!1,notificationAlertsNotificationCenterEnabled:!1,notificationAlertsBannerEnabled:!1,passkeySet:!1}}lh.default.util.Long!==rv.default&&(lh.default.util.Long=rv.default,lh.default.configure());let cc={encode:(e,t=sU.default.Writer.create())=>(!1!==e.emailVerified&&t.uint32(8).bool(e.emailVerified),!1!==e.phoneVerified&&t.uint32(16).bool(e.phoneVerified),!1!==e.notificationPermGranted&&t.uint32(24).bool(e.notificationPermGranted),!1!==e.contactPermGranted&&t.uint32(32).bool(e.contactPermGranted),0!==e.mutualFriendsCount&&t.uint32(40).int32(e.mutualFriendsCount),0!==e.groupsCount&&t.uint32(48).int32(e.groupsCount),!1!==e.hasNonTeamSnapchatConversations&&t.uint32(56).bool(e.hasNonTeamSnapchatConversations),!1!==e.emailSet&&t.uint32(64).bool(e.emailSet),!1!==e.bitmojiSet&&t.uint32(72).bool(e.bitmojiSet),!1!==e.hasAddFriendsRequest&&t.uint32(80).bool(e.hasAddFriendsRequest),!1!==e.appLaunchFromPush&&t.uint32(88).bool(e.appLaunchFromPush),0!==e.appLaunchType&&t.uint32(96).int32(e.appLaunchType),0!==e.campaignLocalImpressionCount&&t.uint32(104).int32(e.campaignLocalImpressionCount),"0"!==e.campaignLocalLastImpressionTimeSecsToNow&&t.uint32(112).int64(e.campaignLocalLastImpressionTimeSecsToNow),0!==e.campaignLocalContinuousDismissCount&&t.uint32(120).int32(e.campaignLocalContinuousDismissCount),0!==e.fstNumInAppWarnings&&t.uint32(128).int32(e.fstNumInAppWarnings),!1!==e.fstShouldChangePassword&&t.uint32(136).bool(e.fstShouldChangePassword),!1!==e.audioRecordPermGranted&&t.uint32(144).bool(e.audioRecordPermGranted),0!==e.mutualFriendsWithBirthdayCount&&t.uint32(152).int32(e.mutualFriendsWithBirthdayCount),0!==e.campaignLocalDismissCount&&t.uint32(160).int32(e.campaignLocalDismissCount),0!==e.memoriesCount&&t.uint32(168).int32(e.memoriesCount),"0"!==e.campaignLocalFirstImpressionTimeSecsToNow&&t.uint32(176).int64(e.campaignLocalFirstImpressionTimeSecsToNow),0!==e.campaignLocalClickCount&&t.uint32(184).int32(e.campaignLocalClickCount),0!==e.campaignLocalInteractionCount&&t.uint32(192).int32(e.campaignLocalInteractionCount),"0"!==e.campaignLocalLastInteractionTimeSecsToNow&&t.uint32(200).int64(e.campaignLocalLastInteractionTimeSecsToNow),!1!==e.lockScreenWidgetAppOpenFromPush&&t.uint32(208).bool(e.lockScreenWidgetAppOpenFromPush),0!==e.communityCount&&t.uint32(216).int32(e.communityCount),"0"!==e.campaignLocalFirstClickTimeSecsToNow&&t.uint32(224).int64(e.campaignLocalFirstClickTimeSecsToNow),"0"!==e.campaignLocalLastClickTimeSecsToNow&&t.uint32(232).int64(e.campaignLocalLastClickTimeSecsToNow),"0"!==e.campaignLocalFirstDismissTimeSecsToNow&&t.uint32(240).int64(e.campaignLocalFirstDismissTimeSecsToNow),"0"!==e.campaignLocalLastDismissTimeSecsToNow&&t.uint32(248).int64(e.campaignLocalLastDismissTimeSecsToNow),"0"!==e.campaignLocalFirstInteractionTimeSecsToNow&&t.uint32(256).int64(e.campaignLocalFirstInteractionTimeSecsToNow),0!==e.serverImpressionCount&&t.uint32(264).int32(e.serverImpressionCount),0!==e.serverClickCount&&t.uint32(272).int32(e.serverClickCount),0!==e.serverDismissCount&&t.uint32(280).int32(e.serverDismissCount),0!==e.serverInteractionCount&&t.uint32(288).int32(e.serverInteractionCount),"0"!==e.serverFirstImpressionTimeSecsToNow&&t.uint32(296).int64(e.serverFirstImpressionTimeSecsToNow),"0"!==e.serverLastImpressionTimeSecsToNow&&t.uint32(304).int64(e.serverLastImpressionTimeSecsToNow),"0"!==e.serverFirstClickTimeSecsToNow&&t.uint32(312).int64(e.serverFirstClickTimeSecsToNow),"0"!==e.serverLastClickTimeSecsToNow&&t.uint32(320).int64(e.serverLastClickTimeSecsToNow),"0"!==e.serverFirstDismissT
2imeSecsToNow&&t.uint32(328).int64(e.serverFirstDismissTimeSecsToNow),"0"!==e.serverLastDismissTimeSecsToNow&&t.uint32(336).int64(e.serverLastDismissTimeSecsToNow),"0"!==e.serverFirstInteractionTimeSecsToNow&&t.uint32(344).int64(e.serverFirstInteractionTimeSecsToNow),"0"!==e.serverLastInteractionTimeSecsToNow&&t.uint32(352).int64(e.serverLastInteractionTimeSecsToNow),0!==e.serverContinuousDismissCount&&t.uint32(360).int32(e.serverContinuousDismissCount),!1!==e.contactPermOsGranted&&t.uint32(368).bool(e.contactPermOsGranted),!1!==e.contactPermUserGranted&&t.uint32(376).bool(e.contactPermUserGranted),0!==e.contactPermOsAuthorizationStatus&&t.uint32(384).int32(e.contactPermOsAuthorizationStatus),!1!==e.notificationAlertsLockScreenEnabled&&t.uint32(392).bool(e.notificationAlertsLockScreenEnabled),!1!==e.notificationAlertsNotificationCenterEnabled&&t.uint32(400).bool(e.notificationAlertsNotificationCenterEnabled),!1!==e.notificationAlertsBannerEnabled&&t.uint32(408).bool(e.notificationAlertsBannerEnabled),!1!==e.passkeySet&&t.uint32(416).bool(e.passkeySet),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cl();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.emailVerified=i.bool();continue;case 2:if(16!==e)break;a.phoneVerified=i.bool();continue;case 3:if(24!==e)break;a.notificationPermGranted=i.bool();continue;case 4:if(32!==e)break;a.contactPermGranted=i.bool();continue;case 5:if(40!==e)break;a.mutualFriendsCount=i.int32();continue;case 6:if(48!==e)break;a.groupsCount=i.int32();continue;case 7:if(56!==e)break;a.hasNonTeamSnapchatConversations=i.bool();continue;case 8:if(64!==e)break;a.emailSet=i.bool();continue;case 9:if(72!==e)break;a.bitmojiSet=i.bool();continue;case 10:if(80!==e)break;a.hasAddFriendsRequest=i.bool();continue;case 11:if(88!==e)break;a.appLaunchFromPush=i.bool();continue;case 12:if(96!==e)break;a.appLaunchType=i.int32();continue;case 13:if(104!==e)break;a.campaignLocalImpressionCount=i.int32();continue;case 14:if(112!==e)break;a.campaignLocalLastImpressionTimeSecsToNow=cu(i.int64());continue;case 15:if(120!==e)break;a.campaignLocalContinuousDismissCount=i.int32();continue;case 16:if(128!==e)break;a.fstNumInAppWarnings=i.int32();continue;case 17:if(136!==e)break;a.fstShouldChangePassword=i.bool();continue;case 18:if(144!==e)break;a.audioRecordPermGranted=i.bool();continue;case 19:if(152!==e)break;a.mutualFriendsWithBirthdayCount=i.int32();continue;case 20:if(160!==e)break;a.campaignLocalDismissCount=i.int32();continue;case 21:if(168!==e)break;a.memoriesCount=i.int32();continue;case 22:if(176!==e)break;a.campaignLocalFirstImpressionTimeSecsToNow=cu(i.int64());continue;case 23:if(184!==e)break;a.campaignLocalClickCount=i.int32();continue;case 24:if(192!==e)break;a.campaignLocalInteractionCount=i.int32();continue;case 25:if(200!==e)break;a.campaignLocalLastInteractionTimeSecsToNow=cu(i.int64());continue;case 26:if(208!==e)break;a.lockScreenWidgetAppOpenFromPush=i.bool();continue;case 27:if(216!==e)break;a.communityCount=i.int32();continue;case 28:if(224!==e)break;a.campaignLocalFirstClickTimeSecsToNow=cu(i.int64());continue;case 29:if(232!==e)break;a.campaignLocalLastClickTimeSecsToNow=cu(i.int64());continue;case 30:if(240!==e)break;a.campaignLocalFirstDismissTimeSecsToNow=cu(i.int64());continue;case 31:if(248!==e)break;a.campaignLocalLastDismissTimeSecsToNow=cu(i.int64());continue;case 32:if(256!==e)break;a.campaignLocalFirstInteractionTimeSecsToNow=cu(i.int64());continue;case 33:if(264!==e)break;a.serverImpressionCount=i.int32();continue;case 34:if(272!==e)break;a.serverClickCount=i.int32();continue;case 35:if(280!==e)break;a.serverDismissCount=i.int32();continue;case 36:if(288!==e)break;a.serverInteractionCount=i.int32();continue;case 37:if(296!==e)break;a.serverFirstImpressionTimeSecsToNow=cu(i.int64());continue;case 38:if(304!==e)break;a.serverLastImpressionTimeSecsToNow=cu(i.int64());continue;case 39:if(312!==e)break;a.serverFirstClickTimeSecsToNow=cu(i.int64());continue;case 40:if(320!==e)break;a.serverLastClickTimeSecsToNow=cu(i.int64());continue;case 41:if(328!==e)break;
2a.serverFirstDismissTimeSecsToNow=cu(i.int64());continue;case 42:if(336!==e)break;a.serverLastDismissTimeSecsToNow=cu(i.int64());continue;case 43:if(344!==e)break;a.serverFirstInteractionTimeSecsToNow=cu(i.int64());continue;case 44:if(352!==e)break;a.serverLastInteractionTimeSecsToNow=cu(i.int64());continue;case 45:if(360!==e)break;a.serverContinuousDismissCount=i.int32();continue;case 46:if(368!==e)break;a.contactPermOsGranted=i.bool();continue;case 47:if(376!==e)break;a.contactPermUserGranted=i.bool();continue;case 48:if(384!==e)break;a.contactPermOsAuthorizationStatus=i.int32();continue;case 49:if(392!==e)break;a.notificationAlertsLockScreenEnabled=i.bool();continue;case 50:if(400!==e)break;a.notificationAlertsNotificationCenterEnabled=i.bool();continue;case 51:if(408!==e)break;a.notificationAlertsBannerEnabled=i.bool();continue;case 52:if(416!==e)break;a.passkeySet=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cc.fromPartial(e??{}),fromPartial(e){let t=cl();return t.emailVerified=e.emailVerified??!1,t.phoneVerified=e.phoneVerified??!1,t.notificationPermGranted=e.notificationPermGranted??!1,t.contactPermGranted=e.contactPermGranted??!1,t.mutualFriendsCount=e.mutualFriendsCount??0,t.groupsCount=e.groupsCount??0,t.hasNonTeamSnapchatConversations=e.hasNonTeamSnapchatConversations??!1,t.emailSet=e.emailSet??!1,t.bitmojiSet=e.bitmojiSet??!1,t.hasAddFriendsRequest=e.hasAddFriendsRequest??!1,t.appLaunchFromPush=e.appLaunchFromPush??!1,t.appLaunchType=e.appLaunchType??0,t.campaignLocalImpressionCount=e.campaignLocalImpressionCount??0,t.campaignLocalLastImpressionTimeSecsToNow=e.campaignLocalLastImpressionTimeSecsToNow??"0",t.campaignLocalContinuousDismissCount=e.campaignLocalContinuousDismissCount??0,t.fstNumInAppWarnings=e.fstNumInAppWarnings??0,t.fstShouldChangePassword=e.fstShouldChangePassword??!1,t.audioRecordPermGranted=e.audioRecordPermGranted??!1,t.mutualFriendsWithBirthdayCount=e.mutualFriendsWithBirthdayCount??0,t.campaignLocalDismissCount=e.campaignLocalDismissCount??0,t.memoriesCount=e.memoriesCount??0,t.campaignLocalFirstImpressionTimeSecsToNow=e.campaignLocalFirstImpressionTimeSecsToNow??"0",t.campaignLocalClickCount=e.campaignLocalClickCount??0,t.campaignLocalInteractionCount=e.campaignLocalInteractionCount??0,t.campaignLocalLastInteractionTimeSecsToNow=e.campaignLocalLastInteractionTimeSecsToNow??"0",t.lockScreenWidgetAppOpenFromPush=e.lockScreenWidgetAppOpenFromPush??!1,t.communityCount=e.communityCount??0,t.campaignLocalFirstClickTimeSecsToNow=e.campaignLocalFirstClickTimeSecsToNow??"0",t.campaignLocalLastClickTimeSecsToNow=e.campaignLocalLastClickTimeSecsToNow??"0",t.campaignLocalFirstDismissTimeSecsToNow=e.campaignLocalFirstDismissTimeSecsToNow??"0",t.campaignLocalLastDismissTimeSecsToNow=e.campaignLocalLastDismissTimeSecsToNow??"0",t.campaignLocalFirstInteractionTimeSecsToNow=e.campaignLocalFirstInteractionTimeSecsToNow??"0",t.serverImpressionCount=e.serverImpressionCount??0,t.serverClickCount=e.serverClickCount??0,t.serverDismissCount=e.serverDismissCount??0,t.serverInteractionCount=e.serverInteractionCount??0,t.serverFirstImpressionTimeSecsToNow=e.serverFirstImpressionTimeSecsToNow??"0",t.serverLastImpressionTimeSecsToNow=e.serverLastImpressionTimeSecsToNow??"0",t.serverFirstClickTimeSecsToNow=e.serverFirstClickTimeSecsToNow??"0",t.serverLastClickTimeSecsToNow=e.serverLastClickTimeSecsToNow??"0",t.serverFirstDismissTimeSecsToNow=e.serverFirstDismissTimeSecsToNow??"0",t.serverLastDismissTimeSecsToNow=e.serverLastDismissTimeSecsToNow??"0",t.serverFirstInteractionTimeSecsToNow=e.serverFirstInteractionTimeSecsToNow??"0",t.serverLastInteractionTimeSecsToNow=e.serverLastInteractionTimeSecsToNow??"0",t.serverContinuousDismissCount=e.serverContinuousDismissCount??0,t.contactPermOsGranted=e.contactPermOsGranted??!1,t.contactPermUserGranted=e.contactPermUserGranted??!1,t.contactPermOsAuthorizationStatus=e.contactPermOsAuthorizationStatus??0,t.notificationAlertsLockScreenEnabled=e.notificationAlertsLockScreenEnabled??!1,t.notificationAlertsNotificationCenterEnabled=e.notificationAlertsNotificationCenterEnabled??!1,t.notificationAlertsBannerEnabled=e.n
2otificationAlertsBannerEnabled??!1,t.passkeySet=e.passkeySet??!1,t}};function cu(e){return e.toString()}function cp(){return{boltUseCase:0,boltCdnExperimentationId:0,boltIsContentPopular:!1,boltClientAppState:0}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let cf={encode:(e,t=sU.default.Writer.create())=>(0!==e.boltUseCase&&t.uint32(8).uint32(e.boltUseCase),0!==e.boltCdnExperimentationId&&t.uint32(16).uint32(e.boltCdnExperimentationId),!1!==e.boltIsContentPopular&&t.uint32(24).bool(e.boltIsContentPopular),0!==e.boltClientAppState&&t.uint32(32).int32(e.boltClientAppState),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.boltUseCase=i.uint32();continue;case 2:if(16!==e)break;a.boltCdnExperimentationId=i.uint32();continue;case 3:if(24!==e)break;a.boltIsContentPopular=i.bool();continue;case 4:if(32!==e)break;a.boltClientAppState=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cf.fromPartial(e??{}),fromPartial(e){let t=cp();return t.boltUseCase=e.boltUseCase??0,t.boltCdnExperimentationId=e.boltCdnExperimentationId??0,t.boltIsContentPopular=e.boltIsContentPopular??!1,t.boltClientAppState=e.boltClientAppState??0,t}};function cT(){return{cameraDirection:0,cameraContext:0,cameraApi:0,flashState:0,camera2Level:0,nightModeState:0,isFirstCapture:!1,pictureMode:0,captureMode:0,hasLens:!1,isLowLight:!1,isConcurrentCameraSupported:!1,deviceManufacturer:""}}(i1=F||(F={}))[i1.UNKNOWN_CAMERA_DIRECTION=0]="UNKNOWN_CAMERA_DIRECTION",i1[i1.FRONT=1]="FRONT",i1[i1.BACK=2]="BACK",i1[i1.UNRECOGNIZED=-1]="UNRECOGNIZED",(i4=G||(G={}))[i4.UNKNOWN_CAMERA_CONTEXT=0]="UNKNOWN_CAMERA_CONTEXT",i4[i4.MAIN=1]="MAIN",i4[i4.REPLY=2]="REPLY",i4[i4.PROFILE=3]="PROFILE",i4[i4.UNRECOGNIZED=-1]="UNRECOGNIZED",(i8=W||(W={}))[i8.UNKNOWN_CAMERA_API=0]="UNKNOWN_CAMERA_API",i8[i8.CAMERA_1=1]="CAMERA_1",i8[i8.CAMERA_2=2]="CAMERA_2",i8[i8.ARCORE=3]="ARCORE",i8[i8.UNRECOGNIZED=-1]="UNRECOGNIZED",(i6=x||(x={}))[i6.UNKNOWN_FLASH_STATE=0]="UNKNOWN_FLASH_STATE",i6[i6.FLASH_ON=1]="FLASH_ON",i6[i6.FLASH_OFF=2]="FLASH_OFF",i6[i6.UNRECOGNIZED=-1]="UNRECOGNIZED",(i7=H||(H={}))[i7.UNKNOWN_NIGHT_MODE_STATE=0]="UNKNOWN_NIGHT_MODE_STATE",i7[i7.NIGHT_MODE_ON=1]="NIGHT_MODE_ON",i7[i7.NIGHT_MODE_OFF=2]="NIGHT_MODE_OFF",i7[i7.UNRECOGNIZED=-1]="UNRECOGNIZED",(i5=Y||(Y={}))[i5.UNKNOWN_PICTURE_MODE=0]="UNKNOWN_PICTURE_MODE",i5[i5.JPEG_PICTURE_MODE=1]="JPEG_PICTURE_MODE",i5[i5.GPU_PICTURE_MODE=2]="GPU_PICTURE_MODE",i5[i5.UNRECOGNIZED=-1]="UNRECOGNIZED",(i9=K||(K={}))[i9.UNKNOWN_CAPTURE_MODE=0]="UNKNOWN_CAPTURE_MODE",i9[i9.DEFAULT_CAPTURE_MODE=1]="DEFAULT_CAPTURE_MODE",i9[i9.TIMELINE_CAPTURE_MODE=2]="TIMELINE_CAPTURE_MODE",i9[i9.UNRECOGNIZED=-1]="UNRECOGNIZED",(ne=$||($={}))[ne.UNKNOWN_CAMERA2_LEVEL=0]="UNKNOWN_CAMERA2_LEVEL",ne[ne.LEGACY=1]="LEGACY",ne[ne.LIMITED=2]="LIMITED",ne[ne.FULL=3]="FULL",ne[ne.LEVEL_3=4]="LEVEL_3",ne[ne.UNRECOGNIZED=-1]="UNRECOGNIZED";let cm={encode:(e,t=sU.default.Writer.create())=>(0!==e.cameraDirection&&t.uint32(8).int32(e.cameraDirection),0!==e.cameraContext&&t.uint32(16).int32(e.cameraContext),0!==e.cameraApi&&t.uint32(24).int32(e.cameraApi),0!==e.flashState&&t.uint32(32).int32(e.flashState),0!==e.camera2Level&&t.uint32(40).int32(e.camera2Level),0!==e.nightModeState&&t.uint32(48).int32(e.nightModeState),!1!==e.isFirstCapture&&t.uint32(56).bool(e.isFirstCapture),0!==e.pictureMode&&t.uint32(64).int32(e.pictureMode),0!==e.captureMode&&t.uint32(72).int32(e.captureMode),!1!==e.hasLens&&t.uint32(80).bool(e.hasLens),!1!==e.isLowLight&&t.uint32(88).bool(e.isLowLight),!1!==e.isConcurrentCameraSupported&&t.uint32(96).bool(e.isConcurrentCameraSupported),""!==e.deviceManufacturer&&t.uint32(106).string(e.deviceManufacturer),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.cameraDirection=i.int32();continue;case 2:if(16!==e)break;a.cameraContext=i.int32();continue;case 3:if(24!==e)break;a.cameraApi=i.int32();continue;case 4:if(32!==e)break;a.flashState=i.int32();continue;case 5:if(40!==e)break;a.camera2Level=i.int32();continue;case 6:if(48!==e)break;a.nightModeState=i.int32();continue;case 7:if(56!==e)break;a.isFirstCapture=i.bool();continue;case 8:if(64!==e)break;a.pictureMode=i.int32();continue;case 9:if(72!==e)break;a.captureMode=i.int32();continue;case 10:if(80!==e)break;a.hasLens=i.bool();continue;case 11:if(88!==e)break;a.isLowLight=i.bool();continue;case 12:if(96!==e)break;a.isConcurrentCameraSupported=i.bool();continue;case 13:if(106!==e)break;a.deviceManufacturer=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cm.fromPartial(e??{}),fromPartial(e){let t=cT();return t.cameraDirection=e.cameraDirection??0,t.cameraContext=e.cameraContext??0,t.cameraApi=e.cameraApi??0,t.flashState=e.flashState??0,t.camera2Level=e.camera2Level??0,t.nightModeState=e.nightModeState??0,t.isFirstCapture=e.isFirstCapture??!1,t.pictureMode=e.pictureMode??0,t.captureMode=e.captureMode??0,t.hasLens=e.hasLens??!1,t.isLowLight=e.isLowLight??!1,t.isConcurrentCameraSupported=e.isConcurrentCameraSupported??!1,t.deviceManufacturer=e.deviceManufacturer??"",t}};function cE(){return{cognacId:[]}}let c_={encode(e,t=sU.default.Writer.create()){for(let i of e.cognacId)t.uint32(10).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.cognacId.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>c_.fromPartial(e??{}),fromPartial(e){let t=cE();return t.cognacId=e.cognacId?.map(e=>e)||[],t}};function cS(){return{legacyMushroomContentType:0}}(nt=z||(z={}))[nt.UNKNOWN_ASSET_TYPE=0]="UNKNOWN_ASSET_TYPE",nt[nt.GENERIC_LARGE_ASSET_TYPE=1]="GENERIC_LARGE_ASSET_TYPE",nt[nt.GENERIC_SMALL_ASSET_TYPE=2]="GENER
2IC_SMALL_ASSET_TYPE",nt[nt.AD_REMOTE_ASSET=3]="AD_REMOTE_ASSET",nt[nt.AD_SNAP=4]="AD_SNAP",nt[nt.AD_WEB_VIEW_RESOURCE_CONTENT=5]="AD_WEB_VIEW_RESOURCE_CONTENT",nt[nt.ATTACHMENT_INFO=6]="ATTACHMENT_INFO",nt[nt.BITMOJI=7]="BITMOJI",nt[nt.BITMOJI_LENS_AVATAR_ASSET=8]="BITMOJI_LENS_AVATAR_ASSET",nt[nt.BITMOJI_LENS_METADATA=9]="BITMOJI_LENS_METADATA",nt[nt.CAPTION_METADATA=10]="CAPTION_METADATA",nt[nt.CAPTION_TYPEFACE=11]="CAPTION_TYPEFACE",nt[nt.CAPTION_VIEW_BITMAP=12]="CAPTION_VIEW_BITMAP",nt[nt.CHAT_MEDIA_THUMBNAIL=13]="CHAT_MEDIA_THUMBNAIL",nt[nt.COGNAC=14]="COGNAC",nt[nt.COGNAC_WEBVIEW=15]="COGNAC_WEBVIEW",nt[nt.COMMERCE=16]="COMMERCE",nt[nt.CONTEXT_FILTER_METADATA=17]="CONTEXT_FILTER_METADATA",nt[nt.CUSTOM_STICKERS=18]="CUSTOM_STICKERS",nt[nt.DISCOVER_FEED_THUMBNAIL=19]="DISCOVER_FEED_THUMBNAIL",nt[nt.DISCOVER_PUBLISHER_SNAP=20]="DISCOVER_PUBLISHER_SNAP",nt[nt.DISCOVER_STORY_SNAP=21]="DISCOVER_STORY_SNAP",nt[nt.DISCOVER_STORY_STREAMING_SNAP=22]="DISCOVER_STORY_STREAMING_SNAP",nt[nt.EMOJI=23]="EMOJI",nt[nt.EMOJI_BRUSH=24]="EMOJI_BRUSH",nt[nt.EXTERNAL_GEOFILTER=25]="EXTERNAL_GEOFILTER",nt[nt.EXTERNAL_STICKER=26]="EXTERNAL_STICKER",nt[nt.GEOFILTER_OVERLAY=27]="GEOFILTER_OVERLAY",nt[nt.IMAGELOADING_URL=28]="IMAGELOADING_URL",nt[nt.HELVETICA=29]="HELVETICA",nt[nt.INFO_STICKER=30]="INFO_STICKER",nt[nt.LENS_CONTENT=31]="LENS_CONTENT",nt[nt.LENS_ICON=32]="LENS_ICON",nt[nt.LENS_OVERLAY_IMAGE=33]="LENS_OVERLAY_IMAGE",nt[nt.LENS_REMOTE_ASSET=34]="LENS_REMOTE_ASSET",nt[nt.LOGIN_KIT_PRIVACT=35]="LOGIN_KIT_PRIVACT",nt[nt.MAPS_EGGHUNT=36]="MAPS_EGGHUNT",nt[nt.MAPS_KASHMIR=37]="MAPS_KASHMIR",nt[nt.MAPS_WORLDEFFECTS=38]="MAPS_WORLDEFFECTS",nt[nt.MEDIA_PACKAGE_COMPOSITE=39]="MEDIA_PACKAGE_COMPOSITE",nt[nt.MEDIA_PACKAGE_THUMB=40]="MEDIA_PACKAGE_THUMB",nt[nt.MEMORIES_EDIT
2S=41]="MEMORIES_EDITS",nt[nt.MEMORIES_MEDIA=42]="MEMORIES_MEDIA",nt[nt.MEMORIES_MINI_THUMBNAIL=43]="MEMORIES_MINI_THUMBNAIL",nt[nt.MEMORIES_OVERLAY=44]="MEMORIES_OVERLAY",nt[nt.MEMORIES_THUMBNAIL=45]="MEMORIES_THUMBNAIL",nt[nt.NON_USER_BITMOJI=46]="NON_USER_BITMOJI",nt[nt.PAYMENTS=47]="PAYMENTS",nt[nt.PUBLISHER_SNAP_MEDIA=48]="PUBLISHER_SNAP_MEDIA",nt[nt.SHAZAM=49]="SHAZAM",nt[nt.SKY_MODEL=50]="SKY_MODEL",nt[nt.SNAP=51]="SNAP",nt[nt.SNAP_FIRST_FRAME=52]="SNAP_FIRST_FRAME",nt[nt.SNAP_LOADING_FRAME=53]="SNAP_LOADING_FRAME",nt[nt.SNAP_STICKER=54]="SNAP_STICKER",nt[nt.SPECTACLES=55]="SPECTACLES",nt[nt.STICKER_TAG=56]="STICKER_TAG",nt[nt.STICKERS_METADATA=57]="STICKERS_METADATA",nt[nt.STORY_SNAP=58]="STORY_SNAP",nt[nt.STORY_THUMB=59]="STORY_THUMB",nt[nt.TRACKING_DATA=60]="TRACKING_DATA",nt[nt.USER_GENERATED_ASSETS=61]="USER_GENERATED_ASSETS",nt[nt.UNRECOGNIZED=-1]="UNRECOGNIZED";let cI={encode:(e,t=sU.default.Writer.create())=>(0!==e.legacyMushroomContentType&&t.uint32(8).int32(e.legacyMushroomContentType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.legacyMushroomContentType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cI.fromPartial(e??{}),fromPartial(e){let t=cS();return t.legacyMushroomContentType=e.legacyMushroomContentType??0,t}};function cv(){return{withAnimatedOverlay:!1,withMusic:!1,withTimedElement:!1}}let cA={encode:(e,t=sU.default.Writer.create())=>(!1!==e.withAnimatedOverlay&&t.uint32(8).bool(e.withAnimatedOverlay),!1!==e.withMusic&&t.uint32(16).bool(e.withMusic),!1!==e.withTimedElement&&t.uint32(24).bool(e.withTimedElement),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cv();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.withAnimatedOverlay=i.bool();continue;case 2:if(16!==e)break;a.withMusic=i.bool();continue;case 3:if(24!==e)break;a.withTimedElement=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cA.fromPartial(e??{}),fromPartial(e){let t=cv();return t.withAnimatedOverlay=e.withAnimatedOverlay??!1,t.withMusic=e.withMusic??!1,t.withTimedElement=e.withTimedElement??!1,t}};function ck(){return{publicStoryData:[]}}(ni=q||(q={}))[ni.TIER_UNKNOWN_UNSET=0]="TIER_UNKNOWN_UNSET",ni[ni.TIER_STANDARD=1]="TIER_STANDARD",ni[ni.TIER_PUBLIC=2]="TIER_PUBLIC",ni[ni.TIER_PUBLIC_OFFICIAL=3]="TIER_PUBLIC_OFFICIAL",ni[ni.UNRECOGNIZED=-1]="UNRECOGNIZED";let cb={encode(e,t=sU.default.Writer.create()){for(let i of e.publicStoryData)cN.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ck();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.publicStoryData.push(cN.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cb.fromPartial(e??{}),fromPartial(e){let t=ck();return t.publicStoryData=e.publicStoryData?.map(e=>cN.fromPartial(e))||[],t}};function cg(){return{storyId:"",tier:0,isHost:!1}}let cN={encode:(e,t=sU.default.Writer.create())=>(""!==e.storyId&&t.uint32(10).string(e.storyId),0!==e.tier&&t.uint32(16).int32(e.tier),!1!==e.isHost&&t.uint32(24).bool(e.isHost),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cg();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.storyId=i.string();continue;case 2:if(16!==e)break;a.tier=i.int32();continue;case 3:if(24!==e)break;a.isHost=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cN.fromPartial(e??{}),fromPartial(e){let t=cg();return t.storyId=e.storyId??"",t.tier=e.tier??0,t.isHost=e.isHost??!1,t}};function cR(){return{discoverFeedSectionCacheInfo:void 0}}let cP={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.discoverFeedSectionCacheInfo&&cC.encode(e.discoverFeedSectionCacheInfo,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.discoverFeedSectionCacheInfo=cC.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cP.fromPartial(e??{}),fromPartial(e){let t=cR();return t.discoverFeedSectionCacheInfo=void 0!==e.discoverFeedSectionCacheInfo&&null!==e.discoverFeedSectionCacheInfo?cC.fromPartial(e.discoverFeedSectionCacheInfo):void 0,t}};function cO(){return{feedType:0}}let cC={encode:(e,t=sU.default.Writer.create())=>(0!==e.feedType&&t.uint32(8).int32(e.feedType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.feedType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cC.fromPartial(e??{}),fromPartial(e){let t=cO();return t.feedType=e.feedType??0,t}};function cy(){return{lastLensActivatedTime:"0",lastSnappableLensActivatedTime:"0",isAnyEffectApplied:!1,isActiveLensUser:!1}}let ch={encode:(e,t=sU.default.Writer.create())=>("0"!==e.lastLensActivatedTime&&t.uint32(8).uint64(e.lastLensActivatedTime),"0"!==e.lastSnappableLensActivatedTime&&t.uint32(16).uint64(e.lastSnappableLensActivatedTime),!1!==e.isAnyEffectApplied&&t.uint32(24).bool(e.isAnyEffectApplied),!1!==e.isActiveLensUser&&t.uint32(32).bool(e.isActiveLensUser),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cy();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.lastLensActivatedTime=cL(i.uint64());continue;case 2:if(16!==e)break;a.lastSnappableLensActivatedTime=cL(i.uint64());continue;case 3:if(24!==e)break;a.isAnyEffectApplied=i.bool();continue;case 4:if(32!==e)break;a.isActiveLensUser=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ch.fromPartial(e??{}),fromPartial(e){let t=cy();return t.lastLensActivatedTime=e.lastLensActivatedTime??"0",t.lastSnappableLensActivatedTime=e.lastSnappableLensActivatedTime??"0",t.isAnyEffectApplied=e.isAnyEffectApplied??!1,t.isActiveLensUser=e.isActiveLensUser??!1,t}};function cL(e){return e.toString()}function cD(){return{mediaSource:0,assetType:0}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let cw={encode:(e,t=sU.default.Writer.create())=>(0!==e.mediaSource&&t.uint32(8).int32(e.mediaSource),0!==e.assetType&&t.uint32(16).int32(e.assetType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cD();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mediaSource=i.int32();continue;case 2:if(16!==e)break;a.assetType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cw.fromPartial(e??{}),fromPartial(e){let t=cD();return t.mediaSource=e.mediaSource??0,t.assetType=e.assetType??0,t}};function cM(){return{mediaDurationMs:0,mediaType:0}}(nn=Z||(Z={}))[nn.MEDIA_TYPE_UNSET=0]="MEDIA_TYPE_UNSET",nn[nn.IMAGE=1]="IMAGE",nn[nn.VIDEO=2]="VIDEO",nn[nn.GIF=3]="GIF",nn[nn.AUDIO=4]="AUDIO",nn[nn.UNRECOGNIZED=-1]="UNRECOGNIZED";let cU={encode:(e,t=sU.default.Writer.create())=>(0!==e.mediaDurationMs&&t.uint32(8).uint32(e.mediaDurationMs),0!==e.mediaType&&t.uint32(16).int32(e.mediaType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cM();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mediaDurationMs=i.uint32();continue;case 2:if(16!==e)break;a.mediaType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cU.fromPartial(e??{}),fromPartial(e){let t=cM();return t.mediaDurationMs=e.mediaDurationMs??0,t.mediaType=e.mediaType??0,t}};function cV(){return{bandwidthEstimationType:0}}(na=j||(j={}))[na.DEFAULT_UNSET=0]="DEFAULT_UNSET",na[na.STREAMING=1]="STREAMING",na[na.CAPPED=2]="CAPPED",na[na.UNRECOGNIZED=-1]="UNRECOGNIZED";let cB={encode:(e,t=sU.default.Writer.create())=>(0!==e.bandwidthEstimationType&&t.uint32(8).int32(e.bandwidthEstimationType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.bandwidthEstimationType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cB.fromPartial(e??{}),fromPartial(e){let t=cV();return t.bandwidthEstimationType=e.bandwidthEstimationType??0,t}};function cF(){return{contentViewSource:0,playbackItemType:0,useVerticalNavigation:!1}}let cG={encode:(e,t=sU.default.Writer.create())=>(0!==e.contentViewSource&&t.uint32(8).int32(e.contentViewSource),0!==e.playbackItemType&&t.uint32(16).int32(e.playbackItemType),!1!==e.useVerticalNavigation&&t.uint32(24).bool(e.useVerticalNavigation),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.contentViewSource=i.int32();continue;case 2:if(16!==e)break;a.playbackItemType=i.int32();continue;case 3:if(24!==e)break;a.useVerticalNavigation=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cG.fromPartial(e??{}),fromPartial(e){let t=cF();return t.contentViewSource=e.contentViewSource??0,t.playbackItemType=e.playbackItemType??0,t.useVerticalNavigation=e.useVerticalNavigation??!1,t}};function cW(){return{scannedCategoryIds:[]}}let cx={encode(e,t=sU.default.Writer.create()){for(let i of e.scannedCategoryIds)t.uint32(10).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.scannedCategoryIds.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cx.fromPartial(e??{}),fromPartial(e){let t=cW();return t.scannedCategoryIds=e.scannedCategoryIds?.map(e=>e)||[],t}};function cH(){return{userIds:[]}}let cY={encode(e,t=sU.default.Writer.create()){for(let i of e.userIds)t.uint32(10).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userIds.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cY.fromPartial(e??{}),fromPartial(e){let t=cH();return t.userIds=e.userIds?.map(e=>e)||[],t}},cK={encode:(e,t=sU.default.Writer.create())=>(""!==e.url&&t.uint32(10).string(e.url),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={url:""};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.url=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cK.fromPartial(e??{}),fromPartial(e){let t={url:""};return t.url=e.url??"",t}};function c$(){return{oauthClientId:""}}let cz={encode:(e,t=sU.default.Writer.create())=>(""!==e.oauthClientId&&t.uint32(10).string(e.oauthClientId),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=c$();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.oauthClientId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cz.fromPartial(e??{}),fromPartial(e){let t=c$();return t.oauthClientId=e.oauthClientId??"",t}};function cq(){return{chunkUploadSupportRequired:!1,cloudfrontPop:"",gcdnPop:"",chunkUploadPreference:0}}(no=X||(X={}))[no.PREFERENCE_UNSET=0]="PREFERENCE_UNSET",no[no.GCS=1]="GCS",no[no.S3=2]="S3",no[no.AUTO=3]="AUTO",no[no.UNRECOGNIZED=-1]="UNRECOGNIZED";let cZ={encode:(e,t=sU.default.Writer.create())=>(!1!==e.chunkUploadSupportRequired&&t.uint32(8).bool(e.chunkUploadSupportRequired),""!==e.cloudfrontPop&&t.uint32(18).string(e.cloudfrontPop),""!==e.gcdnPop&&t.uint32(26).string(e.gcdnPop),0!==e.chunkUploadPreference&&t.uint32(32).int32(e.chunkUploadPreference),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cq();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.chunkUploadSupportRequired=i.bool();continue;case 2:if(18!==e)break;a.cloudfrontPop=i.string();continue;case 3:if(26!==e)break;a.gcdnPop=i.string();continue;case 4:if(32!==e)break;a.chunkUploadPreference=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cZ.fromPartial(e??{}),fromPartial(e){let t=cq();return t.chunkUploadSupportRequired=e.chunkUploadSupportRequired??!1,t.cloudfrontPop=e.cloudfrontPop??"",t.gcdnPop=e.gcdnPop??"",t.chunkUploadPreference=e.chunkUploadPreference??0,t}};function cj(){return{mediaMetadata:void 0,storyMetadata:void 0,cameraSignals:void 0,snapSource:0,contentManagerProvidedSignals:void 0,spectacleMetadata:void 0,boltSignals:void 0,lensesSignals:void 0,creativeToolsSignals:void 0,estimatedDurationForEventMs:0,routingSignals:void 0,mdpMediaAttribution:void 0,size:0,mediaSignals:void 0,perceptionSignals:void 0,operaSignals:void 0,recipientsSignals:void 0,billboardSignals:void 0,cognacSignals:void 0,hashSignals:void 0,edgeSignals:{},snapKitSignals:void 0,uploadSignals:void 0,ruids:[],discoverFeedSignals:void 0,networkSignals:void 0,creatorSignals:void 0}}(nr=Q||(Q={}))[nr.UNKNOWN_STORY_TYPE=0]="UNKNOWN_STORY_TYPE",nr[nr.PUBLIC_USER_STORY=1]="PUBLIC_USER_STORY",nr[nr.OUR_STORY=2]="OUR_STORY",nr[nr.PUBLISHER_STORY=3]="PUBLISHER_STORY",nr[nr.FRIEND_STORY=4]="FRIEND_STORY",nr[nr.UNRECOGNIZED=-1]="UNRECOGNIZED",(nd=J||(J={}))[nd.UNKNOWN_SPECTACLES_VERSION=0]="UNKNOWN_SPECTACLES_VERSION",nd[nd.V1=1]="V1",nd[nd.V2=2]="V2",nd[nd.V3=3]="V3",nd[nd.V4=4]="V4",nd[nd.UNRECOGNIZED=-1]="UNRECOGNIZED";let cX={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.mediaMetadata&&lj.encode(e.mediaMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.storyMetadata&&cJ.encode(e.storyMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.cameraSignals&&cm.encode(e.cameraSignals,t.uint32(26).fork()).ldelim(),0!==e.snapSource&&t.uint32(32).int32(e.snapSource),void 0!==e.contentManagerProvidedSignals&&cI.encode(e.contentManagerProvidedSignals,t.uint32(42).fork()).ldelim(),void 0!==e.spectacleMetadata&&c2.encode(e.spectacleMetadata,t.uint32(50).fork()).ldelim(),void 0!==e.boltSignals&&cf.encode(e.boltSignals,t.uint32(58).fork()).ldelim(),void 0!==e.lensesSignals&&ch.encode(e.lensesSignals,t.uint32(66).fork()).ldelim(),void 0!==e.creativeToolsSignals&&cA.encode(e.creativeToolsSignals,t.uint32(74).fork()).ldelim(),0!==e.estimatedDurationForEventMs&&t.uint32(80).uint32(e.estimatedDurationForEventMs),void 0!==e.routingSignals&&cK.encode(e.routingSignals,t.uint32(90).fork()).ldelim(),void 0!==e.mdpMediaAttribution&&cw.encode(e.mdpMediaAttribution,t.uint32(98).fork()).ldelim(),0!==e.size&&t.uint32(104).uint32(e.size),void 0!==e.mediaSignals&&cU.encode(e.mediaSignals,t.uint32(114).fork()).ldelim(),void 0!==e.perceptionSignals&&cx.encode(e.perceptionSignals,t.uint32(122).fork()).ldelim(),void 0!==e.operaSignals&&cG.encode(e.operaSignals,t.uint32(130).fork()).ldelim(),void 0!==e.recipientsSignals&&cY.encode(e.recipientsSignals,t.uint32(138).fork()).ldelim(),void 0!==e.billboardSignals&&cc.encode(e.billboardSignals,t.uint32(146).fork()).ldelim(),void 0!==e.cognacSignals&&c_.encode(e.cognacSignals,t.uint32(154).fork()).ldelim(),void 0!==e.hashSignals&&c1.encode(e.hashSignals,t.uint32(162).fork()).ldelim(),Object.entries(e.edgeSignals).forEac
2h(([e,i])=>{c8.encode({key:e,value:i},t.uint32(170).fork()).ldelim()}),void 0!==e.snapKitSignals&&cz.encode(e.snapKitSignals,t.uint32(178).fork()).ldelim(),void 0!==e.uploadSignals&&cZ.encode(e.uploadSignals,t.uint32(186).fork()).ldelim(),e.ruids))lt.encode(i,t.uint32(194).fork()).ldelim();return void 0!==e.discoverFeedSignals&&cP.encode(e.discoverFeedSignals,t.uint32(202).fork()).ldelim(),void 0!==e.networkSignals&&cB.encode(e.networkSignals,t.uint32(210).fork()).ldelim(),void 0!==e.creatorSignals&&cb.encode(e.creatorSignals,t.uint32(218).fork()).ldelim(),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cj();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.mediaMetadata=lj.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.storyMetadata=cJ.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.cameraSignals=cm.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.snapSource=i.int32();continue;case 5:if(42!==e)break;a.contentManagerProvidedSignals=cI.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.spectacleMetadata=c2.decode(i,i.uint32());continue;case 7:if(58!==e)break;a.boltSignals=cf.decode(i,i.uint32());continue;case 8:if(66!==e)break;a.lensesSignals=ch.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.creativeToolsSignals=cA.decode(i,i.uint32());continue;case 10:if(80!==e)break;a.estimatedDurationForEventMs=i.uint32();continue;case 11:if(90!==e)break;a.routingSignals=cK.decode(i,i.uint32());continue;case 12:if(98!==e)break;a.mdpMediaAttribution=cw.decode(i,i.uint32());continue;case 13:if(104!==e)break;a.size=i.uint32();continue;case 14:if(114!==e)break;a.mediaSignals=cU.decode(i,i.uint32());continue;case 15:if(122!==e)break;a.perceptionSignals=cx.decode(i,i.uint32());continue;case 16:if(130!==e)break;a.operaSignals=cG.decode(i,i.uint32());continue;case 17:if(138!==e)break;a.recipientsSignals=cY.decode(i,i.uint32());continue;case 18:if(146!==e)break;a.billboardSignals=cc.decode(i,i.uint32());continue;case 19:if(154!==e)break;a.cognacSignals=c_.decode(i,i.uint32());continue;case 20:if(162!==e)break;a.hashSignals=c1.decode(i,i.uint32());continue;case 21:if(170!==e)break;let t=c8.decode(i,i.uint32());void 0!==t.value&&(a.edgeSignals[t.key]=t.value);continue;case 22:if(178!==e)break;a.snapKitSignals=cz.decode(i,i.uint32());continue;case 23:if(186!==e)break;a.uploadSignals=cZ.decode(i,i.uint32());continue;case 24:if(194!==e)break;a.ruids.push(lt.decode(i,i.uint32()));continue;case 25:if(202!==e)break;a.discoverFeedSignals=cP.decode(i,i.uint32());continue;case 26:if(210!==e)break;a.networkSignals=cB.decode(i,i.uint32());continue;case 27:if(218!==e)break;a.creatorSignals=cb.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cX.fromPartial(e??{}),fromPartial(e){let t=cj();return t.mediaMetadata=void 0!==e.mediaMetadata&&null!==e.mediaMetadata?lj.fromPartial(e.mediaMetadata):void 0,t.storyMetadata=void 0!==e.storyMetadata&&null!==e.storyMetadata?cJ.fromPartial(e.storyMetadata):void 0,t.cameraSignals=void 0!==e.cameraSignals&&null!==e.cameraSignals?cm.fromPartial(e.cameraSignals):void 0,t.snapSource=e.snapSource??0,t.contentManagerProvidedSignals=void 0!==e.contentManagerProvidedSignals&&null!==e.contentManagerProvidedSignals?cI.fromPartial(e.contentManagerProvidedSignals):void 0,t.spectacleMetadata=void 0!==e.spectacleMetadata&&null!==e.spectacleMetadata?c2.fromPartial(e.spectacleMetadata):void 0,t.boltSignals=void 0!==e.boltSignals&&null!==e.boltSignals?cf.fromPartial(e.boltSignals):void 0,t.lensesSignals=void 0!==e.lensesSignals&&null!==e.lensesSignals?ch.fromPartial(e.lensesSignals
2):void 0,t.creativeToolsSignals=void 0!==e.creativeToolsSignals&&null!==e.creativeToolsSignals?cA.fromPartial(e.creativeToolsSignals):void 0,t.estimatedDurationForEventMs=e.estimatedDurationForEventMs??0,t.routingSignals=void 0!==e.routingSignals&&null!==e.routingSignals?cK.fromPartial(e.routingSignals):void 0,t.mdpMediaAttribution=void 0!==e.mdpMediaAttribution&&null!==e.mdpMediaAttribution?cw.fromPartial(e.mdpMediaAttribution):void 0,t.size=e.size??0,t.mediaSignals=void 0!==e.mediaSignals&&null!==e.mediaSignals?cU.fromPartial(e.mediaSignals):void 0,t.perceptionSignals=void 0!==e.perceptionSignals&&null!==e.perceptionSignals?cx.fromPartial(e.perceptionSignals):void 0,t.operaSignals=void 0!==e.operaSignals&&null!==e.operaSignals?cG.fromPartial(e.operaSignals):void 0,t.recipientsSignals=void 0!==e.recipientsSignals&&null!==e.recipientsSignals?cY.fromPartial(e.recipientsSignals):void 0,t.billboardSignals=void 0!==e.billboardSignals&&null!==e.billboardSignals?cc.fromPartial(e.billboardSignals):void 0,t.cognacSignals=void 0!==e.cognacSignals&&null!==e.cognacSignals?c_.fromPartial(e.cognacSignals):void 0,t.hashSignals=void 0!==e.hashSignals&&null!==e.hashSignals?c1.fromPartial(e.hashSignals):void 0,t.edgeSignals=Object.entries(e.edgeSignals??{}).reduce((e,[t,i])=>(void 0!==i&&(e[globalThis.Number(t)]=s$.fromPartial(i)),e),{}),t.snapKitSignals=void 0!==e.snapKitSignals&&null!==e.snapKitSignals?cz.fromPartial(e.snapKitSignals):void 0,t.uploadSignals=void 0!==e.uploadSignals&&null!==e.uploadSignals?cZ.fromPartial(e.uploadSignals):void 0,t.ruids=e.ruids?.map(e=>lt.fromPartial(e))||[],t.discoverFeedSignals=void 0!==e.discoverFeedSignals&&null!==e.discoverFeedSignals?cP.fromPartial(e.discoverFeedSignals):void 0,t.networkSignals=void 0!==e.networkSignals&&null!==e.networkSignals?cB.fromPartial(e.networkSignals):void 0,t.creatorSignals=void 0!==e.creatorSignals&&null!==e.creatorSignals?cb.fromPartial(e.creatorSignals):void 0,t}};function cQ(){return{isPublicStory:!1,isOfficialStory:!1,storyType:0}}let cJ={encode:(e,t=sU.default.Writer.create())=>(!1!==e.isPublicStory&&t.uint32(8).bool(e.isPublicStory),!1!==e.isOfficialStory&&t.uint32(16).bool(e.isOfficialStory),0!==e.storyType&&t.uint32(24).int32(e.storyType),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=cQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isPublicStory=i.bool();continue;case 2:if(16!==e)break;a.isOfficialStory=i.bool();continue;case 3:if(24!==e)break;a.storyType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>cJ.fromPartial(e??{}),fromPartial(e){let t=cQ();return t.isPublicStory=e.isPublicStory??!1,t.isOfficialStory=e.isOfficialStory??!1,t.storyType=e.storyType??0,t}};function c0(){return{isSpectacle:!1,spectaclesVersion:0}}let c2={encode:(e,t=sU.default.Writer.create())=>(!1!==e.isSpectacle&&t.uint32(8).bool(e.isSpectacle),0!==e.spectaclesVersion&&t.uint32(16).int32(e.spectaclesVersion),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=c0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isSpectacle=i.bool();continue;case 2:if(16!==e)break;a.spectaclesVersion=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>c2.fromPartial(e??{}),fromPartial(e){let t=c0();return t.isSpectacle=e.isSpectacle??!1,t.spectaclesVersion=e.spectaclesVersion??0,t}};function c3(){return{userId:new Uint8Array(0),seed:new Uint8Array(0),namespace:0}}let c1={encode:(e,t=sU.default.Writer.create())=>(0!==e.userId.length&&t.uint32(10).bytes(e.userId),0!==e.seed.length&&t.uint32(18).bytes(e.seed),0!==e.namespace&&t.uint32(24).int32(e.namespace),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=c3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userId=i.bytes();continue;case 2:if(18!==e)break;a.seed=i.bytes();continue;case 3:if(24!==e)break;a.namespace=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>c1.fromPartial(e??{}),fromPartial(e){let t=c3();return t.userId=e.userId??new Uint8Array(0),t.seed=e.seed??new Uint8Array(0),t.namespace=e.namespace??0,t}};function c4(){return{key:0,value:void 0}}let c8={encode:(e,t=sU.default.Writer.create())=>(0!==e.key&&t.uint32(8).int32(e.key),void 0!==e.value&&s$.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=c4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.key=i.int32();continue;case 2:if(18!==e)break;a.value=s$.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>c8.fromPartial(e??{}),fromPartial(e){let t=c4();return t.key=e.key??0,t.value=void 0!==e.value&&null!==e.value?s$.fromPartial(e.value):void 0,t}},c6=s7.default.grpc;function c7(){return{configNames:[],namespaces:[],cofConfigNames:[],includeAllConfigs:!1,disableExposureLogging:!1,enableDebug:!1}}let c5={encode(e,t=s9.default.Writer.create()){for(let i of e.configNames)t.uint32(10).string(i);for(let i of(t.uint32(18).fork(),e.namespaces))t.int32(i);for(let i of(t.ldelim(),e.cofConfigNames))t.uint32(26).string(i);return!1!==e.includeAllConfigs&&t.uint32(32).bool(e.includeAllConfigs),!1!==e.disableExposureLogging&&t.uint32(40).bool(e.disableExposureLogging),!1!==e.enableDebug&&t.uint32(104).bool(e.enableDebug),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=c7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configNames.push(i.string());continue;case 2:if(16===e){a.namespaces.push(i.int32());continue}if(18===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.namespaces.push(i.int32());continue}break;case 3:if(26!==e)break;a.cofConfigNames.push(i.string());continue;case 4:if(32!==e)break;a.includeAllConfigs=i.bool();continue;case 5:if(40!==e)break;a.disableExposureLogging=i.bool();continue;case 13:if(104!==e)break;a.enableDebug=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>c5.fromPartial(e??{}),fromPartial(e){let t=c7();return t.configNames=e.configNames?.map(e=>e)||[],t.namespaces=e.namespaces?.map(e=>e)||[],t.cofConfigNames=e.cofConfigNames?.map(e=>e)||[],t.includeAllConfigs=e.includeAllConfigs??!1,t.disableExposureLogging=e.disableExposureLogging??!1,t.enableDebug=e.enableDebug??!1,t}};function c9(){return{configResults:[],debugTrace:void 0}}let ue={encode(e,t=s9.default.Writer.create()){for(let i of e.configResults)sZ.encode(i,t.uint32(10).fork()).ldelim();return void 0!==e.debugTrace&&ly.encode(e.debugTrace,t.uint32(18).fork()).ldelim(),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=c9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResults.push(sZ.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.debugTrace=ly.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ue.fromPartial(e??{}),fromPartial(e){let t=c9();return t.configResults=e.configResults?.map(e=>sZ.fromPartial(e))||[],t.debugTrace=void 0!==e.debugTrace&&null!==e.debugTrace?ly.fromPartial(e.debugTrace):void 0,t}};function ut(){return{targetingParameters:void 0,overrides:[]}}let ui={encode(e,t=s9.default.Writer.create()){for(let i of(void 0!==e.targetingParameters&&lf.encode(e.targetingParameters,t.uint32(10).fork()).ldelim(),e.overrides))sZ.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ut();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.targetingParameters=lf.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.overrides.push(sZ.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ui.fromPartial(e??{}),fromPartial(e){let t=ut();return t.targetingParameters=void 0!==e.targetingParameters&&null!==e.targetingParameters?lf.fromPartial(e.targetingParameters):void 0,t.overrides=e.overrides?.map(e=>sZ.fromPartial(e))||[],t}};function un(){return{targetingResponse:void 0}}let ua={encode:(e,t=s9.default.Writer.create())=>(void 0!==e.targetingResponse&&lg.encode(e.targetingResponse,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=un();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.targetingResponse=lg.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ua.fromPartial(e??{}),fromPartial(e){let t=un();return t.targetingResponse=void 0!==e.targetingResponse&&null!==e.targetingResponse?lg.fromPartial(e.targetingResponse):void 0,t}};function uo(){return{configSetToken:"",userId:"",ttlSeconds:0}}let ur={encode:(e,t=s9.default.Writer.create())=>(""!==e.configSetToken&&t.uint32(10).string(e.configSetToken),""!==e.userId&&t.uint32(18).string(e.userId),0!==e.ttlSeconds&&t.uint32(24).int32(e.ttlSeconds),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uo();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configSetToken=i.string();continue;case 2:if(18!==e)break;a.userId=i.string();continue;case 3:if(24!==e)break;a.ttlSeconds=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ur.fromPartial(e??{}),fromPartial(e){let t=uo();return t.configSetToken=e.configSetToken??"",t.userId=e.userId??"",t.ttlSeconds=e.ttlSeconds??0,t}};function ud(){return{debug:""}}let us={encode:(e,t=s9.default.Writer.create())=>(""!==e.debug&&t.uint32(10).string(e.debug),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ud();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.debug=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>us.fromPartial(e??{}),fromPartial(e){let t=ud();return t.debug=e.debug??"",t}};function ul(){return{configSetToken:"",userId:""}}let uc={encode:(e,t=s9.default.Writer.create())=>(""!==e.configSetToken&&t.uint32(10).string(e.configSetToken),""!==e.userId&&t.uint32(18).string(e.userId),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ul();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configSetToken=i.string();continue;case 2:if(18!==e)break;a.userId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uc.fromPartial(e??{}),fromPartial(e){let t=ul();return t.configSetToken=e.configSetToken??"",t.userId=e.userId??"",t}};function uu(){return{debug:""}}let up={encode:(e,t=s9.default.Writer.create())=>(""!==e.debug&&t.uint32(10).string(e.debug),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uu();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.debug=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>up.fromPartial(e??{}),fromPartial(e){let t=uu();return t.debug=e.debug??"",t}};function uf(){return{userId:"",targetingProperties:void 0,ttlSeconds:0}}let uT={encode:(e,t=s9.default.Writer.create())=>(""!==e.userId&&t.uint32(10).string(e.userId),void 0!==e.targetingProperties&&cX.encode(e.targetingProperties,t.uint32(18).fork()).ldelim(),0!==e.ttlSeconds&&t.uint32(24).int32(e.ttlSeconds),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uf();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userId=i.string();continue;case 2:if(18!==e)break;a.targetingProperties=cX.decode(i,i.uint32());continue;case 3:if(24!==e)break;a.ttlSeconds=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uT.fromPartial(e??{}),fromPartial(e){let t=uf();return t.userId=e.userId??"",t.targetingProperties=void 0!==e.targetingProperties&&null!==e.targetingProperties?cX.fromPartial(e.targetingProperties):void 0,t.ttlSeconds=e.ttlSeconds??0,t}};function um(){return{message:""}}let uE={encode:(e,t=s9.default.Writer.create())=>(""!==e.message&&t.uint32(10).string(e.message),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=um();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.message=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uE.fromPartial(e??{}),fromPartial(e){let t=um();return t.message=e.message??"",t}};
2function u_(){return{userId:""}}let uS={encode:(e,t=s9.default.Writer.create())=>(""!==e.userId&&t.uint32(10).string(e.userId),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=u_();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uS.fromPartial(e??{}),fromPartial(e){let t=u_();return t.userId=e.userId??"",t}};function uI(){return{message:""}}let uv={encode:(e,t=s9.default.Writer.create())=>(""!==e.message&&t.uint32(10).string(e.message),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uI();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.message=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uv.fromPartial(e??{}),fromPartial(e){let t=uI();return t.message=e.message??"",t}};function uA(){return{userId:""}}let uk={encode:(e,t=s9.default.Writer.create())=>(""!==e.userId&&t.uint32(10).string(e.userId),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uk.fromPartial(e??{}),fromPartial(e){let t=uA();return t.userId=e.userId??"",t}};function ub(){return{targetingProperties:void 0}}let ug={encode:(e,t=s9.default.Writer.create())=>(void 0!==e.targetingProperties&&cX.encode(e.targetingProperties,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ub();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.targetingProperties=cX.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ug.fromPartial(e??{}),fromPartial(e){let t=ub();return t.targetingProperties=void 0!==e.targetingProperties&&null!==e.targetingProperties?cX.fromPartial(e.targetingProperties):void 0,t}};function uN(){return{configName:"",namespace:0}}let uR={encode:(e,t=s9.default.Writer.create())=>(""!==e.configName&&t.uint32(10).string(e.configName),0!==e.namespace&&t.uint32(16).int32(e.namespace),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configName=i.string();continue;case 2:if(16!==e)break;a.namespace=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uR.fromPartial(e??{}),fromPartial(e){let t=uN();return t.configName=e.configName??"",t.namespace=e.namespace??0,t}};function uP(){return{token:"",configNames:[],namespaces:[],disableExposureLogging:!1,getAllConfigs:!1,serviceEnvironment:""}}let uO={encode(e,t=s9.default.Writer.create()){for(let i of(""!==e.token&&t.uint32(10).string(e.token),e.configNames))uR.encode(i,t.uint32(18).fork()).ldelim();for(let i of(t.uint32(26).fork(),e.namespaces))t.int32(i);return t.ldelim(),!1!==e.disableExposureLogging&&t.uint32(32).bool(e.disableExposureLogging),!1!==e.getAllConfigs&&t.uint32(40).bool(e.getAllConfigs),""!==e.serviceEnvironment&&t.uint32(50).string(e.serviceEnvironment),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.token=i.string();continue;case 2:if(18!==e)break;a.configNames.push(uR.decode(i,i.uint32()));continue;case 3:if(24===e){a.namespaces.push(i.int32());continue}if(26===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.namespaces.push(i.int32());continue}break;case 4:if(32!==e)break;a.disableExposureLogging=i.bool();continue;case 5:if(40!==e)break;a.getAllConfigs=i.bool();continue;case 6:if(50!==e)break;a.serviceEnvironment=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uO.fromPartial(e??{}),fromPartial(e){let t=uP();return t.token=e.token??"",t.configNames=e.configNames?.map(e=>uR.fromPartial(e))||[],t.namespaces=e.namespaces?.map(e=>e)||[],t.disableExposureLogging=e.disableExposureLogging??!1,t.getAllConfigs=e.getAllConfigs??!1,t.serviceEnvironment=e.serviceEnvironment??"",t}};function uC(){return{configResults:[]}}let uy={encode(e,t=s9.default.Writer.create()){for(let i of e.configResults)sZ.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResults.push(sZ.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uy.fromPartial(e??{}),fromPartial(e){let t=uC();return t.configResults=e.configResults?.map(e=>sZ.fromPartial(e))||[],t}},uh={encode:(e,t=s9.default.Writer.create())=>t,decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>uh.fromPartial(e??{}),fromPartial:e=>({})};function uL(){return{serializedBitmap:new Uint8Array(0)}}let uD={encode:(e,t=s9.default.Writer.create())=>(0!==e.serializedBitmap.length&&t.uint32(10).bytes(e.serializedBitmap),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.serializedBitmap=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uD.fromPartial(e??{}),fromPartial(e){let t=uL();return t.serializedBitmap=e.serializedBitmap??new Uint8Array(0),t}};function uw(){return{sequenceIds:[]}}let uM={encode(e,t=s9.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.sequenceIds))t.int32(i);return t.ldelim(),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uw();for(;i.pos<n;){let e=i.uint32();if(e>>>3==1){if(8===e){a.sequenceIds.push(i.int32());continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.sequenceIds.push(i.int32());continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uM.fromPartial(e??{}),fromPartial(e){let t=uw();return t.sequenceIds=e.sequenceIds?.map(e=>e)||[],t}};function uU(){return{sequenceId:0,configResult:void 0}}let uV={encode:(e,t=s9.default.Writer.create())=>(0!==e.sequenceId&&t.uint32(8).int32(e.sequenceId),void 0!==e.configResult&&sZ.encode(e.configResult,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uU();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.sequenceId=i.int32();continue;case 2:if(18!==e)break;a.configResult=sZ.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uV.fromPartial(e??{}),fromPartial(e){let t=uU();return t.sequenceId=e.sequenceId??0,t.configResult=void 0!==e.configResult&&null!==e.configResult?sZ.fromPartial(e.configResult):void 0,t}};function uB(){return{configResultWithSequenceIds:[]}}let uF={encode(e,t=s9.default.Writer.create()){for(let i of e.configResultWithSequenceIds)uV.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uB();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResultWithSequenceIds.push(uV.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uF.fromPartial(e??{}),fromPartial(e){let t=uB();return t.configResultWithSequenceIds=e.configResultWithSequenceIds?.map(e=>uV.fromPartial(e))||[],t}};function uG(){return{token:""}}let uW={encode:(e,t=s9.default.Writer.create())=>(""!==e.token&&t.uint32(10).string(e.token),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uG();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.token=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uW.fromPartial(e??{}),fromPartial(e){let t=uG();return t.token=e.token??"",t}};function ux(){return{idBitmap:new Uint8Array(0)}}let uH={encode:(e,t=s9.default.Writer.create())=>(0!==e.idBitmap.length&&t.uint32(10).bytes(e.idBitmap),t),decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ux();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.idBitmap=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uH.fromPartial(e??{}),fromPartial(e){let t=ux();return t.idBitmap=e.idBitmap??new Uint8Array(0),t}};function uY(){return{namespaces:[],edgeConfigClientVersion:""}}let uK={encode(e,t=s9.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.namespaces))t.int32(i);return t.ldelim(),""!==e.edgeConfigClientVersion&&t.uint32(18).string(e.edgeConfigClientVersion),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uY();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.namespaces.push(i.int32());continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.namespaces.push(i.int32());continue}break;case 2:if(18!==e)break;a.edgeConfigClientVersion=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uK.fromPartial(e??{}),fromPartial(e){let t=uY();return t.namespaces=e.namespaces?.map(e=>e)||[],t.edgeConfigClientVersion=e.edgeConfigClientVersion??"",t}};function u$(){return{configResults:[]}}let uz={encode(e,t=s9.default.Writer.create()){for(let i of e.configResults)sZ.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=u$();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResults.push(sZ.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uz.fromPartial(e??{}),fromPartial(e){let t=u$();return t.configResults=e.configResults?.map(e=>sZ.fromPartial(e))||[],t}};function uq(){return{ruids:[],configNames:[],maxSnapshots:0}}let uZ={encode(e,t=s9.default.Writer.create()){for(let i of e.ruids)lt.encode(i,t.uint32(10).fork()).ldelim();for(let i of e.configNames)t.uint32(18).string(i);return 0!==e.maxSnapshots&&t.uint32(24).int32(e.maxSnapshots),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uq();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.ruids.push(lt.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.configNames.push(i.string());continue;case 3:if(24!==e)break;a.maxSnapshots=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uZ.fromPartial(e??{}
2),fromPartial(e){let t=uq();return t.ruids=e.ruids?.map(e=>lt.fromPartial(e))||[],t.configNames=e.configNames?.map(e=>e)||[],t.maxSnapshots=e.maxSnapshots??0,t}},uj={encode:(e,t=s9.default.Writer.create())=>t,decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>uj.fromPartial(e??{}),fromPartial:e=>({})};function uX(){return{configNames:[]}}let uQ={encode(e,t=s9.default.Writer.create()){for(let i of e.configNames)t.uint32(10).string(i);return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configNames.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>uQ.fromPartial(e??{}),fromPartial(e){let t=uX();return t.configNames=e.configNames?.map(e=>e)||[],t}};function uJ(){return{configResults:[]}}let u0={encode(e,t=s9.default.Writer.create()){for(let i of e.configResults)sZ.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=uJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configResults.push(sZ.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>u0.fromPartial(e??{}),fromPartial(e){let t=uJ();return t.configResults=e.configResults?.map(e=>sZ.fromPartial(e))||[],t}};function u2(){return{configNames:[],targetingParameters:void 0}}let u3={encode(e,t=s9.default.Writer.create()){for(let i of e.configNames)t.uint32(10).string(i);return void 0!==e.targetingParameters&&lf.encode(e.targetingParameters,t.uint32(18).fork()).ldelim(),t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=u2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configNames.push(i.string());continue;case 2:if(18!==e)break;a.targetingParameters=lf.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>u3.fromPartial(e??{}),fromPartial(e){let t=u2();return t.configNames=e.configNames?.map(e=>e)||[],t.targetingParameters=void 0!==e.targetingParameters&&null!==e.targetingParameters?lf.fromPartial(e.targetingParameters):void 0,t}};function u1(){return{configComparisons:[]}}let u4={encode(e,t=s9.default.Writer.create()){for(let i of e.configComparisons)u6.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=u1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configComparisons.push(u6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>u4.fromPartial(e??{}),fromPartial(e){let t=u1();return t.configComparisons=e.configComparisons?.map(e=>u6.fromPartial(e))||[],t}};function u8(){return{configId:"",matchedRules:[],unmatchedRules:[]}}let u6={encode(e,t=s9.default.Writer.create()){for(let i of(""!==e.configId&&t.uint32(10).string(e.configId),e.matchedRules))sZ.encode(i,t.uint32(18).fork()).ldelim();for(let i of e.unmatchedRules)sZ.encode(i,t.uint32(26).fork()).ldelim();return t},decode(e,t){let i=e instanceof s9.default.Reader?e:s9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=u8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.configId=i.string();continue;case 2:if(18!==e)break;a.matchedRules.push(sZ.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.unmatchedRules.push(sZ.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>u6.fromPartial(e??{}),fromPartial(e){let t=u8();return t.configId=e.configId??"",t.matchedRules=e.matchedRules?.map(e=>sZ.fromPartial(e))||[],t.unmatchedRules=e.unmatchedRules?.map(e=>sZ.fromPartial(e))||[],t}};class u7{rpc;constructor(e){this.rpc=e,this.targetingQuery=this.targetingQuery.bind(this),this.getAbConfigValues=this.getAbConfigValues.bind(this),this.getConfigValuesByToken=this.getConfigValuesByToken.bind(this),this.getConfigResultsBySequenceIds=this.getConfigResultsBySequenceIds.bind(this),this.getCachedConfigResultSequenceIds=this.getCachedConfigResultSequenceIds.bind(this),this.getBitmapByToken=this.getBitmapByToken.bind(this),this.generateConfigSet
2=this.generateConfigSet.bind(this),this.pinConfigSet=this.pinConfigSet.bind(this),this.unpinConfigSet=this.unpinConfigSet.bind(this),this.getUnevaluatedConfigResultsWithAbTargeting=this.getUnevaluatedConfigResultsWithAbTargeting.bind(this),this.addRuidsForDebugging=this.addRuidsForDebugging.bind(this),this.pinTargetingProperties=this.pinTargetingProperties.bind(this),this.unpinTargetingProperties=this.unpinTargetingProperties.bind(this),this.getPinnedTargetingProperties=this.getPinnedTargetingProperties.bind(this),this.getUnevaluatedConfigRules=this.getUnevaluatedConfigRules.bind(this),this.compareRules=this.compareRules.bind(this)}targetingQuery(e,t){return this.rpc.unary(u9,lf.fromPartial(e),t)}getAbConfigValues(e,t){return this.rpc.unary(pe,c5.fromPartial(e),t)}getConfigValuesByToken(e,t){return this.rpc.unary(pt,uO.fromPartial(e),t)}getConfigResultsBySequenceIds(e,t){return this.rpc.unary(pi,uM.fromPartial(e),t)}getCachedConfigResultSequenceIds(e,t){return this.rpc.unary(pn,uh.fromPartial(e),t)}getBitmapByToken(e,t){return this.rpc.unary(pa,uW.fromPartial(e),t)}generateConfigSet(e,t){return this.rpc.unary(po,ui.fromPartial(e),t)}pinConfigSet(e,t){return this.rpc.unary(pr,ur.fromPartial(e),t)}unpinConfigSet(e,t){return this.rpc.unary(pd,uc.fromPartial(e),t)}getUnevaluatedConfigResultsWithAbTargeting(e,t){return this.rpc.unary(ps,uK.fromPartial(e),t)}addRuidsForDebugging(e,t){return this.rpc.unary(pl,uZ.fromPartial(e),t)}pinTargetingProperties(e,t){return this.rpc.unary(pc,uT.fromPartial(e),t)}unpinTargetingProperties(e,t){return this.rpc.unary(pu,uS.fromPartial(e),t)}getPinnedTargetingProperties(e,t){return this.rpc.unary(pp,uk.fromPartial(e),t)}getUnevaluatedConfigRules(e,t){return this.rpc.unary(pf,uQ.fromPartial(e),t)}compareRules(e,t){return this.rpc.unary(pT,u3.fromPartial(e),t)}}let u5={serviceName:"snapchat.cdp.cof.CircumstancesService"},u9={methodName:"targetingQuery",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return lf.encode(this).finish()}},responseType:{deserializeBinary(e){let t=lg.decode(e);return{...t,toObject:()=>t}}}},pe={methodName:"getAbConfigValues",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return c5.encode(this).finish()}},responseType:{deserializeBinary(e){let t=ue.decode(e);return{...t,toObject:()=>t}}}},pt={methodName:"getConfigValuesByToken",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uO.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uy.decode(e);return{...t,toObject:()=>t}}}},pi={methodName:"getConfigResultsBySequenceIds",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uM.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uF.decode(e);return{...t,toObject:()=>t}}}},pn={methodName:"getCachedConfigResultSequenceIds",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uh.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uD.decode(e);return{...t,toObject:()=>t}}}},pa={methodName:"getBitmapByToken",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uW.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uH.decode(e);return{...t,toObject:()=>t}}}},po={methodName:"generateConfigSet",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return ui.encode(this).finish()}},responseType:{deserializeBinary(e){let t=ua.decode(e);return{...t,toObject:()=>t}}}},pr={methodName:"pinConfigSet",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return ur.encode(this).finish()}},responseType:{deserializeBinary(e){let t=us.decode(e);return{...t,toObject:()=>t}}}},pd={methodName:"unpinConfigSet",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uc.encode(this).finish()}},responseType:{deserializeBinary(e){let t=up.decode(e);return{...t,toObject:()=>t}}}},ps={methodName:"getUnevaluatedConfigResultsWithAbTargeting",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uK.encode(this).finish()}}
2,responseType:{deserializeBinary(e){let t=uz.decode(e);return{...t,toObject:()=>t}}}},pl={methodName:"addRuidsForDebugging",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uZ.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uj.decode(e);return{...t,toObject:()=>t}}}},pc={methodName:"pinTargetingProperties",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uT.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uE.decode(e);return{...t,toObject:()=>t}}}},pu={methodName:"unpinTargetingProperties",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uS.encode(this).finish()}},responseType:{deserializeBinary(e){let t=uv.decode(e);return{...t,toObject:()=>t}}}},pp={methodName:"getPinnedTargetingProperties",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uk.encode(this).finish()}},responseType:{deserializeBinary(e){let t=ug.decode(e);return{...t,toObject:()=>t}}}},pf={methodName:"getUnevaluatedConfigRules",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return uQ.encode(this).finish()}},responseType:{deserializeBinary(e){let t=u0.decode(e);return{...t,toObject:()=>t}}}},pT={methodName:"compareRules",service:u5,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return u3.encode(this).finish()}},responseType:{deserializeBinary(e){let t=u4.decode(e);return{...t,toObject:()=>t}}}};class pm{host;options;constructor(e,t){this.host=e,this.options=t}unary(e,t,i){let n={...t,...e.requestType},a=i&&this.options.metadata?new s5.BrowserHeaders({...this.options?.metadata.headersMap,...i?.headersMap}):i??this.options.metadata;return new Promise((t,i)=>{c6.unary(e,{request:n,host:this.host,metadata:a??{},...void 0!==this.options.transport?{transport:this.options.transport}:{},debug:this.options.debug??!1,onEnd:function(e){e.status===c6.Code.OK?t(e.message.toObject()):i(new pE(e.statusMessage,e.status,e.trailers))}})})}}class pE extends globalThis.Error{code;metadata;constructor(e,t,i){super(e),this.code=t,this.metadata=i}}var p_=sU;e.i(394426),e.i(277497);var pS=sU;function pI(){return{name:"",package:"",dependency:[],publicDependency:[],weakDependency:[],messageType:[],enumType:[],service:[],extension:[],options:void 0,sourceCodeInfo:void 0,syntax:""}}(ns=ee||(ee={}))[ns.TYPE_DOUBLE=1]="TYPE_DOUBLE",ns[ns.TYPE_FLOAT=2]="TYPE_FLOAT",ns[ns.TYPE_INT64=3]="TYPE_INT64",ns[ns.TYPE_UINT64=4]="TYPE_UINT64",ns[ns.TYPE_INT32=5]="TYPE_INT32",ns[ns.TYPE_FIXED64=6]="TYPE_FIXED64",ns[ns.TYPE_FIXED32=7]="TYPE_FIXED32",ns[ns.TYPE_BOOL=8]="TYPE_BOOL",ns[ns.TYPE_STRING=9]="TYPE_STRING",ns[ns.TYPE_GROUP=10]="TYPE_GROUP",ns[ns.TYPE_MESSAGE=11]="TYPE_MESSAGE",ns[ns.TYPE_BYTES=12]="TYPE_BYTES",ns[ns.TYPE_UINT32=13]="TYPE_UINT32",ns[ns.TYPE_ENUM=14]="TYPE_ENUM",ns[ns.TYPE_SFIXED32=15]="TYPE_SFIXED32",ns[ns.TYPE_SFIXED64=16]="TYPE_SFIXED64",ns[ns.TYPE_SINT32=17]="TYPE_SINT32",ns[ns.TYPE_SINT64=18]="TYPE_SINT64",ns[ns.UNRECOGNIZED=-1]="UNRECOGNIZED",(nl=et||(et={}))[nl.LABEL_OPTIONAL=1]="LABEL_OPTIONAL",nl[nl.LABEL_REQUIRED=2]="LABEL_REQUIRED",nl[nl.LABEL_REPEATED=3]="LABEL_REPEATED",nl[nl.UNRECOGNIZED=-1]="UNRECOGNIZED",(nc=ei||(ei={}
2))[nc.SPEED=1]="SPEED",nc[nc.CODE_SIZE=2]="CODE_SIZE",nc[nc.LITE_RUNTIME=3]="LITE_RUNTIME",nc[nc.UNRECOGNIZED=-1]="UNRECOGNIZED",(nu=en||(en={}))[nu.STRING=0]="STRING",nu[nu.CORD=1]="CORD",nu[nu.STRING_PIECE=2]="STRING_PIECE",nu[nu.UNRECOGNIZED=-1]="UNRECOGNIZED",(np=ea||(ea={}))[np.JS_NORMAL=0]="JS_NORMAL",np[np.JS_STRING=1]="JS_STRING",np[np.JS_NUMBER=2]="JS_NUMBER",np[np.UNRECOGNIZED=-1]="UNRECOGNIZED",(nf=eo||(eo={}))[nf.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",nf[nf.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",nf[nf.IDEMPOTENT=2]="IDEMPOTENT",nf[nf.UNRECOGNIZED=-1]="UNRECOGNIZED";let pv={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.package&&""!==e.package&&t.uint32(18).string(e.package),e.dependency))t.uint32(26).string(i);for(let i of(t.uint32(82).fork(),e.publicDependency))t.int32(i);for(let i of(t.ldelim(),t.uint32(90).fork(),e.weakDependency))t.int32(i);for(let i of(t.ldelim(),e.messageType))pk.encode(i,t.uint32(34).fork()).ldelim();for(let i of e.enumType)pw.encode(i,t.uint32(42).fork()).ldelim();for(let i of e.service)pG.encode(i,t.uint32(50).fork()).ldelim();for(let i of e.extension)py.encode(i,t.uint32(58).fork()).ldelim();return void 0!==e.options&&pY.encode(e.options,t.uint32(66).fork()).ldelim(),void 0!==e.sourceCodeInfo&&fe.encode(e.sourceCodeInfo,t.uint32(74).fork()).ldelim(),void 0!==e.syntax&&""!==e.syntax&&t.uint32(98).string(e.syntax),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pI();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.package=i.string();continue;case 3:if(26!==e)break;a.dependency.push(i.string());continue;case 10:if(80===e){a.publicDependency.push(i.int32());continue}if(82===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.publicDependency.push(i.int32());continue}break;case 11:if(88===e){a.weakDependency.push(i.int32());continue}if(90===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.weakDependency.push(i.int32());continue}break;case 4:if(34!==e)break;a.messageType.push(pk.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.enumType.push(pw.decode(i,i.uint32()));continue;case 6:if(50!==e)break;a.service.push(pG.decode(i,i.uint32()));continue;case 7:if(58!==e)break;a.extension.push(py.decode(i,i.uint32()));continue;case 8:if(66!==e)break;a.options=pY.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.sourceCodeInfo=fe.decode(i,i.uint32());continue;case 12:if(98!==e)break;a.syntax=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pv.fromPartial(e??{}),fromPartial(e){let t=pI();return t.name=e.name??"",t.package=e.package??"",t.dependency=e.dependency?.map(e=>e)||[],t.publicDependency=e.publicDependency?.map(e=>e)||[],t.weakDependency=e.weakDependency?.map(e=>e)||[],t.messageType=e.messageType?.map(e=>pk.fromPartial(e))||[],t.enumType=e.enumType?.map(e=>pw.fromPartial(e))||[],t.service=e.service?.map(e=>pG.fromPartial(e))||[],t.extension=e.extension?.map(e=>py.fromPartial(e))||[],t.options=void 0!==e.options&&null!==e.options?pY.fromPartial(e.options):void 0,t.sourceCodeInfo=void 0!==e.sourceCodeInfo&&null!==e.sourceCodeInfo?fe.fromPartial(e.sourceCodeInfo):void 0,t.syntax=e.syntax??"",t}};function pA(){return{name:"",field:[],extension:[],nestedType:[],enumType:[],extensionRange:[],oneofDecl:[],options:void 0,reservedRange:[],reservedName:[]}}let pk={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),e.field))py.encode(i,t.uint32(18).fork()).ldelim();for(let i of e.extension)py.encode(i,t.uint32(50).fork()).ldelim();for(let i of e.nestedType)pk.encode(i,t.uint32(26).fork()).ldelim();for(let i of e.enumType)pw.encode(i,t.uint32(34).fork()).ldelim();for(let i of e.extensionRange)pg.encode(i,t.uint32(42).fork()).ldelim();for(let i of e.oneofDecl)pL.encode(i,t.uint32(66).fork()).ldelim();for(let i of(void 0!==e.options&&p$.encode(e.options,t.uint32(58).fork()).ldelim(),e.reservedRange))pR.encode(i,t.uint32(74).fork()).ldelim();for(let i of e.reservedName)t.uint32(82).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.field.push(py.decode(i,i.uint32()));continue;case 6:if(50!==e)break;a.extension.push(py.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.nestedType.push(pk.decode(i,i.uint32()));continue;case 4:if(34!==e)break;a.enumType.push(pw.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.extensionRange.push(pg.decode(i,i.uint32()));continue;case 8:if(66!==e)break;a.oneofDecl.push(pL.decode(i,i.uint32()));continue;case 7:if(58!==e)break;a.options=p$.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.reservedRange.push(pR.decode(i,i.uint32()));continue;case 10:if(82!==e)break;a.reservedName.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pk.fromPartial(e??{}),fromPartial(e){let t=pA();return t.name=e.name??"",t.field=e.field?.map(e=>py.fromPartial(e))||[],t.extension=e.extension?.map(e=>py.fromPartial(e))||[],t.nestedType=e.nestedType?.map(e=>pk.fromPartial(e))||[],t.enumType=e.enumType?.map(e=>pw.fromPartial(e))||[],t.extensionRange=e.extensionRange?.map(e=>pg.fromPartial(e))||[],t.oneofDecl=e.oneofDecl?.map(e=>pL.fromPartial(e))||[],t.options=void 0!==e.options&&null!==e.options?p$.fromPartial(e.options):void 0,t.reservedRange=e.reservedRange?.map(e=>pR.fromPartial(e))||[],t.reservedName=e.reservedName?.map(e=>e)||[],t}};function pb(){return{start:0,end:0,options:void 0}}let pg={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.start&&0!==e.start&&t.uint32(8).int32(e.start),void 0!==e.end&&0!==e.end&&t.uint32(16).int32(e.end),void 0!==e.options&&pO.encode(e.options,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pb();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.start=i.int32();continue;case 2:if(16!==e)break;a.end=i.int32();continue;case 3:if(26!==e)break;a.options=pO.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pg.fromPartial(e??{}),fromPartial(e){let t=pb();return t.start=e.start??0,t.end=e.end??0,t.options=void 0!==e.options&&null!==e.options?pO.fromPartial(e.options):void 0,t}};function pN(){return{start:0,end:0}}let pR={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.start&&0!==e.start&&t.uint32(8).int32(e.start),void 0!==e.end&&0!==e.end&&t.uint32(16).int32(e.end),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.start=i.int32();continue;case 2:if(16!==e)break;a.end=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pR.fromPartial(e??{}),fromPartial(e){let t=pN();return t.start=e.start??0,t.end=e.end??0,t}};function pP(){return{uninterpretedOption:[]}}let pO={encode(e,t=sU.default.Writer.create()){for(let i of e.uninterpretedOption)p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pO.fromPartial(e??{}),fromPartial(e){let t=pP();return t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function pC(){return{name:"",number:0,label:1,type:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",options:void 0,proto3Optional:!1}}let py={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.number&&0!==e.number&&t.uint32(24).int32(e.number),void 0!==e.label&&1!==e.label&&t.uint32(32).int32(e.label),void 0!==e.type&&1!==e.type&&t.uint32(40).int32(e.type),void 0!==e.typeName&&""!==e.typeName&&t.uint32(50).string(e.typeName),void 0!==e.extendee&&""!==e.extendee&&t.uint32(18).string(e.extendee),void 0!==e.defaultValue&&""!==e.defaultValue&&t.uint32(58).string(e.defaultValue),void 0!==e.oneofIndex&&0!==e.oneofIndex&&t.uint32(72).int32(e.oneofIndex),void 0!==e.jsonName&&""!==e.jsonName&&t.uint32(82).string(e.jsonName),void 0!==e.options&&pq.encode(e.options,t.uint32(66).fork()).ldelim(),void 0!==e.proto3Optional&&!1!==e.proto3Optional&&t.uint32(136).bool(e.proto3Optional),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 3:if(24!==e)break;a.number=i.int32();continue;case 4:if(32!==e)break;a.label=i.int32();continue;case 5:if(40!==e)break;a.type=i.int32();continue;case 6:if(50!==e)break;a.typeName=i.string();continue;case 2:if(18!==e)break;a.extendee=i.string();continue;case 7:if(58!==e)break;a.defaultValue=i.string();continue;case 9:if(72!==e)break;a.oneofIndex=i.int32();continue;case 10:if(82!==e)break;a.jsonName=i.string();continue;case 8:if(66!==e)break;a.options=pq.decode(i,i.uint32());continue;case 17:if(136!==e)break;a.proto3Optional=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>py.fromPartial(e??{}),fromPartial(e){let t=pC();return t.name=e.name??"",t.number=e.number??0,t.label=e.label??1,t.type=e.type??1,t.typeName=e.typeName??"",t.extendee=e.extendee??"",t.defaultValue=e.defaultValue??"",t.oneofIndex=e.oneofIndex??0,t.jsonName=e.jsonName??"",t.options=void 0!==e.options&&null!==e.options?pq.fromPartial(e.options):void 0,t.proto3Optional=e.proto3Optional??!1,t}};function ph(){return{name:"",options:void 0}}let pL={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.options&&pj.encode(e.options,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ph();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.options=pj.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pL.fromPartial(e??{}),fromPartial(e){let t=ph();return t.name=e.name??"",t.options=void 0!==e.options&&null!==e.options?pj.fromPartial(e.options):void 0,t}};function pD(){return{name:"",value:[],options:void 0,reservedRange:[],reservedName:[]}}let pw={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),e.value))pB.encode(i,t.uint32(18).fork()).ldelim();for(let i of(void 0!==e.options&&pQ.encode(e.options,t.uint32(26).fork()).ldelim(),e.reservedRange))pU.encode(i,t.uint32(34).fork()).ldelim();for(let i of e.reservedName)t.uint32(42).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pD();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.value.push(pB.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.options=pQ.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.reservedRange.push(pU.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.reservedName.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pw.fromPartial(e??{}),fromPartial(e){let t=pD();return t.name=e.name??"",t.value=e.value?.map(e=>pB.fromPartial(e))||[],t.options=void 0!==e.options&&null!==e.options?pQ.fromPartial(e.options):void 0,t.reservedRange=e.reservedRange?.map(e=>pU.fromPartial(e))||[],t.reservedName=e.reservedName?.map(e=>e)||[],t}};function pM(){return{start:0,end:0}}let pU={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.start&&0!==e.start&&t.uint32(8).int32(e.start),void 0!==e.end&&0!==e.end&&t.uint32(16).int32(e.end),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pM();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.start=i.int32();continue;case 2:if(16!==e)break;a.end=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pU.fromPartial(e??{}),fromPartial(e){let t=pM();return t.start=e.start??0,t.end=e.end??0,t}};function pV(){return{name:"",number:0,options:void 0}}let pB={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.number&&0!==e.number&&t.uint32(16).int32(e.number),void 0!==e.options&&p0.encode(e.options,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(16!==e)break;a.number=i.int32();continue;case 3:if(26!==e)break;a.options=p0.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pB.fromPartial(e??{}),fromPartial(e){let t=pV();return t.name=e.name??"",t.number=e.number??0,t.options=void 0!==e.options&&null!==e.options?p0.fromPartial(e.options):void 0,t}};function pF(){return{name:"",method:[],options:void 0}}let pG={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),e.method))px.encode(i,t.uint32(18).fork()).ldelim();return void 0!==e.options&&p3.encode(e.options,t.uint32(26).fork()).ldelim(),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.method.push(px.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.options=p3.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pG.fromPartial(e??{}),fromPartial(e){let t=pF();return t.name=e.name??"",t.method=e.method?.map(e=>px.fromPartial(e))||[],t.options=void 0!==e.options&&null!==e.options?p3.fromPartial(e.options):void 0,t}};function pW(){return{name:"",inputType:"",outputType:"",options:void 0,clientStreaming:!1,serverStreaming:!1}}let px={encode:(e,t=sU.default.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.inputType&&""!==e.inputType&&t.uint32(18).string(e.inputType),void 0!==e.outputType&&""!==e.outputType&&t.uint32(26).string(e.outputType),void 0!==e.options&&p4.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.clientStreaming&&!1!==e.clientStreaming&&t.uint32(40).bool(e.clientStreaming),void 0!==e.serverStreaming&&!1!==e.serverStreaming&&t.uint32(48).bool(e.serverStreaming),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.inputType=i.string();continue;case 3:if(26!==e)break;a.outputType=i.string();continue;case 4:if(34!==e)break;a.options=p4.decode(i,i.uint32());continue;case 5:if(40!==e)break;a.clientStreaming=i.bool();continue;case 6:if(48!==e)break;a.serverStreaming=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>px.fromPartial(e??{}),fromPartial(e){let t=pW();return t.name=e.name??"",t.inputType=e.inputType??"",t.outputType=e.outputType??"",t.options=void 0!==e.options&&null!==e.options?p4.fromPartial(e.options):void 0,t.clientStreaming=e.clientStreaming??!1,t.serverStreaming=e.serverStreaming??!1,t}};function pH(){return{javaPackage:"",javaOuterClassname:"",javaMultipleFiles:!1,javaGenerateEqualsAndHash:!1,javaStringCheckUtf8:!1,optimizeFor:1,goPackage:"",ccGenericServices:!1,javaGenericServices:!1,pyGenericServices:!1,phpGenericServices:!1,deprecated:!1,ccEnableArenas:!0,objcClassPrefix:"",csharpNamespace:"",swiftPrefix:"",phpClassPrefix:"",phpNamespace:"",phpMetadataNamespace:"",rubyPackage:"",uninterpretedOption:[]}}let pY={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.javaPackage&&""!==e.ja
2vaPackage&&t.uint32(10).string(e.javaPackage),void 0!==e.javaOuterClassname&&""!==e.javaOuterClassname&&t.uint32(66).string(e.javaOuterClassname),void 0!==e.javaMultipleFiles&&!1!==e.javaMultipleFiles&&t.uint32(80).bool(e.javaMultipleFiles),void 0!==e.javaGenerateEqualsAndHash&&!1!==e.javaGenerateEqualsAndHash&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),void 0!==e.javaStringCheckUtf8&&!1!==e.javaStringCheckUtf8&&t.uint32(216).bool(e.javaStringCheckUtf8),void 0!==e.optimizeFor&&1!==e.optimizeFor&&t.uint32(72).int32(e.optimizeFor),void 0!==e.goPackage&&""!==e.goPackage&&t.uint32(90).string(e.goPackage),void 0!==e.ccGenericServices&&!1!==e.ccGenericServices&&t.uint32(128).bool(e.ccGenericServices),void 0!==e.javaGenericServices&&!1!==e.javaGenericServices&&t.uint32(136).bool(e.javaGenericServices),void 0!==e.pyGenericServices&&!1!==e.pyGenericServices&&t.uint32(144).bool(e.pyGenericServices),void 0!==e.phpGenericServices&&!1!==e.phpGenericServices&&t.uint32(336).bool(e.phpGenericServices),void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(184).bool(e.deprecated),void 0!==e.ccEnableArenas&&!0!==e.ccEnableArenas&&t.uint32(248).bool(e.ccEnableArenas),void 0!==e.objcClassPrefix&&""!==e.objcClassPrefix&&t.uint32(290).string(e.objcClassPrefix),void 0!==e.csharpNamespace&&""!==e.csharpNamespace&&t.uint32(298).string(e.csharpNamespace),void 0!==e.swiftPrefix&&""!==e.swiftPrefix&&t.uint32(314).string(e.swiftPrefix),void 0!==e.phpClassPrefix&&""!==e.phpClassPrefix&&t.uint32(322).string(e.phpClassPrefix),void 0!==e.phpNamespace&&""!==e.phpNamespace&&t.uint32(330).string(e.phpNamespace),void 0!==e.phpMetadataNamespace&&""!==e.phpMetadataNamespace&&t.uint32(354).string(e.phpMetadataNamespace),void 0!==e.rubyPackage&&""!==e.rubyPackage&&t.uint32(362).string(e.rubyPackage),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.javaPackage=i.string();continue;case 8:if(66!==e)break;a.javaOuterClassname=i.string();continue;case 10:if(80!==e)break;a.javaMultipleFiles=i.bool();continue;case 20:if(160!==e)break;a.javaGenerateEqualsAndHash=i.bool();continue;case 27:if(216!==e)break;a.javaStringCheckUtf8=i.bool();continue;case 9:if(72!==e)break;a.optimizeFor=i.int32();continue;case 11:if(90!==e)break;a.goPackage=i.string();continue;case 16:if(128!==e)break;a.ccGenericServices=i.bool();continue;case 17:if(136!==e)break;a.javaGenericServices=i.bool();continue;case 18:if(144!==e)break;a.pyGenericServices=i.bool();continue;case 42:if(336!==e)break;a.phpGenericServices=i.bool();continue;case 23:if(184!==e)break;a.deprecated=i.bool();continue;case 31:if(248!==e)break;a.ccEnableArenas=i.bool();continue;case 36:if(290!==e)break;a.objcClassPrefix=i.string();continue;case 37:if(298!==e)break;a.csharpNamespace=i.string();continue;case 39:if(314!==e)break;a.swiftPrefix=i.string();continue;case 40:if(322!==e)break;a.phpClassPrefix=i.string();continue;case 41:if(330!==e)break;a.phpNamespace=i.string();continue;case 44:if(354!==e)break;a.phpMetadataNamespace=i.string();continue;case 45:if(362!==e)break;a.rubyPackage=i.string();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pY.fromPartial(e??{}),fromPartial(e){let t=pH();return t.javaPackage=e.javaPackage??"",t.javaOuterClassname=e.javaOuterClassname??"",t.javaMultipleFiles=e.javaMultipleFiles??!1,t.j
2avaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash??!1,t.javaStringCheckUtf8=e.javaStringCheckUtf8??!1,t.optimizeFor=e.optimizeFor??1,t.goPackage=e.goPackage??"",t.ccGenericServices=e.ccGenericServices??!1,t.javaGenericServices=e.javaGenericServices??!1,t.pyGenericServices=e.pyGenericServices??!1,t.phpGenericServices=e.phpGenericServices??!1,t.deprecated=e.deprecated??!1,t.ccEnableArenas=e.ccEnableArenas??!0,t.objcClassPrefix=e.objcClassPrefix??"",t.csharpNamespace=e.csharpNamespace??"",t.swiftPrefix=e.swiftPrefix??"",t.phpClassPrefix=e.phpClassPrefix??"",t.phpNamespace=e.phpNamespace??"",t.phpMetadataNamespace=e.phpMetadataNamespace??"",t.rubyPackage=e.rubyPackage??"",t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function pK(){return{messageSetWireFormat:!1,noStandardDescriptorAccessor:!1,deprecated:!1,mapEntry:!1,uninterpretedOption:[]}}let p$={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.messageSetWireFormat&&!1!==e.messageSetWireFormat&&t.uint32(8).bool(e.messageSetWireFormat),void 0!==e.noStandardDescriptorAccessor&&!1!==e.noStandardDescriptorAccessor&&t.uint32(16).bool(e.noStandardDescriptorAccessor),void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(24).bool(e.deprecated),void 0!==e.mapEntry&&!1!==e.mapEntry&&t.uint32(56).bool(e.mapEntry),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.messageSetWireFormat=i.bool();continue;case 2:if(16!==e)break;a.noStandardDescriptorAccessor=i.bool();continue;case 3:if(24!==e)break;a.deprecated=i.bool();continue;case 7:if(56!==e)break;a.mapEntry=i.bool();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>p$.fromPartial(e??{}),fromPartial(e){let t=pK();return t.messageSetWireFormat=e.messageSetWireFormat??!1,t.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor??!1,t.deprecated=e.deprecated??!1,t.mapEntry=e.mapEntry??!1,t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function pz(){return{ctype:0,packed:!1,jstype:0,lazy:!1,deprecated:!1,weak:!1,uninterpretedOption:[]}}let pq={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.ctype&&0!==e.ctype&&t.uint32(8).int32(e.ctype),void 0!==e.packed&&!1!==e.packed&&t.uint32(16).bool(e.packed),void 0!==e.jstype&&0!==e.jstype&&t.uint32(48).int32(e.jstype),void 0!==e.lazy&&!1!==e.lazy&&t.uint32(40).bool(e.lazy),void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(24).bool(e.deprecated),void 0!==e.weak&&!1!==e.weak&&t.uint32(80).bool(e.weak),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pz();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.ctype=i.int32();continue;case 2:if(16!==e)break;a.packed=i.bool();continue;case 6:if(48!==e)break;a.jstype=i.int32();continue;case 5:if(40!==e)break;a.lazy=i.bool();continue;case 3:if(24!==e)break;a.deprecated=i.bool();continue;case 10:if(80!==e)break;a.weak=i.bool();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pq.fromPartial(e??{}),fromPartial(e){let t=pz();return t.ctype=e.ctype??0,t.packed=e.packed??!1,t.jstype=e.jstype??0,t.lazy=e.lazy??!1,t.deprecated=e.deprecated??!1,t.weak=e.weak??!1,t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function pZ(){return{uninterpretedOption:[]}}let pj={encode(e,t=sU.default.Writer.create()){for(let i of e.uninterpretedOption)p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pZ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pj.fromPartial(e??{}),fromPartial(e){let t=pZ();return t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function pX(){return{allowAlias:!1,deprecated:!1,uninterpretedOption:[]}}let pQ={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.allowAlias&&!1!==e.allowAlias&&t.uint32(16).bool(e.allowAlias),void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(24).bool(e.deprecated),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 2:if(16!==e)break;a.allowAlias=i.bool();continue;case 3:if(24!==e)break;a.deprecated=i.bool();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>pQ.fromPartial(e??{}),fromPartial(e){let t=pX();return t.allowAlias=e.allowAlias??!1,t.deprecated=e.deprecated??!1,t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function pJ(){return{deprecated:!1,uninterpretedOption:[]}}let p0={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(8).bool(e.deprecated),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=pJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.deprecated=i.bool();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>p0.fromPartial(e??{}),fromPartial(e){let t=pJ();return t.deprecated=e.deprecated??!1,t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function p2(){return{deprecated:!1,uninterpretedOption:[]}}let p3={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(264).bool(e.deprecated),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=p2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 33:if(264!==e)break;a.deprecated=i.bool();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>p3.fromPartial(e??{}),fromPartial(e){let t=p2();return t.deprecated=e.deprecated??!1,t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function p1(){return{deprecated:!1,idempotencyLevel:0,uninterpretedOption:[]}}let p4={encode(e,t=sU.default.Writer.create()){for(let i of(void 0!==e.deprecated&&!1!==e.deprecated&&t.uint32(264).bool(e.deprecated),void 0!==e.idempotencyLevel&&0!==e.idempotencyLevel&&t.uint32(272).int32(e.idempotencyLevel),e.uninterpretedOption))p6.encode(i,t.uint32(7994).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=p1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 33:if(264!==e)break;a.deprecated=i.bool();continue;case 34:if(272!==e)break;a.idempotencyLevel=i.int32();continue;case 999:if(7994!==e)break;a.uninterpretedOption.push(p6.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>p4.fromPartial(e??{}),fromPartial(e){let t=p1();return t.deprecated=e.deprecated??!1,t.idempotencyLevel=e.idempotencyLevel??0,t.uninterpretedOption=e.uninterpretedOption?.map(e=>p6.fromPartial(e))||[],t}};function p8(){return{name:[],identifierValue:"",positiveIntValue:"0",negativeIntValue:"0",doubleValue:0,stringValue:new Uint8Array(0),aggregateValue:""}}let p6={encode(e,t=sU.default.Writer.create()){for(let i of e.name)p5.encode(i,t.uint32(18).fork()).ldelim();return void 0!==e.identifierValue&&""!==e.identifierValue&&t.uint32(26).string(e.identifierValue),void 0!==e.positiveIntValue&&"0"!==e.positiveIntValue&&t.uint32(32).uint64(e.positiveIntValue),void 0!==e.negativeIntValue&&"0"!==e.negativeIntValue&&t.uint32(40).int64(e.negativeIntValue),void 0!==e.doubleValue&&0!==e.doubleValue&&t.uint32(49).double(e.doubleValue),void 0!==e.stringValue&&0!==e.stringValue.length&&t.uint32(58).bytes(e.stringValue),void 0!==e.aggregateValue&&""!==e.aggregateValue&&t.uint32(66).string(e.aggregateValue),t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=p8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 2:if(18!==e)break;a.name.push(p5.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.identifierValue=i.string();continue;case 4:if(32!==e)break;a.positiveIntValue=fn(i.uint64());continue;case 5:if(40!==e)break;a.negativeIntValue=fn(i.int64());continue;case 6:if(49!==e)break;a.doubleValue=i.double();continue;case 7:if(58!==e)break;a.stringValue=i.bytes();continue;case 8:if(66!==e)break;a.aggregateValue=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>p6.fromPartial(e??{}),fromPartial(e){let t=p8();return t.name=e.name?.map(e=>p5.fromPartial(e))||[],t.identifierValue=e.identifierValue??"",t.positiveIntValue=e.positiveIntValue??"0",t.negativeIntValue=e.negativeIntValue??"0",t.doubleValue=e.doubleValue??0,t.stringValue=e.stringValue??new Uint8Array(0),t.aggregateValue=e.aggregateValue??"",t}};function p7(){return{namePart:"",isExtension:!1}}let p5={encode:(e,t=sU.default.Writer.create())=>(""!==e.namePart&&t.uint32(10).string(e.namePart),!1!==e.isExtension&&t.uint32(16).bool(e.isExtension),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=p7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.namePart=i.string();continue;case 2:if(16!==e)break;a.isExtension=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>p5.fromPartial(e??{}),fromPartial(e){let t=p7();return t.namePart=e.namePart??"",t.isExtension=e.isExtension??!1,t}};function p9(){return{location:[]}}let fe={encode(e,t=sU.default.Writer.create()){for(let i of e.location)fi.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=p9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.location.push(fi.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fe.fromPartial(e??{}),fromPartial(e){let t=p9();return t.location=e.location?.map(e=>fi.fromPartial(e))||[],t}};function ft(){return{path:[],span:[],leadingComments:"",trailingComments:"",leadingDetachedComments:[]}}let fi={encode(e,t=sU.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.path))t.int32(i);for(let i of(t.ldelim(),t.uint32(18).fork(),e.span))t.int32(i);for(let i of(t.ldelim(),void 0!==e.leadingComments&&""!==e.leadingComments&&t.uint32(26).string(e.leadingComments),void 0!==e.trailingComments&&""!==e.trailingComments&&t.uint32(34).string(e.trailingComments),e.leadingDetachedComments))t.uint32(50).string(i);return t},decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ft();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.path.push(i.int32());continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.path.push(i.int32());continue}break;case 2:if(16===e){a.span.push(i.int32());continue}if(18===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.span.push(i.int32());continue}break;case 3:if(26!==e)break;a.leadingComments=i.string();continue;case 4:if(34!==e)break;a.trailingComments=i.string();continue;case 6:if(50!==e)break;a.leadingDetachedComments.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fi.fromPartial(e??{}),fromPartial(e){let t=ft();return t.path=e.path?.map(e=>e)||[],t.span=e.span?.map(e=>e)||[],t.leadingComments=e.leadingComments??"",t.trailingComments=e.trailingComments??"",t.leadingDetachedComments=e.leadingDetachedComments?.map(e=>e)||[],t}};function fn(e){return e.toString()}
2function fa(){return{value:"0"}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure());let fo={encode:(e,t=sU.default.Writer.create())=>("0"!==e.value&&t.uint32(8).uint64(e.value),t),decode(e,t){let i=e instanceof sU.default.Reader?e:sU.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fa();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=i.uint64().toString();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fo.fromPartial(e??{}),fromPartial(e){let t=fa();return t.value=e.value??"0",t}};function fr(){return{userId:"",userName:"",isEmployee:!1,isTestUser:!1,creationTs:"0",stickyCountry:"",email:void 0,phone:void 0,snapProStatus:0,mutableUserName:"",said:""}}sU.default.util.Long!==rv.default&&(sU.default.util.Long=rv.default,sU.default.configure()),s7.default.grpc,(nT=er||(er={}))[nT.UNKNOWN_SNAP_PRO=0]="UNKNOWN_SNAP_PRO",nT[nT.NOT_SNAP_PRO=1]="NOT_SNAP_PRO",nT[nT.STANDARD_TIER=2]="STANDARD_TIER",nT[nT.OFFICIAL_TIER=3]="OFFICIAL_TIER",nT[nT.PUBLIC_TIER=4]="PUBLIC_TIER",nT[nT.UNRECOGNIZED=-1]="UNRECOGNIZED",(nm=ed||(ed={}))[nm.UNKNOWN_ORIGIN=0]="UNKNOWN_ORIGIN",nm[nm.SERVER=1]="SERVER",nm[nm.CLIENT=2]="CLIENT",nm[nm.UNRECOGNIZED=-1]="UNRECOGNIZED",(nE=es||(es={}))[nE.UNKNOWN_PLATFORM=0]="UNKNOWN_PLATFORM",nE[nE.SERVER=1]="SERVER",nE[nE.CLIENT=2]="CLIENT",nE[nE.UNRECOGNIZED=-1]="UNRECOGNIZED",(n_=el||(el={}))[n_.UNKNOWN_STATUS=0]="UNKNOWN_STATUS",n_[n_.DEPLOYED=1]="DEPLOYED",n_[n_.COMPLETED=2]="COMPLETED",n_[n_.POST_ANALYSIS=3]="POST_ANALYSIS",n_[n_.UNRECOGNIZED=-1]="UNRECOGNIZED",(nS=ec||(ec={}))[nS.UNKNOWN_SEGMENT=0]="UNKNOWN_SEGMENT",nS[nS.STANDARD_SEGMENT=1]="STANDARD_SEGMENT",nS[nS.BUDGET_SEGMENT=2]="BUDGET_SEGMENT",nS[nS.ROLLOUT_SEGMENT=3]="ROLLOUT_SEGMENT",nS[nS.AUTO_ROLLOUT_INTERNAL_SEGMENT=4]="AUTO_ROLLOUT_INTERNAL_SEGMENT",nS[nS.AUTO_ROLLOUT_POPULATION_SEGMENT=5]="AUTO_ROLLOUT_POPULATION_SEGMENT",nS[nS.UNRECOGNIZED=-1]="UNRECOGNIZED",(nI=eu||(eu={}))[nI.UNKNOWN_OPERATOR=0]="UNKNOWN_OPERATOR",nI[nI.AND=1]="AND",nI[nI.OR=2]="OR",nI[nI.UNRECOGNIZED=-1]="UNRECOGNIZED",(nv=ep||(ep={}))[nv.UNKNOWN_PREDICATE_OPERATOR=0]="UNKNOWN_PREDICATE_OPERATOR",nv[nv.EQUAL=1]="EQUAL",nv[nv.NOT_EQUAL=2]="NOT_EQUAL",nv[nv.GREATER_THAN_OR_EQUAL_TO=3]="GREATER_THAN_OR_EQUAL_TO",nv[nv.LESS_THAN_OR_EQUAL_TO=4]="LESS_THAN_OR_EQUAL_TO",nv[nv.IN=5]="IN",nv[nv.UNRECOGNIZED=-1]="UNRECOGNIZED",(nA=ef||(ef={}))[nA.UNKNOWN_PROPERTY=0]="UNKNOWN_PROPERTY",nA[nA.DEVICE_MODEL=1]="DEVICE_MODEL",nA[nA.COUNTRY=2]="COUNTRY",nA[nA.OS=3]="OS",nA[nA.OS_VERSION=4]="OS_VERSION",nA[nA.APP_VERSION=5]="APP_VERSION",nA[nA.BUILD_FLAVOR=6]="BUILD_FLAVOR",nA[nA.USER_ID=7]="USER_ID",nA[nA.LOCALE=8]="LOCALE",nA[nA.IS_CHARGING=9]="IS_CHARGING",nA[nA.BATTERY_LEVEL=10]="BATTERY_LEVEL",nA[nA.DEVICE_CLUSTER=11]="DEVICE_CLUSTER",nA[nA.IS_OFFLINE=12]="IS_OFFLINE",nA[nA.BANDWIDTH=13]="BANDWIDTH",nA[nA.DEVICE_BRAND=14]="DEVICE_BRAND",nA[nA.IS_EMPLOYEE=15]="IS_EMPLOYEE",nA[nA.USERNAME=16]="USERNAME",nA[nA.IS_TEST_USER=17]="IS_TEST_USER",nA[nA.USER_PROFILE=18]="USER_PROFILE",nA[nA.SCREEN_WIDTH=19]="SCREEN_WIDTH",nA[nA.SCREEN_HEIGHT=20]="SCREEN_HEIGHT",nA[nA.HEVC_SUPPORT=21]="HEVC_SUPPORT",nA[nA.DISK_SIZE=22]="DISK_SIZE",nA[nA.DISK_AVAILABLE=23]="DISK_AVAILABLE",nA[nA.NETWORK_TYPE=24]="NETWORK_TYPE",nA[nA.MAX_VIDEO_WIDTH=25]="MAX_VIDEO_WIDTH",nA[nA.MAX_VIDEO_HEIGHT=26]="MAX_VIDEO_HEIGHT",nA[nA.MEDIA_TYPE_DEPRECATED=27]="MEDIA_TYPE_DEPRECATED",nA[nA.IS_PUBLIC_STORY=28]="IS_PUBLIC_STORY",nA[nA.IS_OFFICIAL_STORY=29]="IS_OFFICIAL_STORY",nA[nA.IS_NETWORK_METERED=30]="IS_NETWORK_METERED",nA[nA.IS_ROAMING=31]="IS_ROAMING",nA[nA.APP_ENGAGEMENT_LEVEL=32]="APP_ENGAGEMENT_LEVEL",nA[nA.COMMUNICATION_ENGAGEMENT_LEVEL=33]="COMMUNICATION_ENGAGEMENT_LEVEL",nA[nA.FRIEND_STORY_ENGAGEMENT_LEVEL=34]="FRIEND_STORY_ENGAGEMENT_LEVEL",nA[nA.PUBLIC_USER_STORY_ENGAGEMENT_LEVEL=35]="PUBLIC_USER_STORY_ENGAGEMENT_LEVEL",nA[nA.PUBLISHER_STORY_ENGAGEMENT_LEVEL=36]="PUBLISHER_STORY_ENGAGEMENT_LEVEL",nA[nA.LENS_ENGAGEMENT_LEVEL=37]="LENS_ENGAGEMENT_LEVEL",nA[nA.CAMERA_CONTEXT=38]="CAMERA_CONTEXT",nA[nA.CAMERA_DIRECTION=39]="CAMERA_DIRECTION",nA[nA.CAMERA_FLASH_STATE=40]="CAMERA_FLASH_STATE",nA[nA.CAMERA_API=41]="CAMERA_API",nA[nA.NON_FRIEND_STORY_ENGAGEMENT_LEVEL=42]="NON_FRIEND_STORY_ENGAGEMENT_LEVEL",nA[nA.FOLLOWER_SIZE_LEVEL=43]="FOLLOWER_SIZE_LEVEL",nA[nA.LEGACY_MUSHROOM_CONTENT_TYPE=44]="LEGACY_MUSHROOM_CONTENT_TYPE",nA[nA.SNAP_SOURCE=45]="SNAP_SOURCE",nA[nA.UPLOAD_BANDWIDTH=46]="UPLOAD_BANDWIDTH",nA[nA.DAYS_SINCE_CREATION=47]="DAYS_SINCE_CREATION",nA[nA.CAMERA2_LEVEL=48]="CAMERA2_LEVEL",nA[nA.CAMERA_NIGHT_MODE_STATE=49]="CAMERA_NIGHT_MODE_STATE",nA[nA.USER_PERSONA=50]="USER_PERSONA",nA[nA.USER_LANGUAGE=51]="USER_LANGUAGE",nA[nA.USER_CREATION_TIME=52]="USER_CREATION_TIME",nA[nA.VIDEO_DURATION=53]="VIDEO_DURATION",nA[nA.MOBILE_NETWORK_TYPE=54]="MOBILE_NETWORK_TYPE",nA[nA.AGGREGATED_USER_BANDWIDTH=55]="AGGREGATED_USER_BANDWIDTH",nA[nA.REALTIME_MOBILE_NETWORK_GENERATION=56]="REALTIME_MOBILE_NETWORK_GENERATION",nA[nA.REALTIME_NETWORK_TYPE=57]="REALTIME_NETWORK_TYPE",nA[nA.REALTIME_NETWORK_IS_METERED=58]="REALTIME_NETWORK_IS_METERED",nA[nA.REALTIME_NETWORK_IS_ROAMING=59]="REALTIME_NETWORK_IS_ROAMING",nA[nA.LENS_CLUSTER_BIASED=60]="LENS_CLUSTER_BIASED",nA[nA.LENS_CLUSTER_LOG=61]="LENS_CLUSTER_LOG",nA[nA.LENS_CLUSTER_ORIG=62]="LENS_CLUSTER_ORIG",nA[nA.LENS_CLUSTER_ORIG_4=63]="LENS_CLUSTER_ORIG_4",nA[nA.LENS_CLUSTER_BIASED_LOG=64]="LENS_CLUSTER_BIASED_LOG",nA[nA.APP_LOCALE=65]="APP_LOCALE",nA[nA.DEVICE_COMMON_NAME=66]="DEVICE_COMMON_NAME",nA[nA.PICTURE_MODE=67]="PICTURE_MODE",nA[nA.USER_FRIEND_COUNT=68]="USER_FRIEND_COUNT",nA[nA.BOLT_USE_CASE=69]="BOLT_USE_CASE",nA[nA.L90_COUNTRY=70]="L90_COUNTRY",nA[nA.STUB=71]="STUB",nA[nA.IS_TRUE=72]="IS_TRUE",nA[nA.STORY_POST_RATIO=73]="STORY_POST_RATIO",nA[nA.GENDER=74]="GENDER",nA[nA.INFERRED_AGE_BUCKET=75]="INFERRED_AGE_BUCKET",nA[nA.STORIES=76]="STORIES",nA[nA.SENDS=77]="SENDS",nA[nA.SNAP_CREATE_L7=78]="SNAP_CREATE_L7",nA[nA.STORY_POST_L7=79]="STORY_POST_L7",nA[nA.COMMUNICATION_L7=80]="COMMUNICATION_L7",nA[nA.DF_L7=81]="DF_L7",nA[nA.APP_L7=82]="APP_L7",nA[nA.DAYS_SINCE_CREATION_BUCKET=83]="DAYS_SINCE_CREATION_BUCKET",nA[nA.BIDIRECTIONAL_FRIEND_STATUS=84]="BIDIRECTIONAL_FRIEND_STATUS",nA[nA.STORY_POST_PREDICTION=85]="STORY_POST_PREDICTION",nA[nA.BOLT_CDN_EXPERIMENTATION_ID=86]="BOLT_CDN_EXPERIMENTATION_ID",nA[nA.MINS_SINCE_LAST_LENS_ACTIVATION=87]="MINS_SINCE_LAST_LENS_ACTIVATION",nA[nA.APP_OPENS=88]="APP_OPENS",nA[nA.LENS_SWIPES=89]="LENS_SWIPES",nA[nA.LENS_SNAPS=90]="LENS_SNAPS",nA[nA.LENS_OPS=91]="LENS_OPS",nA[nA.W1_APP_OPENS=92]="W1_APP_OPENS",nA[nA.W1_LENS_SWIPES=93]="W1_LENS_SWIPES",nA[nA.W1_LENS_SNAPS=94]="W1_LENS_SNAPS",nA[nA.W1_LENS_OPS=95]="W1_LENS_OPS",nA[nA.W2_APP_OPENS=96]="W2_APP_OPENS",nA[nA.W2_LENS_SWIPES=97]="W2_LENS_SWIPES",nA[nA.W2_LENS_SNAPS=98]="W2_LENS_SNAPS",nA[nA.W2_LENS_OPS=99]="W2_LENS_OPS",nA[nA.W34_APP_OPENS=100]="W34_APP_OPENS",nA[nA.W34_LENS_SWIPES=101]="W34_LENS_SWIPES",nA[nA.W34_LENS_SNAPS=102]="W34_LENS_SNAPS",nA[nA.W34_LENS_OPS=103]="W34_LENS_OPS",nA[nA.LENS_SWIPES_PREDICTION=104]="LENS_SWIPES_PREDICTION",nA[nA.REGISTRATION_COUNTRY=105]="REGISTRATION_COUNTRY",nA[nA.IP_ASN=106]="IP_ASN",nA[nA.IP_REGION=107]="IP_REGION",nA[nA.IP_CITY=108]="IP_CITY",nA[nA.HAS_USER_ID=109]="HAS_USER_ID",nA[nA.HAS_BITMOJI=110]="HAS_BITMOJI",nA[nA.NUM_APP_OPENS_LAST_8_DAYS=111]="NUM_APP_OPENS_LAST_8_DAYS",nA[nA.MINS_SINCE_LAST_SNAPPABLE_LENS_ACTIVATION=112]="MINS_SINCE_LAST_SNAPPABLE_LENS_ACTIVATION",nA[nA.NUM_FEATURE_STORY_VIEW_DAYS_L7=113]="NUM_FEATURE_STORY_VIEW_DAYS_L7",nA[nA.NUM_FEATURE_STORY_SYNC_DAYS_L7=114]="NUM_FEATURE_STORY_SYNC_DAYS_L7",nA[nA.HEXAGON_NN_SUPPORTED_VERSION=115]="HEXAGON_NN_SUPPORTED_VERSION",nA[nA.DAYS_SINCE_LAST_LOGIN_OR_OPEN=116]="DAYS_SINCE_LAST_LOGIN_OR_OPEN",nA[nA.SPECTACLES_VERSION=117]="SPECTACLES_VERSION",nA[nA.NETWORK_QUALITY=118]="NETWORK_QUALITY",nA[nA.DEVICE_MEMORY_MB=119]="DEVICE_MEMORY_MB",nA[nA.DEVICE_GL_VERSION=120]="DEVICE_GL_VERSION",nA[nA.SNAP_PRO_STATUS=121]="SNAP_PRO_STATUS",nA[nA.DEVICE_VP9_DECODING_SUPPORT=122]="DEVICE_VP9_DECODING_SUPPORT",nA[nA.AVG_FRIEND_STORY_VIEW_COUNT_L7=123]="AVG_FRIEND_STORY_VIEW_COUNT_L7",nA[nA.GAME_JOIN_TIME=124]="GAME_JOIN_TIME",nA[nA.GAME_LAST_ACTIVE_TIME=125]="GAME_LAST_ACTIVE_TIME",nA[nA.DAYS_SINCE_FIRST_GAME_ACTIVITY=126]="DAYS_SINCE_FIRST_GAME_ACTIVITY",nA[nA.DAYS_SINCE_LAST_GAME_ACTIVITY=127]="DAYS_SINCE_LAST_GAME_ACTIVITY",nA[nA.PF_PAGE_SESSIONS_WITH_LONG_IMP=128]="PF_PAGE_SESSIONS_WITH_LONG_IMP",nA[nA.STICKY_MAX_CONNECTION_TYPE=129]="STICKY_MAX_CONNECTION_TYPE",nA[nA.WIRELESS_CARRIER=130]="WIRELESS_CARRIER",nA[nA.WITH_ANIMATED_OVERLAY=131]="WITH_ANIMATED_OVERLAY",nA[nA.MINIS_JOIN_TIME=132]="MINIS_JOIN_TIME",nA[nA.MINIS_LAST_ACTIVE_TIME=133]="MINIS_LAST_ACTIVE_TIME",nA[nA.DAYS_SINCE_FIRST_MINIS_ACTIVITY=134]="DAYS_SINCE_FIRST_MINIS_ACTIVITY",nA[nA.DAYS_SINCE_LAST_MINIS_ACTIVITY=135]="DAYS_SINCE_LAST_MINIS_ACTIVITY",nA[nA.DEVICE_AV1_DECODING_SUPPORT=136]="DEVICE_AV1_DECODING_SUPPORT",nA[nA.APP_PACKAGE_INSTALLER=137]="APP_PACKAGE_INSTALLER",nA[nA.URL=138]="URL",nA[nA.ESTIMATED_DURATION_FOR_EVENT_MS=139]="ESTIMATED_DURATION_FOR_EVENT_MS",nA[nA.MEDIA_SOURCE=140]="MEDIA_SOURCE",nA[nA.ASSET_TYPE=141]="ASSET_TYPE",nA[nA.STORY_VIEWS_5TH_TAB_ENGAGEMENT_LEVEL=142]="STORY_VIEWS_5TH_TAB_ENGAGEMENT_LEVEL",nA[nA.REPORTED_AGE=143]="REPORTED_AGE",nA[nA.ANDROID_MOBILE_SERVICES_PROVIDER=144]="ANDROID_MOBILE_SERVICES_PROVIDER",nA[nA.IS_ACQUIRED_USER=145]="IS_ACQUIRED_USER",nA[nA.YDPI=146]="YDPI",nA[nA.BOLT_IS_CONTENT_POPULAR=147]="BOLT_IS_CONTENT_POPULAR",nA[nA.CAPTURE_MODE=148]="CAPTURE_MODE",nA[nA.BIDIRECTIONAL_FRIEND_STATUS_VELLUM=149]="BIDIRECTIONAL_FRIEND_STATUS_VELLUM",nA[nA.ORIGIN=150]="ORIGIN",nA[nA.LENSCORE_VERSION=151]="LENSCORE_VERSION",nA[nA.SNAPKIT_APP_ID=152]="SNAPKIT_APP_ID",nA[nA.GPU=153]="GPU",nA[nA.CHIPSET_NAME=154]="CHIPSET_NAME",nA[nA.CHIPSET_VERSION=155]="CHIPSET_VERSION",nA[nA.HAS_ZERO_IDFA=156]="HAS_ZERO_IDFA",nA[nA.LIMIT_AD_TRACKING=157]="L
2IMIT_AD_TRACKING",nA[nA.ATT_AUTH_STATUS=158]="ATT_AUTH_STATUS",nA[nA.VP9_SOFTWARE_DECODING_SUPPORTED=159]="VP9_SOFTWARE_DECODING_SUPPORTED",nA[nA.AV1_SOFTWARE_DECODING_SUPPORTED=160]="AV1_SOFTWARE_DECODING_SUPPORTED",nA[nA.WITH_MUSIC=161]="WITH_MUSIC",nA[nA.CAMERA2_FRONT_SS_GAIN_OVER_TPA=162]="CAMERA2_FRONT_SS_GAIN_OVER_TPA",nA[nA.ATTACHMENT_TOOL_V2=163]="ATTACHMENT_TOOL_V2",nA[nA.MEDIA_TYPE=164]="MEDIA_TYPE",nA[nA.USER_PERSONA_V3=165]="USER_PERSONA_V3",nA[nA.FEATURE_PROVIDED_SIZE=166]="FEATURE_PROVIDED_SIZE",nA[nA.SNAPS_SEND_WITH_HEVC=167]="SNAPS_SEND_WITH_HEVC",nA[nA.SNAPS_SEND_WITHOUT_HEVC=168]="SNAPS_SEND_WITHOUT_HEVC",nA[nA.CAMERA2_NATIVE_CRASH_OVER_CAMERA1=169]="CAMERA2_NATIVE_CRASH_OVER_CAMERA1",nA[nA.CAMERA2_G2S_LATENCY_OVER_CAMERA1=170]="CAMERA2_G2S_LATENCY_OVER_CAMERA1",nA[nA.SCANNED_CATEGORY_IDS=171]="SCANNED_CATEGORY_IDS",nA[nA.CONTENT_VIEW_SOURCE=172]="CONTENT_VIEW_SOURCE",nA[nA.IS_INTERNAL=173]="IS_INTERNAL",nA[nA.IS_WEB=174]="IS_WEB",nA[nA.RECIPIENTS_SUPPORT_HEVC=175]="RECIPIENTS_SUPPORT_HEVC",nA[nA.APP_OPEN_TO_MAP=176]="APP_OPEN_TO_MAP",nA[nA.APP_OPEN_TO_FRIENDSFEED=177]="APP_OPEN_TO_FRIENDSFEED",nA[nA.APP_OPEN_TO_LENSES=178]="APP_OPEN_TO_LENSES",nA[nA.APP_OPEN_TO_MEMORIES=179]="APP_OPEN_TO_MEMORIES",nA[nA.APP_OPEN_TO_COMMUNITY=180]="APP_OPEN_TO_COMMUNITY",nA[nA.APP_OPEN_TO_SPOTLIGHT=181]="APP_OPEN_TO_SPOTLIGHT",nA[nA.IS_IMPACTED_BY_PINC_893=182]="IS_IMPACTED_BY_PINC_893",nA[nA.DAYS_BEFORE_BIRTHDAY=183]="DAYS_BEFORE_BIRTHDAY",nA[nA.HAS_BIPA=184]="HAS_BIPA",nA[nA.EMAIL_VERIFIED=185]="EMAIL_VERIFIED",nA[nA.PHONE_VERIFIED=186]="PHONE_VERIFIED",nA[nA.NOTIFICATION_PERM_GRANTED=187]="NOTIFICATION_PERM_GRANTED",nA[nA.CONTACT_PERM_GRANTED=188]="CONTACT_PERM_GRANTED",nA[nA.MUTUAL_FRIENDS_COUNT=189]="MUTUAL_FRIENDS_COUNT",nA[nA.GROUPS_COUNT=190]="GROUPS_COUNT",nA[nA.SPOTLIGHT_STORY_ENGAGEMENT_STATUS=191]="SPOTLIGHT_STORY_ENGAGEMENT_STATUS",nA[nA.HAS_NON_TEAM_SNAPCHAT_CONVERSATIONS=192]="HAS_NON_TEAM_SNAPCHAT_CONVERSATIONS",nA[nA.SUP_IS_BIRTHDAY_PARTY_ENABLED=193]="SUP_IS_BIRTHDAY_PARTY_ENABLED",nA[nA.PLAYBACK_ITEM_TYPE=194]="PLAYBACK_ITEM_TYPE",nA[nA.SUP_FHP_LAST_INTERACTION_TIME_MILLIS_TO_NOW=196]="SUP_FHP_LAST_INTERACTION_TIME_MILLIS_TO_NOW",nA[nA.SUP_FHP_CONTACT_SYNC_INTERACTION_COUNT=197]="SUP_FHP_CONTACT_SYNC_INTERACTION_COUNT",nA[nA.SUP_FHP_CONTACT_SYNC_LAST_SHOWN_TIME_MILLIS_TO_NOW=198]="SUP_FHP_CONTACT_SYNC_LAST_SHOWN_TIME_MILLIS_TO_NOW",nA[nA.SUP_FHP_NOTIFICATION_PERMISSION_INTERACTION_COUNT=199]="SUP_FHP_NOTIFICATION_PERMISSION_INTERACTION_COUNT",nA[nA.SUP_FHP_NOTIFICATION_PERMISSION_LAST_SHOWN_TIME_MILLIS_TO_NOW=200]="SUP_FHP_NOTIFICATION_PERMISSION_LAST_SHOWN_TIME_MILLIS_TO_NOW",nA[nA.SUP_FHP_PHONE_VERIFICATION_INTERACTION_COUNT=201]="SUP_FHP_PHONE_VERIFICATION_INTERACTION_COUNT",nA[nA.SUP_FHP_PHONE_VERIFICATION_LAST_SHOWN_TIME_MILLIS_TO_NOW=202]="SUP_FHP_PHONE_VERIFICATION_LAST_SHOWN_TIME_MILLIS_TO_NOW",nA[nA.SUP_FHP_BIRTHDAY_PARTY_INTERACTION_COUNT=203]="SUP_FHP_BIRTHDAY_PARTY_INTERACTION_COUNT",nA[nA.SUP_FHP_BIRTHDAY_PARTY_LAST_SHOWN_TIME_MILLIS_TO_NOW=204]="SUP_FHP_BIRTHDAY_PARTY_LAST_SHOWN_TIME_MILLIS_TO_NOW",nA[nA.SUP_FHP_EMAIL_VERIFICATION_INTERACTION_COUNT=205]="SUP_FHP_EMAIL_VERIFICATION_INTERACTION_COUNT",nA[nA.SUP_FHP_EMAIL_VERIFICATION_LAST_SHOWN_TIME_MILLIS_TO_NOW=206]="SUP_FHP_EMAIL_VERIFICATION_LAST_SHOWN_TIME_MILLIS_TO_NOW",nA[nA.HAS_USED_SPECTACLES=207]="HAS_USED_SPECTACLES",nA[nA.BOLT_CLIENT_APP_STATE=208]="BOLT_CLIENT_APP_STATE",nA[nA.EMAIL_SET=209]="EMAIL_SET",nA[nA.BITMOJI_SET=210]="BITMOJI_SET",nA[nA.QUICK_TAP_CAMERA_SUPPORTED_ENABLED=211]="QUICK_TAP_CAMERA_SUPPORTED_ENABLED",nA[nA.HAS_ADD_FRIENDS_REQUEST=212]="HAS_ADD_FRIENDS_REQUEST",nA[nA.APP_LAUNCH_FROM_PUSH=213]="APP_LAUNCH_FROM_PUSH",nA[nA.APP_LAUNCH_TYPE=214]="APP_LAUNCH_TYPE",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_IMPRESSION_COUNT=215]="BILLBOARD_CAMPAIGN_LOCAL_IMPRESSION_COUNT",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_LAST_IMPRESSION_TIME_SECS_TO_NOW=216]="BILLBOARD_CAMPAIGN_LOCAL_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_CONTINUOUS_DISMISS_COUNT=217]="BILLBOARD_CAMPAIGN_LOCAL_CONTINUOUS_DISMISS_COUNT",nA[nA.FST_NUM_IN_APP_WARNINGS=218]="FST_NUM_IN_APP_WARNINGS",nA[nA.FST_SHOULD_CHANGE_PASSWORD=219]="FST_SHOULD_CHANGE_PASSWORD",nA[nA.FST_IS_BACKGROUND_CHECK=220]="FST_IS_BACKGROUND_CHECK",nA[nA.SUP_FST_IDENTITY_VERIFICATION_IMPRESSION_COUNT=221]="SUP_FST_IDENTITY_VERIFICATION_IMPRESSION_COUNT",nA[nA.SUP_FST_IDENTITY_VERIFICATION_LAST_IMPRESSION_TIME_SECS_TO_NOW=222]="SUP_FST_IDENTITY_VERIFICATION_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_FRIEND_ADD_LAST_IMPRESSION_TIME_SECS_TO_NOW=223]="SUP_FST_FRIEND_ADD_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_CONTACT_SYNC_IMPRESSION_COUNT=224]="SUP_FST_CONTACT_SYNC_IMPRESSION_COUNT",nA[nA.SUP_FST_CONTACT_SYNC_LAST_IMPRESSION_TIME_SECS_TO_NOW=225]="SUP_FST_CONTACT_SYNC_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_BITMOJI_CREATION_IMPRESSION_COUNT=226]="SUP_FST_BITMOJI_CREATION_IMPRESSION_COUNT",nA[nA.SUP_FST_BITMOJI_CREATION_LAST_IMPRESSION_TIME_SECS_TO_NOW=227]="SUP_FST_BITMOJI_CREATION_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_USER_REACHABILITY_LAST_IMPRESSION_TIME_SECS_TO_NOW=228]="SUP_FST_USER_REACHABILITY_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_BIPA_HAS_CLICKED=229]="SUP_FST_BIPA_HAS_CLICKED",nA[nA.INCLUSION_PANEL_MEMBER=230]="INCLUSION_PANEL_MEMBER",nA[nA.AUDIO_RECORD_PE
2RM_GRANTED=231]="AUDIO_RECORD_PERM_GRANTED",nA[nA.MUTUAL_FRIENDS_WITH_BIRTHDAY_COUNT=232]="MUTUAL_FRIENDS_WITH_BIRTHDAY_COUNT",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_DISMISS_COUNT=233]="BILLBOARD_CAMPAIGN_LOCAL_DISMISS_COUNT",nA[nA.SUP_PAC_PHONE_VERIFICATION_DISMISS_COUNT=234]="SUP_PAC_PHONE_VERIFICATION_DISMISS_COUNT",nA[nA.SUP_PAC_BIRTHDAY_MINI_IMPRESSION_COUNT=235]="SUP_PAC_BIRTHDAY_MINI_IMPRESSION_COUNT",nA[nA.SUP_PAC_BIRTHDAY_MINI_DISMISS_COUNT=236]="SUP_PAC_BIRTHDAY_MINI_DISMISS_COUNT",nA[nA.SUP_PAC_RUN_FOR_OFFICE_MINI_IMPRESSION_COUNT=237]="SUP_PAC_RUN_FOR_OFFICE_MINI_IMPRESSION_COUNT",nA[nA.SUP_PAC_RUN_FOR_OFFICE_MINI_DISMISS_COUNT=238]="SUP_PAC_RUN_FOR_OFFICE_MINI_DISMISS_COUNT",nA[nA.SUP_PAC_FRIEND_CHECKUP_LAST_SHOWN_TIME_MILLIS_TO_NOW=239]="SUP_PAC_FRIEND_CHECKUP_LAST_SHOWN_TIME_MILLIS_TO_NOW",nA[nA.SUP_PAC_FRIEND_CHECKUP_IMPRESSION_COUNT=240]="SUP_PAC_FRIEND_CHECKUP_IMPRESSION_COUNT",nA[nA.SUP_PAC_FRIEND_CHECKUP_CLICK_COUNT=241]="SUP_PAC_FRIEND_CHECKUP_CLICK_COUNT",nA[nA.SUP_PAC_FRIEND_CHECKUP_DISMISS_COUNT=242]="SUP_PAC_FRIEND_CHECKUP_DISMISS_COUNT",nA[nA.USE_VERTICAL_NAVIGATION=243]="USE_VERTICAL_NAVIGATION",nA[nA.HEVC_HW_DECODER=244]="HEVC_HW_DECODER",nA[nA.HEVC_SW_DECODER=245]="HEVC_SW_DECODER",nA[nA.SUP_FHP_CONTACT_SYNC_IMPRESSION_COUNT=246]="SUP_FHP_CONTACT_SYNC_IMPRESSION_COUNT",nA[nA.SUP_FHP_NOTIFICATION_PERMISSION_IMPRESSION_COUNT=247]="SUP_FHP_NOTIFICATION_PERMISSION_IMPRESSION_COUNT",nA[nA.SUP_FHP_PHONE_VERIFICATION_IMPRESSION_COUNT=248]="SUP_FHP_PHONE_VERIFICATION_IMPRESSION_COUNT",nA[nA.SUP_FHP_EMAIL_VERIFICATION_IMPRESSION_COUNT=249]="SUP_FHP_EMAIL_VERIFICATION_IMPRESSION_COUNT",nA[nA.MEMORIES_COUNT=250]="MEMORIES_COUNT",nA[nA.SUP_FHP_CONTACT_SYNC_DISMISS_COUNT=251]="SUP_FHP_CONTACT_SYNC_DISMISS_COUNT",nA[nA.SUP_FHP_NOTIFICATION_PERMISSION_DISMISS_COUNT=252]="SUP_FHP_NOTIFICATION_PERMISSION_DISMISS_COUNT",nA[nA.SUP_FHP_PHONE_VERIFICATION_DISMISS_COUNT=253]="SUP_FHP_PHONE_VERIFICATION_DISMISS_COUNT",nA[nA.SUP_FHP_EMAIL_VERIFICATION_DISMISS_COUNT=254]="SUP_FHP_EMAIL_VERIFICATION_DISMISS_COUNT",nA[nA.SERVER_ONLY=255]="SERVER_ONLY",nA[nA.HAS_ACTIVE_SNAPCHAT_PLUS=256]="HAS_ACTIVE_SNAPCHAT_PLUS",nA[nA.SUP_FST_SNAP_PLUS_IMPRESSION_COUNT=257]="SUP_FST_SNAP_PLUS_IMPRESSION_COUNT",nA[nA.SUP_FST_SNAP_PLUS_LAST_IMPRESSION_TIME_SECS_TO_NOW=258]="SUP_FST_SNAP_PLUS_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SNAP_KIT_OAUTH_ID=260]="SNAP_KIT_OAUTH_ID",nA[nA.ORGANIZATION_TYPE=261]="ORGANIZATION_TYPE",nA[nA.CHUNK_UPLOAD_SUPPORT_REQUIRED=262]="CHUNK_UPLOAD_SUPPORT_REQUIRED",nA[nA.SUP_FST_IOS_LOCKSCREEN_WIDGET_IMPRESSION_COUNT=263]="SUP_FST_IOS_LOCKSCREEN_WIDGET_IMPRESSION_COUNT",nA[nA.SUP_FST_IOS_LOCKSCREEN_WIDGET_LAST_IMPRESSION_TIME_SECS_TO_NOW=264]="SUP_FST_IOS_LOCKSCREEN_WIDGET_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_IOS_LOCKSCREEN_WIDGET_CLICK_COUNT=265]="SUP_FST_IOS_LOCKSCREEN_WIDGET_CLICK_COUNT",nA[nA.SUP_PAC_MY_PROFILE_IOS_LOCKSCREEN_WIDGET_CLICK_COUNT=266]="SUP_PAC_MY_PROFILE_IOS_LOCKSCREEN_WIDGET_CLICK_COUNT",nA[nA.SUP_PAC_MY_PROFILE_IOS_LOCKSCREEN_WIDGET_DISMISS_COUNT=267]="SUP_PAC_MY_PROFILE_IOS_LOCKSCREEN_WIDGET_DISMISS_COUNT",nA[nA.SUP_IOS_LOCK_SCREEN_WIDGET_ENABLED=268]="SUP_IOS_LOCK_SCREEN_WIDGET_ENABLED",nA[nA.CLOUDFRONT_POP=269]="CLOUDFRONT_POP",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_FIRST_IMPRESSION_TIME_SECS_TO_NOW=270]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_CLICK_COUNT=271]="BILLBOARD_CAMPAIGN_LOCAL_CLICK_COUNT",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_INTERACTION_COUNT=272]="BILLBOARD_CAMPAIGN_LOCAL_INTERACTION_COUNT",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_LAST_INTERACTION_TIME_SECS_TO_NOW=273]="BILLBOARD_CAMPAIGN_LOCAL_LAST_INTERACTION_TIME_SECS_TO_NOW",nA[nA.SNAP_PRIVACY=274]="SNAP_PRIVACY",nA[nA.FST_LOCK_SCREEN_WIDGET_BILLBOARD_LAUNCHED_FROM_PUSH=275]="FST_LOCK_SCREEN_WIDGET_BILLBOARD_LAUNCHED_FROM_PUSH",nA[nA.WEB_SCREEN_WIDTH=276]="WEB_SCREEN_WIDTH",nA[nA.WEB_SCREEN_HEIGHT=277]="WEB_SCREEN_HEIGHT",nA[nA.ADS_INTERFACES_IS_NEW_ORGANIZATION=278]="ADS_INTERFACES_IS_NEW_ORGANIZATION",nA[nA.SUP_FHP_REGISTER_TO_VOTE_CAMPAIGN_LAST_DISMISS_TIME_MILLIS_TO_NOW=279]="SUP_FHP_REGISTER_TO_VOTE_CAMPAIGN_LAST_DISM
2ISS_TIME_MILLIS_TO_NOW",nA[nA.GHE_ORGANIZATION=280]="GHE_ORGANIZATION",nA[nA.GHE_REPOSITORY=281]="GHE_REPOSITORY",nA[nA.GHE_USER_EMAIL=282]="GHE_USER_EMAIL",nA[nA.BUILD_DEFINITION_ID=283]="BUILD_DEFINITION_ID",nA[nA.BUILD_DEFINITION_NAME=284]="BUILD_DEFINITION_NAME",nA[nA.LCA_PRINCIPAL=285]="LCA_PRINCIPAL",nA[nA.MEDIA_PERFORMANCE_CLASS=286]="MEDIA_PERFORMANCE_CLASS",nA[nA.COMMUNITY_COUNT=287]="COMMUNITY_COUNT",nA[nA.SCREEN_ASPECT_RATIO=290]="SCREEN_ASPECT_RATIO",nA[nA.RECIPIENTS_SUPPORT_FMP4=291]="RECIPIENTS_SUPPORT_FMP4",nA[nA.CAMEOS_ENGAGEMENT_LEVEL=292]="CAMEOS_ENGAGEMENT_LEVEL",nA[nA.HAS_CAMEOS=293]="HAS_CAMEOS",nA[nA.IS_ACTIVE_LENS_VIDEO_CHAT_USER=294]="IS_ACTIVE_LENS_VIDEO_CHAT_USER",nA[nA.NUM_SPOTLIGHT_POSTS_L7=295]="NUM_SPOTLIGHT_POSTS_L7",nA[nA.NUM_MAP_POSTS_L7=296]="NUM_MAP_POSTS_L7",nA[nA.HAS_CREATED_PUBLIC_PROFILE=297]="HAS_CREATED_PUBLIC_PROFILE",nA[nA.HAS_PUBLIC_PROFILE_ACCESS_VIA_ROLE=298]="HAS_PUBLIC_PROFILE_ACCESS_VIA_ROLE",nA[nA.USER_HAS_DENIED_CAMERA_PERM=299]="USER_HAS_DENIED_CAMERA_PERM",nA[nA.DAYS_SINCE_LAST_CAMERA_PERM_DENY=300]="DAYS_SINCE_LAST_CAMERA_PERM_DENY",nA[nA.DAYS_SINCE_AD_ORG_JOIN=301]="DAYS_SINCE_AD_ORG_JOIN",nA[nA.DAYS_SINCE_FIRST_AD_CREATE=302]="DAYS_SINCE_FIRST_AD_CREATE",nA[nA.ORGANIZATION_COUNTRY=303]="ORGANIZATION_COUNTRY",nA[nA.DAYS_SINCE_FIRST_DWEB_VISIT=304]="DAYS_SINCE_FIRST_DWEB_VISIT",nA[nA.DAYS_SINCE_LAST_DWEB_VISIT=305]="DAYS_SINCE_LAST_DWEB_VISIT",nA[nA.WEEKS_SINCE_USING_DWEB=306]="WEEKS_SINCE_USING_DWEB",nA[nA.HAS_LENS=307]="HAS_LENS",nA[nA.BILLBOARD_SERVER_IMPRESSION_COUNT=308]="BILLBOARD_SERVER_IMPRESSION_COUNT",nA[nA.BILLBOARD_SERVER_CLICK_COUNT=309]="BILLBOARD_SERVER_CLICK_COUNT",nA[nA.BILLBOARD_SERVER_DISMISS_COUNT=310]="BILLBOARD_SERVER_DISMISS_COUNT",nA[nA.BILLBOARD_SERVER_INTERACTION_COUNT=311]="BILLBOARD_SERVER_INTERACTION_COUNT",nA[nA.BILLBOARD_SERVER_FIRST_IMPRESSION_TIME_SECS_TO_NOW=312]="BILLBOARD_SERVER_FIRST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_LAST_IMPRESSION_TIME_SECS_TO_NOW=313]="BILLBOARD_SERVER_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_FIRST_CLICK_TIME_SECS_TO_NOW=314]="BILLBOARD_SERVER_FIRST_CLICK_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_LAST_CLICK_TIME_SECS_TO_NOW=315]="BILLBOARD_SERVER_LAST_CLICK_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_FIRST_DISMISS_TIME_SECS_TO_NOW=316]="BILLBOARD_SERVER_FIRST_DISMISS_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_LAST_DISMISS_TIME_SECS_TO_NOW=317]="BILLBOARD_SERVER_LAST_DISMISS_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_FIRST_INTERACTION_TIME_SECS_TO_NOW=318]="BILLBOARD_SERVER_FIRST_INTERACTION_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_LAST_INTERACTION_TIME_SECS_TO_NOW=319]="BILLBOARD_SERVER_LAST_INTERACTION_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_SERVER_CONTINUOUS_DISMISS_COUNT=320]="BILLBOARD_SERVER_CONTINUOUS_DISMISS_COUNT",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_FIRST_CLICK_TIME_SECS_TO_NOW=321]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_CLICK_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_LAST_CLICK_TIME_SECS_TO_NOW=322]="BILLBOARD_CAMPAIGN_LOCAL_LAST_CLICK_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_FIRST_DISMISS_TIME_SECS_TO_NOW=323]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_DISMISS_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_LAST_DISMISS_TIME_SECS_TO_NOW=324]="BILLBOARD_CAMPAIGN_LOCAL_LAST_DISMISS_TIME_SECS_TO_NOW",nA[nA.BILLBOARD_CAMPAIGN_LOCAL_FIRST_INTERACTION_TIME_SECS_TO_NOW=325]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_INTERACTION_TIME_SECS_TO_NOW",nA[nA.DAYS_SINCE_FIRST_AD_SPEND=326]="DAYS_SINCE_FIRST_AD_SPEND",nA[nA.DAYS_SINCE_LAST_AD_SPEND=327]="DAYS_SINCE_LAST_AD_SPEND",nA[nA.SPOTLIGHT_2_PLUS_STORY_SESSION_7D_STATUS_DETAILED=328]="SPOTLIGHT_2_PLUS_STORY_SESSION_7D_STATUS_DETAILED",nA[nA.SPOTLIGHT_5_PLUS_STORY_SESSION_7D_STATUS_DETAILED=329]="SPOTLIGHT_5_PLUS_STORY_SESSION_7D_STATUS_DETAILED",nA[nA.SPOTLIGHT_STORY_VIEW_7D_STATUS_DETAILED=330]="SPOTLIGHT_STORY_VIEW_7D_STATUS_DETAILED",nA[nA.LAST_USER_ACCEPTED_TOS=331]="LAST_USER_ACCEPTED_TOS",nA[nA.UPDATED_DEVICE_CLUSTER=332]="UPDATED_DEVICE_CLUSTER",nA[nA.CREATOR_TIER=333]="CREATOR_TIER",nA[nA.AV1_SW_DECODER=334]="AV1_SW_DECODER",nA[nA.AV1_HW_DECODER=335]="AV1_HW_DECODER",nA[nA.HAS_EXPLICIT_PUBLIC_PROFILE=336]="HAS_EXPLICIT_PUBLIC_PROFILE",nA[nA.LARGER_TEXT_DISPLAY_OPTION_ENABLED=337]="LARGER_TEXT_DISPLAY_OPTION_ENABLED",nA[nA.IS_PUBLIC_POSTING_PREFERRED_USER=338]="IS_PUBLIC_POSTING_PREFERRED_USER",nA[nA.REGISTRATION_IP_REGION=339]="REGISTRATION_IP_REGION",nA[nA.PLUS_INTERNAL_ONLY=340]="PLUS_INTERNAL_ONLY",nA[nA.DAYS_SINCE_LAST_ACTIVITY=343]="DAYS_SINCE_LAST_ACTIVITY",nA[nA.CONTACT_PERM_OS_GRANTED=344]="CONTACT_PERM_OS_GRANTED",nA[nA.CONTACT_PERM_USER_GRANTED=345]="CONTACT_PERM_USER_GRANTED",nA[nA.LENS_CLUSTER_GPU_V2=346]="LENS_CLUSTER_GPU_V2",nA[nA.SUP_HAS_AI_SELFIE=347]="SUP_HAS_AI_SELFIE",nA[nA.SUP_HAS_DREAMS=348]="SUP_HAS_DREAMS",nA[nA.CAN_ACCESS_ADS_TAB=349]="CAN_ACCESS_ADS_TAB",nA[nA.GOOGLE_CDN_POP=350]="GOOGLE_CDN_POP",nA[nA.NUM_STRONG_RELATIONSHIPS_V3=351]="NUM_STRONG_RELATIONSHIPS_V3",nA[nA.NUM_CLOSE_PLUS_RELATIONSHIPS_V3=352]="NUM_CLOSE_PLUS_RELATIONSHIPS_V3",nA[nA.NUM_ACQUAINTANCE_PLUS_RELATIONSHIPS_V3=353]="NUM_ACQUAINTANCE_PLUS_RELATIONSHIPS_V3",nA[nA.SUP_FST_IOS_ACTION_BUTTON_IMPRESSION_COUNT=354]="SUP_FST_IOS_ACTION_BUTTON_IMPRESSION_COUNT",nA[nA.SUP_FST_IOS_ACTION_BUTTON_LAST_IMPRESSION_TIME_SECS_TO_NOW=355]="SUP_FST_IOS_ACTION_BUTTON_LAST_IMPRESSION_TIME_SECS_TO_NOW",nA[nA.SUP_FST_IOS_ACTION_BUTTON_CLICK_COUNT=356]="SUP_FST_IOS_ACTION_BUTTON_CLICK_COUNT",nA[nA.DREAMS_ENGAGEMENT_STATUS=357]="DREAMS_ENGAGEMENT_STATUS",nA[nA.IS_LOW_LIGHT=358]="IS_LOW_LIGHT",nA[nA.GALLERY_HAS_2023_YEAR_END_STORY=359]="GALLERY_HAS_2023_YEAR_END_STORY",nA[nA.CHUNK_UPLOAD_PREFERENCE=360]="CHUNK_UPLOAD_PREFERENCE",nA[nA.ADMIN_USE_ONLY_IN_AB_TRAFFIC_SPLIT=361]="ADM
2IN_USE_ONLY_IN_AB_TRAFFIC_SPLIT",nA[nA.IS_IPHONE=362]="IS_IPHONE",nA[nA.IS_S11_COUNTRY=363]="IS_S11_COUNTRY",nA[nA.IS_S11_L90_COUNTRY=364]="IS_S11_L90_COUNTRY",nA[nA.NUM_ACTIVE_FRIENDS_L7=365]="NUM_ACTIVE_FRIENDS_L7",nA[nA.NUM_BIDIRECTIONAL_COMMUNICATION_FRIENDS_L7=366]="NUM_BIDIRECTIONAL_COMMUNICATION_FRIENDS_L7",nA[nA.HAS_USER_ONBOARDED=367]="HAS_USER_ONBOARDED",nA[nA.IS_TOP_STORY_POSTER=369]="IS_TOP_STORY_POSTER",nA[nA.COMMUNITY_COUNT_SERVER=370]="COMMUNITY_COUNT_SERVER",nA[nA.IS_CONCURRENT_CAMERA_SUPPORTED=372]="IS_CONCURRENT_CAMERA_SUPPORTED",nA[nA.CONTACT_AUTHORIZATION_STATUS=373]="CONTACT_AUTHORIZATION_STATUS",nA[nA.SUP_MY_SELFIE_IDENTITY_ONBOARDED=374]="SUP_MY_SELFIE_IDENTITY_ONBOARDED",nA[nA.JOINED_VIA_USER_INVITE=377]="JOINED_VIA_USER_INVITE",nA[nA.BIPA_REGION=378]="BIPA_REGION",nA[nA.DISCOVER_FEED_TYPE=379]="DISCOVER_FEED_TYPE",nA[nA.HAS_FORMER_PHONE_NUMBER=381]="HAS_FORMER_PHONE_NUMBER",nA[nA.OS_BUILD_VERSION=382]="OS_BUILD_VERSION",nA[nA.STICKY_REGION=383]="STICKY_REGION",nA[nA.IS_MONETIZATION_ELIGIBLE=384]="IS_MONETIZATION_ELIGIBLE",nA[nA.IS_OPTED_IN_DATA_SHARING=385]="IS_OPTED_IN_DATA_SHARING",nA[nA.USER_GROUP=386]="USER_GROUP",nA[nA.SNAP_PROMOTE_DAYS_SINCE_FIRST_AD_CREATE=387]="SNAP_PROMOTE_DAYS_SINCE_FIRST_AD_CREATE",nA[nA.SNAP_PROMOTE_DAYS_SINCE_LAST_AD_CREATE=388]="SNAP_PROMOTE_DAYS_SINCE_LAST_AD_CREATE",nA[nA.SNAP_PROMOTE_DAYS_SINCE_FIRST_SPEND=389]="SNAP_PROMOTE_DAYS_SINCE_FIRST_SPEND",nA[nA.SNAP_PROMOTE_DAYS_SINCE_LAST_SPEND=390]="SNAP_PROMOTE_DAYS_SINCE_LAST_SPEND",nA[nA.SNAP_PROMOTE_TOTAL_SPEND_USD=391]="SNAP_PROMOTE_TOTAL_SPEND_USD",nA[nA.SNAP_PROMOTE_AVG_DAILY_SPEND_USD=392]="SNAP_PROMOTE_AVG_DAILY_SPEND_USD",nA[nA.SNAP_PROMOTE_LAST_OBJECTIVE=393]="SNAP_PROMOTE_LAST_OBJECTIVE",nA[nA.SNAP_PROMOTE_BUDGET_REMAINING=394]="SNAP_PROMOTE_BUDGET_REMAINING",nA[nA.AB_TREATMENT=395]="AB_TREATMENT",nA[nA.DREAMS_IN_SNAPFEED_VIEW_ACTIVE_DAYS_L7=396]="DREAMS_IN_SNAPFEED_VIEW_ACTIVE_DAYS_L7",nA[nA.SPOTLIGHT_USER_ACTIVITY_LEVEL=397]="SPOTLIGHT_USER_ACTIVITY_LEVEL",nA[nA.NON_FRIEND_STORY_USER_ACTIVITY_LEVEL=398]="NON_FRIEND_STORY_USER_ACTIVITY_LEVEL",nA[nA.NON_FRIEND_CONTENT_USER_ACTIVITY_LEVEL=399]="NON_FRIEND_CONTENT_USER_ACTIVITY_LEVEL",nA[nA.SNAP_PROMOTE_UNVERIFIED_ORG=400]="SNAP_PROMOTE_UNVERIFIED_ORG",nA[nA.MEMORIES_RECAP_COLLAGE_GENERATION_COMPLETION_RATE=401]="MEMORIES_RECAP_COLLAGE_GENERATION_COMPLETION_RATE",nA[nA.IS_ACTIVE_LENS_USER=402]="IS_ACTIVE_LENS_USER",nA[nA.DEVICE_MANUFACTURER=403]="DEVICE_MANUFACTURER",nA[nA.FOLLOWER_COUNT=404]="FOLLOWER_COUNT",nA[nA.FOLLOWER_AND_FRIEND_COUNT=405]="FOLLOWER_AND_FRIEND_COUNT",nA[nA.IS_IN_SIMPLE_SNAPCHAT_BGAB_CONTROL_EXPOSED_USERS_20250121=406]="IS_IN_SIMPLE_SNAPCHAT_BGAB_CONTROL_EXPOSED_USERS_20250121",nA[nA.IS_IN_SIMPLE_SNAPCHAT_BGAB_TREATMENT_EXPOSED_USERS_20250121=407]="IS_IN_SIMPLE_SNAPCHAT_BGAB_TREATMENT_EXPOSED_USERS_20250121",nA[nA.FAMILY_CENTER_ROLE=408]="FAMILY_CENTER_ROLE",nA[nA.NETWORK_USER_CLASSIFICATION_WAU_20241107_20241113=409]="NETWORK_USER_CLASSIFICATION_WAU_20241107_20241113",nA[nA.HAS_AP_ORG_IP_ATTR_VIA_PROFILE_LINK=410]="HAS_AP_ORG_IP_ATTR_VIA_PROFILE_LINK",nA[nA.SNAP_PRO_STATUS_FOR_ROLE=411]="SNAP_PRO_STATUS_FOR_ROLE",nA[nA.HAS_LINKED_SATURN=412]="HAS_LINKED_SATURN",nA[nA.ORGANIZATION_SIZE=413]="ORGANIZATION_SIZE",nA[nA.ORGANIZATION_CREATION_DATE=414]="ORGANIZATION_CREATION_DATE",nA[nA.SERVICE_ENVIRONMENT=415]="SERVICE_ENVIRONMENT",nA[nA.WITH_TIMED_ELEMENT=416]="WITH_TIMED_ELEMENT",nA[nA.FRIEND_STORY_VIEW_L7=417]="FRIEND_STORY_VIEW_L7",nA[nA.NON_FRIEND_STORY_VIEW_L7=418]="NON_FRIEND_STORY_VIEW_L7",nA[nA.SPOTLIGHT_STORY_VIEW_L7=419]="SPOTLIGHT_STORY_VIEW_L7",nA[nA.CONTENT_STORY_VIEW_L7=420]="CONTENT_STORY_VIEW_L7",nA[nA.CONTENT_CONSUMPTION_CLUSTER_AGG=421]="CONTENT_CONSUMPTION_CLUSTER_AGG",nA[nA.HAS_PPLX_INTERACTION=422]="HAS_PPLX_INTERACTION",nA[nA.PPLX_1_PLUS_INTERACTION_7D_STATUS=423]="PPLX_1_PLUS_INTERACTION_7D_STATUS",nA[nA.PPLX_1_PLUS_INTERACTION_30D_STATUS=424]="PPLX_1_PLUS_INTERACTION_30D_STATUS",nA[nA.PPLX_5_PLUS_INTERACTION_7D_STATUS=425]="PPLX_5_PLUS_INTERACTION_7D_STATUS",nA[nA.PPLX_5_PLUS_INTERACTION_30D_STATUS=426]="PPLX_5_PLUS_INTERACTION_30D_STATUS",nA[nA.PPLX_25_PLUS_INTERACTION_7D_STATUS=427]="PPLX_25_PLUS_INTERACTION_7D_STATUS",nA[nA.PPLX_25_PLUS_INTERACTION_30D_STATUS=428]="PPLX_25_PLUS_INTERACTION_30D_STATUS",nA[nA.DISCOVER_FEED_FOR_YOU_ENGAGEMENT_LEVEL=429]="DISCOVER_FEED_FOR_YOU_ENGAGEMENT_LEVEL",nA[nA.MIXED_FEED_SPOTLIGHT_ENGAGEMENT_LEVEL=430]="MIXED_FEED_SPOTLIGHT_ENGAGEMENT_LEVEL",nA[nA.NOTIFICATION_ALERTS_LOCK_SCREEN_ENABLED=431]="NOTIFICATION_ALERTS_LOCK_SCREEN_ENABLED",nA[nA.NOTIFICATION_ALERTS_NOTIFICATION_CENTER_ENABLED=432]="NOTIFICATION_ALERTS_NOTIFICATION_CENTER_ENABLED",nA[nA.NOTIFICATION_ALERTS_BANNER_ENABLED=433]="NOTIFICATION_ALERTS_BANNER_ENABLED",nA[nA.FOLLOWS_CREATORTEST_STMS=434]="FOLLOWS_CREATORTEST_STMS",nA[nA.FOLLOWS_BBYBERNER=435]="FOLLOWS_BBYBERNER",nA[nA.FOLLOWS_GIGICHRISTIINE=436]="FOLLOWS_GIGICHRISTIINE",nA[nA.FOLLOWS_SAMRUSSO2=437]="FOLLOWS_SAMRUSSO2",nA[nA.FOLLOWS_SKAIJACKK=438]="FOLLOWS_SKAIJACKK",nA[nA.FOLLOWS_IMMACKMAINE=439]="FOLLOWS_IMMACKMAINE",nA[nA.FOLLOWS_ALYSSAMCKAYY=440]="FOLLOWS_ALYSSAMCKAYY",nA[nA.FOLLOWS_FINDJEREMIAH=441]="FOLLOWS_FINDJEREMIAH",nA[nA.FOLLOWS_ITSKCHEYENNE=442]="FOLLOWS_ITSKCHEYENNE",nA[nA.FOLLOWS_CUTIECARYN=443]="FOLLOWS_CUTIECARYN",nA[nA.FOLLOWS_JUGGLINJOSH=444]="FOLLOWS_JUGGLINJOSH",nA[nA.FOLLOWS_CATHERINEPAIZ=445]="FOLLOWS_CATHERINEPAIZ",nA[nA.FOLLOWS_HARRYJOWSEY=446]="FOLLOWS_HARRYJOWSEY",nA[nA.FOLLOWS_KAYLAMALLECC=447]="FOLLOWS_KAYLAMALLECC",
2nA[nA.INFERRED_AGE_BUCKET_GNN_V1=448]="INFERRED_AGE_BUCKET_GNN_V1",nA[nA.FOLLOWS_DAVIDDOBRIK=449]="FOLLOWS_DAVIDDOBRIK",nA[nA.GROWTH_COHORT=450]="GROWTH_COHORT",nA[nA.APP_L30=451]="APP_L30",nA[nA.DAYS_SINCE_RETURN=452]="DAYS_SINCE_RETURN",nA[nA.PASSKEY_SET=453]="PASSKEY_SET",nA[nA.MARKET_CLUSTER_FINE=454]="MARKET_CLUSTER_FINE",nA[nA.MARKET_CLUSTER_MEDIUM=455]="MARKET_CLUSTER_MEDIUM",nA[nA.MARKET_CLUSTER_COARSE=456]="MARKET_CLUSTER_COARSE",nA[nA.IS_MACROSTATE_USER=457]="IS_MACROSTATE_USER",nA[nA.PLACEHOLDER_1=458]="PLACEHOLDER_1",nA[nA.PLACEHOLDER_2=459]="PLACEHOLDER_2",nA[nA.PLACEHOLDER_3=460]="PLACEHOLDER_3",nA[nA.UNRECOGNIZED=-1]="UNRECOGNIZED",(nk=eT||(eT={}))[nk.REPLACE_DEFAULT=0]="REPLACE_DEFAULT",nk[nk.MERGE_WITH_DEFAULT=1]="MERGE_WITH_DEFAULT",nk[nk.PASS_THROUGH=2]="PASS_THROUGH",nk[nk.UNRECOGNIZED=-1]="UNRECOGNIZED",(nb=em||(em={}))[nb.ADDITIVE=0]="ADDITIVE",nb[nb.REPLACE=1]="REPLACE",nb[nb.UNRECOGNIZED=-1]="UNRECOGNIZED";let fd={encode:(e,t=pS.default.Writer.create())=>(""!==e.userId&&t.uint32(10).string(e.userId),""!==e.userName&&t.uint32(18).string(e.userName),!1!==e.isEmployee&&t.uint32(24).bool(e.isEmployee),!1!==e.isTestUser&&t.uint32(32).bool(e.isTestUser),"0"!==e.creationTs&&t.uint32(40).uint64(e.creationTs),""!==e.stickyCountry&&t.uint32(50).string(e.stickyCountry),void 0!==e.email&&fl.encode(e.email,t.uint32(58).fork()).ldelim(),void 0!==e.phone&&ff.encode(e.phone,t.uint32(66).fork()).ldelim(),0!==e.snapProStatus&&t.uint32(72).int32(e.snapProStatus),""!==e.mutableUserName&&t.uint32(82).string(e.mutableUserName),""!==e.said&&t.uint32(90).string(e.said),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fr();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userId=i.string();continue;case 2:if(18!==e)break;a.userName=i.string();continue;case 3:if(24!==e)break;a.isEmployee=i.bool();continue;case 4:if(32!==e)break;a.isTestUser=i.bool();continue;case 5:if(40!==e)break;a.creationTs=f$(i.uint64());continue;case 6:if(50!==e)break;a.stickyCountry=i.string();continue;case 7:if(58!==e)break;a.email=fl.decode(i,i.uint32());continue;case 8:if(66!==e)break;a.phone=ff.decode(i,i.uint32());continue;case 9:if(72!==e)break;a.snapProStatus=i.int32();continue;case 10:if(82!==e)break;a.mutableUserName=i.string();continue;case 11:if(90!==e)break;a.said=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fd.fromPartial(e??{}),fromPartial(e){let t=fr();return t.userId=e.userId??"",t.userName=e.userName??"",t.isEmployee=e.isEmployee??!1,t.isTestUser=e.isTestUser??!1,t.creationTs=e.creationTs??"0",t.stickyCountry=e.stickyCountry??"",t.email=void 0!==e.email&&null!==e.email?fl.fromPartial(e.email):void 0,t.phone=void 0!==e.phone&&null!==e.phone?ff.fromPartial(e.phone):void 0,t.snapProStatus=e.snapProStatus??0,t.mutableUserName=e.mutableUserName??"",t.said=e.said??"",t}};function fs(){return{isEmailEmpty:!1,isEmailVerified:!1,isEmailPendingVerificationEmpty:!1}}let fl={encode:(e,t=pS.default.Writer.create())=>(!1!==e.isEmailEmpty&&t.uint32(8).bool(e.isEmailEmpty),!1!==e.isEmailVerified&&t.uint32(16).bool(e.isEmailVerified),!1!==e.isEmailPendingVerificationEmpty&&t.uint32(24).bool(e.isEmailPendingVerificationEmpty),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fs();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isEmailEmpty=i.bool();continue;case 2:if(16!==e)break;a.isEmailVerified=i.bool();continue;case 3:if(24!==e)break;a.isEmailPendingVerificationEmpty=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fl.fromPartial(e??{}),fromPartial(e){let t=fs();return t.isEmailEmpty=e.isEmailEmpty??!1,t.isEmailVerified=e.isEmailVerified??!1,t.isEmailPendingVerificationEmpty=e.isEmailPendingVerificationEmpty??!1,t}};function fc(){return{osType:"",osVersion:"",appVersion:"",appBuild:"",appVariant:"",deviceModel:"",originalUserAgentString:""}}let fu={encode:(e,t=pS.default.Writer.create())=>(""!==e.osType&&t.uint32(10).string(e.osType),""!==e.osVersion&&t.uint32(18).string(e.osVersion),""!==e.appVersion&&t.uint32(26).string(e.appVersion),""!==e.appBuild&&t.uint32(34).string(e.appBuild),""!==e.appVariant&&t.uint32(42).string(e.appVariant),""!==e.deviceModel&&t.uint32(50).string(e.deviceModel),""!==e.originalUserAgentString&&t.uint32(58).string(e.originalUserAgentString),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.osType=i.string();continue;case 2:if(18!==e)break;a.osVersion=i.string();continue;case 3:if(26!==e)break;a.appVersion=i.string();continue;case 4:if(34!==e)break;a.appBuild=i.string();continue;case 5:if(42!==e)break;a.appVariant=i.string();continue;case 6:if(50!==e)break;a.deviceModel=i.string();continue;case 7:if(58!==e)break;a.originalUserAgentString=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fu.fromPartial(e??{}),fromPartial(e){let t=fc();return t.osType=e.osType??"",t.osVersion=e.osVersion??"",t.appVersion=e.appVersion??"",t.appBuild=e.appBuild??"",t.appVariant=e.appVariant??"",t.deviceModel=e.deviceModel??"",t.originalUserAgentString=e.originalUserAgentString??"",t}};function fp(){return{isPhoneEmpty:!1,isPhoneVerified:!1}}let ff={encode:(e,t=pS.default.Writer.create())=>(!1!==e.isPhoneEmpty&&t.uint32(8).bool(e.isPhoneEmpty),!1!==e.isPhoneVerified&&t.uint32(16).bool(e.isPhoneVerified),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isPhoneEmpty=i.bool();continue;case 2:if(16!==e)break;a.isPhoneVerified=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ff.fromPartial(e??{}),fromPartial(e){let t=fp();return t.isPhoneEmpty=e.isPhoneEmpty??!1,t.isPhoneVerified=e.isPhoneVerified??!1,t}};function fT(){return{id:"",version:0,clientTargetingExpression:void 0}}let fm={encode:(e,t=pS.default.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),0!==e.version&&t.uint32(16).uint32(e.version),void 0!==e.clientTargetingExpression&&s1.encode(e.clientTargetingExpression,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.id=i.string();continue;case 2:if(16!==e)break;a.version=i.uint32();continue;case 3:if(26!==e)break;a.clientTargetingExpression=s1.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fm.fromPartial(e??{}),fromPartial(e){let t=fT();return t.id=e.id??"",t.version=e.version??0,t.clientTargetingExpression=void 0!==e.clientTargetingExpression&&null!==e.clientTargetingExpression?s1.fromPartial(e.clientTargetingExpression):void 0,t}};function fE(){return{key:"",value:""}}let f_={encode:(e,t=pS.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>f_.fromPartial(e??{}),fromPartial(e){let t=fE();return t.key=e.key??"",t.value=e.value??"",t}};function fS(){return{operator:0,children:[],property:0,predicateOperator:0,value:""}}let fI={encode(e,t=pS.default.Writer.create()){for(let i of(0!==e.operator&&t.uint32(8).int32(e.operator),e.children))fI.encode(i,t.uint32(18).fork()).ldelim();return 0!==e.property&&t.uint32(24).int32(e.property),0!==e.predicateOperator&&t.uint32(32).int32(e.predicateOperator),""!==e.value&&t.uint32(42).string(e.value),t},decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.operator=i.int32();continue;case 2:if(18!==e)break;a.children.push(fI.decode(i,i.uint32()));continue;case 3:if(24!==e)break;a.property=i.int32();continue;case 4:if(32!==e)break;a.predicateOperator=i.int32();continue;case 5:if(42!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fI.fromPartial(e??{}),fromPartial(e){let t=fS();return t.operator=e.operator??0,t.children=e.children?.map(e=>fI.fromPartial(e))||[],t.property=e.property??0,t.predicateOperator=e.predicateOperator??0,t.value=e.value??"",t}};
2function fv(){return{value:"0"}}let fA={encode:(e,t=pS.default.Writer.create())=>("0"!==e.value&&t.uint32(8).uint64(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fv();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=f$(i.uint64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fA.fromPartial(e??{}),fromPartial(e){let t=fv();return t.value=e.value??"0",t}};function fk(){return{experimentId:0,trafficPercentage:0,experimentSettings:{},groupId:0,override:[],expGuid:void 0,budgetGroupId:0}}let fb={encode(e,t=pS.default.Writer.create()){for(let i of(0!==e.experimentId&&t.uint32(8).uint32(e.experimentId),0!==e.trafficPercentage&&t.uint32(16).uint32(e.trafficPercentage),Object.entries(e.experimentSettings).forEach(([e,i])=>{fC.encode({key:e,value:i},t.uint32(26).fork()).ldelim()}),0!==e.groupId&&t.uint32(32).uint32(e.groupId),e.override))fN.encode(i,t.uint32(42).fork()).ldelim();return void 0!==e.expGuid&&fA.encode(e.expGuid,t.uint32(50).fork()).ldelim(),0!==e.budgetGroupId&&t.uint32(56).uint32(e.budgetGroupId),t},decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fk();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.experimentId=i.uint32();continue;case 2:if(16!==e)break;a.trafficPercentage=i.uint32();continue;case 3:if(26!==e)break;let t=fC.decode(i,i.uint32());void 0!==t.value&&(a.experimentSettings[t.key]=t.value);continue;case 4:if(32!==e)break;a.groupId=i.uint32();continue;case 5:if(42!==e)break;a.override.push(fN.decode(i,i.uint32()));continue;case 6:if(50!==e)break;a.expGuid=fA.decode(i,i.uint32());continue;case 7:if(56!==e)break;a.budgetGroupId=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fb.fromPartial(e??{}),fromPartial(e){let t=fk();return t.experimentId=e.experimentId??0,t.trafficPercentage=e.trafficPercentage??0,t.experimentSettings=Object.entries(e.experimentSettings??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=globalThis.String(i)),e),{}),t.groupId=e.groupId??0,t.override=e.override?.map(e=>fN.fromPartial(e))||[],t.expGuid=void 0!==e.expGuid&&null!==e.expGuid?fA.fromPartial(e.expGuid):void 0,t.budgetGroupId=e.budgetGroupId??0,t}};function fg(){return{namespace:"",id:"",override:void 0,fileDescriptorProto:void 0,typeName:"",overrideMode:0,deltaFields:[]}}let fN={encode(e,t=pS.default.Writer.create()){for(let i of(""!==e.namespace&&t.uint32(10).string(e.namespace),""!==e.id&&t.uint32(18).string(e.id),void 0!==e.override&&s$.encode(e.override,t.uint32(26).fork()).ldelim(),void 0!==e.fileDescriptorProto&&pv.encode(e.fileDescriptorProto,t.uint32(34).fork()).ldelim(),""!==e.typeName&&t.uint32(42).string(e.typeName),0!==e.overrideMode&&t.uint32(48).int32(e.overrideMode),e.deltaFields))fP.encode(i,t.uint32(58).fork()).ldelim();return t},decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fg();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.namespace=i.string();continue;case 2:if(18!==e)break;a.id=i.string();continue;case 3:if(26!==e)break;a.override=s$.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.fileDescriptorProto=pv.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.typeName=i.string();continue;case 6:if(48!==e)break;a.overrideMode=i.int32();continue;case 7:if(58!==e)break;a.deltaFields.push(fP.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fN.fromPartial(e??{}),fromPartial(e){let t=fg();return t.namespace=e.namespace??"",t.id=e.id??"",t.override=void 0!==e.override&&null!==e.override?s$.fromPartial(e.override):void 0,t.fileDescriptorProto=void 0!==e.fileDescriptorProto&&null!==e.fileDescriptorProto?pv.fromPartial(e.fileDescriptorProto):void 0,t.typeName=e.typeName??"",t.overrideMode=e.overrideMode??0,t.deltaFields=e.deltaFields?.map(e=>fP.fromPartial(e))||[],t}};function fR(){return{path:"",mergeStrategy:0}}let fP={encode:(e,t=pS.default.Writer.create())=>(""!==e.path&&t.uint32(10).string(e.path),0!==e.mergeStrategy&&t.uint32(16).int32(e.mergeStrategy),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.path=i.string();continue;case 2:if(16!==e)break;a.mergeStrategy=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fP.fromPartial(e??{}),fromPartial(e){let t=fR();return t.path=e.path??"",t.mergeStrategy=e.mergeStrategy??0,t}};function fO(){return{key:"",value:""}}let fC={encode:(e,t=pS.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fC.fromPartial(e??{}),fromPartial(e){let t=fO();return t.key=e.key??"",t.value=e.value??"",t}};function fy(){return{namespace:"",start:0,end:0}}let fh={encode:(e,t=pS.default.Writer.create())=>(""!==e.namespace&&t.uint32(10).string(e.namespace),0!==e.start&&t.uint32(16).uint32(e.start),0!==e.end&&t.uint32(24).uint32(e.end),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fy();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.namespace=i.string();continue;case 2:if(16!==e)break;a.start=i.uint32();continue;case 3:if(24!==e)break;a.end=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fh.fromPartial(e??{}),fromPartial(e){let t=fy();return t.namespace=e.namespace??"",t.start=e.start??0,t.end=e.end??0,t}};function fL(){return{treatmentId:0,userGroupNames:[]}}let fD={encode(e,t=pS.default.Writer.create()){for(let i of(0!==e.treatmentId&&t.uint32(8).uint32(e.treatmentId),e.userGroupNames))t.uint32(18).string(i);return t},decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.treatmentId=i.uint32();continue;case 2:if(18!==e)break;a.userGroupNames.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fD.fromPartial(e??{}),fromPartial(e){let t=fL();return t.treatmentId=e.treatmentId??0,t.userGroupNames=e.userGroupNames?.map(e=>e)||[],t}};function fw(){return{whitelistedUserBucketMap:{},whitelistedUserGroups:[],allowlistedUserIdBucketMap:{}}}let fM={encode(e,t=pS.default.Writer.create()){for(let i of(Object.entries(e.whitelistedUserBucketMap).forEac
2h(([e,i])=>{fV.encode({key:e,value:i},t.uint32(10).fork()).ldelim()}),e.whitelistedUserGroups))fD.encode(i,t.uint32(18).fork()).ldelim();return Object.entries(e.allowlistedUserIdBucketMap).forEach(([e,i])=>{fF.encode({key:e,value:i},t.uint32(26).fork()).ldelim()}),t},decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fw();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;let t=fV.decode(i,i.uint32());void 0!==t.value&&(a.whitelistedUserBucketMap[t.key]=t.value);continue;case 2:if(18!==e)break;a.whitelistedUserGroups.push(fD.decode(i,i.uint32()));continue;case 3:if(26!==e)break;let n=fF.decode(i,i.uint32());void 0!==n.value&&(a.allowlistedUserIdBucketMap[n.key]=n.value);continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fM.fromPartial(e??{}),fromPartial(e){let t=fw();return t.whitelistedUserBucketMap=Object.entries(e.whitelistedUserBucketMap??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=globalThis.Number(i)),e),{}),t.whitelistedUserGroups=e.whitelistedUserGroups?.map(e=>fD.fromPartial(e))||[],t.allowlistedUserIdBucketMap=Object.entries(e.allowlistedUserIdBucketMap??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=globalThis.Number(i)),e),{}),t}};function fU(){return{key:"",value:0}}let fV={encode:(e,t=pS.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),0!==e.value&&t.uint32(16).uint32(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fU();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(16!==e)break;a.value=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fV.fromPartial(e??{}),fromPartial(e){let t=fU();return t.key=e.key??"",t.value=e.value??0,t}};function fB(){return{key:"",value:0}}let fF={encode:(e,t=pS.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),0!==e.value&&t.uint32(16).uint32(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fB();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(16!==e)break;a.value=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fF.fromPartial(e??{}),fromPartial(e){let t=fB();return t.key=e.key??"",t.value=e.value??0,t}};function fG(){return{seed:"",isForNewUser:!1,newUserTs:"0",isDeviceLevel:!1,isUserIdTargeting:!1}}let fW={encode:(e,t=pS.default.Writer.create())=>(""!==e.seed&&t.uint32(10).string(e.seed),!1!==e.isForNewUser&&t.uint32(16).bool(e.isForNewUser),"0"!==e.newUserTs&&t.uint32(24).uint64(e.newUserTs),!1!==e.isDeviceLevel&&t.uint32(32).bool(e.isDeviceLevel),!1!==e.isUserIdTargeting&&t.uint32(40).bool(e.isUserIdTargeting),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fG();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.seed=i.string();continue;case 2:if(16!==e)break;a.isForNewUser=i.bool();continue;case 3:if(24!==e)break;a.newUserTs=f$(i.uint64());continue;case 4:if(32!==e)break;a.isDeviceLevel=i.bool();continue;case 5:if(40!==e)break;a.isUserIdTargeting=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fW.fromPartial(e??{}),fromPartial(e){let t=fG();return t.seed=e.seed??"",t.isForNewUser=e.isForNewUser??!1,t.newUserTs=e.newUserTs??"0",t.isDeviceLevel=e.isDeviceLevel??!1,t.isUserIdTargeting=e.isUserIdTargeting??!1,t}};function fx(){return{key:"",value:""}}let fH={encode:(e,t=pS.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fx();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fH.fromPartial(e??{}),fromPartial(e){let t=fx();return t.key=e.key??"",t.value=e.value??"",t}};function fY(){return{key:"",value:""}}let fK={encode:(e,t=pS.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof pS.default.Reader?e:pS.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fY();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fK.fromPartial(e??{}),fromPartial(e){let t=fY();return t.key=e.key??"",t.value=e.value??"",t}};function f$(e){return e.toString()}function fz(){return{studyName:"",treatmentId:0,expGuid:void 0}}pS.default.util.Long!==rv.default&&(pS.default.util.Long=rv.default,pS.default.configure()),s7.default.grpc,(ng=eE||(eE={}))[ng.UNKNOWN_UNSET=0]="UNKNOWN_UNSET",ng[ng.USER=1]="USER",ng[ng.SNAPCHAT_CLIENT=2]="SNAPCHAT_CLIENT",ng[ng.WEB_CLIENT=3]="WEB_CLIENT",ng[ng.WEB_SNAPCHAT_USER=4]="WEB_SNAPCHAT_USER",ng[ng.AD_ACCOUNT=5]="AD_ACCOUNT",ng[ng.AM_ORGANIZATION=6]="AM_ORGANIZATION",ng[ng.AM_MEMBER=7]="AM_MEMBER",ng[ng.AM_SESSION=8]="AM_SESSION",ng[ng.AM_PROFILE=9]="AM_PROFILE",ng[ng.AM_SNAPCHAT_USER=10]="AM_SNAPCHAT_USER",ng[ng.SNAPCHAT_ADVERTISING=11]="SNAPCHAT_ADVERTISING",ng[ng.AM_CLIENT=12]="AM_CLIENT",ng[ng.CONFIG_DEVICE=13]="CONFIG_DEVICE",ng[ng.MISCHIEF=14]="MISCHIEF",ng[ng.ARES_VISITOR=15]="ARES_VISITOR",ng[ng.UNRECOGNIZED=-1]="UNRECOGNIZED",(nN=e_||(e_={}))[nN.UNSET=0]="UNSET",nN[nN.SERVER_TRIGGER=1]="SERVER_TRIGGER",nN[nN.CLIENT_TRIGGER=2]="CLIENT_TRIGGER",nN[nN.ALLOCATION=3]="ALLOCATION",nN[nN.UNRECOGNIZED=-1]="UNRECOGNIZED";let fq={encode:(e,t=p_.default.Writer.create())=>(""!==e.studyName&&t.uint32(10).string(e.studyName),0!==e.treatmentId&&t.uint32(16).uint32(e.treatmentId),void 0!==e.expGuid&&fo.encode(e.expGuid,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fz();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.studyName=i.string();continue;case 2:if(16!==e)break;a.treatmentId=i.uint32();continue;case 3:if(26!==e)break;a.expGuid=fo.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fq.fromPartial(e??{}),fromPartial(e){let t=fz();return t.studyName=e.studyName??"",t.treatmentId=e.treatmentId??0,t.expGuid=void 0!==e.expGuid&&null!==e.expGuid?fo.fromPartial(e.expGuid):void 0,t}};function fZ(){return{value:"",type:0}}let fj={encode:(e,t=p_.default.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),0!==e.type&&t.uint32(16).int32(e.type),t),decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fZ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.value=i.string();continue;case 2:if(16!==e)break;a.type=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fj.fromPartial(e??{}),fromPartial(e){let t=fZ();return t.value=e.value??"",t.type=e.type??0,t}};function fX(){return{countryCode:"",city:"",region:""}}let fQ={encode:(e,t=p_.default.Writer.create())=>(""!==e.countryCode&&t.uint32(10).string(e.countryCode),""!==e.city&&t.uint32(18).string(e.city),""!==e.region&&t.uint32(26).string(e.region),t),decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.countryCode=i.string();continue;case 2:if(18!==e)break;a.city=i.string();continue;case 3:if(26!==e)break;a.region=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>fQ.fromPartial(e??{}),fromPartial(e){let t=fX();return t.countryCode=e.countryCode??"",t.city=e.city??"",t.region=e.region??"",t}};function fJ(){return{studyTreatmentInfo:[],id:void 0,userName:"",userAgentInfo:void 0,geoData:void 0,loggingType:0}}let f0={encode(e,t=p_.default.Writer.create()){for(let i of e.studyTreatmentInfo)fq.encode(i,t.uint32(10).fork()).ldelim();return void 0!==e.id&&fj.encode(e.id,t.uint32(18).fork()).ldelim(),""!==e.userName&&t.uint32(26).string(e.userName),void 0!==e.userAgentInfo&&fu.encode(e.userAgentInfo,t.uint32(34).fork()).ldelim(),void 0!==e.geoData&&fQ.encode(e.geoData,t.uint32(42).fork()).ldelim(),0!==e.loggingType&&t.uint32(48).int32(e.loggingType),t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=fJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.studyTreatmentInfo.push(fq.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.id=fj.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.userName=i.string();continue;case 4:if(34!==e)break;a.userAgentInfo=fu.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.geoData=fQ.decode(i,i.uint32());continue;case 6:if(48!==e)break;a.loggingType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>f0.fromPartial(e??{}),fromPartial(e){let t=fJ();return t.studyTreatmentInfo=e.studyTreatmentInfo?.map(e=>fq.fromPartial(e))||[],t.id=void 0!==e.id&&null!==e.id?fj.fromPartial(e.id):void 0,t.userName=e.userName??"",t.userAgentInfo=void 0!==e.userAgentInfo&&null!==e.userAgentInfo?fu.fromPartial(e.userAgentInfo):void 0,t.geoData=void 0!==e.geoData&&null!==e.geoData?fQ.fromPartial(e.geoData):void 0,t.loggingType=e.loggingType??0,t}};function f2(){return{userName:"",userAgentString:"",geoData:void 0,os:"",deviceName:"",browserName:"",locale:"",osVersion:"",appVersion:"",appBuild:"",snapkitAppId:""}}let f3={encode:(e,t=p_.default.Writer.create())=>(""!==e.userName&&t.uint32(10).string(e.userName),""!==e.userAgentString&&t.uint32(18).string(e.userAgentString),void 0!==e.geoData&&fQ.encode(e.geoData,t.uint32(26).fork()).ldelim(),""!==e.os&&t.uint32(34).string(e.os),""!==e.deviceName&&t.uint32(42).string(e.deviceName),""!==e.browserName&&t.uint32(50).string(e.browserName),""!==e.locale&&t.uint32(58).string(e.locale),""!==e.osVersion&&t.uint32(66).string(e.osVersion),""!==e.appVersion&&t.uint32(74).string(e.appVersion),""!==e.appBuild&&t.uint32(82).string(e.appBuild),""!==e.snapkitAppId&&t.uint32(90).string(e.snapkitAppId),t),decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=f2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userName=i.string();continue;case 2:if(18!==e)break;a.userAgentString=i.string();continue;case 3:if(26!==e)break;a.geoData=fQ.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.os=i.string();continue;case 5:if(42!==e)break;a.deviceName=i.string();continue;case 6:if(50!==e)break;a.browserName=i.string();continue;case 7:if(58!==e)break;a.locale=i.string();continue;case 8:if(66!==e)break;a.osVersion=i.string();continue;case 9:if(74!==e)break;a.appVersion=i.string();continue;case 10:if(82!==e)break;a.appBuild=i.string();continue;case 11:if(90!==e)break;a.snapkitAppId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>f3.fromPartial(e??{}),fromPartial(e){let t=f2();return t.userName=e.userName??"",t.userAgentString=e.userAgentString??"",t.geoData=void 0!==e.geoData&&null!==e.geoData?fQ.fromPartial(e.geoData):void 0,t.os=e.os??"",t.deviceName=e.deviceName??"",t.browserName=e.browserName??"",t.locale=e.locale??"",t.osVersion=e.osVersion??"",t.appVersion=e.appVersion??"",t.appBuild=e.appBuild??"",t.snapkitAppId=e.snapkitAppId??"",t}},f1={encode:(e,t=p_.default.Writer.create())=>t,decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>f1.fromPartial(e??{}),fromPartial:e=>({})};function f4(){return{id:void 0,studyTreatmentInfo:[],properties:void 0,loggingType:0,secondaryIds:[]}}let f8={encode(e,t=p_.default.Writer.create()){for(let i of(void 0!==e.id&&fj.encode(e.id,t.uint32(10).fork()).ldelim(),e.studyTreatmentInfo))fq.encode(i,t.uint32(18).fork()).ldelim();for(let i of(void 0!==e.properties&&f3.encode(e.properties,t.uint32(26).fork()).ldelim(),0!==e.loggingType&&t.uint32(32).int32(e.loggingType),e.secondaryIds))fj.encode(i,t.uint32(42).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=f4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.id=fj.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.studyTreatmentInfo.push(fq.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.properties=f3.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.loggingType=i.int32();continue;case 5:if(42!==e)break;a.secondaryIds.push(fj.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>f8.fromPartial(e??{}),fromPartial(e){let t=f4();return t.id=void 0!==e.id&&null!==e.id?fj.fromPartial(e.id):void 0,t.studyTreatmentInfo=e.studyTreatmentInfo?.map(e=>fq.fromPartial(e))||[],t.properties=void 0!==e.properties&&null!==e.properties?f3.fromPartial(e.properties):void 0,t.loggingType=e.loggingType??0,t.secondaryIds=e.secondaryIds?.map(e=>fj.fromPartial(e))||[],t}};function f6(){return{abExposureData:[],disableLogging:!1}}let f7={encode(e,t=p_.default.Writer.create()){for(let i of e.abExposureData)f8.encode(i,t.uint32(10).fork()).ldelim();return!1!==e.disableLogging&&t.uint32(16).bool(e.disableLogging),t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=f6();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.abExposureData.push(f8.decode(i,i.uint32()));continue;case 2:if(16!==e)break;a.disableLogging=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>f7.fromPartial(e??{}),fromPartial(e){let t=f6();return t.abExposureData=e.abExposureData?.map(e=>f8.fromPartial(e))||[],t.disableLogging=e.disableLogging??!1,t}},f5={encode:(e,t=p_.default.Writer.create())=>t,decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>f5.fromPartial(e??{}),fromPartial:e=>({})};function f9(){return{loggingType:0,segmentStudyName:[]}}let Te={encode(e,t=p_.default.Writer.create()){for(let i of(0!==e.loggingType&&t.uint32(8).int32(e.loggingType),e.segmentStudyName))t.uint32(18).string(i);return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=f9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.loggingType=i.int32();continue;case 2:if(18!==e)break;a.segmentStudyName.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Te.fromPartial(e??{}),fromPartial(e){let t=f9();return t.loggingType=e.loggingType??0,t.segmentStudyName=e.segmentStudyName?.map(e=>e)||[],t}};function Tt(){return{abExposureSizeRequestData:[]}}let Ti={encode(e,t=p_.default.Writer.create()){for(let i of e.abExposureSizeRequestData)Te.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tt();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.abExposureSizeRequestData.push(Te.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ti.fromPartial(e??{}),fromPartial(e){let t=Tt();return t.abExposureSizeRequestData=e.abExposureSizeRequestData?.map(e=>Te.fromPartial(e))||[],t}};function Tn(){return{studyTreatmentInfo:void 0,exposureSize:"0"}}let Ta={encode:(e,t=p_.default.Writer.create())=>(void 0!==e.studyTreatmentInfo&&fq.encode(e.studyTreatmentInfo,t.uint32(10).fork()).ldelim(),"0"!==e.exposureSize&&t.uint32(16).int64(e.exposureSize),t),decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tn();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.studyTreatmentInfo=fq.decode(i,i.uint32());continue;case 2:if(16!==e)break;a.exposureSize=TN(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ta.fromPartial(e??{}),fromPartial(e){let t=Tn();return t.studyTreatmentInfo=void 0!==e.studyTreatmentInfo&&null!==e.studyTreatmentInfo?fq.fromPartial(e.studyTreatmentInfo):void 0,t.exposureSize=e.exp
2osureSize??"0",t}};function To(){return{loggingType:0,studyTreatmentInfoWithExposureSizeData:[]}}let Tr={encode(e,t=p_.default.Writer.create()){for(let i of(0!==e.loggingType&&t.uint32(8).int32(e.loggingType),e.studyTreatmentInfoWithExposureSizeData))Ta.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=To();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.loggingType=i.int32();continue;case 2:if(18!==e)break;a.studyTreatmentInfoWithExposureSizeData.push(Ta.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Tr.fromPartial(e??{}),fromPartial(e){let t=To();return t.loggingType=e.loggingType??0,t.studyTreatmentInfoWithExposureSizeData=e.studyTreatmentInfoWithExposureSizeData?.map(e=>Ta.fromPartial(e))||[],t}};function Td(){return{abExposureSizeResponseData:[]}}let Ts={encode(e,t=p_.default.Writer.create()){for(let i of e.abExposureSizeResponseData)Tr.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Td();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.abExposureSizeResponseData.push(Tr.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ts.fromPartial(e??{}),fromPartial(e){let t=Td();return t.abExposureSizeResponseData=e.abExposureSizeResponseData?.map(e=>Tr.fromPartial(e))||[],t}};function Tl(){return{loggingType:0,id:[]}}let Tc={encode(e,t=p_.default.Writer.create()){for(let i of(0!==e.loggingType&&t.uint32(8).int32(e.loggingType),e.id))fj.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tl();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.loggingType=i.int32();continue;case 2:if(18!==e)break;a.id.push(fj.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Tc.fromPartial(e??{}),fromPartial(e){let t=Tl();return t.loggingType=e.loggingType??0,t.id=e.id?.map(e=>fj.fromPartial(e))||[],t}};function Tu(){return{abExposureReadRequestData:[],studyUpdateTimeEpochSec:"0"}}let Tp={encode(e,t=p_.default.Writer.create()){for(let i of e.abExposureReadRequestData)Tc.encode(i,t.uint32(10).fork()).ldelim();return"0"!==e.studyUpdateTimeEpochSec&&t.uint32(16).int64(e.studyUpdateTimeEpochSec),t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tu();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.abExposureReadRequestData.push(Tc.decode(i,i.uint32()));continue;case 2:if(16!==e)break;a.studyUpdateTimeEpochSec=TN(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Tp.fromPartial(e??{}),fromPartial(e){let t=Tu();return t.abExposureReadRequestData=e.abExposureReadRequestData?.map(e=>Tc.fromPartial(e))||[],t.studyUpdateTimeEpochSec=e.studyUpdateTimeEpochSec??"0",t}};function Tf(){return{id:void 0,studyTreatmentInfo:[]}}let TT={encode(e,t=p_.default.Writer.create()){for(let i of(void 0!==e.id&&fj.encode(e.id,t.uint32(10).fork()).ldelim(),e.studyTreatmentInfo))fq.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tf();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.id=fj.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.studyTreatmentInfo.push(fq.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TT.fromPartial(e??{}),fromPartial(e){let t=Tf();return t.id=void 0!==e.id&&null!==e.id?fj.fromPartial(e.id):void 0,t.studyTreatmentInfo=e.studyTreatmentInfo?.map(e=>fq.fromPartial(e))||[],t}};function Tm(){return{loggingType:0,perIdExposureData:[]}}let TE={encode(e,t=p_.default.Writer.create()){for(let i of(0!==e.loggingType&&t.uint32(8).int32(e.loggingType),e.perIdExposureData))TT.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tm();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.loggingType=i.int32();continue;case 2:if(18!==e)break;a.perIdExposureData.push(TT.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TE.fromPartial(e??{}),fromPartial(e){let t=Tm();return t.loggingType=e.loggingType??0,t.perIdExposureData=e.perIdExposureData?.map(e=>TT.fromPartial(e))||[],t}};
2function T_(){return{abExposureReadResponseData:[]}}let TS={encode(e,t=p_.default.Writer.create()){for(let i of e.abExposureReadResponseData)TE.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof p_.default.Reader?e:p_.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=T_();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.abExposureReadResponseData.push(TE.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TS.fromPartial(e??{}),fromPartial(e){let t=T_();return t.abExposureReadResponseData=e.abExposureReadResponseData?.map(e=>TE.fromPartial(e))||[],t}};class TI{rpc;constructor(e){this.rpc=e,this.UpdateAbExposure=this.UpdateAbExposure.bind(this),this.GetAbExposureStreaming=this.GetAbExposureStreaming.bind(this),this.GetAbExposure=this.GetAbExposure.bind(this),this.BatchUpdateAbExposure=this.BatchUpdateAbExposure.bind(this),this.UpdateAbExposureStreaming=this.UpdateAbExposureStreaming.bind(this),this.GetAbExposureSize=this.GetAbExposureSize.bind(this)}UpdateAbExposure(e,t){return this.rpc.unary(TA,f0.fromPartial(e),t)}GetAbExposureStreaming(e,t){throw Error("ts-proto does not yet support client streaming!")}GetAbExposure(e,t){return this.rpc.unary(Tk,Tp.fromPartial(e),t)}BatchUpdateAbExposure(e,t){return this.rpc.unary(Tb,f7.fromPartial(e),t)}UpdateAbExposureStreaming(e,t){throw Error("ts-proto does not yet support client streaming!")}GetAbExposureSize(e,t){return this.rpc.unary(Tg,Ti.fromPartial(e),t)}}let Tv={serviceName:"snapchat.ab.exposure_service.ExposureService"},TA={methodName:"UpdateAbExposure",service:Tv,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return f0.encode(this).finish()}},responseType:{deserializeBinary(e){let t=f1.decode(e);return{...t,toObject:()=>t}}}},Tk={methodName:"GetAbExposure",service:Tv,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return Tp.encode(this).finish()}},responseType:{deserializeBinary(e){let t=TS.decode(e);return{...t,toObject:()=>t}}}},Tb={methodName:"BatchUpdateAbExposure",service:Tv,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return f7.encode(this).finish()}},responseType:{deserializeBinary(e){let t=f5.decode(e);return{...t,toObject:()=>t}}}},Tg={methodName:"GetAbExposureSize",service:Tv,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return Ti.encode(this).finish()}},responseType:{deserializeBinary(e){let t=Ts.decode(e);return{...t,toObject:()=>t}}}};function TN(e){return e.toString()}p_.default.util.Long!==rv.default&&(p_.default.util.Long=rv.default,p_.default.configure());var TR=Object.defineProperty,TP=(e,t)=>TR(e,"name",{value:t,configurable:!0});function TO(e,t,i){return e.circumstanceServiceClient.targetingQuery(t,i)}function TC(e){return e.operator===_.UNKNOWN_OPERATOR&&e.predicateOperator===S.UNKNOWN_PREDICATE_OPERATOR&&e.property===v.UNKNOWN_PROPERTY}function Ty(e){if(!e)return e;switch(e.kind?.$case){case"stringValue":return e.kind.stringValue;case"boolValue":return e.kind.boolValue;case"intValue":return e.kind.intValue;case"doubleValue":return e.kind.doubleValue;case"anyValue":return e.kind.anyValue;case"floatValue":return e.kind.floatValue;case"intPairValue":return e.kind.intPairValue;case"longValue":return e.kind.longValue;case"mapValue":return e.kind.mapValue;case"stringArrayValue":return e.kind.stringArrayValue;default:return}}function Th(e,t){return`${e.id}_${t}`}TP(function(e,t,i){return e.exposureServiceClient.BatchUpdateAbExposure(t,i)},"batchUpdateAbExposure"),TP(TO,"targetingQuery"),TP(TC,"isDefaultTargetingExpression"),TP(Ty,"extractValue"),TP(function(e){return{kind:{$case:"stringValue",stringValue:e}}},"createStringValue"),TP(function(e,t=""){return{kind:{$case:"anyValue",anyValue:{value:e,typeUrl:t}}}},"createAnyValue"),TP(Th,"getPropertyValueProviderKey");var TL=new Map;function TD(e,t,i){TL.set(Th(e,t),i)}function Tw(e,t,i){let n=t.filter(e=>e.configId===i),a=n.filter(e=>!e.targetingExpression||e.targetingExpression&&TC(e.targetingExpression)),o=[...n.filter(e=>e.targetingExpression&&!TC(e.targetingExpression)).filter(t=>TM(e,t.targetingExpression)),...a].sort((e,t)=>
2t.priority-e.priority);return o.length?o[0]:void 0}function TM(e,t){return t.children.length>0?t.operator===_.AND?t.children.every(t=>TM(e,t)):t.operator===_.OR&&t.children.some(t=>TM(e,t)):TU(e,t)}function TU(e,t){if(!t.property||!t.value||!t.predicateOperator||t.children.length>0)return!1;let i=TL.get(Th(e,t.property));if(!i)return!1;let n=i(),a=Ty(t.value);return t.predicateOperator===S.GREATER_THAN_OR_EQUAL_TO||t.predicateOperator===S.LESS_THAN_OR_EQUAL_TO?"number"==typeof a&&"number"==typeof n&&(t.predicateOperator===S.LESS_THAN_OR_EQUAL_TO?n<=a:n>=a):t.predicateOperator===S.NOT_EQUAL?n!==a:t.predicateOperator===S.EQUAL&&n===a}TP(TD,"registerPropertyValueProvider"),TP(Tw,"getEvaluatedCofConfig"),TP(TM,"isTargetingExpressionSatisfied"),TP(TU,"evaluateLeafNode");var TV={host:"https://aws.api.snapchat.com"};function TB(e){let t={...TV,...e},i=new pm(t.host,{metadata:t.metadata,transport:t.transport,debug:t.debug}),n=Object.freeze({id:`${Math.random()}`,settings:t,circumstanceServiceClient:new u7(i),exposureServiceClient:new TI({unary:i.unary.bind(i),invoke(){throw Error("Invoke is not supported for ExposureService. Streaming methods (GetAbExposureStreaming, UpdateAbExposureStreaming) are unavailable.")}})});return TD(n,v.WEB_SCREEN_HEIGHT,()=>window.innerHeight),TD(n,v.WEB_SCREEN_WIDTH,()=>window.innerWidth),n}function TF(){return{typeUrl:"",value:new Uint8Array(0)}}TP(TB,"initConfigsClient");let TG={encode:(e,t=rA.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=TF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.typeUrl=i.string();continue;case 2:if(18!==e)break;a.value=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TG.fromPartial(e??{}),fromPartial(e){let t=TF();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array(0),t}};function TW(){return{key:"",value:""}}let Tx={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=TW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Tx.fromPartial(e??{}),fromPartial(e){let t=TW();return t.key=e.key??"",t.value=e.value??"",t}};function TH(){return{records:[]}}let TY={encode(e,t=rA.default.Writer.create()){for(let i of e.records)Tx.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=TH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.records.push(Tx.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TY.fromPartial(e??{}),fromPartial(e){let t=TH();return t.records=e.records?.map(e=>Tx.fromPartial(e))||[],t}};function TK(){return{value:[]}}let T$={encode(e,t=rA.default.Writer.create()){for(let i of e.value)t.uint32(10).string(i);return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=TK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.value.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>T$.fromPartial(e??{}),fromPartial(e){let t=TK();return t.value=e.value?.map(e=>e)||[],t}};function Tz(){return{kind:void 0}}let Tq={encode(e,t=rA.default.Writer.create()){switch(e.kind?.$case){case"intValue":t.uint32(8).int32(e.kind.intValue);break;case"longValue":t.uint32(16).int64(e.kind.longValue);break;case"floatValue":t.uint32(29).float(e.kind.floatValue);break;case"doubleValue":t.uint32(73).double(e.kind.doubleValue);break;case"boolValue":t.uint32(32).bool(e.kind.boolValue);break;case"stringValue":t.uint32(42).string(e.kind.stringValue);break;case"anyValue":TG.encode(e.kind.anyValue,t.uint32(50).fork()).ldelim();break;case"mapValue":TY.encode(e.kind.mapValue,t.uint32(58).fork()).ldelim();break;case"intPairValue":t.uint32(65).fixed64(e.kind.intPairValue);break;case"stringArrayValue":T$.encode(e.kind.stringArrayValue,t.uint32(82).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tz();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.kind={$case:"intValue",intValue:i.int32()};continue;case 2:if(16!==e)break;a.kind={$case:"longValue",longValue:TZ(i.int64())};continue;case 3:if(29!==e)break;a.kind={$case:"floatValue",floatValue:i.float()};continue;case 9:if(73!==e)break;a.kind={$case:"doubleValue",doubleValue:i.double()};continue;case 4:if(32!==e)break;a.kind={$case:"boolValue",boolValue:i.bool()};continue;case 5:if(42!==e)break;a.kind={$case:"stringValue",stringValue:i.string()};continue;case 6:if(50!==e)break;a.kind={$case:"anyValue",anyValue:TG.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.kind={$case:"mapValue",mapValue:TY.decode(i,i.uint32())};continue;case 8:if(65!==e)break;a.kind={$case:"intPairValue",intPairValue:TZ(i.fixed64())};continue;case 10:if(82!==e)break;a.kind={$case:"stringArrayValue",stringArrayValue:T$.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Tq.fromPartial(e??{}),fromPartial(e){let t=Tz();return e.kind?.$case==="intValue"&&e.kind?.intValue!==void 0&&e.kind?.intValue!==null&&(t.kind={$case:"intValue",intValue:e.kind.intValue}),e.kind?.$case==="longValue"&&e.kind?.longValue!==void 0&&e.kind?.longValue!==null&&(t.kind={$case:"longValue",longValue:e.kind.longValue}),e.kind?.$case==="floatValue"&&e.kind?.floatValue!==void 0&&e.kind?.floatValue!==null&&(t.kind={$case:"floatValue",floatValue:e.kind.floatValue}),e.kind?.$case==="doubleValue"&&e.kind?.doubleValue!==void 0&&e.kind?.doubleValue!==null&&(t.kind={$case:"doubleValue",doubleValue:e.kind.doubleValue}),e.kind?.$case==="boolValue"&&e.kind?.boolValue!==void 0&&e.kind?.boolValue!==null&&(t.kind={$case:"boolValue",boolValue:e.kind.boolValue}),e.kind?.$case==="stringValue"&&e.kind?.stringValue!==void 0&&e.kind?.stringValue!==null&&(t.kind={$case:"stringValue",stringValue:e.kind.stringValue}),e.kind?.$case==="anyValue"&&e.kind?.anyValue!==void 0&&e.kind?.anyValue!==null&&(t.kind={$case:"anyValue",anyValue:TG.fromPartial(e.kind.anyValue)}),e.kind?.$case==="mapValue"&&e.kind?.mapValue!==void 0&&e.kind?.mapValue!==null&&(t.kind={$case:"mapValue",mapValue:TY.fromPartial(e.kind.mapValue)}),e.kind?.$case==="intPairValue"&&e.kind?.intPairValue!==void 0&&e.kind?.intPairValue!==null&&(t.kind={$case:"intPairValue",intPairValue:e.kind.intPairValue}),e.kind?.$case==="stringArrayValue"&&e.kind?.stringArrayValue!==void 0&&e.kind?.stringArrayValue!==null&&(t.kind={$case:"stringArrayValue",stringArrayValue:T$.fromPartial(e.kind.stringArrayValue)}),t}};function TZ(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(nR=eS||(eS={}))[nR.UNKNOWN_CONTEXT_PLATFORM=0]="UNKNOWN_CONTEXT_PLATFORM",nR[nR.IOS_PLATFORM=1]="IOS_PLATFORM",nR[nR.ANDROID_PLATFORM=2]="ANDROID_PLATFORM",nR[nR.SERVER_PLATFORM=3]="SERVER_PLATFORM",nR[nR.UNRECOGNIZED=-1]="UNRECOGNIZED",(nP=eI||(eI={}))[nP.UNKNOWN_OPERATOR=0]="UNKNOWN_OPERATOR",nP[nP.AND=1]="AND",nP[nP.OR=2]="OR",nP[nP.UNRECOGNIZED=-1]="UNRECOGNIZED",(nO=ev||(ev={}))[nO.UNKNOWN_PREDICATE_OPERATOR=0]="UNKNOWN_PREDICATE_OPERATOR",nO[nO.EQUAL=1]="EQUAL",nO[nO.NOT_EQUAL=2]="NOT_EQUAL",nO[nO.GREATER_THAN_OR_EQUAL_TO=3]="GREATER_THAN_OR_EQUAL_TO",nO[nO.LESS_THAN_OR_EQUAL_TO=4]="LESS_THAN_OR_EQUAL_TO",nO[nO.UNRECOGNIZED=-1]="UNRECOGNIZED",(nC=eA||(eA={}))[nC.UNSET=0]="UNSET",nC[nC.CLIENT=1]="CLIENT",nC[nC.SERVER=2]="SERVER",nC[nC.UNRECOGNIZED=-1]="UNRECOGNIZED",(ny=ek||(ek={}))[ny.UNKNOWN_PROPERTY=0]="UNKNOWN_PROPERTY",ny[ny.BATTERY_LEVEL=1]="BATTERY_LEVEL",ny[ny.IS_OFFLINE=2]="IS_OFFLINE",ny[ny.IS_CHARGING=3]="IS_CHARGING",ny[ny.BANDWIDTH=4]="BANDWIDTH",ny[ny.DISK_SIZE=5]="DISK_SIZE",
2ny[ny.DISK_AVAILABLE=6]="DISK_AVAILABLE",ny[ny.MEDIA_TYPE_DEPRECATED=7]="MEDIA_TYPE_DEPRECATED",ny[ny.IS_PUBLIC_STORY=8]="IS_PUBLIC_STORY",ny[ny.IS_OFFICIAL_STORY=9]="IS_OFFICIAL_STORY",ny[ny.CAMERA_DIRECTION=10]="CAMERA_DIRECTION",ny[ny.CAMERA_CONTEXT=11]="CAMERA_CONTEXT",ny[ny.CAMERA_API=12]="CAMERA_API",ny[ny.CAMERA_FLASH_STATE=13]="CAMERA_FLASH_STATE",ny[ny.SNAP_SOURCE=14]="SNAP_SOURCE",ny[ny.LEGACY_MUSHROOM_CONTENT_TYPE=15]="LEGACY_MUSHROOM_CONTENT_TYPE",ny[ny.UPLOAD_BANDWIDTH=16]="UPLOAD_BANDWIDTH",ny[ny.CAMERA2_LEVEL=17]="CAMERA2_LEVEL",ny[ny.CAMERA_NIGHT_MODE_STATE=18]="CAMERA_NIGHT_MODE_STATE",ny[ny.USER_LANGUAGE=19]="USER_LANGUAGE",ny[ny.VIDEO_DURATION=20]="VIDEO_DURATION",ny[ny.REALTIME_MOBILE_NETWORK_GENERATION=21]="REALTIME_MOBILE_NETWORK_GENERATION",ny[ny.REALTIME_NETWORK_TYPE=22]="REALTIME_NETWORK_TYPE",ny[ny.REALTIME_NETWORK_IS_METERED=23]="REALTIME_NETWORK_IS_METERED",ny[ny.REALTIME_NETWORK_IS_ROAMING=24]="REALTIME_NETWORK_IS_ROAMING",ny[ny.CAMERA_IS_FIRST_CAPTURE=25]="CAMERA_IS_FIRST_CAPTURE",ny[ny.PICTURE_MODE=26]="PICTURE_MODE",ny[ny.BOLT_USE_CASE=27]="BOLT_USE_CASE",ny[ny.BOLT_CDN_EXPERIMENTATION_ID=28]="BOLT_CDN_EXPERIMENTATION_ID",ny[ny.MINS_SINCE_LAST_LENS_ACTIVATION=29]="MINS_SINCE_LAST_LENS_ACTIVATION",ny[ny.MINS_SINCE_LAST_SNAPPABLE_LENS_ACTIVATION=30]="MINS_SINCE_LAST_SNAPPABLE_LENS_ACTIVATION",ny[ny.DAYS_SINCE_LAST_LOGIN_OR_OPEN=31]="DAYS_SINCE_LAST_LOGIN_OR_OPEN",ny[ny.SPECTACLES_VERSION=32]="SPECTACLES_VERSION",ny[ny.STICKY_MAX_CONNECTION_TYPE=33]="STICKY_MAX_CONNECTION_TYPE",ny[ny.WITH_ANIMATED_OVERLAY=34]="WITH_ANIMATED_OVERLAY",ny[ny.ESTIMATED_DURATION_FOR_EVENT_MS=35]="ESTIMATED_DURATION_FOR_EVENT_MS",ny[ny.URL=36]="URL",ny[ny.MEDIA_SOURCE=37]="MEDIA_SOURCE",ny[ny.ASSET_TYPE=38]="ASSET_TYPE",ny[ny.BOLT_IS_CONTENT_POPULAR=39]="BOLT_IS_CONTENT_POPULAR",ny[ny.CAPTURE_MODE=40]="CAPTURE_MODE",ny[ny.VP9_SOFTWARE_DECODING_SUPPORTED=41]="VP9_SOFTWARE_DECODING_SUPPORTED",ny[ny.AV1_SOFTWARE_DECODING_SUPPORTED=42]="AV1_SOFTWARE_DECODING_SUPPORTED",ny[ny.WITH_MUSIC=43]="WITH_MUSIC",ny[ny.FEATURE_PROVIDED_SIZE=44]="FEATURE_PROVIDED_SIZE",ny[ny.MEDIA_TYPE=45]="MEDIA_TYPE",ny[ny.SCANNED_CATEGORY_IDS=46]="SCANNED_CATEGORY_IDS",ny[ny.CONTENT_VIEW_SOURCE=47]="CONTENT_VIEW_SOURCE",ny[ny.RECIPIENTS_SUPPORT_HEVC=48]="RECIPIENTS_SUPPORT_HEVC",ny[ny.COGNAC_APP_ID=49]="COGNAC_APP_ID",ny[ny.EMAIL_VERIFIED=50]="EMAIL_VERIFIED",ny[ny.PHONE_VERIFIED=51]="PHONE_VERIFIED",ny[ny.NOTIFICATION_PERM_GRANTED=52]="NOTIFICATION_PERM_GRANTED",ny[ny.CONTACT_PERM_GRANTED=53]="CONTACT_PERM_GRANTED",ny[ny.MUTUAL_FRIENDS_COUNT=54]="MUTUAL_FRIENDS_COUNT",ny[ny.GROUPS_COUNT=55]="GROUPS_COUNT",ny[ny.HAS_NON_TEAM_SNAPCHAT_CONVERSATIONS=56]="HAS_NON_TEAM_SNAPCHAT_CONVERSATIONS",ny[ny.PLAYBACK_ITEM_TYPE=57]="PLAYBACK_ITEM_TYPE",ny[ny.SUP_BOOLEAN_PROPERTY=58]="SUP_BOOLEAN_PROPERTY",ny[ny.SUP_INTEGER_PROPERTY=59]="SUP_INTEGER_PROPERTY",ny[ny.SUP_LONG_PROPERTY=60]="SUP_LONG_PROPERTY",ny[ny.SUP_STRING_PROPERTY=61]="SUP_STRING_PROPERTY",ny[ny.SUP_DOUBLE_PROPERTY=62]="SUP_DOUBLE_PROPERTY",ny[ny.SUP_MILLIS_PROPERTY_TO_NOW=63]="SUP_MILLIS_PROPERTY_TO_NOW",ny[ny.HAS_USED_SPECTACLES=64]="HAS_USED_SPECTACLES",ny[ny.SUP_SECS_PROPERTY_TO_NOW=65]="SUP_SECS_PROPERTY_TO_NOW",ny[ny.BOLT_CLIENT_APP_STATE=66]="BOLT_CLIENT_APP_STATE",ny[ny.EMAIL_SET=67]="EMAIL_SET",ny[ny.BITMOJI_SET=68]="BITMOJI_SET",ny[ny.QUICK_TAP_CAMERA_SUPPORTED_ENABLED=69]="QUICK_TAP_CAMERA_SUPPORTED_ENABLED",ny[ny.HAS_ADD_FRIENDS_REQUEST=70]="HAS_ADD_FRIENDS_REQUEST",ny[ny.APP_LAUNCH_FROM_PUSH=71]="APP_LAUNCH_FROM_PUSH",ny[ny.APP_LAUNCH_TYPE=72]="APP_LAUNCH_TYPE",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_IMPRESSION_COUNT=73]="BILLBOARD_CAMPAIGN_LOCAL_IMPRESSION_COUNT",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_LAST_IMPRESSION_TIME_SECS_TO_NOW=74]="BILLBOARD_CAMPAIGN_LOCAL_LAST_IMPRESSION_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_CONTINUOUS_DISMISS_COUNT=75]="BILLBOARD_CAMPAIGN_LOCAL_CONTINUOUS_DISMISS_COUNT",ny[ny.FST_NUM_IN_APP_WARNINGS=76]="FST_NUM_IN_APP_WARNINGS",ny[ny.FST_SHOULD_CHANGE_PASSWORD=77]="FST_SHOULD_CHANGE_PASSWORD",ny[ny.FST_IS_BACKGROUND_CHECK=78]="FST_IS_BACKGROUND_CHECK",ny[ny.AUDIO_RECORD_PE
2RM_GRANTED=79]="AUDIO_RECORD_PERM_GRANTED",ny[ny.MUTUAL_FRIENDS_WITH_BIRTHDAY_COUNT=80]="MUTUAL_FRIENDS_WITH_BIRTHDAY_COUNT",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_DISMISS_COUNT=81]="BILLBOARD_CAMPAIGN_LOCAL_DISMISS_COUNT",ny[ny.USE_VERTICAL_NAVIGATION=82]="USE_VERTICAL_NAVIGATION",ny[ny.FREEABLE_DISK_AVAILABLE=83]="FREEABLE_DISK_AVAILABLE",ny[ny.MEMORIES_COUNT=84]="MEMORIES_COUNT",ny[ny.DEVICE_MODEL=85]="DEVICE_MODEL",ny[ny.COUNTRY=86]="COUNTRY",ny[ny.OS=87]="OS",ny[ny.OS_VERSION=88]="OS_VERSION",ny[ny.APP_VERSION=89]="APP_VERSION",ny[ny.BUILD_FLAVOR=90]="BUILD_FLAVOR",ny[ny.USER_ID=91]="USER_ID",ny[ny.LOCALE=92]="LOCALE",ny[ny.DEVICE_CLUSTER=93]="DEVICE_CLUSTER",ny[ny.DEVICE_BRAND=94]="DEVICE_BRAND",ny[ny.IS_EMPLOYEE=95]="IS_EMPLOYEE",ny[ny.USERNAME=96]="USERNAME",ny[ny.IS_TEST_USER=97]="IS_TEST_USER",ny[ny.USER_PROFILE=98]="USER_PROFILE",ny[ny.SCREEN_WIDTH=99]="SCREEN_WIDTH",ny[ny.SCREEN_HEIGHT=100]="SCREEN_HEIGHT",ny[ny.HEVC_SUPPORT=101]="HEVC_SUPPORT",ny[ny.NETWORK_TYPE=102]="NETWORK_TYPE",ny[ny.MAX_VIDEO_WIDTH=103]="MAX_VIDEO_WIDTH",ny[ny.MAX_VIDEO_HEIGHT=104]="MAX_VIDEO_HEIGHT",ny[ny.IS_NETWORK_METERED=105]="IS_NETWORK_METERED",ny[ny.IS_ROAMING=106]="IS_ROAMING",ny[ny.APP_ENGAGEMENT_LEVEL=107]="APP_ENGAGEMENT_LEVEL",ny[ny.COMMUNICATION_ENGAGEMENT_LEVEL=108]="COMMUNICATION_ENGAGEMENT_LEVEL",ny[ny.FRIEND_STORY_ENGAGEMENT_LEVEL=109]="FRIEND_STORY_ENGAGEMENT_LEVEL",ny[ny.PUBLIC_USER_STORY_ENGAGEMENT_LEVEL=110]="PUBLIC_USER_STORY_ENGAGEMENT_LEVEL",ny[ny.PUBLISHER_STORY_ENGAGEMENT_LEVEL=111]="PUBLISHER_STORY_ENGAGEMENT_LEVEL",ny[ny.LENS_ENGAGEMENT_LEVEL=112]="LENS_ENGAGEMENT_LEVEL",ny[ny.NON_FRIEND_STORY_ENGAGEMENT_LEVEL=113]="NON_FRIEND_STORY_ENGAGEMENT_LEVEL",ny[ny.FOLLOWER_SIZE_LEVEL=114]="FOLLOWER_SIZE_LEVEL",ny[ny.DAYS_SINCE_CREATION=115]="DAYS_SINCE_CREATION",ny[ny.USER_PERSONA=116]="USER_PERSONA",ny[ny.USER_CREATION_TIME=117]="USER_CREATION_TIME",ny[ny.MOBILE_NETWORK_TYPE=118]="MOBILE_NETWORK_TYPE",ny[ny.AGGREGATED_USER_BANDWIDTH=119]="AGGREGATED_USER_BANDWIDTH",ny[ny.LENS_CLUSTER_BIASED=120]="LENS_CLUSTER_BIASED",ny[ny.LENS_CLUSTER_LOG=121]="LENS_CLUSTER_LOG",ny[ny.LENS_CLUSTER_ORIG=122]="LENS_CLUSTER_ORIG",ny[ny.LENS_CLUSTER_ORIG_4=123]="LENS_CLUSTER_ORIG_4",ny[ny.LENS_CLUSTER_BIASED_LOG=124]="LENS_CLUSTER_BIASED_LOG",ny[ny.APP_LOCALE=125]="APP_LOCALE",ny[ny.DEVICE_COMMON_NAME=126]="DEVICE_COMMON_NAME",ny[ny.USER_FRIEND_COUNT=127]="USER_FRIEND_COUNT",ny[ny.L90_COUNTRY=128]="L90_COUNTRY",ny[ny.STUB=129]="STUB",ny[ny.IS_TRUE=130]="IS_TRUE",ny[ny.STORY_POST_RATIO=131]="STORY_POST_RATIO",ny[ny.GENDER=132]="GENDER",ny[ny.INFERRED_AGE_BUCKET=133]="INFERRED_AGE_BUCKET",ny[ny.STORIES=134]="STORIES",ny[ny.SENDS=135]="SENDS",ny[ny.SNAP_CREATE_L7=136]="SNAP_CREATE_L7",ny[ny.STORY_POST_L7=137]="STORY_POST_L7",ny[ny.COMMUNICATION_L7=138]="COMMUNICATION_L7",ny[ny.DF_L7=139]="DF_L7",ny[ny.APP_L7=140]="APP_L7",ny[ny.DAYS_SINCE_CREATION_BUCKET=141]="DAYS_SINCE_CREATION_BUCKET",ny[ny.BIDIRECTIONAL_FRIEND_STATUS=142]="BIDIRECTIONAL_FRIEND_STATUS",ny[ny.STORY_POST_PREDICTION=143]="STORY_POST_PREDICTION",ny[ny.APP_OPENS=144]="APP_OPENS",ny[ny.LENS_SWIPES=145]="LENS_SWIPES",ny[ny.LENS_SNAPS=146]="LENS_SNAPS",ny[ny.LENS_OPS=147]="LENS_OPS",ny[ny.W1_APP_OPENS=148]="W1_APP_OPENS",ny[ny.W1_LENS_SWIPES=149]="W1_LENS_SWIPES",ny[ny.W1_LENS_SNAPS=150]="W1_LENS_SNAPS",ny[ny.W1_LENS_OPS=151]="W1_LENS_OPS",ny[ny.W2_APP_OPENS=152]="W2_APP_OPENS",ny[ny.W2_LENS_SWIPES=153]="W2_LENS_SWIPES",ny[ny.W2_LENS_SNAPS=154]="W2_LENS_SNAPS",ny[ny.W2_LENS_OPS=155]="W2_LENS_OPS",ny[ny.W34_APP_OPENS=156]="W34_APP_OPENS",ny[ny.W34_LENS_SWIPES=157]="W34_LENS_SWIPES",ny[ny.W34_LENS_SNAPS=158]="W34_LENS_SNAPS",ny[ny.W34_LENS_OPS=159]="W34_LENS_OPS",ny[ny.LENS_SWIPES_PREDICTION=160]="LENS_SWIPES_PREDICTION",ny[ny.REGISTRATION_COUNTRY=161]="REGISTRATION_COUNTRY",ny[ny.IP_ASN=162]="IP_ASN",ny[ny.IP_REGION=163]="IP_REGION",ny[ny.IP_CITY=164]="IP_CITY",ny[ny.HAS_USER_ID=165]="HAS_USER_ID",ny[ny.HAS_BITMOJI=166]="HAS_BITMOJI",ny[ny.NUM_APP_OPENS_LAST_8_DAYS=167]="NUM_APP_OPENS_LAST_8_DAYS",ny[ny.NUM_FEATURE_STORY_VIEW_DAYS_L7=168]="NUM_FEATURE_STORY_VIEW_DAYS_L7",ny[ny.NUM_FEATURE_STORY_SYNC_DAYS_L7=169]="NUM_FEATURE_STORY_SYNC_DAYS_L7",ny[ny.HEXAGON_NN_SUPPORTED_VERSION=170]="HEXAGON_NN_SUPPORTED_VERSION",ny[ny.NETWORK_QUALITY=171]="NETWORK_QUALITY",ny[ny.DEVICE_MEMORY_MB=172]="DEVICE_MEMORY_MB",ny[ny.DEVICE_GL_VERSION=173]="DEVICE_GL_VERSION",ny[ny.SNAP_PRO_STATUS=174]="SNAP_PRO_STATUS",ny[ny.DEVICE_VP9_DECODING_SUPPORT=175]="DEVICE_VP9_DECODING_SUPPORT",ny[ny.AVG_FRIEND_STORY_VIEW_COUNT_L7=176]="AVG_FRIEND_STORY_VIEW_COUNT_L7",ny[ny.GAME_JOIN_TIME=177]="GAME_JOIN_TIME",ny[ny.GAME_LAST_ACTIVE_TIME=178]="GAME_LAST_ACTIVE_TIME",ny[ny.DAYS_SINCE_FIRST_GAME_ACTIVITY=179]="DAYS_SINCE_FIRST_GAME_ACTIVITY",ny[ny.DAYS_SINCE_LAST_GAME_ACTIVITY=180]="DAYS_SINCE_LAST_GAME_ACTIVITY",ny[ny.PF_PAGE_SESSIONS_WITH_LONG_IMP=181]="PF_PAGE_SESSIONS_WITH_LONG_IMP",ny[ny.WIRELESS_CARRIER=182]="WIRELESS_CARRIER",ny[ny.MINIS_JOIN_TIME=183]="MINIS_JOIN_TIME",ny[ny.MINIS_LAST_ACTIVE_TIME=184]="MINIS_LAST_ACTIVE_TIME",ny[ny.DAYS_SINCE_FIRST_MINIS_ACTIVITY=185]="DAYS_SINCE_FIRST_MINIS_ACTIVITY",ny[ny.DAYS_SINCE_LAST_MINIS_ACTIVITY=186]="DAYS_SINCE_LAST_MINIS_ACTIVITY",ny[ny.DEVICE_AV1_DECODING_SUPPORT=187]="DEVICE_AV1_DECODING_SUPPORT",ny[ny.APP_PACKAGE_INSTALLER=188]="APP_PACKAGE_INSTALLER",ny[ny.STORY_VIEWS_5TH_TAB_ENGAGEMENT_LEVEL=189]="STORY_VIEWS_5TH_TAB_ENGAGEMENT_LEVEL",ny[ny.REPORTED_AGE=190]="REPORTED_AGE",ny[ny.ANDROID_MOBILE_SERVICES_PROVIDER=191]="ANDROID_MOBILE_SERVICES_PROVIDER",ny[ny.IS_ACQUIRED_USER=192]="IS_ACQUIRED_USER",ny[ny.YDPI=193]="YDPI",ny[ny.BIDIRECTIONAL_FRIEND_STATUS_VELLUM=194]="BIDIRECTIONAL_FRIEND_STATUS_VELLUM",ny[ny.ORIGIN=195]="ORIGIN",ny[ny.LENSCORE_VERSION=196]="LENSCORE_VERSION",ny[ny.SNAPKIT_APP_ID=197]="SNAPKIT_APP_ID",ny[ny.GPU=198]="GPU",ny[ny.CHIPSET_NAME=199]="CHIPSET_NAME",ny[ny.CHIPSET_VERSION=200]="CHIPSET_VERSION",ny[ny.HAS_ZERO_IDFA=201]="HAS_ZERO_IDFA",ny[ny.LIMIT_AD_TRACKING=202]="LIMIT_AD_TRACKING",ny[ny.ATT_AUTH_STATUS=203]="ATT_AUTH_STATUS",ny[ny.CAMERA2_FRONT_SS_GAIN_OVER_TPA=204]="CAMERA2_FRONT_SS_GAIN_OVER_TPA",ny[ny.ATTACHMENT_TOOL_V2=205]="ATTACHMENT_TOOL_V2",ny[ny.USER_PERSONA_V3=206]="USER_PERSONA_V3",ny[ny.SNAPS_SEND_WITH_HEVC=207]="SNAPS_SEND_WITH_HEVC",ny[ny.SNAPS_SEND_WITHOUT_HEVC=208]="SNAPS_SEND_WITHOUT_HEVC",ny[ny.CAMERA2_NATIVE_CRASH_OVER_CAMERA1=209]="CAMERA2_NATIVE_CRASH_OVER_CAMERA1",ny[ny.CAMERA2_G2S_LATENCY_OVER_CAMERA1=210]="CAMERA2_G2S_LATENCY_OVER_CAMERA1",ny[ny.IS_INTERNAL=211]="IS_INTERNAL",ny[ny.IS_WEB=212]="IS_WEB",ny[ny.APP_OPEN_TO_MAP=213]="APP_OPEN_TO_MAP",ny[ny.APP_OPEN_TO_FRIENDSFEED=214]="APP_OPEN_TO_FRIENDSFEED",ny[ny.APP_OPEN_TO_LENSES=215]="APP_OPEN_TO_LENSES",ny[ny.APP_OPEN_TO_MEMORIES=216]="APP_OPEN_TO_MEMORIES",ny[ny.APP_OPEN_TO_COMMUNITY=217]="APP_OPEN_TO_COMMUNITY",ny[ny.APP_OPEN_TO_SPOTLIGHT=218]="APP_OPEN_TO_SPOTLIGHT",ny[ny.IS_IMPACTED_BY_PINC_893=219]="IS_IMPACTED_BY_PINC_893",ny[ny.DAYS_BEFORE_BIRTHDAY=220]="DAYS_BEFORE_BIRTHDAY",ny[ny.HAS_BIPA=221]="HAS_BIPA",ny[ny.SPOTLIGHT_STORY_ENGAGEMENT_STATUS=222]="SPOTLIGHT_STORY_ENGAGEMENT_STATUS",ny[ny.INCLUSION_PANEL_MEMBER=223]="INCLUSION_PANEL_MEMBER",ny[ny.HEVC_HW_DECODER=224]="HEVC_HW_DECODER",ny[ny.HEVC_SW_DECODER=225]="HEVC_SW_DECODER",ny[ny.HASH_MURMUR3_128_MOD_100=226]="HASH_MURMUR3_128_MOD_100",
2ny[ny.HAS_ACTIVE_SNAPCHAT_PLUS=227]="HAS_ACTIVE_SNAPCHAT_PLUS",ny[ny.SNAP_KIT_OAUTH_ID=228]="SNAP_KIT_OAUTH_ID",ny[ny.ORGANIZATION_TYPE=229]="ORGANIZATION_TYPE",ny[ny.CHUNK_UPLOAD_SUPPORT_REQUIRED=230]="CHUNK_UPLOAD_SUPPORT_REQUIRED",ny[ny.CLOUDFRONT_POP=231]="CLOUDFRONT_POP",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_FIRST_IMPRESSION_TIME_SECS_TO_NOW=232]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_IMPRESSION_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_CLICK_COUNT=233]="BILLBOARD_CAMPAIGN_LOCAL_CLICK_COUNT",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_INTERACTION_COUNT=234]="BILLBOARD_CAMPAIGN_LOCAL_INTERACTION_COUNT",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_LAST_INTERACTION_TIME_SECS_TO_NOW=235]="BILLBOARD_CAMPAIGN_LOCAL_LAST_INTERACTION_TIME_SECS_TO_NOW",ny[ny.FST_LOCK_SCREEN_WIDGET_BILLBOARD_LAUNCHED_FROM_PUSH=236]="FST_LOCK_SCREEN_WIDGET_BILLBOARD_LAUNCHED_FROM_PUSH",ny[ny.WEB_SCREEN_WIDTH=237]="WEB_SCREEN_WIDTH",ny[ny.WEB_SCREEN_HEIGHT=238]="WEB_SCREEN_HEIGHT",ny[ny.SUP_IOS_LOCK_SCREEN_WIDGET_ENABLED=239]="SUP_IOS_LOCK_SCREEN_WIDGET_ENABLED",ny[ny.SNAP_PRIVACY=240]="SNAP_PRIVACY",ny[ny.ADS_INTERFACES_IS_NEW_ORGANIZATION=241]="ADS_INTERFACES_IS_NEW_ORGANIZATION",ny[ny.SERVER_ONLY=242]="SERVER_ONLY",ny[ny.GHE_ORGANIZATION=243]="GHE_ORGANIZATION",ny[ny.GHE_REPOSITORY=244]="GHE_REPOSITORY",ny[ny.GHE_USER_EMAIL=245]="GHE_USER_EMAIL",ny[ny.BUILD_DEFINITION_ID=246]="BUILD_DEFINITION_ID",ny[ny.BUILD_DEFINITION_NAME=247]="BUILD_DEFINITION_NAME",ny[ny.LCA_PRINCIPAL=248]="LCA_PRINCIPAL",ny[ny.MEDIA_PERFORMANCE_CLASS=249]="MEDIA_PERFORMANCE_CLASS",ny[ny.COMMUNITY_COUNT=250]="COMMUNITY_COUNT",ny[ny.RECIPIENTS_SUPPORT_FMP4=251]="RECIPIENTS_SUPPORT_FMP4",ny[ny.SCREEN_ASPECT_RATIO=252]="SCREEN_ASPECT_RATIO",ny[ny.USER_GROUP=253]="USER_GROUP",ny[ny.USER_HAS_DENIED_CAMERA_PERM=254]="USER_HAS_DENIED_CAMERA_PERM",ny[ny.CAMEOS_ENGAGEMENT_LEVEL=255]="CAMEOS_ENGAGEMENT_LEVEL",ny[ny.HAS_CAMEOS=256]="HAS_CAMEOS",ny[ny.IS_ACTIVE_LENS_VIDEO_CHAT_USER=257]="IS_ACTIVE_LENS_VIDEO_CHAT_USER",ny[ny.NUM_SPOTLIGHT_POSTS_L7=258]="NUM_SPOTLIGHT_POSTS_L7",ny[ny.NUM_MAP_POSTS_L7=259]="NUM_MAP_POSTS_L7",ny[ny.HAS_CREATED_PUBLIC_PROFILE=260]="HAS_CREATED_PUBLIC_PROFILE",ny[ny.HAS_PUBLIC_PROFILE_ACCESS_VIA_ROLE=261]="HAS_PUBLIC_PROFILE_ACCESS_VIA_ROLE",ny[ny.DAYS_SINCE_LAST_CAMERA_PERM_DENY=262]="DAYS_SINCE_LAST_CAMERA_PERM_DENY",ny[ny.DAYS_SINCE_AD_ORG_JOIN=263]="DAYS_SINCE_AD_ORG_JOIN",ny[ny.DAYS_SINCE_FIRST_AD_CREATE=264]="DAYS_SINCE_FIRST_AD_CREATE",ny[ny.ORGANIZATION_COUNTRY=265]="ORGANIZATION_COUNTRY",ny[ny.DAYS_SINCE_FIRST_DWEB_VISIT=266]="DAYS_SINCE_FIRST_DWEB_VISIT",ny[ny.DAYS_SINCE_LAST_DWEB_VISIT=267]="DAYS_SINCE_LAST_DWEB_VISIT",ny[ny.WEEKS_SINCE_USING_DWEB=268]="WEEKS_SINCE_USING_DWEB",ny[ny.HAS_LENS=269]="HAS_LENS",ny[ny.BILLBOARD_SERVER_IMPRESSION_COUNT=270]="BILLBOARD_SERVER_IMPRESSION_COUNT",ny[ny.BILLBOARD_SERVER_CLICK_COUNT=271]="BILLBOARD_SERVER_CLICK_COUNT",ny[ny.BILLBOARD_SERVER_DISMISS_COUNT=272]="BILLBOARD_SERVER_DISMISS_COUNT",ny[ny.BILLBOARD_SERVER_INTERACTION_COUNT=273]="BILLBOARD_SERVER_INTERACTION_COUNT",ny[ny.BILLBOARD_SERVER_FIRST_IMPRESSION_TIME_SECS_TO_NOW=274]="BILLBOARD_SERVER_FIRST_IMPRESSION_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_LAST_IMPRESSION_TIME_SECS_TO_NOW=275]="BILLBOARD_SERVER_LAST_IMPRESSION_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_FIRST_CLICK_TIME_SECS_TO_NOW=276]="BILLBOARD_SERVER_FIRST_CLICK_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_LAST_CLICK_TIME_SECS_TO_NOW=277]="BILLBOARD_SERVER_LAST_CLICK_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_FIRST_DISMISS_TIME_SECS_TO_NOW=278]="BILLBOARD_SERVER_FIRST_DISMISS_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_LAST_DISMISS_TIME_SECS_TO_NOW=279]="BILLBOARD_SERVER_LAST_DISMISS_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_FIRST_INTERACTION_TIME_SECS_TO_NOW=280]="BILLBOARD_SERVER_FIRST_INTERACTION_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_LAST_INTERACTION_TIME_SECS_TO_NOW=281]="BILLBOARD_SERVER_LAST_INTERACTION_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_SERVER_CONTINUOUS_DISMISS_COUNT=282]="BILLBOARD_SERVER_CONTINUOUS_DISMISS_COUNT",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_FIRST_CLICK_TIME_SECS_TO_NOW=283]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_CLICK_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_LAST_CLICK_TIME_SECS_TO_NOW=284]="BILLBOARD_CAMPAIGN_LOCAL_LAST_CLICK_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_FIRST_DISMISS_TIME_SECS_TO_NOW=285]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_DISMISS_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_LAST_DISM
2ISS_TIME_SECS_TO_NOW=286]="BILLBOARD_CAMPAIGN_LOCAL_LAST_DISMISS_TIME_SECS_TO_NOW",ny[ny.BILLBOARD_CAMPAIGN_LOCAL_FIRST_INTERACTION_TIME_SECS_TO_NOW=287]="BILLBOARD_CAMPAIGN_LOCAL_FIRST_INTERACTION_TIME_SECS_TO_NOW",ny[ny.DAYS_SINCE_FIRST_AD_SPEND=288]="DAYS_SINCE_FIRST_AD_SPEND",ny[ny.DAYS_SINCE_LAST_AD_SPEND=289]="DAYS_SINCE_LAST_AD_SPEND",ny[ny.SPOTLIGHT_2_PLUS_STORY_SESSION_7D_STATUS_DETAILED=290]="SPOTLIGHT_2_PLUS_STORY_SESSION_7D_STATUS_DETAILED",ny[ny.SPOTLIGHT_5_PLUS_STORY_SESSION_7D_STATUS_DETAILED=291]="SPOTLIGHT_5_PLUS_STORY_SESSION_7D_STATUS_DETAILED",ny[ny.SPOTLIGHT_STORY_VIEW_7D_STATUS_DETAILED=292]="SPOTLIGHT_STORY_VIEW_7D_STATUS_DETAILED",ny[ny.LAST_USER_ACCEPTED_TOS=293]="LAST_USER_ACCEPTED_TOS",ny[ny.UPDATED_DEVICE_CLUSTER=294]="UPDATED_DEVICE_CLUSTER",ny[ny.CREATOR_TIER=295]="CREATOR_TIER",ny[ny.AV1_SW_DECODER=296]="AV1_SW_DECODER",ny[ny.AV1_HW_DECODER=297]="AV1_HW_DECODER",ny[ny.HAS_EXPLICIT_PUBLIC_PROFILE=298]="HAS_EXPLICIT_PUBLIC_PROFILE",ny[ny.LARGER_TEXT_DISPLAY_OPTION_ENABLED=299]="LARGER_TEXT_DISPLAY_OPTION_ENABLED",ny[ny.IS_PUBLIC_POSTING_PREFERRED_USER=300]="IS_PUBLIC_POSTING_PREFERRED_USER",ny[ny.RUID=301]="RUID",ny[ny.MUTABLE_USERNAME=302]="MUTABLE_USERNAME",ny[ny.BUDGET_GROUP_ID=303]="BUDGET_GROUP_ID",ny[ny.AB_POPULATION_RANGE_HASH_FUNC=304]="AB_POPULATION_RANGE_HASH_FUNC",ny[ny.AB_TREATMENT_RANGE_HASH_FUNC=305]="AB_TREATMENT_RANGE_HASH_FUNC",ny[ny.REGISTRATION_IP_REGION=306]="REGISTRATION_IP_REGION",ny[ny.RUID_TYPE=307]="RUID_TYPE",ny[ny.PLUS_INTERNAL_ONLY=308]="PLUS_INTERNAL_ONLY",ny[ny.COF_ROLLOUT_RANGE_HASH_FUNC=309]="COF_ROLLOUT_RANGE_HASH_FUNC",ny[ny.SUP_HAS_AI_SELFIE=341]="SUP_HAS_AI_SELFIE",ny[ny.SUP_HAS_DREAMS=342]="SUP_HAS_DREAMS",ny[ny.DAYS_SINCE_LAST_ACTIVITY=343]="DAYS_SINCE_LAST_ACTIVITY",ny[ny.CONTACT_PERM_OS_GRANTED=344]="CONTACT_PERM_OS_GRANTED",ny[ny.CONTACT_PERM_USER_GRANTED=345]="CONTACT_PERM_USER_GRANTED",ny[ny.LENS_CLUSTER_GPU_V2=346]="LENS_CLUSTER_GPU_V2",ny[ny.CAN_ACCESS_ADS_TAB=347]="CAN_ACCESS_ADS_TAB",ny[ny.GOOGLE_CDN_POP=348]="GOOGLE_CDN_POP",ny[ny.NUM_STRONG_RELATIONSHIPS_V3=349]="NUM_STRONG_RELATIONSHIPS_V3",ny[ny.NUM_CLOSE_PLUS_RELATIONSHIPS_V3=350]="NUM_CLOSE_PLUS_RELATIONSHIPS_V3",ny[ny.NUM_ACQUAINTANCE_PLUS_RELATIONSHIPS_V3=351]="NUM_ACQUAINTANCE_PLUS_RELATIONSHIPS_V3",ny[ny.DREAMS_ENGAGEMENT_STATUS=352]="DREAMS_ENGAGEMENT_STATUS",ny[ny.IS_LOW_LIGHT=353]="IS_LOW_LIGHT",ny[ny.GALLERY_HAS_2023_YEAR_END_STORY=354]="GALLERY_HAS_2023_YEAR_END_STORY",ny[ny.CHUNK_UPLOAD_PREFERENCE=355]="CHUNK_UPLOAD_PREFERENCE",ny[ny.ADMIN_USE_ONLY_IN_AB_TRAFFIC_SPLIT=356]="ADMIN_USE_ONLY_IN_AB_TRAFFIC_SPLIT",ny[ny.IS_IPHONE=357]="IS_IPHONE",ny[ny.IS_S11_COUNTRY=358]="IS_S11_COUNTRY",ny[ny.IS_S11_L90_COUNTRY=359]="IS_S11_L90_COUNTRY",ny[ny.NUM_ACTIVE_FRIENDS_L7=360]="NUM_ACTIVE_FRIENDS_L7",ny[ny.NUM_BIDIRECTIONAL_COMMUNICATION_FRIENDS_L7=361]="NUM_BIDIRECTIONAL_COMMUNICATION_FRIENDS_L7",ny[ny.FULLY_ROLLED_OUT_STUDIES_OPTIMIZATION_ENABLED=362]="FULLY_ROLLED_OUT_STUDIES_OPTIMIZATION_ENABLED",ny[ny.HAS_USER_ONBOARDED=367]="HAS_USER_ONBOARDED",ny[ny.ADS_STANDARD_AB_HASH_FUNC=368]="ADS_STANDARD_AB_HASH_FUNC",ny[ny.IS_TOP_STORY_POSTER=369]="IS_TOP_STORY_POSTER",ny[ny.COMMUNITY_COUNT_SERVER=370]="COMMUNITY_COUNT_SERVER",ny[ny.REPORT_VOLUME_LAST_14_DAYS=371]="REPORT_VOLUME_LAST_14_DAYS",ny[ny.IS_CONCURRENT_CAMERA_SUPPORTED=372]="IS_CONCURRENT_CAMERA_SUPPORTED",ny[ny.CONTACT_AUTHORIZATION_STATUS=373]="CONTACT_AUTHORIZATION_STATUS",ny[ny.DISCOVER_FEED_TYPE=374]="DISCOVER_FEED_TYPE",ny[ny.JOINED_VIA_USER_INVITE=377]="JOINED_VIA_USER_INVITE",ny[ny.STICKY_REGION=378]="STICKY_REGION",ny[ny.BIPA_REGION=379]="BIPA_REGION",ny[ny.GRADUAL_ROLLOUT_HASH_FUNC=380]="GRADUAL_ROLLOUT_HASH_FUNC",ny[ny.IS_COF_EDGE_CLIENT=381]="IS_COF_EDGE_CLIENT",ny[ny.COF_EDGE_CLIENT_VERSION=382]="COF_EDGE_CLIENT_VERSION",ny[ny.IS_DORMANT=383]="IS_DORMANT",ny[ny.HAS_FORMER_PHONE_NUMBER=384]="HAS_FORMER_PHONE_NUMBER",ny[ny.OS_BUILD_VERSION=385]="OS_BUILD_VERSION",ny[ny.SNAP_PROMOTE_DAYS_SINCE_FIRST_AD_CREATE=386]="SNAP_PROMOTE_DAYS_SINCE_FIRST_AD_CREATE",ny[ny.SNAP_PROMOTE_DAYS_SINCE_LAST_AD_CREATE=387]="SNAP_PROMOTE_DAYS_SINCE_LAST_AD_CREATE",ny[ny.SNAP_PROMOTE_DAYS_SINCE_FIRST_SPEND=388]="SNAP_PROMOTE_DAYS_SINCE_FIRST_SPEND",ny[ny.SNAP_PROMOTE_DAYS_SINCE_LAST_SPEND=389]="SNAP_PROMOTE_DAYS_SINCE_LAST_SPEND",ny[ny.SNAP_PROMOTE_TOTAL_SPEND_USD=390]="SNAP_PROMOTE_TOTAL_SPEND_USD",ny[ny.SNAP_PROMOTE_AVG_DAILY_SPEND_USD=391]="SNAP_PROMOTE_AVG_DAILY_SPEND_USD",ny[ny.SNAP_PROMOTE_LAST_OBJECTIVE=392]="SNAP_PROMOTE_LAST_OBJECTIVE",ny[ny.SNAP_PROMOTE_BUDGET_REMAINING=393]="SNAP_PROMOTE_BUDGET_REMAINING",ny[ny.IS_MONETIZATION_ELIGIBLE=394]="IS_MONETIZATION_ELIGIBLE",ny[ny.IS_OPTED_IN_DATA_SHARING=395]="IS_OPTED_IN_DATA_SHARING",ny[ny.ADS_BUDGET_AB_MACROSTATE_HASH_FUNC=396]="ADS_BUDGET_AB_MACROSTATE_HASH_FUNC",ny[ny.AB_TREATMENT=397]="AB_TREATMENT",ny[ny.DREAMS_IN_SNAPFEED_VIEW_ACTIVE_DAYS_L7=398]="DREAMS_IN_SNAPFEED_VIEW_ACTIVE_DAYS_L7",ny[ny.SPOTLIGHT_USER_ACTIVITY_LEVEL=399]="SPOTLIGHT_USER_ACTIVITY_LEVEL",ny[ny.NON_FRIEND_STORY_USER_ACTIVITY_LEVEL=400]="NON_FRIEND_STORY_USER_ACTIVITY_LEVEL",ny[ny.NON_FRIEND_CONTENT_USER_ACTIVITY_LEVEL=401]="NON_FRIEND_CONTENT_USER_ACTIVITY_LEVEL",ny[ny.SNAP_PROMOTE_UNVERIFIED_ORG=402]="SNAP_PROMOTE_UNVERIFIED_ORG",ny[ny.MEMORIES_RECAP_COLLAGE_GENERATION_COMPLETION_RATE=403]="MEMORIES_RECAP_COLLAGE_GENERATION_COMPLETION_RATE",ny[ny.SERVICE_ENVIRONMENT=404]="SERVICE_ENVIRONMENT",ny[ny.IS_ACTIVE_LENS_USER=405]="IS_ACTIVE_LENS_USER",ny[ny.DEVICE_MANUFACTURER=406]="DEVICE_MANUFACTURER",ny[ny.FOLLOWER_COUNT=407]="FOLLOWER_COUNT",ny[ny.FOLLOWER_AND_FRIEND_COUNT=408]="FOLLOWER_AND_FRIEND_COUNT",ny[ny.IS_IN_SIMPLE_SNAPCHAT_BGAB_CONTROL_EXPOSED_USERS_20250121=409]="IS_IN_SIMPLE_SNAPCHAT_BGAB_CONTROL_EXPOSED_USERS_20250121",ny[ny.IS_IN_SIMPLE_SNAPCHAT_BGAB_TREATMENT_EXPOSED_USERS_20250121=410]="IS_IN_SIMPLE_SNAPCHAT_BGAB_TREATMENT_EXPOSED_USERS_20250121",ny[ny.FAMILY_CENTER_ROLE=411]="FAMILY_CENTER_ROLE",ny[ny.NETWORK_USER_CLASSIFICATION_WAU_20241107_20241113=412]="NETWORK_USER_CLASSIFICATION_WAU_20241107_20241113",ny[ny.HAS_AP_ORG_IP_ATTR_VIA_PROFILE_LINK=413]="HAS_AP_ORG_IP_ATTR_VIA_PROFILE_LINK",ny[ny.SNAP_PRO_STATUS_FOR_ROLE=414]="SNAP_PRO_STATUS_FOR_ROLE",ny[ny.HAS_LINKED_SATURN=415]="HAS_LINKED_SATURN",ny[ny.ORGANIZATION_SIZE=416]="ORGANIZATION_SIZE",ny[ny.ORGANIZATION_CREATION_DATE=417]="ORGANIZATION_CREATION_DATE",ny[ny.WITH_TIMED_ELEMENT=418]="WITH_TIMED_ELEMENT",ny[ny.FRIEND_STORY_VIEW_L7=419]="FRIEND_STORY_VIEW_L7",ny[ny.NON_FRIEND_STORY_VIEW_L7=420]="NON_FRIEND_STORY_VIEW_L7",ny[ny.SPOTLIGHT_STORY_VIEW_L7=421]="SPOTLIGHT_STORY_VIEW_L7",ny[ny.CONTENT_STORY_VIEW_L7=422]="CONTENT_STORY_VIEW_L7",ny[ny.CONTENT_CONSUMPTION_CLUSTER_AGG=423]="CONTENT_CONSUMPTION_CLUSTER_AGG",ny[ny.HAS_PPLX_INTERACTION=424]="HAS_PPLX_INTERACTION",ny[ny.PPLX_1_PLUS_INTERACTION_7D_STATUS=425]="PPLX_1_PLUS_INTERACTION_7D_STATUS",ny[ny.PPLX_1_PLUS_INTERACTION_30D_STATUS=426]="PPLX_1_PLUS_INTERACTION_30D_STATUS",ny[ny.PPLX_5_PLUS_INTERACTION_7D_STATUS=427]="PPLX_5_PLUS_INTERACTION_7D_STATUS",ny[ny.PPLX_5_PLUS_INTERACTION_30D_STATUS=428]="PPLX_5_PLUS_INTERACTION_30D_STATUS",ny[ny.PPLX_25_PLUS_INTERACTION_7D_STATUS=429]="PPLX_25_PLUS_INTERACTION_7D_STATUS",ny[ny.PPLX_25_PLUS_INTERACTION_30D_STATUS=430]="PPLX_25_PLUS_INTERACTION_30D_STATUS",ny[ny.DISCOVER_FEED_FOR_YOU_ENGAGEMENT_LEVEL=431]="DISCOVER_FEED_FOR_YOU_ENGAGEMENT_LEVEL",ny[ny.MIXED_FEED_SPOTLIGHT_ENGAGEMENT_LEVEL=432]="MIXED_FEED_SPOTLIGHT_ENGAGEMENT_LEVEL",ny[ny.NOTIFICATION_ALERTS_LOCK_SCREEN_ENABLED=433]="NOTIFICATION_ALERTS_LOCK_SCREEN_ENABLED",ny[ny.NOTIFICATION_ALERTS_NOTIFICATION_CENTER_ENABLED=434]="NOTIFICATION_ALERTS_NOTIFICATION_CENTER_ENABLED",ny[ny.NOTIFICATION_ALERTS_BANNER_ENABLED=435]="NOTIFICATION_ALERTS_BANNER_ENABLED",ny[ny.FOLLOWS_CREATORTEST_STMS=436]="FOLLOWS_CREATORTEST_STMS",ny[ny.FOLLOWS_BBYBERNER=437]="FOLLOWS_BBYBERNER",ny[ny.FOLLOWS_GIGICHRISTIINE=438]="FOLLOWS_GIGICHRISTIINE",ny[ny.FOLLOWS_SAMRUSSO2=439]="FOLLOWS_SAMRUSSO2",ny[ny.FOLLOWS_SKAIJACKK=440]="FOLLOWS_SKAIJACKK",ny[ny.FOLLOWS_IMMACKMAINE=441]="FOLLOWS_IMMACKMAINE",ny[ny.FOLLOWS_ALYSSAMCKAYY=442]="FOLLOWS_ALYSSAMCKAYY",ny[ny.FOLLOWS_FINDJEREMIAH=443]="FOLLOWS_FINDJEREMIAH",ny[ny.FOLLOWS_ITSKCHEYENNE=444]="FOLLOWS_ITSKCHEYENNE",ny[ny.FOLLOWS_CUTIECARYN=445]="FOLLOWS_CUTIECARYN",ny[ny.FOLLOWS_JUGGLINJOSH=446]="FOLLOWS_JUGGLINJOSH",ny[ny.FOLLOWS_CATHERINEPAIZ=447]="FOLLOWS_CATHERINEPAIZ",ny[ny.FOLLOWS_HARRYJOWSEY=448]="FOLLOWS_HARRYJOWSEY",ny[ny.FOLLOWS_KAYLAMALLECC=449]="FOLLOWS_KAYLAMALLECC",
2ny[ny.INFERRED_AGE_BUCKET_GNN_V1=450]="INFERRED_AGE_BUCKET_GNN_V1",ny[ny.SERVICE_NAME=451]="SERVICE_NAME",ny[ny.FOLLOWS_DAVIDDOBRIK=452]="FOLLOWS_DAVIDDOBRIK",ny[ny.GROWTH_COHORT=453]="GROWTH_COHORT",ny[ny.APP_L30=454]="APP_L30",ny[ny.DAYS_SINCE_RETURN=455]="DAYS_SINCE_RETURN",ny[ny.PASSKEY_SET=456]="PASSKEY_SET",ny[ny.MARKET_CLUSTER_FINE=457]="MARKET_CLUSTER_FINE",ny[ny.MARKET_CLUSTER_MEDIUM=458]="MARKET_CLUSTER_MEDIUM",ny[ny.MARKET_CLUSTER_COARSE=459]="MARKET_CLUSTER_COARSE",ny[ny.IS_MACROSTATE_USER=460]="IS_MACROSTATE_USER",ny[ny.UNRECOGNIZED=-1]="UNRECOGNIZED",(nh=eb||(eb={}))[nh.UNKNOWN_SIGNAL_TO_HASH=0]="UNKNOWN_SIGNAL_TO_HASH",nh[nh.HASH_SEED_AND_USER_ID=1]="HASH_SEED_AND_USER_ID",nh[nh.HASH_USER_ID_AND_NAMESPACE=2]="HASH_USER_ID_AND_NAMESPACE",nh[nh.UNRECOGNIZED=-1]="UNRECOGNIZED";function Tj(){return{configBitmapIndex:0,configResultBitmapIndex:0,hasServerPropertiesOnly:!1,globalPriority:0,sequenceIds:[],studySegmentOrdinal:0,experimentGuid:"0",isAbStudyStatusCompleted:!1,gradualRolloutId:"",gradualRolloutIsControl:!1,gradualRolloutIsDeleted:!1,isUserAllowListing:!1,abStudyPostAnalysisTs:"0",multiExposureGroupId:0,isPassThrough:!1,subPriority:0,additionalStudyContexts:[]}}let TX={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.configBitmapIndex&&t.uint32(8).int32(e.configBitmapIndex),0!==e.configResultBitmapIndex&&t.uint32(16).int32(e.configResultBitmapIndex),!1!==e.hasServerPropertiesOnly&&t.uint32(24).bool(e.hasServerPropertiesOnly),0!==e.globalPriority&&t.uint32(32).int32(e.globalPriority),e.sequenceIds))TJ.encode(i,t.uint32(42).fork()).ldelim();for(let i of(0!==e.studySegmentOrdinal&&t.uint32(48).int32(e.studySegmentOrdinal),"0"!==e.experimentGuid&&t.uint32(56).uint64(e.experimentGuid),!1!==e.isAbStudyStatusCompleted&&t.uint32(64).bool(e.isAbStudyStatusCompleted),""!==e.gradualRolloutId&&t.uint32(74).string(e.gradualRolloutId),!1!==e.gradualRolloutIsControl&&t.uint32(80).bool(e.gradualRolloutIsControl),!1!==e.gradualRolloutIsDeleted&&t.uint32(88).bool(e.gradualRolloutIsDeleted),!1!==e.isUserAllowListing&&t.uint32(96).bool(e.isUserAllowListing),"0"!==e.abStudyPostAnalysisTs&&t.uint32(104).uint64(e.abStudyPostAnalysisTs),0!==e.multiExposureGroupId&&t.uint32(112).int32(e.multiExposureGroupId),!1!==e.isPassThrough&&t.uint32(120).bool(e.isPassThrough),0!==e.subPriority&&t.uint32(128).int32(e.subPriority),e.additionalStudyContexts))T2.encode(i,t.uint32(138).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Tj();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.configBitmapIndex=i.int32();continue;case 2:if(16!==e)break;a.configResultBitmapIndex=i.int32();continue;case 3:if(24!==e)break;a.hasServerPropertiesOnly=i.bool();continue;case 4:if(32!==e)break;a.globalPriority=i.int32();continue;case 5:if(42!==e)break;a.sequenceIds.push(TJ.decode(i,i.uint32()));continue;case 6:if(48!==e)break;a.studySegmentOrdinal=i.int32();continue;case 7:if(56!==e)break;a.experimentGuid=T6(i.uint64());continue;case 8:if(64!==e)break;a.isAbStudyStatusCompleted=i.bool();continue;case 9:if(74!==e)break;a.gradualRolloutId=i.string();continue;case 10:if(80!==e)break;a.gradualRolloutIsControl=i.bool();continue;case 11:if(88!==e)break;a.gradualRolloutIsDeleted=i.bool();continue;case 12:if(96!==e)break;a.isUserAllowListing=i.bool();continue;case 13:if(104!==e)break;a.abStudyPostAnalysisTs=T6(i.uint64());continue;case 14:if(112!==e)break;a.multiExposureGroupId=i.int32();continue;case 15:if(120!==e)break;a.isPassThrough=i.bool();continue;case 16:if(128!==e)break;a.subPriority=i.int32();continue;case 17:if(138!==e)break;a.additionalStudyContexts.push(T2.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TX.fromPartial(e??{}),fromPartial(e){let t=Tj();return t.configBitmapIndex=e.configBitmapIndex??0,t.configResultBitmapIndex=e.configResultBitmapIndex??0,t.hasServerPropertiesOnly=e.hasServerPropertiesOnly??!1,t.globalPriority=e.globalPriority??0,t.sequenceIds=e.sequenceIds?.map(e=>TJ.fromPartial(e))||[],t.studySegmentOrdinal=e.studySegmentOrdinal??0,t.experimentGuid=e.experimentGuid??"0",t.isAbStudyStatusCompleted=e.isAbStudyStatusCompleted??!1,t.gradualRolloutId=e.gradualRolloutId??"",t.gradualRolloutIsControl
2=e.gradualRolloutIsControl??!1,t.gradualRolloutIsDeleted=e.gradualRolloutIsDeleted??!1,t.isUserAllowListing=e.isUserAllowListing??!1,t.abStudyPostAnalysisTs=e.abStudyPostAnalysisTs??"0",t.multiExposureGroupId=e.multiExposureGroupId??0,t.isPassThrough=e.isPassThrough??!1,t.subPriority=e.subPriority??0,t.additionalStudyContexts=e.additionalStudyContexts?.map(e=>T2.fromPartial(e))||[],t}};function TQ(){return{targetingExpression:void 0,sequenceId:0}}let TJ={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.targetingExpression&&T1.encode(e.targetingExpression,t.uint32(10).fork()).ldelim(),0!==e.sequenceId&&t.uint32(16).int32(e.sequenceId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=TQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.targetingExpression=T1.decode(i,i.uint32());continue;case 2:if(16!==e)break;a.sequenceId=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>TJ.fromPartial(e??{}),fromPartial(e){let t=TQ();return t.targetingExpression=void 0!==e.targetingExpression&&null!==e.targetingExpression?T1.fromPartial(e.targetingExpression):void 0,t.sequenceId=e.sequenceId??0,t}};function T0(){return{studyName:"",experimentId:0,experimentGuid:"0"}}let T2={encode:(e,t=rA.default.Writer.create())=>(""!==e.studyName&&t.uint32(10).string(e.studyName),0!==e.experimentId&&t.uint32(16).int32(e.experimentId),"0"!==e.experimentGuid&&t.uint32(24).uint64(e.experimentGuid),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=T0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.studyName=i.string();continue;case 2:if(16!==e)break;a.experimentId=i.int32();continue;case 3:if(24!==e)break;a.experimentGuid=T6(i.uint64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>T2.fromPartial(e??{}),fromPartial(e){let t=T0();return t.studyName=e.studyName??"",t.experimentId=e.experimentId??0,t.experimentGuid=e.experimentGuid??"0",t}};function T3(){return{operator:0,children:[],property:0,predicateOperator:0,value:void 0,propertyMetadata:void 0}}let T1={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.operator&&t.uint32(8).int32(e.operator),e.children))T1.encode(i,t.uint32(18).fork()).ldelim();return 0!==e.property&&t.uint32(24).int32(e.property),0!==e.predicateOperator&&t.uint32(32).int32(e.predicateOperator),void 0!==e.value&&Tq.encode(e.value,t.uint32(42).fork()).ldelim(),void 0!==e.propertyMetadata&&T8.encode(e.propertyMetadata,t.uint32(50).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=T3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.operator=i.int32();continue;case 2:if(18!==e)break;a.children.push(T1.decode(i,i.uint32()));continue;case 3:if(24!==e)break;a.property=i.int32();continue;case 4:if(32!==e)break;a.predicateOperator=i.int32();continue;case 5:if(42!==e)break;a.value=Tq.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.propertyMetadata=T8.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>T1.fromPartial(e??{}),fromPartial(e){let t=T3();return t.operator=e.operator??0,t.children=e.children?.map(e=>T1.fromPartial(e))||[],t.property=e.property??0,t.predicateOperator=e.predicateOperator??0,t.value=void 0!==e.value&&null!==e.value?Tq.fromPartial(e.value):void 0,t.propertyMetadata=void 0!==e.propertyMetadata&&null!==e.propertyMetadata?T8.fromPartial(e.propertyMetadata):void 0,t}};function T4(){return{itemId:0,signalToHash:0,abNamespaceForHashing:"",abSeedForHashing:"",functionSignalInput:void 0,cofRolloutSeedForHashing:"",adsNonBudgetSegmentLayer:0,adsBudgetAbMacrostateName:""}}let T8={encode(e,t=rA.default.Writer.create()){switch(0!==e.itemId&&t.uint32(8).int32(e.itemId),0!==e.signalToHash&&t.uint32(16).int32(e.signalToHash),""!==e.abNamespaceForHashing&&t.uint32(26).string(e.abNamespaceForHashing),""!==e.abSeedForHashing&&t.uint32(34).string(e.abSeedForHashing),e.functionSignalInput?.$case){case"ruidT
2ype":t.uint32(40).int32(e.functionSignalInput.ruidType);break;case"useShardId":t.uint32(72).bool(e.functionSignalInput.useShardId)}return""!==e.cofRolloutSeedForHashing&&t.uint32(50).string(e.cofRolloutSeedForHashing),0!==e.adsNonBudgetSegmentLayer&&t.uint32(56).int32(e.adsNonBudgetSegmentLayer),""!==e.adsBudgetAbMacrostateName&&t.uint32(66).string(e.adsBudgetAbMacrostateName),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=T4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.itemId=i.int32();continue;case 2:if(16!==e)break;a.signalToHash=i.int32();continue;case 3:if(26!==e)break;a.abNamespaceForHashing=i.string();continue;case 4:if(34!==e)break;a.abSeedForHashing=i.string();continue;case 5:if(40!==e)break;a.functionSignalInput={$case:"ruidType",ruidType:i.int32()};continue;case 9:if(72!==e)break;a.functionSignalInput={$case:"useShardId",useShardId:i.bool()};continue;case 6:if(50!==e)break;a.cofRolloutSeedForHashing=i.string();continue;case 7:if(56!==e)break;a.adsNonBudgetSegmentLayer=i.int32();continue;case 8:if(66!==e)break;a.adsBudgetAbMacrostateName=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>T8.fromPartial(e??{}),fromPartial(e){let t=T4();return t.itemId=e.itemId??0,t.signalToHash=e.signalToHash??0,t.abNamespaceForHashing=e.abNamespaceForHashing??"",t.abSeedForHashing=e.abSeedForHashing??"",e.functionSignalInput?.$case==="ruidType"&&e.functionSignalInput?.ruidType!==void 0&&e.functionSignalInput?.ruidType!==null&&(t.functionSignalInput={$case:"ruidType",ruidType:e.functionSignalInput.ruidType}),e.functionSignalInput?.$case==="useShardId"&&e.functionSignalInput?.useShardId!==void 0&&e.functionSignalInput?.useShardId!==null&&(t.functionSignalInput={$case:"useShardId",useShardId:e.functionSignalInput.useShardId}),t.cofRolloutSeedForHashing=e.cofRolloutSeedForHashing??"",t.adsNonBudgetSegmentLayer=e.adsNonBudgetSegmentLayer??0,t.adsBudgetAbMacrostateName=e.adsBudgetAbMacrostateName??"",t}};function T6(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());function T7(){return{eventBytes:new Uint8Array(0),clientEpochMs:"0",sequenceNumber:"0",voltronStitchId:"",clientNodepEpochMs:"0",networkConnectivityType:0,blizzardMirroringRoutingConfig:void 0}}let T5={encode:(e,t=rA.default.Writer.create())=>(0!==e.eventBytes.length&&t.uint32(10).bytes(e.eventBytes),"0"!==e.clientEpochMs&&t.uint32(16).int64(e.clientEpochMs),"0"!==e.sequenceNumber&&t.uint32(24).int64(e.sequenceNumber),""!==e.voltronStitchId&&t.uint32(34).string(e.voltronStitchId),"0"!==e.clientNodepEpochMs&&t.uint32(40).int64(e.clientNodepEpochMs),0!==e.networkConnectivityType&&t.uint32(56).int32(e.networkConnectivityType),void 0!==e.blizzardMirroringRoutingConfig&&me.encode(e.blizzardMirroringRoutingConfig,t.uint32(66).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=T7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.eventBytes=i.bytes();continue;case 2:if(16!==e)break;a.clientEpochMs=md(i.int64());continue;case 3:if(24!==e)break;a.sequenceNumber=md(i.int64());continue;case 4:if(34!==e)break;a.voltronStitchId=i.string();continue;case 5:if(40!==e)break;a.clientNodepEpochMs=md(i.int64());continue;case 7:if(56!==e)break;a.networkConnectivityType=i.int32();continue;case 8:if(66!==e)break;a.blizzardMirroringRoutingConfig=me.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>T5.fromPartial(e??{}),fromPartial(e){let t=T7();return t.eventBytes=e.eventBytes??new Uint8Array(0),t.clientEpochMs=e.clientEpochMs??"0",t.sequenceNumber=e.sequenceNumber??"0",t.voltronStitchId=e.voltronStitchId??"",t.clientNodepEpochMs=e.clientNodepEpochMs??"0",t.networkConnectivityType=e.networkConnectivityType??0,t.blizzardMirroringRoutingConfig=void 0!==e.blizzardMirroringRoutingConfig&&null!==e.blizzardMirroringRoutingConfig?me.fromPartial(e.blizzardMirroringRoutingConfig):void 0,t}};function T9(){return{kafkaTopicName:"",kafkaClusterUrl:""}}let me={encode:(e,t=rA.default.Writer.create())=>(""!==e.kafkaTopicName&&t.uint32(10).string(e.kafkaTopicName),""!==e.kafkaClusterUrl&&t.uint32(18).string(e.kafkaClusterUrl),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=T9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.kafkaTopicName=i.string();continue;case 2:if(18!==e)break;a.kafkaClusterUrl=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>me.fromPartial(e??{}),fromPartial(e){let t=T9();return t.kafkaTopicName=e.kafkaTopicName??"",t.kafkaClusterUrl=e.kafkaClusterUrl??"",t}};function mt(){return{clientHeaderBytes:new Uint8Array(0),serverHeaderBytes:new Uint8Array(0),sessionId:"",partitionKey:"",kafkaClusterNumber:0,ingestorHeaderBytes:new Uint8Array(0)}}let mi={encode:(e,t=rA.default.Writer.create())=>(0!==e.clientHeaderBytes.length&&t.uint32(10).bytes(e.clientHeaderBytes),0!==e.serverHeaderBytes.length&&t.uint32(18).bytes(e.serverHeaderBytes),""!==e.sessionId&&t.uint32(26).string(e.sessionId),""!==e.partitionKey&&t.uint32(34).string(e.partitionKey),0!==e.kafkaClusterNumber&&t.uint32(40).int32(e.kafkaClusterNumber),0!==e.ingestorHeaderBytes.length&&t.uint32(50).bytes(e.ingestorHeaderBytes),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mt();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.clientHeaderBytes=i.bytes();continue;case 2:if(18!==e)break;a.serverHeaderBytes=i.bytes();continue;case 3:if(26!==e)break;a.sessionId=i.string();continue;case 4:if(34!==e)break;a.partitionKey=i.string();continue;case 5:if(40!==e)break;a.kafkaClusterNumber=i.int32();continue;case 6:if(50!==e)break;a.ingestorHeaderBytes=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mi.fromPartial(e??{}),fromPartial(e){let t=mt();return t.clientHeaderBytes=e.clientHeaderBytes??new Uint8Array(0),t.serverHeaderBytes=e.serverHeaderBytes??new Uint8Array(0),t.sessionId=e.sessionId??"",t.partitionKey=e.partitionKey??"",t.kafkaClusterNumber=e.kafkaClusterNumber??0,t.ingestorHeaderBytes=e.ingestorHeaderBytes??new Uint8Array(0),t}};function mn(){return{item:void 0}}let ma={encode(e,t=rA.default.Writer.create()){switch(e.item?.$case){case"headerEnvelope":mi.encode(e.item.headerEnvelope,t.uint32(10).fork()).ldelim();break;case"eventEnvelope":T5.encode(e.item.eventEnvelope,t.uint32(18).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mn();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.item={$case:"headerEnvelope",headerEnvelope:mi.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.item={$case:"eventEnvelope",eventEnvelope:T5.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ma.fromPartial(e??{}),fromPartial(e){let t=mn();return e.item?.$case==="headerEnvelope"&&e.item?.headerEnvelope!==void 0&&e.item?.headerEnvelope!==null&&(t.item={$case:"headerEnvelope",headerEnvelope:mi.fromPartial(e.item.headerEnvelope)}),e.item?.$case==="eventEnvelope"&&e.item?.eventEnvelope!==void 0&&e.item?.eventEnvelope!==null&&(t.item={$case:"eventEnvelope",eventEnvelope:T5.fromPartial(e.item.eventEnvelope)}),t}}
2;function mo(){return{spectrumSequentialItems:[]}}let mr={encode(e,t=rA.default.Writer.create()){for(let i of e.spectrumSequentialItems)ma.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mo();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.spectrumSequentialItems.push(ma.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mr.fromPartial(e??{}),fromPartial(e){let t=mo();return t.spectrumSequentialItems=e.spectrumSequentialItems?.map(e=>ma.fromPartial(e))||[],t}};function md(e){return e.toString()}function ms(){return{browser:"",browserVersion:"",domain:"",referrer:""}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(nL=eg||(eg={}))[nL.OS_UNSET=0]="OS_UNSET",nL[nL.IOS=1]="IOS",nL[nL.OS_ANDROID=2]="OS_ANDROID",nL[nL.WEB=3]="WEB",nL[nL.OS_SNAPOS=4]="OS_SNAPOS",nL[nL.UNRECOGNIZED=-1]="UNRECOGNIZED",(nD=eN||(eN={}))[nD.APP_VARIANT_UNSET=0]="APP_VARIANT_UNSET",nD[nD.MUSHROOM=1]="MUSHROOM",nD[nD.HMS=2]="HMS",nD[nD.UNRECOGNIZED=-1]="UNRECOGNIZED",(nw=eR||(eR={}))[nw.STARTUP_TYPE_UNSET=0]="STARTUP_TYPE_UNSET",nw[nw.COLD=1]="COLD",nw[nw.WARM=2]="WARM",nw[nw.UNRECOGNIZED=-1]="UNRECOGNIZED",(nM=eP||(eP={}))[nM.REGION_UNSET=0]="REGION_UNSET",nM[nM.REGION_US_CENTRAL_1=1]="REGION_US_CENTRAL_1",nM[nM.REGION_EUROPE_WEST_1=2]="REGION_EUROPE_WEST_1",nM[nM.REGION_ASIA_SOUTHEAST_1=3]="REGION_ASIA_SOUTHEAST_1",nM[nM.UNRECOGNIZED=-1]="UNRECOGNIZED";let ml={encode:(e,t=rA.default.Writer.create())=>(""!==e.browser&&t.uint32(10).string(e.browser),""!==e.browserVersion&&t.uint32(18).string(e.browserVersion),""!==e.domain&&t.uint32(26).string(e.domain),""!==e.referrer&&t.uint32(34).string(e.referrer),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ms();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.browser=i.string();continue;case 2:if(18!==e)break;a.browserVersion=i.string();continue;case 3:if(26!==e)break;a.domain=i.string();continue;case 4:if(34!==e)break;a.referrer=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ml.fromPartial(e??{}),fromPartial(e){let t=ms();return t.browser=e.browser??"",t.browserVersion=e.browserVersion??"",t.domain=e.domain??"",t.referrer=e.referrer??"",t}};function mc(){return{sessionId:"",userGuid:"",appBuild:"",appVersion:"",osVersion:"",osType:0,clientId:"",locale:"",deviceModel:"",accountAgeDays:0,appStartupType:0,androidAppVariant:0,instalogDoubleLogged:!1,queueName:"",region:0,webMetadata:void 0}}let mu={encode:(e,t=rA.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),""!==e.userGuid&&t.uint32(18).string(e.userGuid),""!==e.appBuild&&t.uint32(26).string(e.appBuild),""!==e.appVersion&&t.uint32(34).string(e.appVersion),""!==e.osVersion&&t.uint32(42).string(e.osVersion),0!==e.osType&&t.uint32(48).int32(e.osType),""!==e.clientId&&t.uint32(58).string(e.clientId),""!==e.locale&&t.uint32(66).string(e.locale),""!==e.deviceModel&&t.uint32(74).string(e.deviceModel),0!==e.accountAgeDays&&t.uint32(80).int32(e.accountAgeDays),0!==e.appStartupType&&t.uint32(88).int32(e.appStartupType),0!==e.androidAppVariant&&t.uint32(96).int32(e.androidAppVariant),!1!==e.instalogDoubleLogged&&t.uint32(104).bool(e.instalogDoubleLogged),""!==e.queueName&&t.uint32(114).string(e.queueName),0!==e.region&&t.uint32(120).int32(e.region),void 0!==e.webMetadata&&ml.encode(e.webMetadata,t.uint32(130).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.sessionId=i.string();continue;case 2:if(18!==e)break;a.userGuid=i.string();continue;case 3:if(26!==e)break;a.appBuild=i.string();continue;case 4:if(34!==e)break;a.appVersion=i.string();continue;case 5:if(42!==e)break;a.osVersion=i.string();continue;case 6:if(48!==e)break;a.osType=i.int32();continue;case 7:if(58!==e)break;a.clientId=i.string();continue;case 8:if(66!==e)break;a.locale=i.string();continue;case 9:if(74!==e)break;a.deviceModel=i.string();continue;case 10:if(80!==e)break;a.accountAgeDays=i.int32();continue;case 11:if(88!==e)break;a.appStartupType=i.int32();continue;case 12:if(96!==e)break;a.androidAppVariant=i.int32();continue;case 13:if(104!==e)break;a.instalogDoubleLogged=i.bool();continue;case 14:if(114!==e)break;a.queueName=i.string();continue;case 15:if(120!==e)break;a.region=i.int32();continue;case 16:if(130!==e)break;a.webMetadata=ml.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mu.fromPartial(e??{}),fromPartial(e){let t=mc();return t.sessionId=e.sessionId??"",t.userGuid=e.userGuid??"",t.appBuild=e.appBuild??"",t.appVersion=e.appVersion??"",t.osVersion=e.osVersion??"",t.osType=e.osType??0,t.clientId=e.clientId??"",t.locale=e.locale??"",t.deviceModel=e.deviceModel??"",t.accountAgeDays=e.accountAgeDays??0,t.appStartupType=e.appStartupType??0,t.androidAppVariant=e.androidAppVariant??0,t.instalogDoubleLogged=e.instalogDoubleLogged??!1,t.queueName=e.queueName??"",t.region=e.region??0,t.webMetadata=void 0!==e.webMetadata&&null!==e.webMetadata?ml.fromPartial(e.webMetadata):void 0,t}};function mp(){return{maxSequenceIdOnInstance:""}}let mf={encode:(e,t=rA.default.Writer.create())=>(""!==e.maxSequenceIdOnInstance&&t.uint32(10).string(e.maxSequenceIdOnInstance),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.maxSequenceIdOnInstance=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mf.fromPartial(e??{}),fromPartial(e){let t=mp();return t.maxSequenceIdOnInstance=e.maxSequenceIdOnInstance??"",t}};function mT(){return{userGuid:"",osType:0,appBuild:"",appVersion:"",accountAgeDays:0,doubleLogged:!1}}let mm={encode:(e,t=rA.default.Writer.create())=>(""!==e.userGuid&&t.uint32(10).string(e.userGuid),0!==e.osType&&t.uint32(16).int32(e.osType),""!==e.appBuild&&t.uint32(26).string(e.appBuild),""!==e.appVersion&&t.uint32(34).string(e.appVersion),0!==e.accountAgeDays&&t.uint32(40).int32(e.accountAgeDays),!1!==e.doubleLogged&&t.uint32(48).bool(e.doubleLogged),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.userGuid=i.string();continue;case 2:if(16!==e)break;a.osType=i.int32();continue;case 3:if(26!==e)break;a.appBuild=i.string();continue;case 4:if(34!==e)break;a.appVersion=i.string();continue;case 5:if(40!==e)break;a.accountAgeDays=i.int32();continue;case 6:if(48!==e)break;a.doubleLogged=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mm.fromPartial(e??{}),fromPartial(e){let t=mT();return t.userGuid=e.userGuid??"",t.osType=e.osType??0,t.appBuild=e.appBuild??"",t.appVersion=e.appVersion??"",t.accountAgeDays=e.accountAgeDays??0,t.doubleLogged=e.doubleLogged??!1,t}};function mE(){return{header:void 0}}(nU=eO||(eO={}))[nU.AUTH_TYPE_NA_UNSET=0]="AUTH_TYPE_NA_UNSET",nU[nU.AUTH_TYPE_SNAPTOKEN=1]="AUTH_TYPE_SNAPTOKEN",nU[nU.AUTH_TYPE_NOAUTH=2]="AUTH_TYPE_NOAUTH",nU[nU.AUTH_TYPE_SNAP_OAUTH2=3]="AUTH_TYPE_SNAP_OAUTH2",nU[nU.UNRECOGNIZED=-1]="UNRECOGNIZED";let m_={encode(e,t=rA.default.Writer.create()){switch(e.header?.$case){case"instaloggerClientHeader":mm.encode(e.header.instaloggerClientHeader,t.uint32(10).fork()).ldelim();break;case"defaultClientHeader":mu.encode(e.header.defaultClientHeader,t.uint32(18).fork()).ldelim();break;case"blizzardClientHeader":r8.encode(e.header.blizzardClientHeader,t.uint32(26).fork()).ldelim();break;case"defaultMeshLoggerHeader":mf.encode(e.header.defaultMeshLoggerHeader,t.uint32(34).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.header={$case:"instaloggerClientHeader",instaloggerClientHeader:mm.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.header={$case:"defaultClientHeader",defaultClientHeader:mu.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.header={$case:"blizzardClientHeader",blizzardClientHeader:r8.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.header={$case:"defaultMeshLoggerHeader",defaultMeshLoggerHeader:mf.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>m_.fromPartial(e??{}),fromPartial(e){let t=mE();return e.header?.$case==="instaloggerClientHeader"&&e.header?.instaloggerClientHeader!==void 0&&e.header?.instaloggerClientHeader!==null&&(t.header={$case:"instaloggerClientHeader",instaloggerClientHeader:mm.fromPartial(e.header.instaloggerClientHeader)}),e.header?.$case==="defaultClientHeader"&&e.header?.defaultClientHeader!==void 0&&e.header?.defaultClientHeader!==null&&(t.header={$case:"defaultClientHeader",defaultClientHeader:mu.fromPartial(e.header.defaultClientHeader)}),e.header?.$case==="blizzardClientHeader"&&e.header?.blizzardClientHeader!==void 0&&e.header?.blizzardClientHeader!==null&&(t.header={$case:"blizzardClientHeader",blizzardClientHeader:r8.fromPartial(e.header.blizzardClientHeader)}),e.header?.$case==="defaultMeshLoggerHeader"&&e.header?.defaultMeshLoggerHeader!==void 0&&e.header?.defaultMeshLoggerHeader!==null&&(t.header={$case:"defaultMeshLoggerHeader",defaultMeshLoggerHeader:mf.fromPartial(e.header.defaultMeshLoggerHeader)}),t}}
2;function mS(){return{isAd:!1,version:"0",isIframe:!1,eventType:0,saveSource:0,formTypes:[],fields:[]}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(nV=eC||(eC={}))[nV.EVENT_TYPE_UNSET=0]="EVENT_TYPE_UNSET",nV[nV.DOM_CONTENT_LOAD=1]="DOM_CONTENT_LOAD",nV[nV.SCRIPT_LOAD=2]="SCRIPT_LOAD",nV[nV.FIELD_DETECT=3]="FIELD_DETECT",nV[nV.FIELD_FOCUS=4]="FIELD_FOCUS",nV[nV.FIELD_BLUR=5]="FIELD_BLUR",nV[nV.SUGGESTION_SHOW=6]="SUGGESTION_SHOW",nV[nV.SUGGESTION_ACCEPT=7]="SUGGESTION_ACCEPT",nV[nV.FIELD_INSERT=8]="FIELD_INSERT",nV[nV.FORM_SUBMIT=9]="FORM_SUBMIT",nV[nV.SAVE_PROMPT_NEW_SHOW=10]="SAVE_PROMPT_NEW_SHOW",nV[nV.SAVE_PROMPT_UPDATE_SHOW=11]="SAVE_PROMPT_UPDATE_SHOW",nV[nV.SAVE_PROMPT_ACCEPT=12]="SAVE_PROMPT_ACCEPT",nV[nV.CREDIT_CARD_SCAN_START=13]="CREDIT_CARD_SCAN_START",nV[nV.CREDIT_CARD_SCAN_SUCCEED=14]="CREDIT_CARD_SCAN_SUCCEED",nV[nV.CREDIT_CARD_SCAN_CANCEL=15]="CREDIT_CARD_SCAN_CANCEL",nV[nV.VIEW_DID_APPEAR=16]="VIEW_DID_APPEAR",nV[nV.VIEW_DID_DISMISS=17]="VIEW_DID_DISMISS",nV[nV.CREATE_NEW_RECORD=18]="CREATE_NEW_RECORD",nV[nV.UNRECOGNIZED=-1]="UNRECOGNIZED",(nB=ey||(ey={}))[nB.FORM_TYPE_UNSET=0]="FORM_TYPE_UNSET",nB[nB.CONTACT=1]="CONTACT",nB[nB.CREDIT_CARD=2]="CREDIT_CARD",nB[nB.UNRECOGNIZED=-1]="UNRECOGNIZED",(nF=eh||(eh={}))[nF.FIELD_TYPE_UNSET=0]="FIELD_TYPE_UNSET",nF[nF.EMAIL=1]="EMAIL",nF[nF.ADDRESS=2]="ADDRESS",nF[nF.NAME=3]="NAME",nF[nF.PHONE_NUMBER=4]="PHONE_NUMBER",nF[nF.CITY=5]="CITY",nF[nF.STATE=6]="STATE",nF[nF.POSTAL=7]="POSTAL",nF[nF.CARD_NUMBER=8]="CARD_NUMBER",nF[nF.NAME_ON_CARD=9]="NAME_ON_CARD",nF[nF.EXPIRATION_DATE=10]="EXPIRATION_DATE",nF[nF.CVV=11]="CVV",nF[nF.UNRECOGNIZED=-1]="UNRECOGNIZED",(nG=eL||(eL={}))[nG.SAVE_SOURCE_UNSET=0]="SAVE_SOURCE_UNSET",nG[nG.FORM_SUBMISSION=1]="FORM_SUBMISSION",nG[nG.BROWSER_SETTING=2]="BROWSER_SETTING",nG[nG.NATIVE_CHECKOUT=3]="NATIVE_CHECKOUT",nG[nG.UNRECOGNIZED=-1]="UNRECOGNIZED";let mI={encode(e,t=rA.default.Writer.create()){for(let i of(!1!==e.isAd&&t.uint32(8).bool(e.isAd),"0"!==e.version&&t.uint32(16).int64(e.version),!1!==e.isIframe&&t.uint32(24).bool(e.isIframe),0!==e.eventType&&t.uint32(32).int32(e.eventType),0!==e.saveSource&&t.uint32(40).int32(e.saveSource),t.uint32(50).fork(),e.formTypes))t.int32(i);for(let i of(t.ldelim(),t.uint32(58).fork(),e.fields))t.int32(i);return t.ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isAd=i.bool();continue;case 2:if(16!==e)break;a.version=i.int64().toString();continue;case 3:if(24!==e)break;a.isIframe=i.bool();continue;case 4:if(32!==e)break;a.eventType=i.int32();continue;case 5:if(40!==e)break;a.saveSource=i.int32();continue;case 6:if(48===e){a.formTypes.push(i.int32());continue}if(50===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.formTypes.push(i.int32());continue}break;case 7:if(56===e){a.fields.push(i.int32());continue}if(58===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.fields.push(i.int32());continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mI.fromPartial(e??{}),fromPartial(e){let t=mS();return t.isAd=e.isAd??!1,t.version=e.version??"0",t.isIframe=e.isIframe??!1,t.eventType=e.eventType??0,t.saveSource=e.saveSource??0,t.formTypes=e.formTypes?.map(e=>e)||[],t.fields=e.fields?.map(e=>e)||[],t}};function mv(){return{eventType:0,event:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(nW=eD||(eD={}))[nW.DEBUG_EVENT_TYPE_UNSET=0]="DEBUG_EVENT_TYPE_UNSET",nW[nW.SAMSUNG_5S_QL=1]="SAMSUNG_5S_QL",nW[nW.WEBVIEW_AUTOFILL=2]="WEBVIEW_AUTOFILL",nW[nW.UNRECOGNIZED=-1]="UNRECOGNIZED";let mA={encode:(e,t=rA.default.Writer.create())=>(0!==e.eventType&&t.uint32(8).int32(e.eventType),e.event?.$case==="webviewAutofillEvent"&&mI.encode(e.event.webviewAutofillEvent,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mv();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.eventType=i.int32();continue;case 2:if(18!==e)break;a.event={$case:"webviewAutofillEvent",webviewAutofillEvent:mI.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mA.fromPartial(e??{}),fromPartial(e){let t=mv();return t.eventType=e.eventType??0,e.event?.$case==="webviewAutofillEvent"&&e.event?.webviewAutofillEvent!==void 0&&e.event?.webviewAutofillEvent!==null&&(t.event={$case:"webviewAutofillEvent",webviewAutofillEvent:mI.fromPartial(e.event.webviewAutofillEvent)}),t}};function mk(){return{productId:"0",variantId:"",selectedVariantId:"",priceMicro:"0",quantity:"0",productUrl:"",pageSource:0,productTileIndex:"0",imageIndex:"0",salePriceMicro:"0",selectedProductName:""}}
2(nx=ew||(ew={}))[nx.UNSET=0]="UNSET",nx[nx.LANDING_PAGE=1]="LANDING_PAGE",nx[nx.SIMILAR_PAGE=2]="SIMILAR_PAGE",nx[nx.CART_PAGE=3]="CART_PAGE",nx[nx.COLLECTION_PAGE=4]="COLLECTION_PAGE",nx[nx.TOP_PRODUCT_PAGE=5]="TOP_PRODUCT_PAGE",nx[nx.GUESS_YOU_LIKE_PAGE=6]="GUESS_YOU_LIKE_PAGE",nx[nx.ADD_TO_CART_PAGE=7]="ADD_TO_CART_PAGE",nx[nx.SCB_CHECKOUT_PAGE=8]="SCB_CHECKOUT_PAGE",nx[nx.SHOP_PAGE=9]="SHOP_PAGE",nx[nx.SEARCH_PAGE=10]="SEARCH_PAGE",nx[nx.ORDER_SUMMARY_PAGE=11]="ORDER_SUMMARY_PAGE",nx[nx.PRODUCT_PAGE=12]="PRODUCT_PAGE",nx[nx.LANDING_SHOP_PAGE=13]="LANDING_SHOP_PAGE",nx[nx.FAVORITE_PAGE=14]="FAVORITE_PAGE",nx[nx.UNRECOGNIZED=-1]="UNRECOGNIZED",(nH=eM||(eM={}))[nH.UNSET=0]="UNSET",nH[nH.LOAD_PAGE=1]="LOAD_PAGE",nH[nH.LOAD_SIMILAR_PRODUCTS=2]="LOAD_SIMILAR_PRODUCTS",nH[nH.PAGE_OPEN=3]="PAGE_OPEN",nH[nH.PAGE_DISMISS=4]="PAGE_DISMISS",nH[nH.BROWSER_OPEN=5]="BROWSER_OPEN",nH[nH.LOAD_URL=6]="LOAD_URL",nH[nH.VIEW_FRONT_IMAGE=7]="VIEW_FRONT_IMAGE",nH[nH.VIEW_SIMILAR_PRODUCTS=8]="VIEW_SIMILAR_PRODUCTS",nH[nH.CLICK_VARIANT_SELECTION=9]="CLICK_VARIANT_SELECTION",nH[nH.CLICK_ADD_TO_CART=10]="CLICK_ADD_TO_CART",nH[nH.CLICK_OPEN_CART=11]="CLICK_OPEN_CART",nH[nH.CLICK_UPDATE_QUANTITY=12]="CLICK_UPDATE_QUANTITY",nH[nH.CLICK_CHECKOUT=13]="CLICK_CHECKOUT",nH[nH.CLICK_BUY_NOW=14]="CLICK_BUY_NOW",nH[nH.ENTER_BACKGROUND=15]="ENTER_BACKGROUND",nH[nH.FATAL_DATA_ERROR_DETECTED=16]="FATAL_DATA_ERROR_DETECTED",nH[nH.IMAGE_LOAD_FAILED=17]="IMAGE_LOAD_FAILED",nH[nH.NETWORK_LOADED=18]="NETWORK_LOADED",nH[nH.NETWORK_LOAD_FAILED=19]="NETWORK_LOAD_FAILED",nH[nH.SESSION_END=20]="SESSION_END",nH[nH.REMOVE_ITEM=21]="REMOVE_ITEM",nH[nH.CHECKOUT_STARTED=22]="CHECKOUT_STARTED",nH[nH.CHECKOUT_COMPLETED=23]="CHECKOUT_COMPLETED",nH[nH.CHECKOUT_FAILED=24]="CHECKOUT_FAILED",nH[nH.CHECKOUT_CONFIRMED=25]="CHECKOUT_CONFIRMED",nH[nH.CHECKOUT_DISMISSED=26]="CHECKOUT_DISMISSED",nH[nH.CLICK_SEARCH=27]="CLICK_SEARCH",nH[nH.CLICK_SHOP=28]="CLICK_SHOP",nH[nH.CLICK_SHARE=29]="CLICK_SHARE",nH[nH.CLICK_FAVORITE=30]="CLICK_FAVORITE",nH[nH.EXTERNAL_BROWSER_OPEN=31]="EXTERNAL_BROWSER_OPEN",nH[nH.PRIVACY_POLICY_OPEN=32]="PRIVACY_POLICY_OPEN",nH[nH.OPEN_ADDRESS_EDIT_PAGE=33]="OPEN_ADDRESS_EDIT_PAGE",nH[nH.ADD_NEW_SHIPPING_ADDRESS=34]="ADD_NEW_SHIPPING_ADDRESS",nH[nH.UPDATE_SHIPPING_ADDRESS=35]="UPDATE_SHIPPING_ADDRESS",nH[nH.SELECT_SHIPPING_ADDRESS=36]="SELECT_SHIPPING_ADDRESS",nH[nH.FALLBACK_TO_WEBVIEW=37]="FALLBACK_TO_WEBVIEW",nH[nH.COLLECTIONS_LOADED=38]="COLLECTIONS_LOADED",nH[nH.COLLECTION_LOADED=39]="COLLECTION_LOADED",nH[nH.UNRECOGNIZED=-1]="UNRECOGNIZED",(nY=eU||(eU={}))[nY.PAGE_LAUNCH_SOURCE_UNSET=0]="PAGE_LAUNCH_SOURCE_UNSET",nY[nY.SIMILAR_PRODUCTS=1]="SIMILAR_PRODUCTS",nY[nY.TOP_PRODUCTS=2]="TOP_PRODUCTS",nY[nY.STOREFRONT_COLLECTION=3]="STOREFRONT_COLLECTION",nY[nY.SEARCH=4]="SEARCH",nY[nY.CART_ITEMS=5]="CART_ITEMS",nY[nY.YOUR_PICKS=6]="YOUR_PICKS",nY[nY.FAVORITE=7]="FAVORITE",nY[nY.RECENT_VIEWED=8]="RECENT_VIEWED",nY[nY.BEST_SELLERS=9]="BEST_SELLERS",nY[nY.UNRECOGNIZED=-1]="UNRECOGNIZED",(nK=eV||(eV={}))[nK.CHECKOUT_UNSET=0]="CHECKOUT_UNSET",nK[nK.SNAPCHAT_BROWSER=1]="SNAPCHAT_BROWSER",nK[nK.EXTERNAL_BROWSER=2]="EXTERNAL_BROWSER",nK[nK.UNRECOGNIZED=-1]="UNRECOGNIZED",(n$=eB||(eB={}))[n$.CART_SOURCE_UNSET=0]="CART_SOURCE_UNSET",n$[n$.ADD_TO_CART=1]="ADD_TO_CART",n$[n$.CART_ICON=2]="CART_ICON",n$[n$.UNRECOGNIZED=-1]="UNRECOGNIZED",(nz=eF||(eF={}))[nz.ADDRESS_TYPE_UNSET=0]="ADDRESS_TYPE_UNSET",nz[nz.CURRENT_LOCATION=1]="CURRENT_LOCATION",nz[nz.MAPS_HOME=2]="MAPS_HOME",nz[nz.SAVED=3]="SAVED",nz[nz.UNRECOGNIZED=-1]="UNRECOGNIZED",(nq=eG||(eG={}))[nq.ADDRESS_FIELD_UNSET=0]="ADDRESS_FIELD_UNSET",nq[nq.FIRST_NAME=1]="FIRST_NAME",nq[nq.LAST_NAME=2]="LAST_NAME",nq[nq.ADDRESS=3]="ADDRESS",nq[nq.CITY=4]="CITY",nq[nq.STATE=5]="STATE",nq[nq.ZIP=6]="ZIP",nq[nq.PHONE=7]="PHONE",nq[nq.EMAIL=8]="EMAIL",nq[nq.UNRECOGNIZED=-1]="UNRECOGNIZED";let mb={encode:(e,t=rA.default.Writer.create())=>("0"!==e.productId&&t.uint32(8).int64(e.productId),""!==e.variantId&&t.uint32(18).string(e.variantId),""!==e.selectedVariantId&&t.uint32(26).string(e.selectedVariantId),"0"!==e.priceMicro&&t.uint32(32).int64(e.priceMicro),"0"!==e.quantity&&t.uint32(40).int64(e.quantity),""!==e.productUrl&&t.uint32(50).string(e.productUrl),0!==e.pageSource&&t.uint32(56).int32(e.pageSource),"0"!==e.productTileIndex&&t.uint32(64).int64(e.productTileIndex),"0"!==e.imageIndex&&t.uint32(72).int64(e.imageIndex),"0"!==e.salePriceMicro&&t.uint32(80).int64(e.salePriceMicro),""!==e.selectedProductName&&t.uint32(90).string(e.selectedProductName),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mk();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.productId=mU(i.int64());continue;case 2:if(18!==e)break;a.variantId=i.string();continue;case 3:if(26!==e)break;a.selectedVariantId=i.string();continue;case 4:if(32!==e)break;a.priceMicro=mU(i.int64());continue;case 5:if(40!==e)break;a.quantity=mU(i.int64());continue;case 6:if(50!==e)break;a.productUrl=i.string();continue;case 7:if(56!==e)break;a.pageSource=i.int32();continue;case 8:if(64!==e)break;a.productTileIndex=mU(i.int64());continue;case 9:if(72!==e)break;a.imageIndex=mU(i.int64());continue;case 10:if(80!==e)break;a.salePriceMicro=mU(i.int64());continue;case 11:if(90!==e)break;a.selectedProductName=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mb.fromPartial(e??{}),fromPartial(e){let t=mk();return t.productId=e.productId??"0",t.variantId=e.variantId??"",t.selectedVariantId=e.selectedVariantId??"",t.priceMicro=e.priceMicro??"0",t.quantity=e.quantity??"0",t.productUrl=e.productUrl??"",t.pageSource=e.pageSource??0,t.productTileIndex=e.productTileIndex??"0",t.imageIndex=e.imageIndex??"0",t.salePriceMicro=e.salePriceMicro??"0",t.selectedProductName=e.selectedProductName??"",t}};function mg(){return{eventType:0,eventTimestampMs:"0",totalPriceMicro:"0",priceCurrency:"",instantProducts:[],eventMetadata:new Uint8Array(0),checkoutType:0,userAgent:"",currentPage:0,cartSource:0,orderSummary:void 0,paymentMethod:void 0,checkoutError:void 0,addressType:0,pageLaunchSource:0,shop
2Domain:"",storefrontEnabled:!1,sharedType:"",url:"",error:void 0,addressFields:[],collectionCount:"0",collectionProductCount:"0"}}let mN={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.eventType&&t.uint32(8).int32(e.eventType),"0"!==e.eventTimestampMs&&t.uint32(16).int64(e.eventTimestampMs),"0"!==e.totalPriceMicro&&t.uint32(24).int64(e.totalPriceMicro),""!==e.priceCurrency&&t.uint32(34).string(e.priceCurrency),e.instantProducts))mb.encode(i,t.uint32(42).fork()).ldelim();for(let i of(0!==e.eventMetadata.length&&t.uint32(58).bytes(e.eventMetadata),0!==e.checkoutType&&t.uint32(64).int32(e.checkoutType),""!==e.userAgent&&t.uint32(74).string(e.userAgent),0!==e.currentPage&&t.uint32(80).int32(e.currentPage),0!==e.cartSource&&t.uint32(88).int32(e.cartSource),void 0!==e.orderSummary&&mD.encode(e.orderSummary,t.uint32(98).fork()).ldelim(),void 0!==e.paymentMethod&&mC.encode(e.paymentMethod,t.uint32(106).fork()).ldelim(),void 0!==e.checkoutError&&mM.encode(e.checkoutError,t.uint32(114).fork()).ldelim(),0!==e.addressType&&t.uint32(120).int32(e.addressType),0!==e.pageLaunchSource&&t.uint32(128).int32(e.pageLaunchSource),""!==e.shopDomain&&t.uint32(138).string(e.shopDomain),!1!==e.storefrontEnabled&&t.uint32(144).bool(e.storefrontEnabled),""!==e.sharedType&&t.uint32(154).string(e.sharedType),""!==e.url&&t.uint32(162).string(e.url),void 0!==e.error&&mM.encode(e.error,t.uint32(170).fork()).ldelim(),t.uint32(178).fork(),e.addressFields))t.int32(i);return t.ldelim(),"0"!==e.collectionCount&&t.uint32(184).int64(e.collectionCount),"0"!==e.collectionProductCount&&t.uint32(192).int64(e.collectionProductCount),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mg();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.eventType=i.int32();continue;case 2:if(16!==e)break;a.eventTimestampMs=mU(i.int64());continue;case 3:if(24!==e)break;a.totalPriceMicro=mU(i.int64());continue;case 4:if(34!==e)break;a.priceCurrency=i.string();continue;case 5:if(42!==e)break;a.instantProducts.push(mb.decode(i,i.uint32()));continue;case 7:if(58!==e)break;a.eventMetadata=i.bytes();continue;case 8:if(64!==e)break;a.checkoutType=i.int32();continue;case 9:if(74!==e)break;a.userAgent=i.string();continue;case 10:if(80!==e)break;a.currentPage=i.int32();continue;case 11:if(88!==e)break;a.cartSource=i.int32();continue;case 12:if(98!==e)break;a.orderSummary=mD.decode(i,i.uint32());continue;case 13:if(106!==e)break;a.paymentMethod=mC.decode(i,i.uint32());continue;case 14:if(114!==e)break;a.checkoutError=mM.decode(i,i.uint32());continue;case 15:if(120!==e)break;a.addressType=i.int32();continue;case 16:if(128!==e)break;a.pageLaunchSource=i.int32();continue;case 17:if(138!==e)break;a.shopDomain=i.string();continue;case 18:if(144!==e)break;a.storefrontEnabled=i.bool();continue;case 19:if(154!==e)break;a.sharedType=i.string();continue;case 20:if(162!==e)break;a.url=i.string();continue;case 21:if(170!==e)break;a.error=mM.decode(i,i.uint32());continue;case 22:if(176===e){a.addressFields.push(i.int32());continue}if(178===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.addressFields.push(i.int32());continue}break;case 23:if(184!==e)break;a.collectionCount=mU(i.int64());continue;case 24:if(192!==e)break;a.collectionProductCount=mU(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mN.fromPartial(e??{}),fromPartial(e){let t=mg();return t.eventType=e.eventType??0,t.eventTimestampMs=e.eventTimestampMs??"0",t.totalPriceMicro=e.totalPriceMicro??"0",t.priceCurrency=e.priceCurrency??"",t.instantProducts=e.instantProducts?.map(e=>mb.fromPartial(e))||[],t.eventMetadata=e.eventMetadata??new Uint8Array(0),t.checkoutType=e.checkoutType??0,t.userAgent=e.userAgent??"",t.currentPage=e.currentPage??0,t.cartSource=e.cartSource??0,t.orderSummary=void 0!==e.orderSummary&&null!==e.orderSummary?mD.fromPartial(e.orderSummary):void 0,t.paymentMethod=void 0!==e.paymentMethod&&null!==e.paymentMethod?mC.fromPartial(e.paymentMethod):void 0,t.checkoutError=void 0!==e.checkoutError&&null!==e.checkoutError?mM.fromPartial(e.checkoutError):void 0,t.addressType=e.addressType??0,t.pageLaunchSource=e.pageLaunchSource??0,t.shopDomain=e.shopDomain??"",t.storefrontEnabled=e.storefrontEnabled??!1,t.sharedType=e.sharedType??"",t.url=e.url??"",t.error=void 0!==e.error&&null!==e.error?mM.fromPartial(e.error):void 0,t.addressFields=e.addressFields?.map(e=>e)||[],t.collectionCount=e.collectionCount??"0",t.collectionProductCount=e.collectionProductCount??"0",t}};function mR(){return{amount:"0",currency:""}}let mP={encode:(e,t=rA.default.Writer.create())=>("0"!==e.amount&&t.uint32(8).int64(e.amount),""!==e.currency&&t.uint32(18).string(e.currency),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.amount=mU(i.int64());continue;case 2:if(18!==e)break;a.currency=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mP.fromPartial(e??{}),fromPartial(e){let t=mR();return t.amount=e.amount??"0",t.currency=e.currency??"",t}};function mO(){return{name:"",type:""}}let mC={encode:(e,t=rA.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.type&&t.uint32(18).string(e.type),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.type=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mC.fromPartial(e??{}),fromPartial(e){let t=mO();return t.name=e.name??"",t.type=e.type??"",t}};function my(){return{productId:"0",variantId:"",title:"",quantity:"0",price:void 0}}let mh={encode:(e,t=rA.default.Writer.create())=>("0"!==e.productId&&t.uint32(8).int64(e.productId),""!==e.variantId&&t.uint32(18).string(e.variantId),""!==e.title&&t.uint32(26).string(e.title),"0"!==e.quantity&&t.uint32(32).int64(e.quantity),void 0!==e.price&&mP.encode(e.price,t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=my();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.productId=mU(i.int64());continue;case 2:if(18!==e)break;a.variantId=i.string();continue;case 3:if(26!==e)break;a.title=i.string();continue;case 4:if(32!==e)break;a.quantity=mU(i.int64());continue;case 5:if(42!==e)break;a.price=mP.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mh.fromPartial(e??{}),fromPartial(e){let t=my();return t.productId=e.productId??"0",t.variantId=e.variantId??"",t.title=e.title??"",t.quantity=e.quantity??"0",t.price=void 0!==e.price&&null!==e.price?mP.fromPartial(e.price):void 0,t}};function mL(){return{items:[],subtotalPrice:void 0,totalPrice:void 0}}let mD={encode(e,t=rA.default.Writer.create()){for(let i of e.items)mh.encode(i,t.uint32(10).fork()).ldelim();return void 0!==e.subtotalPrice&&mP.encode(e.subtotalPrice,t.uint32(18).fork()).ldelim(),void 0!==e.totalPrice&&mP.encode(e.totalPrice,t.uint32(26).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.items.push(mh.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.subtotalPrice=mP.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.totalPrice=mP.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mD.fromPartial(e??{}),fromPartial(e){let t=mL();return t.items=e.items?.map(e=>mh.fromPartial(e))||[],t.subtotalPrice=void 0!==e.subtotalPrice&&null!==e.subtotalPrice?mP.fromPartial(e.subtotalPrice):void 0,t.totalPrice=void 0!==e.totalPrice&&null!==e.totalPrice?mP.fromPartial(e.totalPrice):void 0,t}};function mw(){return{type:"",message:""}}let mM={encode:(e,t=rA.default.Writer.create())=>(""!==e.type&&t.uint32(10).string(e.type),""!==e.message&&t.uint32(18).string(e.message),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mw();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.type=i.string();continue;case 2:if(18!==e)break;a.message=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mM.fromPartial(e??{}),fromPartial(e){let t=mw();return t.type=e.type??"",t.message=e.message??"",t}};function mU(e){return e.toString()}function mV(){return{eventType:0,eventTimestampMs:"0",totalPriceMicro:"0",priceCurrency:"",instantProducts:[],hasForm:!1,currentPage:0,pageUrl:"",expressPayment:0,eventMetadata:new Uint8Array(0),userAgent:""}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(nZ=eW||(eW={}))[nZ.PAGE_UNSET=0]="PAGE_UNSET",nZ[nZ.INSTANT_PRODUCT_PAGE=1]="INSTANT_PRODUCT_PAGE",nZ[nZ.INSTANT_CART_PAGE=2]="INSTANT_CART_PAGE",nZ[nZ.INSTANT_CONFIRMATION_PAGE=3]="INSTANT_CONFIRMATION_PAGE",nZ[nZ.SCB_CHECKOUT_PAGE=4]="SCB_CHECKOUT_PAGE",nZ[nZ.SCB_PRODUCT_PAGE=5]="SCB_PRODUCT_PAGE",nZ[nZ.SCB_COLLECTION_PAGE=6]="SCB_COLLECTION_PAGE",nZ[nZ.SCB_CART_PAGE=7]="SCB_CART_PAGE",nZ[nZ.UNRECOGNIZED=-1]="UNRECOGNIZED",(nj=ex||(ex={}))[nj.UNSET=0]="UNSET",nj[nj.OPEN_PAGE=1]="OPEN_PAGE",nj[nj.DISMISS_PAGE=2]="DISMISS_PAGE",nj[nj.ENTER_BACKGROUND=3]="ENTE
2R_BACKGROUND",nj[nj.CLICK_ORDER_SUMMARY=4]="CLICK_ORDER_SUMMARY",nj[nj.CLICK_EXPRESS_PAYMENT=5]="CLICK_EXPRESS_PAYMENT",nj[nj.FOCUS_ADDRESS=6]="FOCUS_ADDRESS",nj[nj.BLUR_ADDRESS=7]="BLUR_ADDRESS",nj[nj.FOCUS_CREDIT_CARD=8]="FOCUS_CREDIT_CARD",nj[nj.BLUR_CREDIT_CARD=9]="BLUR_CREDIT_CARD",nj[nj.PLACE_ORDER=10]="PLACE_ORDER",nj[nj.LOAD_WEBPAGE=11]="LOAD_WEBPAGE",nj[nj.UNRECOGNIZED=-1]="UNRECOGNIZED",(nX=eH||(eH={}))[nX.PAY_UNSET=0]="PAY_UNSET",nX[nX.SHOP_PAY=1]="SHOP_PAY",nX[nX.APPLE_PAY=2]="APPLE_PAY",nX[nX.PAY_PAL=3]="PAY_PAL",nX[nX.UNRECOGNIZED=-1]="UNRECOGNIZED";let mB={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.eventType&&t.uint32(8).int32(e.eventType),"0"!==e.eventTimestampMs&&t.uint32(16).int64(e.eventTimestampMs),"0"!==e.totalPriceMicro&&t.uint32(24).int64(e.totalPriceMicro),""!==e.priceCurrency&&t.uint32(34).string(e.priceCurrency),e.instantProducts))mb.encode(i,t.uint32(42).fork()).ldelim();return!1!==e.hasForm&&t.uint32(48).bool(e.hasForm),0!==e.currentPage&&t.uint32(56).int32(e.currentPage),""!==e.pageUrl&&t.uint32(66).string(e.pageUrl),0!==e.expressPayment&&t.uint32(72).int32(e.expressPayment),0!==e.eventMetadata.length&&t.uint32(82).bytes(e.eventMetadata),""!==e.userAgent&&t.uint32(90).string(e.userAgent),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.eventType=i.int32();continue;case 2:if(16!==e)break;a.eventTimestampMs=mF(i.int64());continue;case 3:if(24!==e)break;a.totalPriceMicro=mF(i.int64());continue;case 4:if(34!==e)break;a.priceCurrency=i.string();continue;case 5:if(42!==e)break;a.instantProducts.push(mb.decode(i,i.uint32()));continue;case 6:if(48!==e)break;a.hasForm=i.bool();continue;case 7:if(56!==e)break;a.currentPage=i.int32();continue;case 8:if(66!==e)break;a.pageUrl=i.string();continue;case 9:if(72!==e)break;a.expressPayment=i.int32();continue;case 10:if(82!==e)break;a.eventMetadata=i.bytes();continue;case 11:if(90!==e)break;a.userAgent=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mB.fromPartial(e??{}),fromPartial(e){let t=mV();return t.eventType=e.eventType??0,t.eventTimestampMs=e.eventTimestampMs??"0",t.totalPriceMicro=e.totalPriceMicro??"0",t.priceCurrency=e.priceCurrency??"",t.instantProducts=e.instantProducts?.map(e=>mb.fromPartial(e))||[],t.hasForm=e.hasForm??!1,t.currentPage=e.currentPage??0,t.pageUrl=e.pageUrl??"",t.expressPayment=e.expressPayment??0,t.eventMetadata=e.eventMetadata??new Uint8Array(0),t.userAgent=e.userAgent??"",t}};function mF(e){return e.toString()}function mG(){return{event:void 0,serveItemId:"",adId:"",adType:0,trackSeqNum:0,viewSeqNum:0,adProductSourceType:0,preferredAttachmentType:0,actualAttachmentType:0,storyIndex:0,collectionIndex:0,eventType:"",adAccountId:"",campaignId:"",lineItemId:"",cleanroomOnly:!1,pageId:""}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let mW={encode(e,t=rA.default.Writer.create()){switch(e.event?.$case){case"asmEventPayload":t.uint32(10).bytes(e.event.asmEventPayload);break;case"instantPageEvent":mN.encode(e.event.instantPageEvent,t.uint32(138).fork()).ldelim();break;case"instantPagePaymentEvent":mB.encode(e.event.instantPagePaymentEvent,t.uint32(146).fork()).ldelim();break;case"debugEvent":mA.encode(e.event.debugEvent,t.uint32(162).fork()).ldelim()}return""!==e.serveItemId&&t.uint32(18).string(e.serveItemId),""!==e.adId&&t.uint32(26).string(e.adId),0!==e.adType&&t.uint32(32).int32(e.adType),0!==e.trackSeqNum&&t.uint32(40).int32(e.trackSeqNum),0!==e.viewSeqNum&&t.uint32(48).int32(e.viewSeqNum),0!==e.adProductSourceType&&t.uint32(56).int32(e.adProductSourceType),0!==e.preferredAttachmentType&&t.uint32(64).int32(e.preferredAttachmentType),0!==e.actualAttachmentType&&t.uint32(72).int32(e.actualAttachmentType),0!==e.storyIndex&&t.uint32(80).int32(e.storyIndex),0!==e.collectionIndex&&t.uint32(88).int32(e.collectionIndex),""!==e.eventType&&t.uint32(98).string(e.eventType),""!==e.adAccountId&&t.uint32(106).string(e.adAccountId),""!==e.campaignId&&t.uint32(114).string(e.campaignId),""!==e.lineItemId&&t.uint32(122).string(e.lineItemId),!1!==e.cleanroomOnly&&t.uint32(128).bool(e.cleanroomOnly),""!==e.pageId&&t.uint32(154).string(e.pageId),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mG();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.event={$case:"asmEventPayload",asmEventPayload:i.bytes()};continue;case 17:if(138!==e)break;a.event={$case:"instantPageEvent",instantPageEvent:mN.decode(i,i.uint32())};continue;case 18:if(146!==e)break;a.event={$case:"instantPagePaymentEvent",instantPagePaymentEvent:mB.decode(i,i.uint32())};continue;case 20:if(162!==e)break;a.event={$case:"debugEvent",debugEvent:mA.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.serveItemId=i.string();continue;case 3:if(26!==e)break;a.adId=i.string();continue;case 4:if(32!==e)break;a.adType=i.int32();continue;case 5:if(40!==e)break;a.trackSeqNum=i.int32();continue;case 6:if(48!==e)break;a.viewSeqNum=i.int32();continue;case 7:if(56!==e)break;a.adProductSourceType=i.int32();continue;case 8:if(64!==e)break;a.preferredAttachmentType=i.int32();continue;case 9:if(72!==e)break;a.actualAttachmentType=i.int32();continue;case 10:if(80!==e)break;a.storyIndex=i.int32();continue;case 11:if(88!==e)break;a.collectionIndex=i.int32();continue;case 12:if(98!==e)break;a.eventType=i.string();continue;case 13:if(106!==e)break;a.adAccountId=i.string();continue;case 14:if(114!==e)break;a.campaignId=i.string();continue;case 15:if(122!==e)break;a.lineItemId=i.string();continue;case 16:if(128!==e)break;a.cleanroomOnly=i.bool();continue;case 19:if(154!==e)break;a.pageId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mW.fromPartial(e??{}),fromPartial(e){let t=mG();return e.event?.$case==="asmEventPayload"&&e.event?.asmEventPayload!==void 0&&e.event?.asmEventPayload!==null&&(t.event={$case:"asmEventPayload",asmEventPayload:e.event.asmEventPayload}),e.event?.$case==="instantPageEvent"&&e.event?.instantPageEvent!==void 0&&e.event?.instantPageEvent!==null&&(t.event={$case:"instantPageEvent",instantPageEvent:mN.fromPartial(e.event.instantPageEvent)}),e.event?.$case==="instantPagePaymentEvent"&&e.event?.instantPagePaymentEvent!==void 0&&e.event?.instantPagePaymentEvent!==null&&(t.event={$case:"instantPagePaymentEvent",instantPagePaymentEvent:mB.fromPartial(e.event.instantPagePaymentEvent)}),e.event?.$case==="debugEvent"&&e.event?.debugEvent!==void 0&&e.event?.debugEvent!==null&&(t.event={$case:"debugEvent",debugEvent:mA.fromPartial(e.event.debugEvent)}),t.serveItemId=e.serveItemId??"",t.adId=e.adId??"",t.adType=e.adType??0,t.trackSeqNum=e.trackSeqNum??0,t.viewSeqNum=e.viewSeqNum??0,t.adProductSourceType=e.adProductSourceType??0,t.preferredAttachmentType=e.preferredAttachmentType??0,t.actualAttachmentType=e.actualAttachmentType??0,t.storyIndex=e.storyIndex??0,t.collectionIndex=e.collectionIndex??0,t.eventType=e.eventType??"",t.adAccountId=e.adAccountId??"",t.campaignId=e.campaignId??"",t.lineItemId=e.lineItemId??"",t.cleanroomOnly=e.cleanroomOnly??!1,t.pageId=e.pageId??"",t}},mx={encode:(e,t=rA.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={value:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(9!==e)break;a.value=i.double();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mx.fromPartial(e??{}),fromPartial(e){let t={value:0};return t.value=e.value??0,t}},mH={encode:(e,t=rA.default.Writer.create())=>(0!==e.value&&t.uint32(13).float(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={value:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.value=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mH.fromPartial(e??{}),fromPartial(e){let t={value:0};return t.value=e.value??0,t}};
2function mY(){return{value:"0"}}let mK={encode:(e,t=rA.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mY();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=m0(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mK.fromPartial(e??{}),fromPartial(e){let t=mY();return t.value=e.value??"0",t}};function m$(){return{value:"0"}}let mz={encode:(e,t=rA.default.Writer.create())=>("0"!==e.value&&t.uint32(8).uint64(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=m$();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=m0(i.uint64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mz.fromPartial(e??{}),fromPartial(e){let t=m$();return t.value=e.value??"0",t}},mq={encode:(e,t=rA.default.Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={value:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mq.fromPartial(e??{}),fromPartial(e){let t={value:0};return t.value=e.value??0,t}},mZ={encode:(e,t=rA.default.Writer.create())=>(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={value:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mZ.fromPartial(e??{}),fromPartial(e){let t={value:0};return t.value=e.value??0,t}};function mj(){return{value:!1}}let mX={encode:(e,t=rA.default.Writer.create())=>(!1!==e.value&&t.uint32(8).bool(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mj();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.value=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mX.fromPartial(e??{}),fromPartial(e){let t=mj();return t.value=e.value??!1,t}};function mQ(){return{value:""}}let mJ={encode:(e,t=rA.default.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=mQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>mJ.fromPartial(e??{}),fromPartial(e){let t=mQ();return t.value=e.value??"",t}};function m0(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());var m2=rA;function m3(){return{experimentId:"",studyVersion:"0",budgetSegmentId:0}}(nQ=eY||(eY={}))[nQ.UNKNOWN_BSID=0]="UNKNOWN_BSID",nQ[nQ.BSID_1=1]="BSID_1",nQ[nQ.BSID_2=2]="BSID_2",nQ[nQ.BSID_3=3]="BSID_3",nQ[nQ.BSID_4=4]="BSID_4",nQ[nQ.BSID_5=5]="BSID_5",nQ[nQ.BSID_6=6]="BSID_6",nQ[nQ.BSID_7=7]="BSID_7",nQ[nQ.BSID_8=8]="BSID_8",nQ[nQ.BSID_9=9]="BSID_9",nQ[nQ.BSID_10=10]="BSID_10",nQ[nQ.BSID_ALL=11]="BSID_ALL",nQ[nQ.UNRECOGNIZED=-1]="UNRECOGNIZED";let m1={encode:(e,t=rA.default.Writer.create())=>(""!==e.experimentId&&t.uint32(10).string(e.experimentId),"0"!==e.studyVersion&&t.uint32(16).int64(e.studyVersion),0!==e.budgetSegmentId&&t.uint32(24).int32(e.budgetSegmentId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=m3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.experimentId=i.string();continue;case 2:if(16!==e)break;a.studyVersion=i.int64().toString();continue;case 3:if(24!==e)break;a.budgetSegmentId=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>m1.fromPartial(e??{}),fromPartial(e){let t=m3();return t.experimentId=e.experimentId??"",t.studyVersion=e.studyVersion??"0",t.budgetSegmentId=e.budgetSegmentId??0,t}}
2;function m4(){return{modelId:"",avgTimeViewedWeight:0,stdWeight:0,constant:0,threshold:0,numSnaps:0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let m8={encode:(e,t=rA.default.Writer.create())=>(""!==e.modelId&&t.uint32(10).string(e.modelId),0!==e.avgTimeViewedWeight&&t.uint32(21).float(e.avgTimeViewedWeight),0!==e.stdWeight&&t.uint32(29).float(e.stdWeight),0!==e.constant&&t.uint32(37).float(e.constant),0!==e.threshold&&t.uint32(45).float(e.threshold),0!==e.numSnaps&&t.uint32(48).int32(e.numSnaps),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=m4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.modelId=i.string();continue;case 2:if(21!==e)break;a.avgTimeViewedWeight=i.float();continue;case 3:if(29!==e)break;a.stdWeight=i.float();continue;case 4:if(37!==e)break;a.constant=i.float();continue;case 5:if(45!==e)break;a.threshold=i.float();continue;case 6:if(48!==e)break;a.numSnaps=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>m8.fromPartial(e??{}),fromPartial(e){let t=m4();return t.modelId=e.modelId??"",t.avgTimeViewedWeight=e.avgTimeViewedWeight??0,t.stdWeight=e.stdWeight??0,t.constant=e.constant??0,t.threshold=e.threshold??0,t.numSnaps=e.numSnaps??0,t}};function m6(){return{experimentId:"",studyVersion:"0",modelId:""}}let m7={encode:(e,t=rA.default.Writer.create())=>(""!==e.experimentId&&t.uint32(10).string(e.experimentId),"0"!==e.studyVersion&&t.uint32(16).int64(e.studyVersion),""!==e.modelId&&t.uint32(26).string(e.modelId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=m6();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.experimentId=i.string();continue;case 2:if(16!==e)break;a.studyVersion=i.int64().toString();continue;case 3:if(26!==e)break;a.modelId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>m7.fromPartial(e??{}),fromPartial(e){let t=m6();return t.experimentId=e.experimentId??"",t.studyVersion=e.studyVersion??"0",t.modelId=e.modelId??"",t}};function m5(){return{experimentId:"",studyVersion:"0",percentileThreshold:0,predictivePrefetchEnabled:!1,modelId:""}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let m9={encode:(e,t=rA.default.Writer.create())=>(""!==e.experimentId&&t.uint32(10).string(e.experimentId),"0"!==e.studyVersion&&t.uint32(16).int64(e.studyVersion),0!==e.percentileThreshold&&t.uint32(29).float(e.percentileThreshold),!1!==e.predictivePrefetchEnabled&&t.uint32(32).bool(e.predictivePrefetchEnabled),""!==e.modelId&&t.uint32(42).string(e.modelId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=m5();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.experimentId=i.string();continue;case 2:if(16!==e)break;a.studyVersion=i.int64().toString();continue;case 3:if(29!==e)break;a.percentileThreshold=i.float();continue;case 4:if(32!==e)break;a.predictivePrefetchEnabled=i.bool();continue;case 5:if(42!==e)break;a.modelId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>m9.fromPartial(e??{}),fromPartial(e){let t=m5();return t.experimentId=e.experimentId??"",t.studyVersion=e.studyVersion??"0",t.percentileThreshold=e.percentileThreshold??0,t.predictivePrefetchEnabled=e.predictivePrefetchEnabled??!1,t.modelId=e.modelId??"",t}};rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());function Ee(){return{startTimestampMillis:"0",viewSource:0,timeSinceSessionStartMillis:void 0,totalAdSnapViewTimeMillis:void 0,totalSnapViewCount:void 0,totalAdSnapViewCount:void 0,totalAdSwipeUpCount:void 0,totalSwipeUpCount:void 0,totalAdLongformViewTimeMillis:void 0,totalLongformViewTimeMillis:void 0,totalStoriesViewCount:void 0,availableStoriesCount:void 0,exitEvent:0,isLastSnapAd:void 0,viewedAd:[],totalUniqueStoriesViewCount:void 0,totalContentHammerTaps:void 0,totalAdHammerTaps:void 0,contentP25TopsnapViewTimeMillis:void 0,contentP50TopsnapViewTimeMillis:void 0,contentP75TopsnapViewTimeMillis:void 0,contentP90TopsnapViewTimeMillis:void 0,contentMinimumTopsnapViewTimeMillis:void 0,contentMaximumTopsnapViewTimeMillis:void 0,adsP25TopsnapViewTimeMillis:void 0,adsP50TopsnapViewTimeMillis:void 0,adsP75TopsnapViewTimeMillis:void 0,adsP90TopsnapViewTimeMillis:void 0,adsMinimumTopsnapViewTimeMillis:void 0,adsMaximumTopsnapViewTimeMillis:void 0,snapLevelInfo:[],consumptionSpeedPerInventory:[],sessionDepth:void 0,storyLevelInfo:[]}}let Et={encode(e,t=rA.default.Writer.create()){for(let i of("0"!==e.startTimestampMillis&&t.uint32(8).int64(e.startTimestampMillis),0!==e.viewSource&&t.uint32(16).int32(e.viewSource),void 0!==e.timeSinceSessionStartMillis&&mK.encode({value:e.timeSinceSessionStartMillis},t.uint32(26).fork()).ldelim(),void 0!==e.totalAdSnapViewTimeMillis&&mK.encode({value:e.totalAdSnapViewTimeMillis},t.uint32(34).fork()).ldelim(),void 0!==e.totalSnapViewCount&&mq.encode({value:e.totalSnapViewCount},t.uint32(42).fork()).ldelim(),void 0!==e.totalAdSnapViewCount&&mq.encode({value:e.totalAdSnapViewCount},t.uint32(50).fork()).ldelim(),void 0!==e.totalAdSwipeUpCount&&mq.encode({value:e.totalAdSwipeUpCount},t.uint32(58).fork()).ldelim(),void 0!==e.totalSwipeUpCount&&mq.encode({value:e.totalSwipeUpCount},t.uint32(66).fork()).ldelim(),void 0!==e.totalAdLongformViewTimeMillis&&mK.encode({value:e.totalAdLongformViewTimeMillis},t.uint32(74).fork()).ldelim(),void 0!==e.totalLongformViewTimeMillis&&mK.encode({value:e.totalLongformViewTimeMillis},t.uint32(82).fork()).ldelim(),void 0!==e.totalStoriesViewCount&&mq.encode({value:e.totalStoriesViewCount},t.uint32(90).fork()).ldelim(),void 0!==e.availableStoriesCount&&mq.encode({value:e.availableStoriesCount},t.uint32(98).fork()).ldelim(),0!==e.exitEvent&&t.uint32(104).int32(e.exitEvent),void 0!==e.isLastSnapAd&&mX.encode({value:e.isLastSnapAd},t.uint32(114).fork()).ldelim(),e.viewedAd))El.encode(i,t.uint32(122).fork()).ldelim();for(let i of(void 0!==e.totalUniqueStoriesViewCount&&mq.encode({value:e.totalUniqueStoriesViewCount},t.uint32(130).fork()).ldelim(),void 0!==e.totalContentHammerTaps&&mq.encode({value:e.totalContentHammerTaps},t.uint32(138).fork()).ldelim(),void 0!==e.totalAdHammerTaps&&mq.encode({value:e.totalAdHammerTaps},t.uint32(146).fork()).ldelim(),void 0!==e.contentP25TopsnapViewTimeMillis&&mK.encode({value:e.contentP25TopsnapViewTimeMillis},t.uint32(154).fork()).ldelim(),void 0!==e.contentP50TopsnapViewTimeMillis&&mK.encode({value:e.contentP50TopsnapViewTimeMillis},t.uint32(162).fork()).ldelim(),void 0!==e.contentP75TopsnapViewTimeMillis&&mK.encode({value:e.contentP75TopsnapViewTimeMillis},t.uint32(170).fork()).ldelim(),void 0!==e.contentP90TopsnapViewTimeMillis&&mK.encode({value:e.contentP90TopsnapViewTimeMillis},t.uint32(178).fork()).ldelim(),void 0!==e.contentMinimumTopsnapViewTimeMillis&&mK.encode({value:e.contentMinimumTopsnapViewTimeMillis},t.uint32(186).fork()).ldelim(),void 0!==e.contentMaximumTopsnapViewTimeMillis&&mK.encode({value:e.contentMaximumTopsnapViewTimeMillis},t.uint32(194).fork()).ldelim(),void 0!==e.adsP25TopsnapViewTimeMillis&&mK.encode({value:e.adsP25TopsnapViewTimeMillis},t.uint32(202).fork()).ldelim(),void 0!==e.adsP50TopsnapViewTimeMillis&&mK.encode({value:e.adsP50TopsnapViewTimeMillis},t.uint32(210).fork()).ldelim(),void 0!==e.adsP75TopsnapViewTimeMillis&&mK.encode({value:e.adsP75TopsnapViewTimeMillis},t.uint32(218).fork()).ldelim(),void 0!==e.adsP90TopsnapViewTimeMillis&&mK.encode({value:e.adsP90TopsnapViewTimeMillis},t.uint32(226).fork()).ldelim(),void 0!==e.adsMinimumTopsnapViewTimeMillis&&mK.encode({value:e.adsMinimumTopsnapViewTimeMillis},t.uint32(234).fork()).ldelim(),void 0!==e.adsMaximumTopsnapViewTimeMillis&&mK.encode({value:e.adsMaximumTopsnapViewTimeMillis},t.uint32(242).fork()).ldelim(),e.snapLevelInfo))Eo.encode(i,t.uint32(250).fork()).ldelim();for(let i of e.consumptionSpeedPerInventory)Ed.encode(i,t.uint32(258).fork()).ldelim();for(let i of(void 0!==e.sessionDepth&&En.encode(e.sessionDepth,t.uint32(266).fork()).ldelim(),e.storyLevelInfo))Eu.encode(i,t.uint32(274).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ee();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.startTimestampMillis=ES(i.int64());continue;case 2:if(16!==e)break;a.viewSource=i.int32();continue;case 3:if(26!==e)break;a.timeSinceSessionStartMillis=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.totalAdSnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.totalSnapViewCount=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.totalAdSnapViewCount=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.totalAdSwipeUpCount=mq.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.totalSwipeUpCount=mq.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.totalAdLongformViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.totalLongformViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.totalStoriesViewCount=mq.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.availableStoriesCount=mq.decode(i,i.uint32()).value;continue;case 13:if(104!==e)break;a.exitEvent=i.int32();continue;case 14:if(114!==e)break;a.isLastSnapAd=mX.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.viewedAd.push(El.decode(i,i.uint32()));continue;case 16:if(130!==e)break;a.totalUniqueStoriesViewCount=mq.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.totalContentHammerTaps=mq.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;a.totalAdHammerTaps=mq.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.contentP25TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.contentP50TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.contentP75TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.contentP90TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.contentMinimumTopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 24:if(194!==e)break;a.contentMaximumTopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.adsP25TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 26:if(210!==e)break;a.adsP50TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 27:if(218!==e)break;a.adsP75TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 28:if(226!==e)break;a.adsP90TopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 29:if(234!==e)break;a.adsMinimumTopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 30:if(242!==e)break;a.adsMaximumTopsnapViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 31:if(250!==e)break;a.snapLevelInfo.push(Eo.decode(i,i.uint32()));continue;case 32:if(258!==e)break;a.consumptionSpeedPerInventory.push(Ed.decode(i,i.uint32()));continue;case 33:if(266!==e)break;a.sessionDepth=En.decode(i,i.uint32());continue;case 34:if(274!==e)break;a.storyLevelInfo.push(Eu.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Et.fromPartial(e??{}),fromPartial(e){let t=Ee();return t.startTimestampMillis=e.startTimestampMillis??"0",t.viewSource=e.viewSource??0,t.timeSinceSessionStartMillis=e.timeSinceSessionStartMillis??void 0,t.totalAdSnapViewTimeMillis=e.totalAdSnapViewTimeMillis??void 0,t.totalSnapViewCount=e.totalSnapViewCount??void 0,t.totalAdSnapViewCount=e.totalAdSnapViewCount??void 0,t.totalAdSwipeUpCount=e.totalAdSwipeUpCount??void 0,t.totalSwipeUpCount=e.totalSwipeUpCount??void 0,t.totalAdLongformViewTimeMillis=e.totalAdLongformViewTimeMillis??void 0,t.totalLongformViewTimeMillis=e.totalLongformViewTimeMillis??void 0,t.totalStoriesViewCount=e.totalStoriesViewCount??void 0,t.availableStoriesCount=e.availableStoriesCount??void 0,t.exitEvent=e.exitEvent??0,t.isLastSnapAd=e.isLastSnapAd??void 0,t.viewedAd=e.viewedAd?.map(e=>El.fromPartial(e))||[],t.totalUniqueStoriesViewCount=e.totalUniqueStoriesViewCount??void 0,t.totalContentHammerTaps=e.totalContentHammerTaps??void 0,t.totalAdHammerTaps=e.totalAdHammerTaps??void 0,t.contentP25TopsnapViewTimeMillis=e.contentP25TopsnapViewTimeMillis??void 0,t.contentP50TopsnapViewTimeMillis=e.contentP50TopsnapViewTimeMillis??void 0,t.contentP75TopsnapViewTimeMillis=e.contentP75TopsnapViewTimeMillis??void 0,t.contentP90TopsnapViewTimeMillis=e.contentP90TopsnapViewTimeMillis??void 0,t.contentMinimumTopsnapViewTimeMillis=e.contentMinimumTopsnapViewTimeMillis??void 0,t.contentMaximumTopsnapViewTimeMillis=e.contentMaximumTopsnapViewTimeMillis??void 0,t.adsP25TopsnapViewTimeMillis=e.adsP25TopsnapViewTimeMillis??void 0,t.adsP50TopsnapViewTimeMillis=e.adsP50TopsnapViewTimeMillis??void 0,t.adsP75TopsnapViewTimeMillis=e.adsP75TopsnapViewTimeMillis??void 0,t.adsP90TopsnapViewTimeMillis=e.adsP90TopsnapViewTimeMillis??void 0,t.adsMinimumTopsnapViewTimeMillis=e.adsMinimumTopsnapViewTimeMillis??void 0,t.adsMaximumTopsnapViewTimeMillis=e.adsMaximumTopsnapViewTimeMillis??void 0,t.snapLevelInfo=e.snapLevelInfo?.map(e=>Eo.fromPartial(e))||[],t.consumptionSpeedPerInventory=e.consumptionSpeedPerInventory?.map(e=>Ed.fromPartial(e))||[],t.sessionDepth=void 0!==e.sessionDepth&&null!==e.sessionDepth?En.fromPartial(e.sessionDepth):void 0,t.storyLevelInfo=e.storyLevelInfo?.map(e=>Eu.fromPartial(e))||[],t}};function Ei(){return{totalContentSnapViewCountUntilLastAdRequest:void 0,totalAdSnapViewCountUntilLastAdRequest:void 0,totalContentSnapViewCountUntilSessionClose:void 0,totalAdSnapViewCountUntilSessionClose:void 0}}let En={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.totalContentSnapViewCountUntilLastAdRequest&&mK.encode({value:e.totalContentSnapViewCountUntilLastAdRequest},t.uint32(10).fork()).ldelim(),void 0!==e.totalAdSnapViewCountUntilLastAdRequest&&mK.encode({value:e.totalAdSnapViewCountUntilLastAdRequest},t.uint32(18).fork()).ldelim(),void 0!==e.totalContentSnapViewCountUntilSessionClose&&mK.encode({value:e.totalContentSnapViewCountUntilSessionClose},t.uint32(26).fork()).ldelim(),void 0!==e.totalAdSnapViewCountUntilSessionClose&&mK.encode({value:e.totalAdSnapViewCountUntilSessionClose},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ei();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.totalContentSnapViewCountUntilLastAdRequest=mK.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.totalAdSnapViewCountUntilLastAdRequest=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.totalContentSnapViewCountUntilSessionClose=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.totalAdSnapViewCountUntilSessionClose=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>En.fromPartial(e??{}),fromPartial(e){let t=Ei();return t.totalContentSnapViewCountUntilLastAdRequest=e.totalContentSnapViewCountUntilLastAdRequest??void 0,t.totalAdSnapViewCountUntilLastAdRequest=e.totalAdSnapViewCountUntilLastAdRequest??void 0,t.totalContentSnapViewCountUntilSessionClose=e.totalContentSnapViewCountUntilSessionClose??void 0,t.totalAdSnapViewCountUntilSessionClose=e.totalAdSnapViewCountUntilSessionClose??void 0,t}};
2function Ea(){return{snapId:"",isAd:void 0,topsnapViewTimeInMillis:void 0,bottomsnapViewTimeInMillis:void 0,mediaType:0,isNewSnap:void 0,swiped:void 0,storyType:0,inventoryType:0,inventorySubType:0,adType:0,preferredAttachmentType:0,actualAttachmentType:0,attachmentTriggerType:0,tapAttachmentSource:0,exitEvent:0,isHammerTap:void 0,wasLiked:void 0,storyReplied:void 0,wasShared:void 0,startTimestampMillis:"0"}}let Eo={encode:(e,t=rA.default.Writer.create())=>(""!==e.snapId&&t.uint32(10).string(e.snapId),void 0!==e.isAd&&mX.encode({value:e.isAd},t.uint32(18).fork()).ldelim(),void 0!==e.topsnapViewTimeInMillis&&mK.encode({value:e.topsnapViewTimeInMillis},t.uint32(26).fork()).ldelim(),void 0!==e.bottomsnapViewTimeInMillis&&mK.encode({value:e.bottomsnapViewTimeInMillis},t.uint32(34).fork()).ldelim(),0!==e.mediaType&&t.uint32(40).int32(e.mediaType),void 0!==e.isNewSnap&&mX.encode({value:e.isNewSnap},t.uint32(50).fork()).ldelim(),void 0!==e.swiped&&mX.encode({value:e.swiped},t.uint32(58).fork()).ldelim(),0!==e.storyType&&t.uint32(64).int32(e.storyType),0!==e.inventoryType&&t.uint32(72).int32(e.inventoryType),0!==e.inventorySubType&&t.uint32(80).int32(e.inventorySubType),0!==e.adType&&t.uint32(88).int32(e.adType),0!==e.preferredAttachmentType&&t.uint32(96).int32(e.preferredAttachmentType),0!==e.actualAttachmentType&&t.uint32(104).int32(e.actualAttachmentType),0!==e.attachmentTriggerType&&t.uint32(112).int32(e.attachmentTriggerType),0!==e.tapAttachmentSource&&t.uint32(120).int32(e.tapAttachmentSource),0!==e.exitEvent&&t.uint32(128).int32(e.exitEvent),void 0!==e.isHammerTap&&mX.encode({value:e.isHammerTap},t.uint32(138).fork()).ldelim(),void 0!==e.wasLiked&&mX.encode({value:e.wasLiked},t.uint32(146).fork()).ldelim(),void 0!==e.storyReplied&&mX.encode({value:e.storyReplied},t.uint32(154).fork()).ldelim(),void 0!==e.wasShared&&mX.encode({value:e.wasShared},t.uint32(162).fork()).ldelim(),"0"!==e.startTimestampMillis&&t.uint32(168).int64(e.startTimestampMillis),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ea();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapId=i.string();continue;case 2:if(18!==e)break;a.isAd=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.topsnapViewTimeInMillis=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.bottomsnapViewTimeInMillis=mK.decode(i,i.uint32()).value;continue;case 5:if(40!==e)break;a.mediaType=i.int32();continue;case 6:if(50!==e)break;a.isNewSnap=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.swiped=mX.decode(i,i.uint32()).value;continue;case 8:if(64!==e)break;a.storyType=i.int32();continue;case 9:if(72!==e)break;a.inventoryType=i.int32();continue;case 10:if(80!==e)break;a.inventorySubType=i.int32();continue;case 11:if(88!==e)break;a.adType=i.int32();continue;case 12:if(96!==e)break;a.preferredAttachmentType=i.int32();continue;case 13:if(104!==e)break;a.actualAttachmentType=i.int32();continue;case 14:if(112!==e)break;a.attachmentTriggerType=i.int32();continue;case 15:if(120!==e)break;a.tapAttachmentSource=i.int32();continue;case 16:if(128!==e)break;a.exitEvent=i.int32();continue;case 17:if(138!==e)break;a.isHammerTap=mX.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;a.wasLiked=mX.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.storyReplied=mX.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.wasShared=mX.decode(i,i.uint32()).value;continue;case 21:if(168!==e)break;a.startTimestampMillis=ES(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Eo.fromPartial(e??{}),fromPartial(e){let t=Ea();return t.snapId=e.snapId??"",t.isAd=e.isAd??void 0,t.topsnapViewTimeInMillis=e.topsnapViewTimeInMillis??void 0,t.bottomsnapViewTimeInMillis=e.bottomsnapViewTimeInMillis??void 0,t.mediaType=e.mediaType??0,t.isNewSnap=e.isNewSnap??void 0,t.swiped=e.swiped??void 0,t.storyType=e.storyType??0,t.inventoryType=e.inventoryType??0,t.inventorySubType=e.inventorySubType??0,t.adType=e.adType??0,t.preferredAttachmentType=e.preferredAttachmentType??0,t.actualAttachmentType=e.actualAttachmentType??0,t.attachmentTriggerType=e.attachmentTriggerType??0,t.tapAttachmentSource=e.tapAttachmentSource??0,t.exitEvent=e.exitEvent??0,t.isHammerTap=e.isHammerTap??void 0,t.wasLiked=e.wasLiked??void 0,t.storyReplied=e.storyReplied??void 0,t.wasShared=e.wasShared??void 0,t.startTimestampMillis=e.startTimestampMillis??"0",t}};function Er(){return{inventoryType:0,inventorySubType:0,contentTopsnapViewCount:void 0,contentTopsnapViewTime:void 0,contentBottomsnapViewCount:void 0,contentBottomsnapViewTime:void 0,contentSwipeCount:void 0,totalContentHammerTaps:void 0,adTopsnapViewCount:void 0,adTopsnapViewTime:void 0,adBottomsnapViewCount:void 0,adBottomsnapViewTime:void 0,adSwipeCount:void 0,totalAdsHammerTaps:void 0,startTimestampMillis:"0"}}let Ed={encode:(e,t=rA.default.Writer.create())=>(0!==e.inventoryType&&t.uint32(8).int32(e.inventoryType),0!==e.inventorySubType&&t.uint32(16).int32(e.inventorySubType),void 0!==e.contentTopsnapViewCount&&mH.encode({value:e.contentTopsnapViewCount},t.uint32(26).fork()).ldelim(),void 0!==e.contentTopsnapViewTime&&mH.encode({value:e.contentTopsnapViewTime},t.uint32(34).fork()).ldelim(),void 0!==e.contentBottomsnapViewCount&&mH.encode({value:e.contentBottomsnapViewCount},t.uint32(42).fork()).ldelim(),void 0!==e.contentBottomsnapViewTime&&mH.encode({value:e.contentBottomsnapViewTime},t.uint32(50).fork()).ldelim(),void 0!==e.contentSwipeCount&&mK.encode({value:e.contentSwipeCount},t.uint32(58).fork()).ldelim(),void 0!==e.totalContentHammerTaps&&mK.encode({value:e.totalContentHammerTaps},t.uint32(66).fork()).ldelim(),void 0!==e.adTopsnapViewCount&&mH.encode({value:e.adTopsnapViewCount},t.uint32(74).fork()).ldelim(),void 0!==e.adTopsnapViewTime&&mH.encode({value:e.adTopsnapViewTime},t.uint32(82).fork()).ldelim(),void 0!==e.adBottomsnapViewCount&&mH.encode({value:e.adBottomsnapViewCount},t.uint32(90).fork()).ldelim(),void 0!==e.adBottomsnapViewTime&&mH.encode({value:e.adBottomsnapViewTime}
2,t.uint32(98).fork()).ldelim(),void 0!==e.adSwipeCount&&mK.encode({value:e.adSwipeCount},t.uint32(106).fork()).ldelim(),void 0!==e.totalAdsHammerTaps&&mK.encode({value:e.totalAdsHammerTaps},t.uint32(114).fork()).ldelim(),"0"!==e.startTimestampMillis&&t.uint32(120).int64(e.startTimestampMillis),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Er();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.inventoryType=i.int32();continue;case 2:if(16!==e)break;a.inventorySubType=i.int32();continue;case 3:if(26!==e)break;a.contentTopsnapViewCount=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.contentTopsnapViewTime=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.contentBottomsnapViewCount=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.contentBottomsnapViewTime=mH.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.contentSwipeCount=mK.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.totalContentHammerTaps=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.adTopsnapViewCount=mH.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.adTopsnapViewTime=mH.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.adBottomsnapViewCount=mH.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.adBottomsnapViewTime=mH.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.adSwipeCount=mK.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.totalAdsHammerTaps=mK.decode(i,i.uint32()).value;continue;case 15:if(120!==e)break;a.startTimestampMillis=ES(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ed.fromPartial(e??{}),fromPartial(e){let t=Er();return t.inventoryType=e.inventoryType??0,t.inventorySubType=e.inventorySubType??0,t.contentTopsnapViewCount=e.contentTopsnapViewCount??void 0,t.contentTopsnapViewTime=e.contentTopsnapViewTime??void 0,t.contentBottomsnapViewCount=e.contentBottomsnapViewCount??void 0,t.contentBottomsnapViewTime=e.contentBottomsnapViewTime??void 0,t.contentSwipeCount=e.contentSwipeCount??void 0,t.totalContentHammerTaps=e.totalContentHammerTaps??void 0,t.adTopsnapViewCount=e.adTopsnapViewCount??void 0,t.adTopsnapViewTime=e.adTopsnapViewTime??void 0,t.adBottomsnapViewCount=e.adBottomsnapViewCount??void 0,t.adBottomsnapViewTime=e.adBottomsnapViewTime??void 0,t.adSwipeCount=e.adSwipeCount??void 0,t.totalAdsHammerTaps=e.totalAdsHammerTaps??void 0,t.startTimestampMillis=e.startTimestampMillis??"0",t}};function Es(){return{adExitEvent:0,adLoadingSpinnerTimeMillis:void 0,adViewTimeMillis:void 0,adSwipeUp:void 0}}let El={encode:(e,t=rA.default.Writer.create())=>(0!==e.adExitEvent&&t.uint32(8).int32(e.adExitEvent),void 0!==e.adLoadingSpinnerTimeMillis&&mq.encode({value:e.adLoadingSpinnerTimeMillis},t.uint32(18).fork()).ldelim(),void 0!==e.adViewTimeMillis&&mq.encode({value:e.adViewTimeMillis},t.uint32(26).fork()).ldelim(),void 0!==e.adSwipeUp&&mX.encode({value:e.adSwipeUp},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Es();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.adExitEvent=i.int32();continue;case 2:if(18!==e)break;a.adLoadingSpinnerTimeMillis=mq.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.adViewTimeMillis=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.adSwipeUp=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>El.fromPartial(e??{}),fromPartial(e){let t=Es();return t.adExitEvent=e.adExitEvent??0,t.adLoadingSpinnerTimeMillis=e.adLoadingSpinnerTimeMillis??void 0,t.adViewTimeMillis=e.adViewTimeMillis??void 0,t.adSwipeUp=e.adSwipeUp??void 0,t}};function Ec(){return{storyId:"",storyType:0,storyViewTime:void 0,snapLevelInfo:[],storyExitEvent:0,isAd:void 0,contentTopsnapViewCount:void 0,adTopsnapViewCount:void 0,startTimestampMillis:"0"}}let Eu={encode(e,t=rA.default.Writer.create()){for(let i of(""!==e.storyId&&t.uint32(10).string(e.storyId),0!==e.storyType&&t.uint32(16).int32(e.storyType),void 0!==e.storyViewTime&&mK.encode({value:e.storyViewTime},t.uint32(26).fork()).ldelim(),e.snapLevelInfo))Eo.encode(i,t.uint32(34).fork()).ldelim();return 0!==e.storyExitEvent&&t.uint32(40).int32(e.storyExitEvent),void 0!==e.isAd&&mX.encode({value:e.isAd},t.uint32(50).fork()).ldelim(),void 0!==e.contentTopsnapViewCount&&mK.encode({value:e.contentTopsnapViewCount},t.uint32(58).fork()).ldelim(),void 0!==e.adTopsnapViewCount&&mK.encode({value:e.adTopsnapViewCount},t.uint32(66).fork()).ldelim(),"0"!==e.startTimestampMillis&&t.uint32(72).int64(e.startTimestampMillis),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ec();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.storyId=i.string();continue;case 2:if(16!==e)break;a.storyType=i.int32();continue;case 3:if(26!==e)break;a.storyViewTime=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.snapLevelInfo.push(Eo.decode(i,i.uint32()));continue;case 5:if(40!==e)break;a.storyExitEvent=i.int32();continue;case 6:if(50!==e)break;a.isAd=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.contentTopsnapViewCount=mK.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.adTopsnapViewCount=mK.decode(i,i.uint32()).value;continue;case 9:if(72!==e)break;a.startTimestampMillis=ES(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Eu.fromPartial(e??{}),fromPartial(e){let t=Ec();return t.storyId=e.storyId??"",t.storyType=e.storyType??0,t.storyViewTime=e.storyViewTime??void 0,t.snapLevelInfo=e.snapLevelInfo?.map(e=>Eo.fromPartial(e))||[],t.storyExitEvent=e.storyExitEvent??0,t.isAd=e.isAd??void 0,t.contentTopsnapViewCount=e.contentTopsnapViewCount??void 0,t.adTopsnapViewCount=e.adTopsnapViewCount??void 0,t.startTimestampMillis=e.startTimestampMillis??"0",t}};function Ep(){return{snapContexts:[],blizzardStoryType:0,blizzardStoryTypeSpecificString:"",storyId:""}}let Ef={encode(e,t=rA.default.Writer.create()){for(let i of e.snapContexts)Em.encode(i,t.uint32(10).fork()).ldelim();return 0!==e.blizzardStoryType&&t.uint32(16).int32(e.blizzardStoryType),""!==e.blizzardStoryTypeSpecificString&&t.uint32(26).string(e.blizzardStoryTypeSpecificString),""!==e.storyId&&t.uint32(34).string(e.storyId),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ep();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapContexts.push(Em.decode(i,i.uint32()));continue;case 2:if(16!==e)break;a.blizzardStoryType=i.int32();continue;case 3:if(26!==e)break;a.blizzardStoryTypeSpecificString=i.string();continue;case 4:if(34!==e)break;a.storyId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ef.fromPartial(e??{}),fromPartial(e){let t=Ep();return t.snapContexts=e.snapContexts?.map(e=>Em.fromPartial(e))||[],t.blizzardStoryType=e.blizzardStoryType??0,t.blizzardStoryTypeSpecificString=e.blizzardStoryTypeSpecificString??"",t.storyId=e.storyId??"",t}};
2function ET(){return{snapId:"",bundledStoryTypeInfo:void 0}}let Em={encode:(e,t=rA.default.Writer.create())=>(""!==e.snapId&&t.uint32(10).string(e.snapId),void 0!==e.bundledStoryTypeInfo&&E_.encode(e.bundledStoryTypeInfo,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ET();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapId=i.string();continue;case 2:if(18!==e)break;a.bundledStoryTypeInfo=E_.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Em.fromPartial(e??{}),fromPartial(e){let t=ET();return t.snapId=e.snapId??"",t.bundledStoryTypeInfo=void 0!==e.bundledStoryTypeInfo&&null!==e.bundledStoryTypeInfo?E_.fromPartial(e.bundledStoryTypeInfo):void 0,t}};function EE(){return{blizzardStoryType:0,blizzardStoryTypeSpecificString:""}}let E_={encode:(e,t=rA.default.Writer.create())=>(0!==e.blizzardStoryType&&t.uint32(8).int32(e.blizzardStoryType),""!==e.blizzardStoryTypeSpecificString&&t.uint32(18).string(e.blizzardStoryTypeSpecificString),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.blizzardStoryType=i.int32();continue;case 2:if(18!==e)break;a.blizzardStoryTypeSpecificString=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>E_.fromPartial(e??{}),fromPartial(e){let t=EE();return t.blizzardStoryType=e.blizzardStoryType??0,t.blizzardStoryTypeSpecificString=e.blizzardStoryTypeSpecificString??"",t}};function ES(e){return e.toString()}function EI(){return{feedCellIndex:0,minTimeSecondsToRefresh:0,minSessionsToRefresh:0,minSessionsToInsertFirst:0,conjunctionToRefresh:!1,sponsoredSnapDisplayMode:0,postInteractionTtlSeconds:0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(nJ=eK||(eK={}))[nJ.SPONSORED_SNAP_DISPLAY_MODE_IN_FEED_DEFAULT_UNSET=0]="SPONSORED_SNAP_DISPLAY_MODE_IN_FEED_DEFAULT_UNSET",nJ[nJ.SPONSORED_SNAP_DISPLAY_MODE_BANNER=1]="SPONSORED_SNAP_DISPLAY_MODE_BANNER",nJ[nJ.UNRECOGNIZED=-1]="UNRECOGNIZED";let Ev={encode:(e,t=rA.default.Writer.create())=>(0!==e.feedCellIndex&&t.uint32(8).int32(e.feedCellIndex),0!==e.minTimeSecondsToRefresh&&t.uint32(21).float(e.minTimeSecondsToRefresh),0!==e.minSessionsToRefresh&&t.uint32(24).int32(e.minSessionsToRefresh),0!==e.minSessionsToInsertFirst&&t.uint32(32).int32(e.minSessionsToInsertFirst),!1!==e.conjunctionToRefresh&&t.uint32(40).bool(e.conjunctionToRefresh),0!==e.sponsoredSnapDisplayMode&&t.uint32(48).int32(e.sponsoredSnapDisplayMode),0!==e.postInteractionTtlSeconds&&t.uint32(61).float(e.postInteractionTtlSeconds),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EI();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.feedCellIndex=i.int32();continue;case 2:if(21!==e)break;a.minTimeSecondsToRefresh=i.float();continue;case 3:if(24!==e)break;a.minSessionsToRefresh=i.int32();continue;case 4:if(32!==e)break;a.minSessionsToInsertFirst=i.int32();continue;case 5:if(40!==e)break;a.conjunctionToRefresh=i.bool();continue;case 6:if(48!==e)break;a.sponsoredSnapDisplayMode=i.int32();continue;case 7:if(61!==e)break;a.postInteractionTtlSeconds=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ev.fromPartial(e??{}),fromPartial(e){let t=EI();return t.feedCellIndex=e.feedCellIndex??0,t.minTimeSecondsToRefresh=e.minTimeSecondsToRefresh??0,t.minSessionsToRefresh=e.minSessionsToRefresh??0,t.minSessionsToInsertFirst=e.minSessionsToInsertFirst??0,t.conjunctionToRefresh=e.conjunctionToRefresh??!1,t.sponsoredSnapDisplayMode=e.sponsoredSnapDisplayMode??0,t.postInteractionTtlSeconds=e.postInteractionTtlSeconds??0,t}};function EA(){return{minStoriesFromStart:void 0,minStoriesBetweenAds:void 0,brandSafetyDistance:void 0,minStoriesFromEnd:void 0}}let Ek={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.minStoriesFromStart&&mq.encode({value:e.minStoriesFromStart},t.uint32(10).fork()).ldelim(),void 0!==e.minStoriesBetweenAds&&mq.encode({value:e.minStoriesBetweenAds},t.uint32(18).fork()).ldelim(),void 0!==e.brandSafetyDistance&&mq.encode({value:e.brandSafetyDistance},t.uint32(26).fork()).ldelim(),void 0!==e.minStoriesFromEnd&&mq.encode({value:e.minStoriesFromEnd},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.minStoriesFromStart=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.minStoriesBetweenAds=mq.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.brandSafetyDistance=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.minStoriesFromEnd=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ek.fromPartial(e??{}),fromPartial(e){let t=EA();return t.minStoriesFromStart=e.minStoriesFromStart??void 0,t.minStoriesBetweenAds=e.minStoriesBetweenAds??void 0,t.brandSafetyDistance=e.brandSafetyDistance??void 0,t.minStoriesFromEnd=e.minStoriesFromEnd??void 0,t}};function Eb(){return{minSnapFromStart:void 0,minTimeFromStartSeconds:void 0,minStoriesFromStart:void 0,minStoriesBeforeEnd:void 0,minStoriesBetweenAds:void 0,minSnapsBetweenAds:void 0,minTimeBetweenAdsSeconds:void 0,minSnapsBeforeEnd:void 0,minTimeBeforeEndSeconds:void 0,minTimeInsertionThresholdSeconds:void 0,globalMinSnapsBetweenAds:void 0,globalMinTimeBetweenAdsSeconds:void 0,maxSnapsNum:void 0,conjunctionFromStart:void 0,conjunctionBetweenAds:void 0,conjunctionBeforeEnd:void 0,customizationUnitModifiers:[],lensPositions:[],minSnapsBetweenAdsAcrossInventory:void 0,minTimeBetweenAdsAcrossInventorySeconds:void 0,minStoriesBetweenAdsAcrossInventory:void 0,conjunctionBetweenAdsAcrossInventory:void 0,chatFeedPosition:void 0,chatFeedInsertionConfig:void 0,promotedStoriesInsertionConfig:void 0}}let Eg={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.minSnapFromStart&&mq.encode({value:e.minSnapFromStart},t.uint32(10).fork()).ldelim(),void 0!==e.minTimeFromStartSeconds&&mH.encode({value:e.minTimeFromStartSeconds},t.uint32(18).fork()).ldelim(),void 0!==e.minStoriesFromStart&&mq.encode({value:e.minStoriesFromStart},t.uint32(26).fork()).ldelim(),void 0!==e.minStoriesBeforeEnd&&mq.encode({value:e.minStoriesBeforeEnd},t.uint32(34).fork()).ldelim(),void 0!==e.minStoriesBetweenAds&&mq.encode({value:e.minStoriesBetweenAds},t.uint32(42).fork()).ldelim(),void 0!==e.minSnapsBetweenAds&&mq.encode({value:e.minSnapsBetweenAds},t.uint32(50).fork()).ldelim(),void 0!==e.minTimeBetweenAdsSeconds&&mH.encode({value:e.minTimeBetweenAdsSeconds},t.uint32(58).fork()).ldelim(),void 0!==e.minSnapsBeforeEnd&&mq.encode({value:e.minSnapsBeforeEnd},t.uint32(66).fork()).ldelim(),void 0!==e.minTimeBeforeEndSeconds&&mH.encode({value:e.minTimeBeforeEndSeconds},t.uint32(74).fork()).ldelim(),void 0!==e.minTimeInsertionThresholdSeconds&&mH.encode({value:e.minTimeInsertionThresholdSeconds},t.uint32(82).fork()).ldelim(),void 0!==e.globalMinSnapsBetweenAds&&mq.encode({value:e.globalMinSnapsBetweenAds},t.uint32(90).fork()).ldelim(),void 0!==e.globalMinTimeBetweenAdsSeconds&&mH.encode({value:e.globalMinTimeBetweenAdsSeconds},t.uint32(98).fork()).ldelim(),void 0!==e.maxSnapsNum&&mq.encode({value:e.maxSnapsNum},t.uint32(106).fork()).ldelim(),void 0!==e.conjunctionFromStart&&mX.encode({value:e.conjunctionFromStart},t.uint32(114).fork()).ldelim(),void 0!==e.conjunctionBetweenAds&&mX.encode({value:e.conjunctionBetweenAds},t.uint32(122).fork()).ldelim(),void 0!==e.conjunctionBeforeEnd&&mX.encode({value:e.conjunctionBeforeEnd},t.uint32(130).fork()).ldelim(),e.customizationUnitModifiers))mJ.encode({value:i},t.uint32(138).fork()).ldelim();for(let i of e.lensPositions)ER.encode(i,t.uint32(146).fork()).ldelim();return void 0!==e.minSnapsBetweenAdsAcrossInventory&&mq.encode({value:e.minSnapsBetweenAdsAcrossInventory},t.uint32(154).fork()).ldelim(),void 0!==e.minTimeBetweenAdsAcrossInventorySeconds&&mH.encode({value:e.minTimeBetweenAdsAcrossInventorySeconds},t.uint32(162).fork()).ldelim(),void 0!==e.minStoriesBetweenAdsAcrossInventory&&mq.encode({value:e.minStoriesBetweenAdsAcrossInventory},t.uint32(170).fork()).ldelim(),void 0!==e.conjunctionBetweenAdsAcrossInventory&&mX.encode({value:e.conjunctionBetweenAdsAcrossInventory},t.uint32(178).fork()).ldelim(),void 0!==e.chatFeedPosition&&EO.encode(e.chatFeedPosition,t.uint32(186).fork()).ldelim(),void 0!==e.chatFeedInsertionConfig&&Ev.encode(e.chatFeedInsertionConfig,t.uint32(194).fork()).ldelim(),void 0!==e.promotedStoriesInsertionConfig&&Ek.encode(e.promotedStoriesInsertionConfig,t.uint32(202).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Eb();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.minSnapFromStart=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.minTimeFromStartSeconds=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.minStoriesFromStart=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.minStoriesBeforeEnd=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.minStoriesBetweenAds=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.minSnapsBetweenAds=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.minTimeBetweenAdsSeconds=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.minSnapsBeforeEnd=mq.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.minTimeBeforeEndSeconds=mH.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.minTimeInsertionThresholdSeconds=mH.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.globalMinSnapsBetweenAds=mq.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.globalMinTimeBetweenAdsSeconds=mH.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.maxSnapsNum=mq.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.conjunctionFromStart=mX.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.conjunctionBetweenAds=mX.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.conjunctionBeforeEnd=mX.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.customizationUnitModifiers.push(mJ.decode(i,i.uint32()).value);continue;case 18:if(146!==e)break;a.lensPositions.push(ER.decode(i,i.uint32()));continue;case 19:if(154!==e)break;a.minSnapsBetweenAdsAcrossInventory=mq.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.minTimeBetweenAdsAcrossInventorySeconds=mH.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.minStoriesBetweenAdsAcrossInventory=mq.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.conjunctionBetweenAdsAcrossInventory=mX.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.chatFeedPosition=EO.decode(i,i.uint32());continue;case 24:if(194!==e)break;a.chatFeedInsertionConfig=Ev.decode(i,i.uint32());continue;case 25:if(202!==e)break;a.promotedStoriesInsertionConfig=Ek.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Eg.fromPartial(e??{}),fromPartial(e){let t=Eb();return t.minSnapFromStart=e.minSnapFromStart??void 0,t.minTimeFromStartSeconds=e.minTimeFromStartSeconds??void 0,t.minStoriesFromStart=e.minStoriesFromStart??void 0,t.minStoriesBeforeEnd=e.minStoriesBeforeEnd??void 0,t.minStoriesBetweenAds=e.minStoriesBetweenAds??void 0,t.minSnapsBetweenAds=e.minSnapsBetweenAds??void 0,t.minTimeBetweenAdsSeconds=e.minTimeBetweenAdsSeconds??void 0,t.minSnapsBeforeEnd=e.minSnapsBeforeEnd??void 0,t.minTimeBeforeEndSeconds=e.minTimeBeforeEndSeconds??void 0,t.minTimeInsertionThresholdSeconds=e.minTimeInsertionThresholdSeconds??void 0,t.globalMinSnapsBetweenAds=e.globalMinSnapsBetweenAds??void 0,t.globalMinTimeBetweenAdsSeconds=e.globalMinTimeBetweenAdsSeconds??void 0,t.maxSnapsNum=e.maxSnapsNum??void 0,t.conjunctionFromStart=e.conjunctionFromStart??void 0,t.conjunctionBetweenAds=e.conjunctionBetweenAds??void 0,t.conjunctionBeforeEnd=e.conjunctionBeforeEnd??void 0,t.customizationUnitModifiers=e.customizationUnitModifiers?.map(e=>e)||[],t.lensPositions=e.lensPositions?.map(e=>ER.fromPartial(e))||[],t.minSnapsBetweenAdsAcrossInventory=e.minSnapsBetweenAdsAcrossInventory??void 0,t.minTimeBetweenAdsAcrossInventorySeconds=e.minTimeBetweenAdsAcrossInventorySeconds??void 0,t.minStoriesBetweenAdsAcrossInventory=e.minStoriesBetweenAdsAcrossInventory??void 0,t.conjunctionBetweenAdsAcrossInventory=e.conjunctionBetweenAdsAcrossInventory??void 0,t.chatFeedPosition=void 0!==e.chatFeedPosition&&null!==e.chatFeedPosition?EO.fromPartial(e.chatFeedPosition):void 0,t.chatFeedInsertionConfig=void 0!==e.chatFeedInsertionConfig&&null!==e.chatFeedInsertionConfig?Ev.fromPartial(e.chatFeedInsertionConfig):void 0,t.promotedStoriesInsertionConfig=void 0!==e.promotedStoriesInsertionConfig&&null!==e.promotedStoriesInsertionConfig?Ek.fromPartial(e.promotedStoriesInsertionConfig):void 0,t}};function EN(){return{cameraType:0,position:0}}let ER={encode:(e,t=rA.default.Writer.create())=>(0!==e.cameraType&&t.uint32(8).int32(e.cameraType),0!==e.position&&t.uint32(16).int32(e.position),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.cameraType=i.int32();continue;case 2:if(16!==e)break;a.position=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ER.fromPartial(e??{}),fromPartial(e){let t=EN();return t.cameraType=e.cameraType??0,t.position=e.position??0,t}};function EP(){return{feedCellIndex:0,minTimeSecondsToRefresh:void 0,minSessionsToRefresh:void 0}}let EO={encode:(e,t=rA.default.Writer.create())=>(0!==e.feedCellIndex&&t.uint32(8).int32(e.feedCellIndex),void 0!==e.minTimeSecondsToRefresh&&mH.encode({value:e.minTimeSecondsToRefresh},t.uint32(18).fork()).ldelim(),void 0!==e.minSessionsToRefresh&&mq.encode({value:e.minSessionsToRefresh},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.feedCellIndex=i.int32();continue;case 2:if(18!==e)break;a.minTimeSecondsToRefresh=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.minSessionsToRefresh=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EO.fromPartial(e??{}),fromPartial(e){let t=EP();return t.feedCellIndex=e.feedCellIndex??0,t.minTimeSecondsToRefresh=e.minTimeSecondsToRefresh??void 0,t.minSessionsToRefresh=e.minSessionsToRefresh??void 0,t}};function EC(){return{crawlUrl:"",creativeId:""}}let Ey={encode:(e,t=rA.default.Writer.create())=>(""!==e.crawlUrl&&t.uint32(10).string(e.crawlUrl),""!==e.creativeId&&t.uint32(18).string(e.creativeId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.crawlUrl=i.string();continue;case 2:if(18!==e)break;a.creativeId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ey.fromPartial(e??{}),fromPartial(e){let t=EC();return t.crawlUrl=e.crawlUrl??"",t.creativeId=e.creativeId??"",t}};function Eh(){return{mediaUnlockableId:"0",brandName:"",creatorUserId:new Uint8Array(0),isRegulatedContent:!1,callToAction:"",attachmentType:0}}let EL={encode:(e,t=rA.default.Writer.create())=>("0"!==e.mediaUnlockableId&&t.uint32(8).int64(e.mediaUnlockableId),""!==e.brandName&&t.uint32(18).string(e.brandName),0!==e.creatorUserId.length&&t.uint32(26).bytes(e.creatorUserId),!1!==e.isRegulatedContent&&t.uint32(32).bool(e.isRegulatedContent),""!==e.callToAction&&t.uint32(42).string(e.callToAction),0!==e.attachmentType&&t.uint32(48).int32(e.attachmentType),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Eh();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mediaUnlockableId=i.int64().toString();continue;case 2:if(18!==e)break;a.brandName=i.string();cont
2inue;case 3:if(26!==e)break;a.creatorUserId=i.bytes();continue;case 4:if(32!==e)break;a.isRegulatedContent=i.bool();continue;case 5:if(42!==e)break;a.callToAction=i.string();continue;case 6:if(48!==e)break;a.attachmentType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EL.fromPartial(e??{}),fromPartial(e){let t=Eh();return t.mediaUnlockableId=e.mediaUnlockableId??"0",t.brandName=e.brandName??"",t.creatorUserId=e.creatorUserId??new Uint8Array(0),t.isRegulatedContent=e.isRegulatedContent??!1,t.callToAction=e.callToAction??"",t.attachmentType=e.attachmentType??0,t}};function ED(){return{queryId:"",nativeTemplateType:0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let Ew={encode:(e,t=rA.default.Writer.create())=>(""!==e.queryId&&t.uint32(10).string(e.queryId),0!==e.nativeTemplateType&&t.uint32(16).int32(e.nativeTemplateType),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ED();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.queryId=i.string();continue;case 2:if(16!==e)break;a.nativeTemplateType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ew.fromPartial(e??{}),fromPartial(e){let t=ED();return t.queryId=e.queryId??"",t.nativeTemplateType=e.nativeTemplateType??0,t}};function EM(){return{trackInfo:void 0}}let EU={encode:(e,t=rA.default.Writer.create())=>(e.trackInfo?.$case==="petraTrackInfo"&&Ew.encode(e.trackInfo.petraTrackInfo,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EM();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.trackInfo={$case:"petraTrackInfo",petraTrackInfo:Ew.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EU.fromPartial(e??{}),fromPartial(e){let t=EM();return e.trackInfo?.$case==="petraTrackInfo"&&e.trackInfo?.petraTrackInfo!==void 0&&e.trackInfo?.petraTrackInfo!==null&&(t.trackInfo={$case:"petraTrackInfo",petraTrackInfo:Ew.fromPartial(e.trackInfo.petraTrackInfo)}),t}};(n0=e$||(e$={}))[n0.UNSET=0]="UNSET",n0[n0.UTF8_DECODE=1]="UTF8_DECODE",n0[n0.BASE64_ENCODE=2]="BASE64_ENCODE",n0[n0.UNRECOGNIZED=-1]="UNRECOGNIZED";function EV(){return{adData:new Uint8Array(0),encryptedAdTrackData:new Uint8Array(0),adId:new Uint8Array(0),adPosition:void 0,lensPositions:[],serveItemId:new Uint8Array(0),viewReceipt:new Uint8Array(0),adRenderData:new Uint8Array(0),adType:0,demandSource:0,eligibleThirdPartyAdNetworkTrackInfo:[],pixelId:new Uint8Array(0),skAdNetworkAttribution:void 0,adMetadataCacheTtlSecs:"0",organicValue:0,adInsertionConfig:void 0,serveTimestampMillis:"0",adMetadataCacheConfig:void 0,adSwipeUpLikely:!1,onDeviceInfo:void 0,enableAppInstallTrackRevamp:!1,sponsoredUnlockableType:0,adSquadId:new Uint8Array(0),campaignId:new Uint8Array(0),adAccountId:new Uint8Array(0),swipeProbability:0,clientCrawlRequests:[],optimizationGoal:0,lensMixerMetadata:void 0,brandSafetyToggleEnabled:!1,adDemandSource:0,brandSafetyInventoryType:0}}let EB={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.adData.length&&t.uint32(10).bytes(e.adData),0!==e.encryptedAdTrackData.length&&t.uint32(18).bytes(e.encryptedAdTrackData),0!==e.adId.length&&t.uint32(26).bytes(e.adId),void 0!==e.adPosition&&Ex.encode(e.adPosition,t.uint32(34).fork()).ldelim(),e.lensPositions))ER.encode(i,t.uint32(218).fork()).ldelim();for(let i of(0!==e.serveItemId.length&&t.uint32(42).bytes(e.serveItemId),0!==e.viewReceipt.length&&t.uint32(50).bytes(e.viewReceipt),0!==e.adRenderData.length&&t.uint32(58).bytes(e.adRenderData),0!==e.adType&&t.uint32(64).int32(e.adType),0!==e.demandSource&&t.uint32(80).int32(e.demandSource),e.eligibleThirdPartyAdNetworkTrackInfo))EU.encode(i,t.uint32(90).fork()).ldelim();for(let i of(0!==e.pixelId.length&&t.uint32(98).bytes(e.pixelId),void 0!==e.skAdNetworkAttribution&&EG.encode(e.skAdNetworkAttribution,t.uint32(106).fork()).ldelim(),"0"!==e.adMetadataCacheTtlSecs&&t.uint32(112).int64(e.adMetadataCacheTtlSecs),0!==e.organicValue&&t.uint32(125).float(e.organicValue),void 0!==e.adInsertionConfig&&Eg.encode(e.adInsertionConfig,t.uint32(130).fork()).ldelim(),"0"!==e.serveTimestampMillis&&t.uint32(136).int64(e.serveTimestampMillis),void 0!==e.adMetadataCacheConfig&&EY.encode(e.adMetadataCacheConfig,t.uint32(146).fork()).ldelim(),!1!==e.adSwi
2peUpLikely&&t.uint32(152).bool(e.adSwipeUpLikely),void 0!==e.onDeviceInfo&&E$.encode(e.onDeviceInfo,t.uint32(162).fork()).ldelim(),!1!==e.enableAppInstallTrackRevamp&&t.uint32(168).bool(e.enableAppInstallTrackRevamp),0!==e.sponsoredUnlockableType&&t.uint32(176).int32(e.sponsoredUnlockableType),0!==e.adSquadId.length&&t.uint32(186).bytes(e.adSquadId),0!==e.campaignId.length&&t.uint32(194).bytes(e.campaignId),0!==e.adAccountId.length&&t.uint32(202).bytes(e.adAccountId),0!==e.swipeProbability&&t.uint32(213).float(e.swipeProbability),e.clientCrawlRequests))Ey.encode(i,t.uint32(226).fork()).ldelim();return 0!==e.optimizationGoal&&t.uint32(232).int32(e.optimizationGoal),void 0!==e.lensMixerMetadata&&EL.encode(e.lensMixerMetadata,t.uint32(242).fork()).ldelim(),!1!==e.brandSafetyToggleEnabled&&t.uint32(248).bool(e.brandSafetyToggleEnabled),0!==e.adDemandSource&&t.uint32(256).int32(e.adDemandSource),0!==e.brandSafetyInventoryType&&t.uint32(264).int32(e.brandSafetyInventoryType),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adData=i.bytes();continue;case 2:if(18!==e)break;a.encryptedAdTrackData=i.bytes();continue;case 3:if(26!==e)break;a.adId=i.bytes();continue;case 4:if(34!==e)break;a.adPosition=Ex.decode(i,i.uint32());continue;case 27:if(218!==e)break;a.lensPositions.push(ER.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.serveItemId=i.bytes();continue;case 6:if(50!==e)break;a.viewReceipt=i.bytes();continue;case 7:if(58!==e)break;a.adRenderData=i.bytes();continue;case 8:if(64!==e)break;a.adType=i.int32();continue;case 10:if(80!==e)break;a.demandSource=i.int32();continue;case 11:if(90!==e)break;a.eligibleThirdPartyAdNetworkTrackInfo.push(EU.decode(i,i.uint32()));continue;case 12:if(98!==e)break;a.pixelId=i.bytes();continue;case 13:if(106!==e)break;a.skAdNetworkAttribution=EG.decode(i,i.uint32());continue;case 14:if(112!==e)break;a.adMetadataCacheTtlSecs=EX(i.int64());continue;case 15:if(125!==e)break;a.organicValue=i.float();continue;case 16:if(130!==e)break;a.adInsertionConfig=Eg.decode(i,i.uint32());continue;case 17:if(136!==e)break;a.serveTimestampMillis=EX(i.int64());continue;case 18:if(146!==e)break;a.adMetadataCacheConfig=EY.decode(i,i.uint32());continue;case 19:if(152!==e)break;a.adSwipeUpLikely=i.bool();continue;case 20:if(162!==e)break;a.onDeviceInfo=E$.decode(i,i.uint32());continue;case 21:if(168!==e)break;a.enableAppInstallTrackRevamp=i.bool();continue;case 22:if(176!==e)break;a.sponsoredUnlockableType=i.int32();continue;case 23:if(186!==e)break;a.adSquadId=i.bytes();continue;case 24:if(194!==e)break;a.campaignId=i.bytes();continue;case 25:if(202!==e)break;a.adAccountId=i.bytes();continue;case 26:if(213!==e)break;a.swipeProbability=i.float();continue;case 28:if(226!==e)break;a.clientCrawlRequests.push(Ey.decode(i,i.uint32()));continue;case 29:if(232!==e)break;a.optimizationGoal=i.int32();continue;case 30:if(242!==e)break;a.lensMixerMetadata=EL.decode(i,i.uint32());continue;case 31:if(248!==e)break;a.brandSafetyToggleEnabled=i.bool();continue;case 32:if(256!==e)break;a.adDemandSource=i.int32();continue;case 33:if(264!==e)break;a.brandSafetyInventoryType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EB.fromPartial(e??{}),fromPartial(e){let t=EV();return t.adData=e.adData??new Uint8Array(0),t.encryptedAdTrackData=e.encryptedAdTrackData??new Uint8Array(0),t.adId=e.adId??new Uint8Array(0),t.adPosition=void 0!==e.adPosition&&null!==e.adPosition?Ex.fromPartial(e.adPosition):void 0,t.lensPositions=e.lensPositions?.map(e=>ER.fromPartial(e))||[],t.serveItemId=e.serveItemId??new Uint8Array(0),t.viewReceipt=e.viewReceipt??new Uint8Array(0),t.adRenderData=e.adRenderData??new Uint8Array(0),t.adType=e.adType??0,t.demandSource=e.demandSource??0,t.eligibleThirdPartyAdNetworkTrackInfo=e.eligibleThirdPartyAdNetworkTrackInfo?.map(e=>EU.fromPartial(e))||[],t.pixelId=e.pixelId??new Uint8Array(0),t.skAdNetworkAttribution=void 0!==e.skAdNetworkAttribution&&null!==e.skAdNetworkAttribution?EG.fromPartial(e.skAdNetworkAttribution):void 0,t.adMetadataCacheTtlSecs=e.adMetadataCacheTtlSecs??"0",t.organicValue=e.organicValue??0,t.adInsertionConfig=void 0!==e.adInsertionConfig&&null!==e.adInsertionConfig?Eg.fromPartial(e.adInsertionConfig):void 0,t.serveTimestampMillis=e.serveTimestampMillis??"0",t.adMetadataCacheConfig=void 0!==e.adMetadataCacheConfig&&null!==e.adMetadataCacheConfig?EY.fromPartial(e.adMetadataCacheConfig):void 0,t.adSwipeUpLikely=e.adSwi
2peUpLikely??!1,t.onDeviceInfo=void 0!==e.onDeviceInfo&&null!==e.onDeviceInfo?E$.fromPartial(e.onDeviceInfo):void 0,t.enableAppInstallTrackRevamp=e.enableAppInstallTrackRevamp??!1,t.sponsoredUnlockableType=e.sponsoredUnlockableType??0,t.adSquadId=e.adSquadId??new Uint8Array(0),t.campaignId=e.campaignId??new Uint8Array(0),t.adAccountId=e.adAccountId??new Uint8Array(0),t.swipeProbability=e.swipeProbability??0,t.clientCrawlRequests=e.clientCrawlRequests?.map(e=>Ey.fromPartial(e))||[],t.optimizationGoal=e.optimizationGoal??0,t.lensMixerMetadata=void 0!==e.lensMixerMetadata&&null!==e.lensMixerMetadata?EL.fromPartial(e.lensMixerMetadata):void 0,t.brandSafetyToggleEnabled=e.brandSafetyToggleEnabled??!1,t.adDemandSource=e.adDemandSource??0,t.brandSafetyInventoryType=e.brandSafetyInventoryType??0,t}};function EF(){return{skAdNetworkVersion:"",skAdNetworkCampaignIdentifier:void 0,skAdNetworkTimestampMs:void 0,skAdNetworkNonce:new Uint8Array(0),skAdNetworkAttributionSignature:new Uint8Array(0),signatureContentTransformation:0,skAdNetworkViewThroughVersion:"",skAdNetworkViewThroughNonce:new Uint8Array(0),skAdNetworkViewThroughAttributionSignature:new Uint8Array(0),skAdNetworkSourceIdentifier:void 0,adAttributionKitImpressionPayload:""}}let EG={encode:(e,t=rA.default.Writer.create())=>(""!==e.skAdNetworkVersion&&t.uint32(26).string(e.skAdNetworkVersion),void 0!==e.skAdNetworkCampaignIdentifier&&mq.encode({value:e.skAdNetworkCampaignIdentifier},t.uint32(34).fork()).ldelim(),void 0!==e.skAdNetworkTimestampMs&&mK.encode({value:e.skAdNetworkTimestampMs},t.uint32(42).fork()).ldelim(),0!==e.skAdNetworkNonce.length&&t.uint32(50).bytes(e.skAdNetworkNonce),0!==e.skAdNetworkAttributionSignature.length&&t.uint32(58).bytes(e.skAdNetworkAttributionSignature),0!==e.signatureContentTransformation&&t.uint32(64).int32(e.signatureContentTransformation),""!==e.skAdNetworkViewThroughVersion&&t.uint32(74).string(e.skAdNetworkViewThroughVersion),0!==e.skAdNetworkViewThroughNonce.length&&t.uint32(82).bytes(e.skAdNetworkViewThroughNonce),0!==e.skAdNetworkViewThroughAttributionSignature.length&&t.uint32(90).bytes(e.skAdNetworkViewThroughAttributionSignature),void 0!==e.skAdNetworkSourceIdentifier&&mq.encode({value:e.skAdNetworkSourceIdentifier},t.uint32(98).fork()).ldelim(),""!==e.adAttributionKitImpressionPayload&&t.uint32(106).string(e.adAttributionKitImpressionPayload),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 3:if(26!==e)break;a.skAdNetworkVersion=i.string();continue;case 4:if(34!==e)break;a.skAdNetworkCampaignIdentifier=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.skAdNetworkTimestampMs=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.skAdNetworkNonce=i.bytes();continue;case 7:if(58!==e)break;a.skAdNetworkAttributionSignature=i.bytes();continue;case 8:if(64!==e)break;a.signatureContentTransformation=i.int32();continue;case 9:if(74!==e)break;a.skAdNetworkViewThroughVersion=i.string();continue;case 10:if(82!==e)break;a.skAdNetworkViewThroughNonce=i.bytes();continue;case 11:if(90!==e)break;a.skAdNetworkViewThroughAttributionSignature=i.bytes();continue;case 12:if(98!==e)break;a.skAdNetworkSourceIdentifier=mq.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.adAttributionKitImpressionPayload=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EG.fromPartial(e??{}),fromPartial(e){let t=EF();return t.skAdNetworkVersion=e.skAdNetworkVersion??"",t.skAdNetworkCampaignIdentifier=e.skAdNetworkCampaignIdentifier??void 0,t.skAdNetworkTimestampMs=e.skAdNetworkTimestampMs??void 0,t.skAdNetworkNonce=e.skAdNetworkNonce??new Uint8Array(0),t.skAdNetworkAttributionSignature=e.skAdNetworkAttributionSignature??new Uint8Array(0),t.signatureContentTransformation=e.signatureContentTransformation??0,t.skAdNetworkViewThroughVersion=e.skAdNetworkViewThroughVersion??"",t.skAdNetworkViewThroughNonce=e.skAdNetworkViewThroughNonce??new Uint8Array(0),t.skAdNetworkViewThroughAttributionSignature=e.skAdNetworkViewThroughAttributionSignature??new Uint8Array(0),t.skAdNetworkSourceIdentifier=e.skAdNetworkSourceIdentifier??void 0,t.adAttributionKitImpressionPayload=e.adAttributionKitImpressionPayload??"",t}};function EW(){return{index:0,numBrandSafeSlots:0,feedType:0}}let Ex={encode:(e,t=rA.default.Writer.create())=>(0!==e.index&&t.uint32(8).uint32(e.index),0!==e.numBrandSafeSlots&&t.uint32(16).uint32(e.numBrandSafeSlots),0!==e.feedType&&t.uint32(24).int32(e.feedType),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.index=i.uint32();continue;case 2:if(16!==e)break;a.numBrandSafeSlots=i.uint32();continue;case 3:if(24!==e)break;a.feedType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ex.fromPartial(e??{}),fromPartial(e){let t=EW();return t.index=e.index??0,t.numBrandSafeSlots=e.numBrandSafeSlots??0,t.feedType=e.feedType??0,t}};function EH(){return{adMetadataCacheTtlSecs:"0",adMetadataBackupCacheTtlSecs:"0"}}let EY={encode:(e,t=rA.default.Writer.create())=>("0"!==e.adMetadataCacheTtlSecs&&t.uint32(8).int64(e.adMetadataCacheTtlSecs),"0"!==e.adMetadataBackupCacheTtlSecs&&t.uint32(16).int64(e.adMetadataBackupCacheTtlSecs),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.adMetadataCacheTtlSecs=EX(i.int64());continue;case 2:if(16!==e)break;a.adMetadataBackupCacheTtlSecs=EX(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EY.fromPartial(e??{}),fromPartial(e){let t=EH();return t.adMetadataCacheTtlSecs=e.adMetadataCacheTtlSecs??"0",t.adMetadataBackupCacheTtlSecs=e.adMetadataBackupCacheTtlSecs??"0",t}};function EK(){return{onDeviceMatchKey:new Uint8Array(0),eventType:0,dpParams:void 0,enableSidgExclusion:!1,enableCanOpenUrlExclusion:!1}}let E$={encode:(e,t=rA.default.Writer.create())=>(0!==e.onDeviceMatchKey.length&&t.uint32(10).bytes(e.onDeviceMatchKey),0!==e.eventType&&t.uint32(16).int32(e.eventType),void 0!==e.dpParams&&Eq.encode(e.dpParams,t.uint32(26).fork()).ldelim(),!1!==e.enableSidgExclusion&&t.uint32(32).bool(e.enableSidgExclusion),!1!==e.enableCanOpenUrlExclusion&&t.uint32(40).bool(e.enableCanOpenUrlExclusion),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.onDeviceMatchKey=i.bytes();continue;case 2:if(16!==e)break;a.eventType=i.int32();continue;case 3:if(26!==e)break;a.dpParams=Eq.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.enableSidgExclusion=i.bool();continue;case 5:if(40!==e)break;a.enableCanOpenUrlExclusion=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>E$.fromPartial(e??{}),fromPartial(e){let t=EK();return t.onDeviceMatchKey=e.onDeviceMatchKey??new Uint8Array(0),t.eventType=e.eventType??0,t.dpParams=void 0!==e.dpParams&&null!==e.dpParams?Eq.fromPartial(e.dpParams):void 0,t.enableSidgExclusion=e.enableSidgExclusion??!1,t.enableCanOpenUrlExclusion=e.enableCanOpenUrlExclusion??!1,t}};function Ez(){return{tNoise:0,tDp:0,maxN:"0"}}let Eq={encode:(e,t=rA.default.Writer.create())=>(0!==e.tNoise&&t.uint32(13).float(e.tNoise),0!==e.tDp&&t.uint32(21).float(e.tDp),"0"!==e.maxN&&t.uint32(24).int64(e.maxN),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ez();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.tNoise=i.float();continue;case 2:if(21!==e)break;a.tDp=i.float();continue;case 3:if(24!==e)break;a.maxN=EX(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Eq.fromPartial(e??{}),fromPartial(e){let t=Ez();return t.tNoise=e.tNoise??0,t.tDp=e.tDp??0,t.maxN=e.maxN??"0",t}};function EZ(){return{precachedFirstLensId:[],responseExpirationTsMs:"0"}}let Ej={encode(e,t=rA.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.precachedFirstLensId))t.int64(i);return t.ldelim(),"0"!==e.responseExpirationTsMs&&t.uint32(80).int64(e.responseExpirationTsMs),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EZ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.precachedFirstLensId.push(EX(i.int64()));continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.precachedFirstLensId.push(EX(i.int64()));continue}break;case 10:if(80!==e)break;a.responseExpirationTsMs=EX(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ej.fromPartial(e??{}),fromPartial(e){let t=EZ();return t.precachedFirstLensId=e.precachedFirstLensId?.map(e=>e)||[],t.responseExpirationTsMs=e.responseExpirationTsMs??"0",t}};function EX(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());function EQ(){return{name:"",value:void 0}}let EJ={encode:(e,t=rA.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),void 0!==e.value&&Tq.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=EQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.name=i.string();continue;case 2:if(18!==e)break;a.value=Tq.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>EJ.fromPartial(e??{}),fromPartial(e){let t=EQ();return t.name=e.name??"",t.value=void 0!==e.value&&null!==e.value?Tq.fromPartial(e.value):void 0,t}};function E0(){return{encryptedAnonymizedId:new Uint8Array(0),batchedConversionEventsDateTsMs:"0",generationNumber:"0"}}let E2={encode:(e,t=rA.default.Writer.create())=>(0!==e.encryptedAnonymizedId.length&&t.uint32(10).bytes(e.encryptedAnonymizedId),"0"!==e.batchedConversionEventsDateTsMs&&t.uint32(16).int64(e.batchedConversionEventsDateTsMs),"0"!==e.generationNumber&&t.uint32(24).int64(e.generationNumber),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=E0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.encryptedAnonymizedId=i.bytes();continue;case 2:if(16!==e)break;a.batchedConversionEventsDateTsMs=E6(i.int64());continue;case 3:if(24!==e)break;a.generationNumber=E6(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>E2.fromPartial(e??{}),fromPartial(e){let t=E0();return t.encryptedAnonymizedId=e.encryptedAnonymizedId??new Uint8Array(0),t.batchedConversionEventsDateTsMs=e.batchedConversionEventsDateTsMs??"0",t.generationNumber=e.generationNumber??"0",t}};function E3(){return{onDeviceInventoryConfigs:[]}}let E1={encode(e,t=rA.default.Writer.create()){for(let i of e.onDeviceInventoryConfigs)E8.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=E3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.onDeviceInventoryConfigs.push(E8.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>E1.fromPartial(e??{}),fromPartial(e){let t=E3();return t.onDeviceInventoryConfigs=e.onDeviceInventoryConfigs?.map(e=>E8.fromPartial(e))||[],t}};function E4(){return{supportedInventoryType:0,multiAuctionSize:0,onDeviceEnabled:!1,canOpenUrlEnabled:!1}}let E8={encode:(e,t=rA.default.Writer.create())=>(0!==e.supportedInventoryType&&t.uint32(8).int32(e.supportedInventoryType),0!==e.multiAuctionSize&&t.uint32(16).int32(e.multiAuctionSize),!1!==e.onDeviceEnabled&&t.uint32(24).bool(e.onDeviceEnabled),!1!==e.canOpenUrlEnabled&&t.uint32(32).bool(e.canOpenUrlEnabled),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=E4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.supportedInventoryType=i.int32();continue;case 2:if(16!==e)break;a.multiAuctionSize=i.int32();continue;case 3:if(24!==e)break;a.onDeviceEnabled=i.bool();continue;case 4:if(32!==e)break;a.canOpenUrlEnabled=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>E8.fromPartial(e??{}),fromPartial(e){let t=E4();return t.supportedInventoryType=e.supportedInventoryType??0,t.multiAuctionSize=e.multiAuctionSize??0,t.onDeviceEnabled=e.onDeviceEnabled??!1,t.canOpenUrlEnabled=e.canOpenUrlEnabled??!1,t}};function E6(e){return e.toString()}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());var E7=rA;function E5(){return{previewCreativeRenderType:0,firstSubCreativeRenderType:0,attachmentAdType:0}}let E9={encode:(e,t=rA.default.Writer.create())=>(0!==e.previewCreativeRenderType&&t.uint32(8).int32(e.previewCreativeRenderType),0!==e.firstSubCreativeRenderType&&t.uint32(16).int32(e.firstSubCreativeRenderType),0!==e.attachmentAdType&&t.uint32(24).int32(e.attachmentAdType),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=E5();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.previewCreativeRenderType=i.int32();continue;case 2:if(16!==e)break;a.firstSubCreativeRenderType=i.int32();continue;case 3:if(24!==e)break;a.attachmentAdType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>E9.fromPartial(e??{}),fromPartial(e){let t=E5();return t.previewCreativeRenderType=e.previewCreativeRenderType??0,t.firstSubCreativeRenderType=e.firstSubCreativeRenderType??0,t.attachmentAdType=e.attachmentAdType??0,t}};function _e(){return{fus:void 0}}let _t={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.fus&&_n.encode(e.fus,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_e();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.fus=_n.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_t.fromPartial(e??{}),fromPartial(e){let t=_e();return t.fus=void 0!==e.fus&&null!==e.fus?_n.fromPartial(e.fus):void 0,t}};function _i(){return{numUnviewedFriendStories:void 0}}let _n={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.numUnviewedFriendStories&&mq.encode({value:e.numUnviewedFriendStories},t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_i();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.numUnviewedFriendStories=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_n.fromPartial(e??{}),fromPartial(e){let t=_i();return t.numUnviewedFriendStories=e.numUnviewedFriendStories??void 0,t}};function _a(){return{inventoryFullyQualified:"",channel:"",channelId:"",productType:"",publisher:"",publisherId:"0",editionId:"0",posterId:""}}(n2=ez||(ez={}))[n2.IN_FEED_ADS_OPT_IN_STATUS_UNSET=0]="IN_FEED_ADS_OPT_IN_STATUS_UNSET",n2[n2.IN_FEED_ADS_OPT_IN_STATUS_INELIGIBLE=1]="IN_FEED_ADS_OPT_IN_STATUS_INELIGIBLE",n2[n2.IN_FEED_ADS_OPT_IN_STATUS_NO_SELECTION=2]="IN_FEED_ADS_OPT_IN_STATUS_NO_SELECTION",n2[n2.IN_FEED_ADS_OPT_IN_STATUS_OPTED_IN=3]="IN_FEED_ADS_OPT_IN_STATUS_OPTED_IN",n2[n2.IN_FEED_ADS_OPT_IN_STATUS_OPTED_OUT=4]="IN_FEED_ADS_OPT_IN_STATUS_OPTED_OUT",n2[n2.UNRECOGNIZED=-1]="UNRECOGNIZED",(n3=eq||(eq={}))[n3.JSON=0]="JSON",n3[n3.PROTO=1]="PROTO",n3[n3.UNRECOGNIZED=-1]="UNRECOGNIZED";let _o={encode:(e,t=E7.default.Writer.create())=>(""!==e.inventoryFullyQualified&&t.uint32(10).string(e.inventoryFullyQualified),""!==e.channel&&t.uint32(18).string(e.channel),""!==e.channelId&&t.uint32(26).string(e.channelId),""!==e.productType&&t.uint32(34).string(e.productType),""!==e.publisher&&t.uint32(42).string(e.publisher),"0"!==e.publisherId&&t.uint32(48).int64(e.publisherId),"0"!==e.editionId&&t.uint32(56).int64(e.editionId),""!==e.posterId&&t.uint32(66).string(e.posterId),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_a();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(1
20!==e)break;a.inventoryFullyQualified=i.string();continue;case 2:if(18!==e)break;a.channel=i.string();continue;case 3:if(26!==e)break;a.channelId=i.string();continue;case 4:if(34!==e)break;a.productType=i.string();continue;case 5:if(42!==e)break;a.publisher=i.string();continue;case 6:if(48!==e)break;a.publisherId=_O(i.int64());continue;case 7:if(56!==e)break;a.editionId=_O(i.int64());continue;case 8:if(66!==e)break;a.posterId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_o.fromPartial(e??{}),fromPartial(e){let t=_a();return t.inventoryFullyQualified=e.inventoryFullyQualified??"",t.channel=e.channel??"",t.channelId=e.channelId??"",t.productType=e.productType??"",t.publisher=e.publisher??"",t.publisherId=e.publisherId??"0",t.editionId=e.editionId??"0",t.posterId=e.posterId??"",t}};function _r(){return{numOfLowRiskContent:0,numOfMediumRiskContent:0,numOfHighRiskContent:0,numOfFloorRiskContent:0,numOfUnknownRiskContent:0}}let _d={encode:(e,t=E7.default.Writer.create())=>(0!==e.numOfLowRiskContent&&t.uint32(8).int32(e.numOfLowRiskContent),0!==e.numOfMediumRiskContent&&t.uint32(16).int32(e.numOfMediumRiskContent),0!==e.numOfHighRiskContent&&t.uint32(24).int32(e.numOfHighRiskContent),0!==e.numOfFloorRiskContent&&t.uint32(32).int32(e.numOfFloorRiskContent),0!==e.numOfUnknownRiskContent&&t.uint32(40).int32(e.numOfUnknownRiskContent),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_r();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.numOfLowRiskContent=i.int32();continue;case 2:if(16!==e)break;a.numOfMediumRiskContent=i.int32();continue;case 3:if(24!==e)break;a.numOfHighRiskContent=i.int32();continue;case 4:if(32!==e)break;a.numOfFloorRiskContent=i.int32();continue;case 5:if(40!==e)break;a.numOfUnknownRiskContent=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_d.fromPartial(e??{}),fromPartial(e){let t=_r();return t.numOfLowRiskContent=e.numOfLowRiskContent??0,t.numOfMediumRiskContent=e.numOfMediumRiskContent??0,t.numOfHighRiskContent=e.numOfHighRiskContent??0,t.numOfFloorRiskContent=e.numOfFloorRiskContent??0,t.numOfUnknownRiskContent=e.numOfUnknownRiskContent??0,t}};function _s(){return{minFullAdsRequested:0,minStandardAdsRequested:0,minLimitedAdsRequested:0}}let _l={encode:(e,t=E7.default.Writer.create())=>(0!==e.minFullAdsRequested&&t.uint32(8).int32(e.minFullAdsRequested),0!==e.minStandardAdsRequested&&t.uint32(16).int32(e.minStandardAdsRequested),0!==e.minLimitedAdsRequested&&t.uint32(24).int32(e.minLimitedAdsRequested),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_s();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.minFullAdsRequested=i.int32();continue;case 2:if(16!==e)break;a.minStandardAdsRequested=i.int32();continue;case 3:if(24!==e)break;a.minLimitedAdsRequested=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_l.fromPartial(e??{}),fromPartial(e){let t=_s();return t.minFullAdsRequested=e.minFullAdsRequested??0,t.minStandardAdsRequested=e.minStandardAdsRequested??0,t.minLimitedAdsRequested=e.minLimitedAdsRequested??0,t}};function _c(){return{isPetraCapable:!1,isDpaCapable:!1,protoCapableAdTypes:[],canSupportCognacSkippableAds:!1,canSupportExtendedPlayAds:!1,dpaCapableAdTypes:[],storyAdsInUserStoriesEnabled:!1,petraFeatureFlags:void 0,canSupportShowsSkippableAds:!1,supportedAdTypes:[],additionalFormatType:0,storyAdsInContentInterstitialEnabled:!1,canSupportCollectionV2:!1,maxSupportedSkAdNetworkVersion:"",canSupportCollectionAppInstall:!1,topsnapProductsInShowcaseAttachment:!1,canSupportCollectionShowcaseAttachment:!1,canSupportLeadGenV15:!1,maxSupportedSkAdNetworkViewThroughVersion:"",canSupportDpaStoryAds:!1,supportedLeadGenVersion:void 0,canSupportDefaultBrowserDeeplinkFallback:!1,composerSupportedItemTypes:[],supportedDpaComposerTemplateVersion:void 0,supportsOrganicStore:!1,multiAdPodRequestEnabled:!1,offerDisclaimerEnabled:!1,canSupportMultiImageComposerTemplates:!1,canSupportSkanAdsets:!1,isSnapchatPlusAdFreeTier:!1,supportedThirdPartyLoginSources:[],supportedInteractiveStickers:[],isBroccoliCarou
2selRequest:!1,canSupportDpaCollectionAsSnapAd:!1,enableBrowserPrivacyConsent:!1,canSupportSpotlightSurvey:!1,afeTreatmentOverrides:[],f16nModuleLegSelections:[],canSupportSmartCacheAllocation:!1,rafFeatureOverrides:[],rafOfflineCriteriaHashOverrides:[]}}let _u={encode(e,t=E7.default.Writer.create()){for(let i of(!1!==e.isPetraCapable&&t.uint32(8).bool(e.isPetraCapable),!1!==e.isDpaCapable&&t.uint32(16).bool(e.isDpaCapable),t.uint32(26).fork(),e.protoCapableAdTypes))t.int32(i);for(let i of(t.ldelim(),!1!==e.canSupportCognacSkippableAds&&t.uint32(32).bool(e.canSupportCognacSkippableAds),!1!==e.canSupportExtendedPlayAds&&t.uint32(40).bool(e.canSupportExtendedPlayAds),t.uint32(50).fork(),e.dpaCapableAdTypes))t.int32(i);for(let i of(t.ldelim(),!1!==e.storyAdsInUserStoriesEnabled&&t.uint32(56).bool(e.storyAdsInUserStoriesEnabled),void 0!==e.petraFeatureFlags&&_I.encode(e.petraFeatureFlags,t.uint32(66).fork()).ldelim(),!1!==e.canSupportShowsSkippableAds&&t.uint32(72).bool(e.canSupportShowsSkippableAds),t.uint32(82).fork(),e.supportedAdTypes))t.int32(i);for(let i of(t.ldelim(),0!==e.additionalFormatType&&t.uint32(88).int32(e.additionalFormatType),!1!==e.storyAdsInContentInterstitialEnabled&&t.uint32(96).bool(e.storyAdsInContentInterstitialEnabled),!1!==e.canSupportCollectionV2&&t.uint32(104).bool(e.canSupportCollectionV2),""!==e.maxSupportedSkAdNetworkVersion&&t.uint32(114).string(e.maxSupportedSkAdNetworkVersion),!1!==e.canSupportCollectionAppInstall&&t.uint32(120).bool(e.canSupportCollectionAppInstall),!1!==e.topsnapProductsInShowcaseAttachment&&t.uint32(128).bool(e.topsnapProductsInShowcaseAttachment),!1!==e.canSupportCollectionShowcaseAttachment&&t.uint32(136).bool(e.canSupportCollectionShowcaseAttachment),!1!==e.canSupportLeadGenV15&&t.uint32(144).bool(e.canSupportLeadGenV15),""!==e.maxSupportedSkAdNetworkViewThroughVersion&&t.uint32(154).string(e.maxSupportedSkAdNetworkViewThroughVersion),!1!==e.canSupportDpaStoryAds&&t.uint32(160).bool(e.canSupportDpaStoryAds),void 0!==e.supportedLeadGenVersion&&mq.encode({value:e.supportedLeadGenVersion},t.uint32(170).fork()).ldelim(),!1!==e.canSupportDefaultBrowserDeeplinkFallback&&t.uint32(176).bool(e.canSupportDefaultBrowserDeeplinkFallback),t.uint32(186).fork(),e.composerSupportedItemTypes))t.int32(i);for(let i of(t.ldelim(),void 0!==e.supportedDpaComposerTemplateVersion&&mq.encode({value:e.supportedDpaComposerTemplateVersion},t.uint32(194).fork()).ldelim(),!1!==e.supportsOrganicStore&&t.uint32(200).bool(e.supportsOrganicStore),!1!==e.multiAdPodRequestEnabled&&t.uint32(208).bool(e.multiAdPodRequestEnabled),!1!==e.offerDisclaimerEnabled&&t.uint32(216).bool(e.offerDisclaimerEnabled),!1!==e.canSupportMultiImageComposerTemplates&&t.uint32(224).bool(e.canSupportMultiImageComposerTemplates),!1!==e.canSupportSkanAdsets&&t.uint32(232).bool(e.canSupportSkanAdsets),!1!==e.isSnapchatPlusAdFreeTier&&t.uint32(240).bool(e.isSnapchatPlusAdFreeTier),t.uint32(250).fork(),e.supportedThirdPartyLoginSources))t.int32(i);for(let i of(t.ldelim(),t.uint32(258).fork(),e.supportedInteractiveStickers))t.int32(i);for(let i of(t.ldelim(),!1!==e.isBroccoliCarouselRequest&&t.uint32(264).bool(e.isBroccoliCarouselRequest),!1!==e.canSupportDpaCollectionAsSnapAd&&t.uint32(272).bool(e.canSupportDpaCollectionAsSnapAd),!1!==e.enableBrowserPrivacyConsent&&t.uint32(280).bool(e.enableBrowserPrivacyConsent),!1!==e.canSupportSpotlightSurvey&&t.uint32(288).bool(e.canSupportSpotlightSurvey),e.afeTreatmentOverrides))_m.encode(i,t.uint32(298).fork()).ldelim();for(let i of e.f16nModuleLegSelections)__.encode(i,t.uint32(306).fork()).ldelim();for(let i of(!1!==e.canSupportSmartCacheAllocation&&t.uint32(312).bool(e.canSupportSmartCacheAllocation),e.rafFeatureOverrides))_f.encode(i,t.uint32(322).fork()).ldelim();for(let i of(t.uint32(330).fork(),e.rafOfflineCriteriaHashOverrides))t.int64(i);return t.ldelim(),t},decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_c();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isPetraCapable=i.bool();continue;case 2:if(16!==e)break;a.isDpaCapable=i.bool();continue;case 3:if(24===e){a.protoCapableAdTypes.push(i.int32());continue}if(26===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.protoCapableAdTypes.push(i.int32());continue}break;case 4:if(32!==e)break;a.canSupportCognacSkippableAds=i.bool();continue;case 5:if(40!==e)break;a.canSupportExtendedPlayAds=i.bool();continue;case 6:if(48===e){a.dpaCapableAdTypes.push(i.int32());continue}if(50===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.dpaCapableAdTypes.push(i.int32());continue}break;case 7:if(56!==e)break;a.storyAdsInUserStoriesEnabled=i.bool();continue;case 8:if(66!==e)break;a.petraFeatureFlags=_I.decode(i,i.uint32());continue;case 9:if(72!==e)break;a.canSupportShowsSkippableAds=i.bool();continue;case 10:if(80===e){a.supportedAdTypes.push(i.int32());continue}if(82===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.supportedAdTypes.push(i.int32());continue}break;case 11:if(88!==e)break;a.additionalFormatType=i.int32();continue;case 12:if(96!==e)break;a.storyAdsInContentInterstitialEnabled=i.bool();continue;case 13:if(104!==e)break;a.canSupportCollectionV2=i.bool();continue;case 14:if(114!==e)break;a.maxSupportedSkAdNetworkVersion=i.string();continue;case 15:if(120!==e)break;a.canSupportCollectionAppInstall=i.bool();continue;case 16:if(128!==e)break;a.topsnapProductsInShowcaseAttachment=i.bool();continue;case 17:if(136!==e)break;a.canSupportCollectionShowcaseAttachment=i.bool();continue;case 18:if(144!==e)break;a.canSupportLeadGenV15=i.bool();continue;case 19:if(154!==e)break;a.maxSupportedSkAdNetworkViewThroughVersion=i.string();continue;case 20:if(160!==e)break;a.canSupportDpaStoryAds=i.bool();continue;case 21:if(170!==e)break;a.supportedLeadGenVersion=mq.decode(i,i.uint32()).value;continue;case 22:if(176!==e)break;a.canSupportDefaultBrowserDeeplinkFallback=i.bool();continue;case 23:if(184===e){a.composerSupportedItemTypes.push(i.int32());continue}if(186===e){let e=i.uint32()+i.pos;for(;i.pos<e;
2)a.composerSupportedItemTypes.push(i.int32());continue}break;case 24:if(194!==e)break;a.supportedDpaComposerTemplateVersion=mq.decode(i,i.uint32()).value;continue;case 25:if(200!==e)break;a.supportsOrganicStore=i.bool();continue;case 26:if(208!==e)break;a.multiAdPodRequestEnabled=i.bool();continue;case 27:if(216!==e)break;a.offerDisclaimerEnabled=i.bool();continue;case 28:if(224!==e)break;a.canSupportMultiImageComposerTemplates=i.bool();continue;case 29:if(232!==e)break;a.canSupportSkanAdsets=i.bool();continue;case 30:if(240!==e)break;a.isSnapchatPlusAdFreeTier=i.bool();continue;case 31:if(248===e){a.supportedThirdPartyLoginSources.push(i.int32());continue}if(250===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.supportedThirdPartyLoginSources.push(i.int32());continue}break;case 32:if(256===e){a.supportedInteractiveStickers.push(i.int32());continue}if(258===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.supportedInteractiveStickers.push(i.int32());continue}break;case 33:if(264!==e)break;a.isBroccoliCarouselRequest=i.bool();continue;case 34:if(272!==e)break;a.canSupportDpaCollectionAsSnapAd=i.bool();continue;case 35:if(280!==e)break;a.enableBrowserPrivacyConsent=i.bool();continue;case 36:if(288!==e)break;a.canSupportSpotlightSurvey=i.bool();continue;case 37:if(298!==e)break;a.afeTreatmentOverrides.push(_m.decode(i,i.uint32()));continue;case 38:if(306!==e)break;a.f16nModuleLegSelections.push(__.decode(i,i.uint32()));continue;case 39:if(312!==e)break;a.canSupportSmartCacheAllocation=i.bool();continue;case 40:if(322!==e)break;a.rafFeatureOverrides.push(_f.decode(i,i.uint32()));continue;case 41:if(328===e){a.rafOfflineCriteriaHashOverrides.push(_O(i.int64()));continue}if(330===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.rafOfflineCriteriaHashOverrides.push(_O(i.int64()));continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_u.fromPartial(e??{}),fromPartial(e){let t=_c();return t.isPetraCapable=e.isPetraCapable??!1,t.isDpaCapable=e.isDpaCapable??!1,t.protoCapableAdTypes=e.protoCapableAdTypes?.map(e=>e)||[],t.canSupportCognacSkippableAds=e.canSupportCognacSkippableAds??!1,t.canSupportExtendedPlayAds=e.canSupportExtendedPlayAds??!1,t.dpaCapableAdTypes=e.dpaCapableAdTypes?.map(e=>e)||[],t.storyAdsInUserStoriesEnabled=e.storyAdsInUserStoriesEnabled??!1,t.petraFeatureFlags=void 0!==e.petraFeatureFlags&&null!==e.petraFeatureFlags?_I.fromPartial(e.petraFeatureFlags):void 0,t.canSupportShowsSkippableAds=e.canSupportShowsSkippableAds??!1,t.supportedAdTypes=e.supportedAdTypes?.map(e=>e)||[],t.additionalFormatType=e.additionalFormatType??0,t.storyAdsInContentInterstitialEnabled=e.storyAdsInContentInterstitialEnabled??!1,t.canSupportCollectionV2=e.canSupportCollectionV2??!1,t.maxSupportedSkAdNetworkVersion=e.maxSupportedSkAdNetworkVersion??"",t.canSupportCollectionAppInstall=e.canSupportCollectionAppInstall??!1,t.topsnapProductsInShowcaseAttachment=e.topsnapProductsInShowcaseAttachment??!1,t.canSupportCollectionShowcaseAttachment=e.canSupportCollectionShowcaseAttachment??!1,t.canSupportLeadGenV15=e.canSupportLeadGenV15??!1,t.maxSupportedSkAdNetworkViewThroughVersion=e.maxSupportedSkAdNetworkViewThroughVersion??"",t.canSupportDpaStoryAds=e.canSupportDpaStoryAds??!1,t.supportedLeadGenVersion=e.supportedLeadGenVersion??void 0,t.canSupportDefaultBrowserDeeplinkFallback=e.canSupportDefaultBrowserDeeplinkFallback??!1,t.composerSupportedItemTypes=e.composerSupportedItemTypes?.map(e=>e)||[],t.supportedDpaComposerTemplateVersion=e.supportedDpaComposerTemplateVersion??void 0,t.supportsOrganicStore=e.supportsOrganicStore??!1,t.multiAdPodRequestEnabled=e.multiAdPodRequestEnabled??!1,t.offerDisclaimerEnabled=e.offerDisclaimerEnabled??!1,t.canSupportMultiImageComposerTemplates=e.canSupportMultiImageComposerTemplates??!1,t.canSupportSkanAdsets=e.canSupportSkanAdsets??!1,t.isSnapchatPlusAdFreeTier=e.isSnapchatPlusAdFreeTier??!1,t.supportedThirdPartyLoginSources=e.supportedThirdPartyLoginSources?.map(e=>e)||[],t.supportedInteractiveStickers=e.supportedInteractiveStickers?.map(e=>e)||[],t.isBroccoliCarouselRequest=e.isBroccoliCarouselRequest??!1,t.canSupportDpaCollectionAsSnapAd=e.canSupportDpaCollectionAsSnapAd??!1,t.enableBrowserPrivacyConsent=e.enableBrowserPrivacyConsent??!1,t.canSupportSpotlightSurvey=e.canSupportSpotlightSurvey??!1,t.afeTreatmentOverrides=e.afeTreatmentOverrides?.map(e=>_m.fromPartial(e))||[],t.f16nModuleLegSelections=e.f16nModuleLegSelections?.map(e=>__.fromPartial(e))||[],t.canSupportSmartCacheAllocation=e.canSupportSmartCacheAllocation??!1,t.rafFeatureOverrides=e.rafFeatureOverrides?.map(e=>_f.fromPartial(e))||[],t.rafOfflineCriteriaHashOverrides=e.rafOfflineCriteriaHashOverrides?.map(e=>e)||[],t}};function _p(){return{rankingFeatureName:"",rankingFeatureValue:""}}let _f={encode:(e,t=E7.default.Writer.create())=>(""!==e.rankingFeatureName&&t.uint32(10).string(e.rankingFeatureName),""!==e.rankingFeatureValue&&t.uint32(18).string(e.rankingFeatureValue),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_p();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.rankingFeatureName=i.string();continue;case 2:if(18!==e)break;a.rankingFeatureValue=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_f.fromPartial(e??{}),fromPartial(e){let t=_p();return t.rankingFeatureName=e.rankingFeatureName??"",t.rankingFeatureValue=e.rankingFeatureValue??"",t}};function _T(){return{cofName:"",cofValue:""}}let _m={encode:(e,t=E7.default.Writer.create())=>(""!==e.cofName&&t.uint32(10).string(e.cofName),""!==e.cofValue&&t.uint32(18).string(e.cofValue),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_T();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.cofName=i.string();continue;case 2:if(18!==e)break;a.cofValue=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_m.fromPartial(e??{}),fromPartial(e){let t=_T();return t.cofName=e.cofName??"",t.cofValue=e.cofValue??"",t}};function _E(){return{moduleId:"",legId:""}}let __={encode:(e,t=E7.default.Writer.create())=>(""!==e.moduleId&&t.uint32(10).string(e.moduleId),""!==e.legId&&t.uint32(18).string(e.legId),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_E();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.moduleId=i.string();continue;case 2:if(18!==e)break;a.legId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>__.fromPartial(e??{}),fromPartial(e){let t=_E();return t.moduleId=e.moduleId??"",t.legId=e.legId??"",t}};function _S(){return{capableAdTypes:[],capableTopsnapMediaTypes:[],capableNativeTemplateTypes:[]}}let _I={encode(e,t=E7.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.capableAdTypes))t.int32(i);for(let i of(t.ldelim(),t.uint32(18).fork(),e.capableTopsnapMediaTypes))t.int32(i);for(let i of(t.ldelim(),t.uint32(26).fork(),e.capableNativeTemplateTypes))t.int32(i);return t.ldelim(),t},decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_S();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.capableAdTypes.push(i.int32());continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.capableAdTypes.push(i.int32());continue}break;case 2:if(16===e){a.capableTopsnapMediaTypes.push(i.int32());continue}if(18===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.capableTopsnapMediaTypes.push(i.int32());continue}break;case 3:if(24===e){a.capableNativeTemplateTypes.push(i.int32());continue}if(26===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.capableNativeTemplateTypes.push(i.int32());continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_I.fromPartial(e??{}),fromPartial(e){let t=_S();return t.capableAdTypes=e.capableAdTypes?.map(e=>e)||[],t.capableTopsnapMediaTypes=e.capableTopsnapMediaTypes?.map(e=>e)||[],t.capableNativeTemplateTypes=e.capableNativeTemplateTypes?.map(e=>e)||[],t}};function _v(){return{dpaTopSnapDynamic:!1,creativeElementInteractionType:0,collectionDefaultFallbackInteractionType:0,dpaStoryAdMetadata:void 0,debugProductIds:[]}}let _A={encode(e,t=E7.default.Writer.create()){for(let i of(!1!==e.dpaTopSnapDynamic&&t.uint32(8).bool(e.dpaTopSnapDynamic),0!==e.creativeElementInteractionType&&t.uint32(16).int32(e.creativeElementInteractionType),0!==e.collectionDefaultFallbackInteractionType&&t.uint32(24).int32(e.collectionDefaultFallbackInteractionType),void 0!==e.dpaStoryAdMetadata&&E9.encode(e.dpaStoryAdMetadata,t.uint32(34).fork()).ldelim(),e.debugProductIds))t.uint32(42).string(i);return t},decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_v();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.dpaTopSnapDynamic=i.bool();continue;case 2:if(16!==e)break;a.creativeElementInteractionType=i.int32();continue;case 3:if(24!==e)break;a.collectionDefaultFallbackInteractionType=i.int32();continue;case 4:if(34!==e)break;a.dpaStoryAdMetadata=E9.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.debugProductIds.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_A.fromPartial(e??{}),fromPartial(e){let t=_v();return t.dpaTopSnapDynamic=e.dpaTopSnapDynamic??!1,t.creativeElementInteractionType=e.creativeElementInteractionType??0,t.collectionDefaultFallbackInteractionType=e.collectionDefaultFallbackInteractionType??0,t.dpaStoryAdMetadata=void 0!==e.dpaStoryAdMetadata&&null!==e.dpaStoryAdMetadata?E9.fromPartial(e.dpaStoryAdMetadata):void 0,t.debugProductIds=e.debugProductIds?.map(e=>e)||[],t}};function _k(){return{adId:new Uint8Array(0),requestId:new Uint8Array(0)}}let _b={encode:(e,t=E7.default.Writer.create())=>(0!==e.adId.length&&t.uint32(10).bytes(e.adId),0!==e.requestId.length&&t.uint32(18).bytes(e.requestId),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_k();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adId=i.bytes();continue;case 2:if(18!==e)break;a.requestId=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_b.fromPartial(e??{}),fromPartial(e){let t=_k();return t.adId=e.adId??new Uint8Array(0),t.requestId=e.requestId??new Uint8Array(0),t}};
2function _g(){return{mapSessionId:"0",tileId:"0",excludeNoFills:!1,noFillCapacity:0}}let _N={encode:(e,t=E7.default.Writer.create())=>("0"!==e.mapSessionId&&t.uint32(8).uint64(e.mapSessionId),"0"!==e.tileId&&t.uint32(16).uint64(e.tileId),!1!==e.excludeNoFills&&t.uint32(24).bool(e.excludeNoFills),0!==e.noFillCapacity&&t.uint32(32).uint32(e.noFillCapacity),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_g();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mapSessionId=_O(i.uint64());continue;case 2:if(16!==e)break;a.tileId=_O(i.uint64());continue;case 3:if(24!==e)break;a.excludeNoFills=i.bool();continue;case 4:if(32!==e)break;a.noFillCapacity=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_N.fromPartial(e??{}),fromPartial(e){let t=_g();return t.mapSessionId=e.mapSessionId??"0",t.tileId=e.tileId??"0",t.excludeNoFills=e.excludeNoFills??!1,t.noFillCapacity=e.noFillCapacity??0,t}};function _R(){return{numChatsPresent:0,numPinnedChats:0,chatFeedAdsOptInStatus:0,numUnreadConversations:0}}let _P={encode:(e,t=E7.default.Writer.create())=>(0!==e.numChatsPresent&&t.uint32(8).uint32(e.numChatsPresent),0!==e.numPinnedChats&&t.uint32(16).uint32(e.numPinnedChats),0!==e.chatFeedAdsOptInStatus&&t.uint32(24).int32(e.chatFeedAdsOptInStatus),0!==e.numUnreadConversations&&t.uint32(32).uint32(e.numUnreadConversations),t),decode(e,t){let i=e instanceof E7.default.Reader?e:E7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_R();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.numChatsPresent=i.uint32();continue;case 2:if(16!==e)break;a.numPinnedChats=i.uint32();continue;case 3:if(24!==e)break;a.chatFeedAdsOptInStatus=i.int32();continue;case 4:if(32!==e)break;a.numUnreadConversations=i.uint32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_P.fromPartial(e??{}),fromPartial(e){let t=_R();return t.numChatsPresent=e.numChatsPresent??0,t.numPinnedChats=e.numPinnedChats??0,t.chatFeedAdsOptInStatus=e.chatFeedAdsOptInStatus??0,t.numUnreadConversations=e.numUnreadConversations??0,t}};function _O(e){return e.toString()}function _C(){return{visualTags:[]}}E7.default.util.Long!==rv.default&&(E7.default.util.Long=rv.default,E7.default.configure()),(n1=eZ||(eZ={}))[n1.VISUAL_OBJECT_LABEL_UNSET=0]="VISUAL_OBJECT_LABEL_UNSET",n1[n1.PERSON=1]="PERSON",n1[n1.DOG=2]="DOG",n1[n1.CAT=3]="CAT",n1[n1.CAR=4]="CAR",n1[n1.TREE=5]="TREE",n1[n1.FOOD=6]="FOOD",n1[n1.UNRECOGNIZED=-1]="UNRECOGNIZED";let _y={encode(e,t=rA.default.Writer.create()){for(let i of e.visualTags)_L.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_C();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.visualTags.push(_L.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_y.fromPartial(e??{}),fromPartial(e){let t=_C();return t.visualTags=e.visualTags?.map(e=>_L.fromPartial(e))||[],t}};function _h(){return{label:0,score:0,freeFormLabel:""}}let _L={encode:(e,t=rA.default.Writer.create())=>(0!==e.label&&t.uint32(8).int32(e.label),0!==e.score&&t.uint32(21).float(e.score),""!==e.freeFormLabel&&t.uint32(26).string(e.freeFormLabel),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_h();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.label=i.int32();continue;case 2:if(21!==e)break;a.score=i.float();continue;case 3:if(26!==e)break;a.freeFormLabel=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_L.fromPartial(e??{}),fromPartial(e){let t=_h();return t.label=e.label??0,t.score=e.score??0,t.freeFormLabel=e.freeFormLabel??"",t}};function _D(){return{cameraType:0,snapType:0,predictedContext:void 0,snapSource:0,preCaptureLensId:"",preCaptureCaptionTags:[],preCaptureCaptionEmbedding:[]}}(n4=ej||(ej={}))[n4.SNAP_TYPE_UNSET=0]="SNAP_TYPE_UNSET",n4[n4.IMAGE=1]="IMAGE",n4[n4.VIDEO=2]="VIDEO",n4[n4.UNRECOGNIZED=-1]="UNRECOGNIZED";let _w={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.cameraType&&t.uint32(8).int32(e.cameraType),0!==e.snapType&&t.uint32(16).int32(e.snapType),void 0!==e.predictedContext&&_y.encode(e.predictedContext,t.uint32(34).fork()).ldelim(),0!==e.snapSource&&t.uint32(40).int32(e.snapSource),""!==e.preCaptureLensId&&t.uint32(50).string(e.pre
2CaptureLensId),e.preCaptureCaptionTags))t.uint32(74).string(i);for(let i of(t.uint32(82).fork(),e.preCaptureCaptionEmbedding))t.float(i);return t.ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_D();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.cameraType=i.int32();continue;case 2:if(16!==e)break;a.snapType=i.int32();continue;case 4:if(34!==e)break;a.predictedContext=_y.decode(i,i.uint32());continue;case 5:if(40!==e)break;a.snapSource=i.int32();continue;case 6:if(50!==e)break;a.preCaptureLensId=i.string();continue;case 9:if(74!==e)break;a.preCaptureCaptionTags.push(i.string());continue;case 10:if(85===e){a.preCaptureCaptionEmbedding.push(i.float());continue}if(82===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.preCaptureCaptionEmbedding.push(i.float());continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_w.fromPartial(e??{}),fromPartial(e){let t=_D();return t.cameraType=e.cameraType??0,t.snapType=e.snapType??0,t.predictedContext=void 0!==e.predictedContext&&null!==e.predictedContext?_y.fromPartial(e.predictedContext):void 0,t.snapSource=e.snapSource??0,t.preCaptureLensId=e.preCaptureLensId??"",t.preCaptureCaptionTags=e.preCaptureCaptionTags?.map(e=>e)||[],t.preCaptureCaptionEmbedding=e.preCaptureCaptionEmbedding?.map(e=>e)||[],t}};(n8=eX||(eX={}))[n8.CAMERA_DIRECTION_UNSET=0]="CAMERA_DIRECTION_UNSET",n8[n8.FRONT=1]="FRONT",n8[n8.BACK=2]="BACK",n8[n8.UNRECOGNIZED=-1]="UNRECOGNIZED";function _M(){return{startTimestampMillis:void 0,totalLensViewTimeMillis:void 0,totalLensAdViewTimeMillis:void 0,totalLensViewCount:void 0,totalLensAdViewCount:void 0,totalLensAdSwipeUpCount:void 0,totalLensSwipeUpCount:void 0,totalLensAdLongformViewTimeMillis:void 0,totalLensSnapTakenCount:void 0,totalAdLensSnapTakenCount:void 0,totalLensShareCount:void 0,totalAdLensShareCount:void 0,totalLensSnapSendCount:void 0,totalAdLensSnapSendCount:void 0}}let _U={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.startTimestampMillis&&mK.encode({value:e.startTimestampMillis},t.uint32(10).fork()).ldelim(),void 0!==e.totalLensViewTimeMillis&&mK.encode({value:e.totalLensViewTimeMillis},t.uint32(18).fork()).ldelim(),void 0!==e.totalLensAdViewTimeMillis&&mK.encode({value:e.totalLensAdViewTimeMillis},t.uint32(26).fork()).ldelim(),void 0!==e.totalLensViewCount&&mq.encode({value:e.totalLensViewCount},t.uint32(34).fork()).ldelim(),void 0!==e.totalLensAdViewCount&&mq.encode({value:e.totalLensAdViewCount},t.uint32(42).fork()).ldelim(),void 0!==e.totalLensAdSwipeUpCount&&mq.encode({value:e.totalLensAdSwipeUpCount},t.uint32(50).fork()).ldelim(),void 0!==e.totalLensSwipeUpCount&&mq.encode({value:e.totalLensSwipeUpCount},t.uint32(58).fork()).ldelim(),void 0!==e.totalLensAdLongformViewTimeMillis&&mK.encode({value:e.totalLensAdLongformViewTimeMillis},t.uint32(66).fork()).ldelim(),void 0!==e.totalLensSnapTakenCount&&mq.encode({value:e.totalLensSnapTakenCount},t.uint32(74).fork()).ldelim(),void 0!==e.totalAdLensSnapTakenCount&&mq.encode({value:e.totalAdLensSnapTakenCount},t.uint32(82).fork()).ldelim(),void 0!==e.totalLensShareCount&&mq.encode({value:e.totalLensShareCount},t.uint32(90).fork()).ldelim(),void 0!==e.totalAdLensShareCount&&mq.encode({value:e.totalAdLensShareCount},t.uint32(98).fork()).ldelim(),void 0!==e.totalLensSnapSendCount&&mq.encode({value:e.totalLensSnapSendCount},t.uint32(106).fork()).ldelim(),void 0!==e.totalAdLensSnapSendCount&&mq.encode({value:e.totalAdLensSnapSendCount},t.uint32(114).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_M();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.startTimestampMillis=mK.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.totalLensViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.totalLensAdViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.totalLensViewCount=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.totalLensAdViewCount=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.totalLensAdSwipeUpCount=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.totalLensSwipeUpCount=mq.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.totalLensAdLongformViewTimeMillis=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.totalLensSnapTakenCount=mq.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.totalAdLensSnapTakenCount=mq.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.totalLensShareCount=mq.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.totalAdLensShareCount=mq.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.totalLensSnapSendCount=mq.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.totalAdLensSnapSendCount=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_U.fromPartial(e??{}),fromPartial(e){let t=_M();return t.startTimestampMillis=e.startTimestampMillis??void 0,t.totalLensViewTimeMillis=e.totalLensViewTimeMillis??void 0,t.totalLensAdViewTimeMillis=e.totalLensAdViewTimeMillis??void 0,t.totalLensViewCount=e.totalLensViewCount??void 0,t.totalLensAdViewCount=e.totalLensAdViewCount??void 0,t.totalLensAdSwipeUpCount=e.totalLensAdSwipeUpCount??void 0,t.totalLensSwipeUpCount=e.totalLensSwipeUpCount??void 0,t.totalLensAdLongformViewTimeMillis=e.totalLensAdLongformViewTimeMillis??void 0,t.totalLensSnapTakenCount=e.totalLensSnapTakenCount??void 0,t.totalAdLensSnapTakenCount=e.totalAdLensSnapTakenCount??void 0,t.totalLensShareCount=e.totalLensShareCount??void 0,t.totalAdLensShareCount=e.totalAdLensShareCount??void 0,t.totalLensSnapSendCount=e.totalLensSnapSendCount??void 0,t.totalAdLensSnapSendCount=e.totalAdLensSnapSendCount??void 0,t}};s7.default.grpc,(n6=eQ||(eQ={}))[n6.AD_NETWORK_TYPE_UNKNOWN=0]="AD_NETWORK_TYPE_UNKNOWN",n6[n6.AD_NETWORK_TYPE_PETRA=1]="AD_NETWORK_TYPE_PETRA",n6[n6.UNRECOGNIZED=-1]="UNRECOGNIZED",(n7=eJ||(eJ={}))[n7.UTF8_DECODE=0]="UTF8_DECODE",n7[n7.BASE64_ENCODE=1]="BASE64_ENCODE",n7[n7.PROTO=2]="PROTO",n7[n7.UNRECOGNIZED=-1]="UNRECOGNIZED",(n5=e0||(e0={}))[n5.UNSET_DESIGN=0]="UNSET_DESIGN",n5[n5.SIMPLE_SNAPCHAT=1]="SIMPLE_SNAPCHAT",n5[n5.UNRECOGNIZED=-1]="UNRECOGNIZED",(n9=e2||(e2={}))[n9.NOT_DETERMINED=0]="NOT_DETERMINED",n9[n9.RESTRICTED=1]="RESTRICTED",n9[n9.DENIED=2]="DENIED",n9[n9.AUTHORIZED=3]="AUTHORIZED",n9[n9.UNRECOGNIZED=-1]="UNRECOGNIZED",(ae=e3||(e3={}))[ae.UNKNOWN=0]="UNKNOWN",ae[ae.COMPLETE_CHECK=1]="COMPLETE_CHECK",ae[ae.PARTIAL_CHECK=2]="PARTIAL_CHECK",ae[ae.UNRECOGNIZED=-1]="UNRECOGNIZED",(at=e1||(e1={}))[at.UNKNOWN=0]="UNKNOWN",at[at.HORIZONTAL=1]="HORIZONTAL",at[at.VERTICAL=2]="VERTICAL",at[at.UNRECOGNIZED=-1]="UNRECOGNIZED";function _V(){return{trackCreationTimeMillis:"0",recentViewReceipt:ne
2w Uint8Array(0)}}let _B={encode:(e,t=m2.default.Writer.create())=>("0"!==e.trackCreationTimeMillis&&t.uint32(8).int64(e.trackCreationTimeMillis),0!==e.recentViewReceipt.length&&t.uint32(18).bytes(e.recentViewReceipt),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_V();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.trackCreationTimeMillis=Sl(i.int64());continue;case 2:if(18!==e)break;a.recentViewReceipt=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_B.fromPartial(e??{}),fromPartial(e){let t=_V();return t.trackCreationTimeMillis=e.trackCreationTimeMillis??"0",t.recentViewReceipt=e.recentViewReceipt??new Uint8Array(0),t}};function _F(){return{said:new Uint8Array(0),isAdsHoldout:!1,debugConfig:void 0,abTest:void 0,isEmployee:!1,isNewUser:!1,targetingToken:"",createdTimestampMillis:void 0,age:void 0,gender:0,snapUserStatus:0,storyAdsInUserStoriesEnabled:!1,isPartiallyFilled:!1,userId:new Uint8Array(0),clientIp:new Uint8Array(0),dspInfo:[]}}let _G={encode(e,t=m2.default.Writer.create()){for(let i of(0!==e.said.length&&t.uint32(10).bytes(e.said),!1!==e.isAdsHoldout&&t.uint32(16).bool(e.isAdsHoldout),void 0!==e.debugConfig&&_0.encode(e.debugConfig,t.uint32(26).fork()).ldelim(),void 0!==e.abTest&&_4.encode(e.abTest,t.uint32(34).fork()).ldelim(),!1!==e.isEmployee&&t.uint32(40).bool(e.isEmployee),!1!==e.isNewUser&&t.uint32(48).bool(e.isNewUser),""!==e.targetingToken&&t.uint32(58).string(e.targetingToken),void 0!==e.createdTimestampMillis&&mK.encode({value:e.createdTimestampMillis},t.uint32(66).fork()).ldelim(),void 0!==e.age&&mq.encode({value:e.age},t.uint32(74).fork()).ldelim(),0!==e.gender&&t.uint32(80).int32(e.gender),0!==e.snapUserStatus&&t.uint32(88).int32(e.snapUserStatus),!1!==e.storyAdsInUserStoriesEnabled&&t.uint32(96).bool(e.storyAdsInUserStoriesEnabled),!1!==e.isPartiallyFilled&&t.uint32(104).bool(e.isPartiallyFilled),0!==e.userId.length&&t.uint32(114).bytes(e.userId),0!==e.clientIp.length&&t.uint32(122).bytes(e.clientIp),e.dspInfo))_x.encode(i,t.uint32(130).fork()).ldelim();return t},decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_F();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.said=i.bytes();continue;case 2:if(16!==e)break;a.isAdsHoldout=i.bool();continue;case 3:if(26!==e)break;a.debugConfig=_0.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.abTest=_4.decode(i,i.uint32());continue;case 5:if(40!==e)break;a.isEmployee=i.bool();continue;case 6:if(48!==e)break;a.isNewUser=i.bool();continue;case 7:if(58!==e)break;a.targetingToken=i.string();continue;case 8:if(66!==e)break;a.createdTimestampMillis=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.age=mq.decode(i,i.uint32()).value;continue;case 10:if(80!==e)break;a.gender=i.int32();continue;case 11:if(88!==e)break;a.snapUserStatus=i.int32();continue;case 12:if(96!==e)break;a.storyAdsInUserStoriesEnabled=i.bool();continue;case 13:if(104!==e)break;a.isPartiallyFilled=i.bool();continue;case 14:if(114!==e)break;a.userId=i.bytes();continue;case 15:if(122!==e)break;a.clientIp=i.bytes();continue;case 16:if(130!==e)break;a.dspInfo.push(_x.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_G.fromPartial(e??{}),fromPartial(e){let t=_F();return t.said=e.said??new Uint8Array(0),t.isAdsHoldout=e.isAdsHoldout??!1,t.debugConfig=void 0!==e.debugConfig&&null!==e.debugConfig?_0.fromPartial(e.debugConfig):void 0,t.abTest=void 0!==e.abTest&&null!==e.abTest?_4.fromPartial(e.abTest):void 0,t.isEmployee=e.isEmployee??!1,t.isNewUser=e.isNewUser??!1,t.targetingToken=e.targetingToken??"",t.createdTimestampMillis=e.createdTimestampMillis??void 0,t.age=e.age??void 0,t.gender=e.gender??0,t.snapUserStatus=e.snapUserStatus??0,t.storyAdsInUserStoriesEnabled=e.storyAdsInUserStoriesEnabled??!1,t.isPartiallyFilled=e.isPartiallyFilled??!1,t.userId=e.userId??new Uint8Array(0),t.clientIp=e.clientIp??new Uint8Array(0),t.dspInfo=e.dspInfo?.map(e=>_x.fromPartial(e))||[],t}};function _W(){return{demandSource:0,segmentId:"0",membershipValue:0}}let _x={encode:(e,t=m2.default.Writer.create())=>(0!==e.demandSource&&t.uint32(8).int32(e.demandSource),"0"!==e.segmentId&&t.uint32(16).int64(e.segmentId),0!==e.membershipValue&&t.uint32(29).float(e.membershipValue),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_W();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.demandSource=i.int32();continue;case 2:if(16!==e)break;a.segmentId=Sl(i.int64());continue;case 3:if(29!==e)break;a.membershipValue=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_x.fromPartial(e??{}),fromPartial(e){let t=_W();return t.demandSource=e.demandSource??0,t.segmentId=e.segmentId??"0",t.membershipValue=e.membershipValue??0,t}};function _H(){return{appName:"",appVersionNumeric:"0",appVariant:"",appVariantEnum:0,appType:0,adKitApplication:void 0,appUptimeMs:void 0,sourceAppId:"",isNativeClient:!1,appSessionId:void 0,appDesign:0}}let _Y={encode:(e,t=m2.default.Writer.create())=>(""!==e.appName&&t.uint32(10).string(e.appName),"0"!==e.appVersionNumeric&&t.uint32(16).int64(e.appVersionNumeric),""!==e.appVariant&&t.uint32(26).string(e.appVariant),0!==e.appVariantEnum&&t.uint32(32).int32(e.appVariantEnum),0!==e.appType&&t.uint32(40).int32(e.appType),void 0!==e.adKitApplication&&_$.encode(e.adKitApplication,t.uint32(58).fork()).ldelim(),void 0!==e.appUptimeMs&&mK.encode({value:e.appUptimeMs},t.uint32(66).fork()).ldelim(),""!==e.sourceAppId&&t.uint32(74).string(e.sourceAppId),!1!==e.isNativeClient&&t.uint32(80).bool(e.isNativeClient),void 0!==e.appSessionId&&mJ.encode({value:e.appSessionId},t.uint32(90).fork()).ldelim(),0!==e.appDesign&&t.uint32(96).int32(e.appDesign),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_H();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.appName=i.string();continue;case 2:if(16!==e)break;a.appVersionNumeric=Sl(i.int64());continue;case 3:if(26!==e)break;a.appVariant=i.string();continue;case 4:if(32!==e)break;a.appVariantEnum=i.int32();continue;case 5:if(40!==e)break;a.appType=i.int32();continue;case 7:if(58!==e)break;a.adKitApplication=_$.decode(i,i.uint32());continue;case 8:if(66!==e)break;a.appUptimeMs=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.sourceAppId=i.string();continue;case 10:if(80!==e)break;a.isNativeClient=i.bool();continue;case 11:if(90!==e)break;a.appSessionId=mJ.decode(i,i.uint32()).value;continue;case 12:if(96!==e)break;a.appDesign=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_Y.fromPartial(e??{}),fromPartial(e){let t=_H();return t.appName=e.appName??"",t.appVersionNumeric=e.appVersionNumeric??"0",t.appVariant=e.appVariant??"",t.appVariantEnum=e.appVariantEnum??0,t.appType=e.appType??0,t.adKitApplication=void 0!==e.adKitApplication&&null!==e.adKitApplication?_$.fromPartial(e.adKitApplication):void 0,t.appUptimeMs=e.appUptimeMs??void 0,t.sourceAppId=e.sourceAppId??"",t.isNativeClient=e.isNativeClient??!1,t.appSessionId=e.appSessionId??void 0,t.appDesign=e.appDesign??0,t}}
2;function _K(){return{applicationIdentifier:"",snapkitAppId:new Uint8Array(0),adkitSdkVersionNumeric:"0"}}let _$={encode:(e,t=m2.default.Writer.create())=>(""!==e.applicationIdentifier&&t.uint32(10).string(e.applicationIdentifier),0!==e.snapkitAppId.length&&t.uint32(18).bytes(e.snapkitAppId),"0"!==e.adkitSdkVersionNumeric&&t.uint32(24).int64(e.adkitSdkVersionNumeric),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_K();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.applicationIdentifier=i.string();continue;case 2:if(18!==e)break;a.snapkitAppId=i.bytes();continue;case 3:if(24!==e)break;a.adkitSdkVersionNumeric=Sl(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_$.fromPartial(e??{}),fromPartial(e){let t=_K();return t.applicationIdentifier=e.applicationIdentifier??"",t.snapkitAppId=e.snapkitAppId??new Uint8Array(0),t.adkitSdkVersionNumeric=e.adkitSdkVersionNumeric??"0",t}};function _z(){return{limitAdTracking:!1,audienceMatchOptOut:!1,externalActivityMatchOptOut:!1,thirdPartyAdNetworkOptOut:!1,euDsaPersonalizedAdsOptOut:!1}}let _q={encode:(e,t=m2.default.Writer.create())=>(!1!==e.limitAdTracking&&t.uint32(8).bool(e.limitAdTracking),!1!==e.audienceMatchOptOut&&t.uint32(16).bool(e.audienceMatchOptOut),!1!==e.externalActivityMatchOptOut&&t.uint32(24).bool(e.externalActivityMatchOptOut),!1!==e.thirdPartyAdNetworkOptOut&&t.uint32(32).bool(e.thirdPartyAdNetworkOptOut),!1!==e.euDsaPersonalizedAdsOptOut&&t.uint32(40).bool(e.euDsaPersonalizedAdsOptOut),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_z();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.limitAdTracking=i.bool();continue;case 2:if(16!==e)break;a.audienceMatchOptOut=i.bool();continue;case 3:if(24!==e)break;a.externalActivityMatchOptOut=i.bool();continue;case 4:if(32!==e)break;a.thirdPartyAdNetworkOptOut=i.bool();continue;case 5:if(40!==e)break;a.euDsaPersonalizedAdsOptOut=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_q.fromPartial(e??{}),fromPartial(e){let t=_z();return t.limitAdTracking=e.limitAdTracking??!1,t.audienceMatchOptOut=e.audienceMatchOptOut??!1,t.externalActivityMatchOptOut=e.externalActivityMatchOptOut??!1,t.thirdPartyAdNetworkOptOut=e.thirdPartyAdNetworkOptOut??!1,t.euDsaPersonalizedAdsOptOut=e.euDsaPersonalizedAdsOptOut??!1,t}};function _Z(){return{idfa:new Uint8Array(0),platformType:0,deviceModel:"",osVersionNumeric:"0",deviceLanguage:"",soundIsOn:!1,buildNumber:"",batteryPercent:void 0,isBatteryCharging:void 0,diskTotalSpaceKb:void 0,diskFreeSpaceKb:void 0,androidMobileServiceType:0,systemUptimeMs:void 0,idfv:new Uint8Array(0),attAuthStatus:0,audioPlaybackVolume:void 0,screenWidth:void 0,screenHeight:void 0,defaultBrowserPackageName:"",navigationMode:"",screenWidthDp:void 0,screenHeightDp:void 0,storefrontCountry:""}}let _j={encode:(e,t=m2.default.Writer.create())=>(0!==e.idfa.length&&t.uint32(10).bytes(e.idfa),0!==e.platformType&&t.uint32(16).int32(e.platformType),""!==e.deviceModel&&t.uint32(26).string(e.deviceModel),"0"!==e.osVersionNumeric&&t.uint32(32).int64(e.osVersionNumeric),""!==e.deviceLanguage&&t.uint32(42).string(e.deviceLanguage),!1!==e.soundIsOn&&t.uint32(48).bool(e.soundIsOn),""!==e.buildNumber&&t.uint32(58).string(e.buildNumber),void 0!==e.batteryPercent&&mq.encode({value:e.batteryPercent},t.uint32(66).fork()).ldelim(),void 0!==e.isBatteryCharging&&mX.encode({value:e.isBatteryCharging},t.uint32(74).fork()).ldelim(),void 0!==e.diskTotalSpaceKb&&mK.encode({value:e.diskTotalSpaceKb},t.uint32(82).fork()).ldelim(),void 0!==e.diskFreeSpaceKb&&mK.encode({value:e.diskFreeSpaceKb},t.uint32(90).fork()).ldelim(),0!==e.androidMobileServiceType&&t.uint32(96).int32(e.androidMobileServiceType),void 0!==e.systemUptimeMs&&mK.encode({value:e.systemUptimeMs},t.uint32(106).fork()).ldelim(),0!==e.idfv.length&&t.uint32(114).bytes(e.idfv),0!==e.attAuthStatus&&t.uint32(120).int32(e.attAuthStatus),void 0!==e.audioPlaybackVolume&&mH.encode({value:e.audioPlaybackVolume},t.uint32(130).fork()).ldelim(),void 0!==e.screenWidth&&mK.encode({value:e.screenWidth},t.uint32(138).fork()).ldelim(),void 0!==e.screenHeight&&mK.encode({value:e.screenHeight},t.uint32(146).fork()).ldelim(),""!==e.defaultBrowserPackageName&&t.uint32(154).string(e.defaultBrowserPackageName),""!==e.navigationMode&&t.uint32(162).string(e.navigationMode),void 0!==e.screenWidthDp&&mK.encode({value:e.screenWidthDp},t.uint32(170).fork()).ldelim(),void 0!==e.screenHeightDp&&mK.encode({value:e.screenHeightDp},t.uint32(178).fork()).ldelim(),""!==e.storefrontCountry&&t.uint32(186).string(e.storefrontCountry),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_Z();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.idfa=i.bytes();continue;case 2:if(16!==e)break;a.platformType=i.int32();continue;case 3:if(26!==e)break;a.deviceModel=i.string();continue;case 4:if(32!==e)break;a.osVersionNumeric=Sl(i.int64());continue;case 5:if(42!==e)break;a.deviceLanguage=i.string();continue;case 6:if(48!==e)break;a.soundIsOn=i.bool();continue;case 7:if(58!==e)break;a.buildNumber=i.string();continue;case 8:if(66!==e)break;a.batteryPercent=mq.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.isBatteryCharging=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.diskTotalSpaceKb=mK.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.diskFreeSpaceKb=mK.decode(i,i.uint32()).value;continue;case 12:if(96!==e)break;a.androidMobileServiceType=i.int32();continue;case 13:if(106!==e)break;a.systemUptimeMs=mK.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.idfv=i.bytes();continue;case 15:if(120!==e)break;a.attAuthStatus=i.int32();continue;case 16:if(130!==e)break;a.audioPlaybackVolume=mH.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.screenWidth=mK.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;
2a.screenHeight=mK.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.defaultBrowserPackageName=i.string();continue;case 20:if(162!==e)break;a.navigationMode=i.string();continue;case 21:if(170!==e)break;a.screenWidthDp=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.screenHeightDp=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.storefrontCountry=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_j.fromPartial(e??{}),fromPartial(e){let t=_Z();return t.idfa=e.idfa??new Uint8Array(0),t.platformType=e.platformType??0,t.deviceModel=e.deviceModel??"",t.osVersionNumeric=e.osVersionNumeric??"0",t.deviceLanguage=e.deviceLanguage??"",t.soundIsOn=e.soundIsOn??!1,t.buildNumber=e.buildNumber??"",t.batteryPercent=e.batteryPercent??void 0,t.isBatteryCharging=e.isBatteryCharging??void 0,t.diskTotalSpaceKb=e.diskTotalSpaceKb??void 0,t.diskFreeSpaceKb=e.diskFreeSpaceKb??void 0,t.androidMobileServiceType=e.androidMobileServiceType??0,t.systemUptimeMs=e.systemUptimeMs??void 0,t.idfv=e.idfv??new Uint8Array(0),t.attAuthStatus=e.attAuthStatus??0,t.audioPlaybackVolume=e.audioPlaybackVolume??void 0,t.screenWidth=e.screenWidth??void 0,t.screenHeight=e.screenHeight??void 0,t.defaultBrowserPackageName=e.defaultBrowserPackageName??"",t.navigationMode=e.navigationMode??"",t.screenWidthDp=e.screenWidthDp??void 0,t.screenHeightDp=e.screenHeightDp??void 0,t.storefrontCountry=e.storefrontCountry??"",t}};function _X(){return{connectionType:0,mccMnc:"",clientIp:new Uint8Array(0),carrier:"",kiloBytesPerSecond:"0",cellularNetworkType:0}}let _Q={encode:(e,t=m2.default.Writer.create())=>(0!==e.connectionType&&t.uint32(8).int32(e.connectionType),""!==e.mccMnc&&t.uint32(18).string(e.mccMnc),0!==e.clientIp.length&&t.uint32(26).bytes(e.clientIp),""!==e.carrier&&t.uint32(34).string(e.carrier),"0"!==e.kiloBytesPerSecond&&t.uint32(40).int64(e.kiloBytesPerSecond),0!==e.cellularNetworkType&&t.uint32(48).int32(e.cellularNetworkType),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_X();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.connectionType=i.int32();continue;case 2:if(18!==e)break;a.mccMnc=i.string();continue;case 3:if(26!==e)break;a.clientIp=i.bytes();continue;case 4:if(34!==e)break;a.carrier=i.string();continue;case 5:if(40!==e)break;a.kiloBytesPerSecond=Sl(i.int64());continue;case 6:if(48!==e)break;a.cellularNetworkType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_Q.fromPartial(e??{}),fromPartial(e){let t=_X();return t.connectionType=e.connectionType??0,t.mccMnc=e.mccMnc??"",t.clientIp=e.clientIp??new Uint8Array(0),t.carrier=e.carrier??"",t.kiloBytesPerSecond=e.kiloBytesPerSecond??"0",t.cellularNetworkType=e.cellularNetworkType??0,t}};function _J(){return{isTestUser:!1,isAutomationUser:!1,skipInventoryCapping:!1,testGroups:[]}}let _0={encode(e,t=m2.default.Writer.create()){for(let i of(!1!==e.isTestUser&&t.uint32(8).bool(e.isTestUser),!1!==e.isAutomationUser&&t.uint32(16).bool(e.isAutomationUser),!1!==e.skipInventoryCapping&&t.uint32(24).bool(e.skipInventoryCapping),e.testGroups))t.uint32(34).string(i);return t},decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_J();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.isTestUser=i.bool();continue;case 2:if(16!==e)break;a.isAutomationUser=i.bool();continue;case 3:if(24!==e)break;a.skipInventoryCapping=i.bool();continue;case 4:if(34!==e)break;a.testGroups.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_0.fromPartial(e??{}),fromPartial(e){let t=_J();return t.isTestUser=e.isTestUser??!1,t.isAutomationUser=e.isAutomationUser??!1,t.skipInventoryCapping=e.skipInventoryCapping??!1,t.testGroups=e.testGroups?.map(e=>e)||[],t}};function _2(){return{rankingSlotId:0,segmentId:"0",experimentId:"0",experimentAwareFeatureIndex:0,logValue:""}}let _3={encode:(e,t=m2.default.Writer.create())=>(0!==e.rankingSlotId&&t.uint32(8).int32(e.rankingSlotId),"0"!==e.segmentId&&t.uint32(16).int64(e.segmentId),"0"!==e.experimentId&&t.uint32(24).int64(e.experimentId),0!==e.experimentAwareFeatureIndex&&t.uint32(32).int32(e.experimentAwareFeatureIndex),""!==e.logValue&&t.uint32(42).string(e.logValue),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.rankingSlotId=i.int32();continue;case 2:if(16!==e)break;a.segmentId=Sl(i.int64());continue;case 3:if(24!==e)break;a.experimentId=Sl(i.int64());continue;case 4:if(32!==e)break;a.experimentAwareFeatureIndex=i.int32();continue;case 5:if(42!==e)break;a.logValue=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_3.fromPartial(e??{}),fromPartial(e){let t=_2();
2return t.rankingSlotId=e.rankingSlotId??0,t.segmentId=e.segmentId??"0",t.experimentId=e.experimentId??"0",t.experimentAwareFeatureIndex=e.experimentAwareFeatureIndex??0,t.logValue=e.logValue??"",t}};function _1(){return{adLoadTestExperimentGroup:"",budgetAbStudy:void 0,skipPrediction:void 0,swipePrediction:void 0,installPrediction:void 0,clientRankingAbStudy:void 0,webviewPrefetchStudy:void 0,abTestUserSegment:"",abTestUserSegment20:"",storyAdsDisabled:!1,discoverFeedCarouselAdsEnabled:!1,discoverFeedCarouselAdsNumOrganicTilesBetweenAds:0,discoverFeedCarouselAdsMinFeedAdPositionIndex:0,userInAdsHoldout:!1,adserverOgRouteToApiGw:void 0,isAcquiredUser:!1,latencyDelayMs:0,newUserGracePeriodDaysSinceCreation:void 0,discoverFeedStoryAdsNumOrganicTilesBetweenAds:void 0,discoverFeedStoryAdsMinFeedAdPositionIndex:void 0,arShoppingEnabled:!1,webviewPrefetchThreshold:0,onDeviceInventoryConfigs:void 0,webviewPrefetchDisableOverride:!1,arShoppingRemoteLensEnabled:!1,voperaVariantIdentifier:0,lookserySponsoredGeoBackStudyGroup:"",disableBlockWebviewPreloading:!1,isForcedExternalBrowser:!1,shouldWebviewUrlAddClickId:!1,webviewLightningModeSafeguardEnabled:!1,webviewClientCrawlSafeguardEnabled:!1,storiesRemoveInterstitial:!1,storiesEnableThinProgressBar:!1,storiesEnableProgressBar:!1,shouldDeeplinkUrlAddClickId:!1,webviewLightningModeServerRedirectUrlEnable:!1,webviewExtendedLifecycleServerControlEnabled:!1,lightningModeServerAppraisalScoreThreshold:0,webviewLightningModeNonDoubleclickServerRedirectUrlEnable:!1,webviewLightningModeJavascriptRedirectUrlEnable:!1,forceExtBrowserAndroidNonPixelStar:!1,treatmentDataForAllowlistedAbConsoleStudies:[],dynamicConfigs:{},storyAdMapExcluded:!1,storyAdSeeMore:0,clientRankingAbs:[],isVOperaCtaCustomizationOn:!1,isPostCaptureAdServingBlocked:!1,featureEngineConfigs:[]}}let _4={encode(e,t=m2.default.Writer.create()){for(let i of(""!==e.adLoadTestExperimentGroup&&t.uint32(10).string(e.adLoadTestExperimentGroup),void 0!==e.budgetAbStudy&&m1.encode(e.budgetAbStudy,t.uint32(18).fork()).ldelim(),void 0!==e.skipPrediction&&m7.encode(e.skipPrediction,t.uint32(26).fork()).ldelim(),void 0!==e.swipePrediction&&m7.encode(e.swipePrediction,t.uint32(34).fork()).ldelim(),void 0!==e.installPrediction&&m7.encode(e.installPrediction,t.uint32(42).fork()).ldelim(),void 0!==e.clientRankingAbStudy&&m8.encode(e.clientRankingAbStudy,t.uint32(50).fork()).ldelim(),void 0!==e.webviewPrefetchStudy&&m9.encode(e.webviewPrefetchStudy,t.uint32(58).fork()).ldelim(),""!==e.abTestUserSegment&&t.uint32(66).string(e.abTestUserSegment),""!==e.abTestUserSegment20&&t.uint32(74).string(e.abTestUserSegment20),!1!==e.storyAdsDisabled&&t.uint32(80).bool(e.storyAdsDisabled),!1!==e.discoverFeedCarouselAdsEnabled&&t.uint32(88).bool(e.discoverFeedCarouselAdsEnabled),0!==e.discoverFeedCarouselAdsNumOrganicTilesBetweenAds&&t.uint32(96).int32(e.discoverFeedCarouselAdsNumOrganicTilesBetweenAds),0!==e.discoverFeedCarouselAdsMinFeedAdPositionIndex&&t.uint32(104).int32(e.discoverFeedCarouselAdsMinFeedAdPositionIndex),!1!==e.userInAdsHoldout&&t.uint32(112).bool(e.userInAdsHoldout),void 0!==e.adserverOgRouteToApiGw&&mX.encode({value:e.adserverOgRouteToApiGw},t.uint32(122).fork()).ldelim(),!1!==e.isAcquiredUser&&t.uint32(128).bool(e.isAcquiredUser),0!==e.latencyDelayMs&&t.uint32(136).uint32(e.latencyDelayMs),void 0!==e.newUserGracePeriodDaysSinceCreation&&mq.encode({value:e.newUserGracePeriodDaysSinceCreation},t.uint32(146).fork()).ldelim(),void 0!==e.discoverFeedStoryAdsNumOrganicTilesBetweenAds&&mq.encode({value:e.discoverFeedStoryAdsNumOrganicTilesBetweenAds},t.uint32(154).fork()).ldelim(),void 0!==e.discoverFeedStoryAdsMinFeedAdPositionIndex&&mq.encode({value:e.discoverFeedStoryAdsMinFeedAdPositionIndex},t.uint32(162).fork()).ldelim(),!1!==e.arShoppingEnabled&&t.uint32(168).bool(e.arShoppingEnabled),0!==e.webviewPrefetchThreshold&&t.uint32(181).float(e.webviewPrefetchThreshold),void 0!==e.onDeviceInventoryConfigs&&E1.encode(e.onDeviceInventoryConfigs,t.uint32(186).fork()).ldelim(),!1!==e.webviewPrefetchDisableOverride&&t.uint32(192).bool(e.webviewPrefetchDisableOverride),!1!==e.arShoppingRemoteLensEnabled&&t.uint32(200).bool(e.arShoppingRemoteLensEnabled),0!==e.voperaVariantIdentifier&&t.uint32(208).int32(e.voperaVariantIdentifier),""!==e.lookserySponsoredGeoBackStudyGroup&&t.uint32(218).string(e.lookserySponsoredGeoBackStudyGroup),!1!==e.disableBlockWebviewPreloading&&t.uint32(224).bool(e.disableBlockWebviewPreloading),!1!==e.isForcedExternalBrowser&&t.uint32(232).bool(e.isForcedExternalBrowser),!1!==e.shouldWebviewUrlAddClickId&&t.uint32(240).bool(e.shouldWebviewUrlAddClickId),!1!==e.webviewLightningModeSafeguardEnabled&&t.uint32(248).bool(e.webviewLightningModeSafeguardEnabled),!1!==e.webviewClientCrawlSafeguardEnabled&&t.uint32(256).bool(e.webviewClientCrawlSafeguardEnabled),!1!==e.storiesRemoveInterstitial&&t.uint32(264).bool(e.storiesRemoveInterstitial),!1!==e.storiesEnableThinProgressBar&&t.uint32(272).bool(e.storiesEnableThinProgressBar),!1!==e.storiesEnableProgressBar&&t.uint32(280).bool(e.storiesEnableProgressBar),!1!==e.shouldDeeplinkUrlAddClickId&&t.uint32(288).bool(e.shouldDeeplinkUrlAddClickId),!1!==e.webviewLightningModeServerRedirectUrlEnable&&t.uint32(296).bool(e.webviewLightningModeServerRedirectUrlEnable),!1!==e.webviewExtendedLifecycleServerControlEnabled&&t.uint32(304).bool(e.webviewExtendedLifecycleServerControlEnabled),0!==e.lightningModeServerAppraisalScoreThreshold&&t.uint32(317).float(e.lightningModeServerAppraisalScoreThreshold),!1!==e.webviewLightningModeNonDoubleclickServerRedirectUrlEnable&&t.uint32(320).bool(e.webviewLightningModeNonDoubleclickServerRedirectUrlEnable),!1!==e.webviewLightningModeJavascriptRedirectUrlEnable&&t.uint32(328).bool(e.webviewLightningModeJavascriptRedirectUrlEnable),!1!==e.forceExtBrowserAndroidNonPixelStar&&t.uint32(336).bool(e.forceExtBrowserAndroidNonPixelStar),e.treatmentDataForAllowlistedAbConsoleStudies))Se.encode(i,t.uint32(346).fork()).ldelim();
2for(let i of(Object.entries(e.dynamicConfigs).forEach(([e,i])=>{_6.encode({key:e,value:i},t.uint32(354).fork()).ldelim()}),!1!==e.storyAdMapExcluded&&t.uint32(360).bool(e.storyAdMapExcluded),0!==e.storyAdSeeMore&&t.uint32(368).int32(e.storyAdSeeMore),e.clientRankingAbs))_3.encode(i,t.uint32(378).fork()).ldelim();for(let i of(!1!==e.isVOperaCtaCustomizationOn&&t.uint32(384).bool(e.isVOperaCtaCustomizationOn),!1!==e.isPostCaptureAdServingBlocked&&t.uint32(392).bool(e.isPostCaptureAdServingBlocked),e.featureEngineConfigs))_5.encode(i,t.uint32(402).fork()).ldelim();return t},decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adLoadTestExperimentGroup=i.string();continue;case 2:if(18!==e)break;a.budgetAbStudy=m1.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.skipPrediction=m7.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.swipePrediction=m7.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.installPrediction=m7.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.clientRankingAbStudy=m8.decode(i,i.uint32());continue;case 7:if(58!==e)break;a.webviewPrefetchStudy=m9.decode(i,i.uint32());continue;case 8:if(66!==e)break;a.abTestUserSegment=i.string();continue;case 9:if(74!==e)break;a.abTestUserSegment20=i.string();continue;case 10:if(80!==e)break;a.storyAdsDisabled=i.bool();continue;case 11:if(88!==e)break;a.discoverFeedCarouselAdsEnabled=i.bool();continue;case 12:if(96!==e)break;a.discoverFeedCarouselAdsNumOrganicTilesBetweenAds=i.int32();continue;case 13:if(104!==e)break;a.discoverFeedCarouselAdsMinFeedAdPositionIndex=i.int32();continue;case 14:if(112!==e)break;a.userInAdsHoldout=i.bool();continue;case 15:if(122!==e)break;a.adserverOgRouteToApiGw=mX.decode(i,i.uint32()).value;continue;case 16:if(128!==e)break;a.isAcquiredUser=i.bool();continue;case 17:if(136!==e)break;a.latencyDelayMs=i.uint32();continue;case 18:if(146!==e)break;a.newUserGracePeriodDaysSinceCreation=mq.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.discoverFeedStoryAdsNumOrganicTilesBetweenAds=mq.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.discoverFeedStoryAdsMinFeedAdPositionIndex=mq.decode(i,i.uint32()).value;continue;case 21:if(168!==e)break;a.arShoppingEnabled=i.bool();continue;case 22:if(181!==e)break;a.webviewPrefetchThreshold=i.float();continue;case 23:if(186!==e)break;a.onDeviceInventoryConfigs=E1.decode(i,i.uint32());continue;case 24:if(192!==e)break;a.webviewPrefetchDisableOverride=i.bool();continue;case 25:if(200!==e)break;a.arShoppingRemoteLensEnabled=i.bool();continue;case 26:if(208!==e)break;a.voperaVariantIdentifier=i.int32();continue;case 27:if(218!==e)break;a.lookserySponsoredGeoBackStudyGroup=i.string();continue;case 28:if(224!==e)break;a.disableBlockWebviewPreloading=i.bool();continue;case 29:if(232!==e)break;a.isForcedExternalBrowser=i.bool();continue;case 30:if(240!==e)break;a.shouldWebviewUrlAddClickId=i.bool();continue;case 31:if(248!==e)break;a.webviewLightningModeSafeguardEnabled=i.bool();continue;case 32:if(256!==e)break;a.webviewClientCrawlSafeguardEnabled=i.bool();continue;case 33:if(264!==e)break;a.storiesRemoveInterstitial=i.bool();continue;case 34:if(272!==e)break;a.storiesEnableThinProgressBar=i.bool();continue;case 35:if(280!==e)break;a.storiesEnableProgressBar=i.bool();continue;case 36:if(288!==e)break;a.shouldDeeplinkUrlAddClickId=i.bool();continue;case 37:if(296!==e)break;a.webviewLightningModeServerRedirectUrlEnable=i.bool();continue;case 38:if(304!==e)break;a.webviewExtendedLifecycleServerControlEnabled=i.bool();continue;case 39:if(317!==e)break;a.lightningModeServerAppraisalScoreThreshold=i.float();continue;case 40:if(320!==e)break;a.webviewLightningModeNonDoubleclickServerRedirectUrlEnable=i.bool();continue;case 41:if(328!==e)break;a.webviewLightningModeJavascriptRedirectUrlEnable=i.bool();continue;case 42:if(336!==e)break;a.forceExtBrowserAndroidNonPixelStar=i.bool();continue;case 43:if(346!==e)break;a.treatmentDataForAllowlistedAbConsoleStudies.push(Se.decode(i,i.uint32()));continue;case 44:if(354!==e)break;let t=_6.decode(i,i.uint32());
2void 0!==t.value&&(a.dynamicConfigs[t.key]=t.value);continue;case 45:if(360!==e)break;a.storyAdMapExcluded=i.bool();continue;case 46:if(368!==e)break;a.storyAdSeeMore=i.int32();continue;case 47:if(378!==e)break;a.clientRankingAbs.push(_3.decode(i,i.uint32()));continue;case 48:if(384!==e)break;a.isVOperaCtaCustomizationOn=i.bool();continue;case 49:if(392!==e)break;a.isPostCaptureAdServingBlocked=i.bool();continue;case 50:if(402!==e)break;a.featureEngineConfigs.push(_5.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_4.fromPartial(e??{}),fromPartial(e){let t=_1();return t.adLoadTestExperimentGroup=e.adLoadTestExperimentGroup??"",t.budgetAbStudy=void 0!==e.budgetAbStudy&&null!==e.budgetAbStudy?m1.fromPartial(e.budgetAbStudy):void 0,t.skipPrediction=void 0!==e.skipPrediction&&null!==e.skipPrediction?m7.fromPartial(e.skipPrediction):void 0,t.swipePrediction=void 0!==e.swipePrediction&&null!==e.swipePrediction?m7.fromPartial(e.swipePrediction):void 0,t.installPrediction=void 0!==e.installPrediction&&null!==e.installPrediction?m7.fromPartial(e.installPrediction):void 0,t.clientRankingAbStudy=void 0!==e.clientRankingAbStudy&&null!==e.clientRankingAbStudy?m8.fromPartial(e.clientRankingAbStudy):void 0,t.webviewPrefetchStudy=void 0!==e.webviewPrefetchStudy&&null!==e.webviewPrefetchStudy?m9.fromPartial(e.webviewPrefetchStudy):void 0,t.abTestUserSegment=e.abTestUserSegment??"",t.abTestUserSegment20=e.abTestUserSegment20??"",t.storyAdsDisabled=e.storyAdsDisabled??!1,t.discoverFeedCarouselAdsEnabled=e.discoverFeedCarouselAdsEnabled??!1,t.discoverFeedCarouselAdsNumOrganicTilesBetweenAds=e.discoverFeedCarouselAdsNumOrganicTilesBetweenAds??0,t.discoverFeedCarouselAdsMinFeedAdPositionIndex=e.discoverFeedCarouselAdsMinFeedAdPositionIndex??0,t.userInAdsHoldout=e.userInAdsHoldout??!1,t.adserverOgRouteToApiGw=e.adserverOgRouteToApiGw??void 0,t.isAcquiredUser=e.isAcquiredUser??!1,t.latencyDelayMs=e.latencyDelayMs??0,t.newUserGracePeriodDaysSinceCreation=e.newUserGracePeriodDaysSinceCreation??void 0,t.discoverFeedStoryAdsNumOrganicTilesBetweenAds=e.discoverFeedStoryAdsNumOrganicTilesBetweenAds??void 0,t.discoverFeedStoryAdsMinFeedAdPositionIndex=e.discoverFeedStoryAdsMinFeedAdPositionIndex??void 0,t.arShoppingEnabled=e.arShoppingEnabled??!1,t.webviewPrefetchThreshold=e.webviewPrefetchThreshold??0,t.onDeviceInventoryConfigs=void 0!==e.onDeviceInventoryConfigs&&null!==e.onDeviceInventoryConfigs?E1.fromPartial(e.onDeviceInventoryConfigs):void 0,t.webviewPrefetchDisableOverride=e.webviewPrefetchDisableOverride??!1,t.arShoppingRemoteLensEnabled=e.arShoppingRemoteLensEnabled??!1,t.voperaVariantIdentifier=e.voperaVariantIdentifier??0,t.lookserySponsoredGeoBackStudyGroup=e.lookserySponsoredGeoBackStudyGroup??"",t.disableBlockWebviewPreloading=e.disableBlockWebviewPreloading??!1,t.isForcedExternalBrowser=e.isForcedExternalBrowser??!1,t.shouldWebviewUrlAddClickId=e.shouldWebviewUrlAddClickId??!1,t.webviewLightningModeSafeguardEnabled=e.webviewLightningModeSafeguardEnabled??!1,t.webviewClientCrawlSafeguardEnabled=e.webviewClientCrawlSafeguardEnabled??!1,t.storiesRemoveInterstitial=e.storiesRemoveInterstitial??!1,t.storiesEnableThinProgressBar=e.storiesEnableThinProgressBar??!1,t.storiesEnableProgressBar=e.storiesEnableProgressBar??!1,t.shouldDeeplinkUrlAddClickId=e.shouldDeeplinkUrlAddClickId??!1,t.webviewLightningModeServerRedirectUrlEnable=e.webviewLightningModeServerRedirectUrlEnable??!1,t.webviewExtendedLifecycleServerControlEnabled=e.webviewExtendedLifecycleServerControlEnabled??!1,t.lightningModeServerAppraisalScoreThreshold=e.lightningModeServerAppraisalScoreThreshold??0,t.webviewLightningModeNonDoubleclickServerRedirectUrlEnable=e.webviewLightningModeNonDoubleclickServerRedirectUrlEnable??!1,t.webviewLightningModeJavascriptRedirectUrlEnable=e.webviewLightningModeJavascriptRedirectUrlEnable??!1,t.forceExtBrowserAndroidNonPixelStar=e.forceExtBrowserAndroidNonPixelStar??!1,t.treatmentDataForAllowlistedAbConsoleStudies=e.treatmentDataForAllowlistedAbConsoleStudies?.map(e=>Se.fromPartial(e))||[],t.dynamicConfigs=Object.entries(e.dynamicConfigs??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=Tq.fromPartial(i)),e),{}),t.storyAdMapExcluded=e.storyAdMapExcluded??!1,t.storyAdSeeMore=e.storyAdSeeMore??0,t.clientRankingAbs=e.clientRankingAbs?.map(e=>_3.fromPartial(e))||[],t.isVOperaCtaCustomizationOn=e.isVOperaCtaCustomizationOn??!1,t.isPostCaptureAdServingBlocked=e.isPostCaptureAdServingBlocked??!1,t.featureEngineConfigs=e.featureEngineConfigs?.map(e=>_5.fromPartial(e))||[],t}};function _8(){return{key:"",value:void 0}}let _6={encode:(e,t=m2.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&Tq.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=Tq.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_6.fromPartial(e??{}),fromPartial(e){let t=_8();return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?Tq.fromPartial(e.value):void 0,t}};function _7(){return{cofName:"",cofValue:""}}let _5={encode:(e,t=m2.default.Writer.create())=>(""!==e.cofName&&t.uint32(10).string(e.cofName),""!==e.cofValue&&t.uint32(18).string(e.cofValue),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.cofName=i.string();continue;case 2:if(18!==e)break;a.cofValue=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>_5.fromPartial(e??{}),fromPartial(e){let t=_7();return t.cofName=e.cofName??"",t.cofValue=e.cofValue??"",t}};function _9(){return{segmentId:0,experimentId:0,cofStudyName:"",rankingSlotId:0,rankingSlotIdV2:void 0}}let Se={encode:(e,t=m2.default.Writer.create())=>(0!==e.segmentId&&t.uint32(8).int32(e.segmentId),0!==e.experimentId&&t.uint32(16).int32(e.experimentId),""!==e.cofStudyName&&t.uint32(26).string(e.cofStudyName),0!==e.rankingSlotId&&t.uint32(32).int32(e.rankingSlotId),void 0!==e.rankingSlotIdV2&&mq.encode({value:e.rankingSlotIdV2},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=_9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.segmentId=i.int32();continue;case 2:if(16!==e)break;a.experimentId=i.int32();continue;case 3:if(26!==e)break;a.cofStudyName=i.string();continue;case 4:if(32!==e)break;a.rankingSlotId=i.int32();continue;case 5:if(42!==e)break;a.rankingSlotIdV2=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Se.fromPartial(e??{}),fromPartial(e){let t=_9();return t.segmentId=e.segmentId??0,t.experimentId=e.experimentId??0,t.cofStudyName=e.cofStudyName??"",t.rankingSlotId=e.rankingSlotId??
20,t.rankingSlotIdV2=e.rankingSlotIdV2??void 0,t}};function St(){return{mode:0,isBrandSafe:!1}}let Si={encode:(e,t=m2.default.Writer.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),!1!==e.isBrandSafe&&t.uint32(16).bool(e.isBrandSafe),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=St();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mode=i.int32();continue;case 2:if(16!==e)break;a.isBrandSafe=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Si.fromPartial(e??{}),fromPartial(e){let t=St();return t.mode=e.mode??0,t.isBrandSafe=e.isBrandSafe??!1,t}};function Sn(){return{corpus:0,fp:"0",isSubscribed:!1,isPinned:!1,isBrandSafeQualified:!1,finalScore:0,sccTags:[],userEngagementScore:0,sccV3Tags:[],garmBrandSafety:0}}let Sa={encode(e,t=m2.default.Writer.create()){for(let i of(0!==e.corpus&&t.uint32(48).int32(e.corpus),"0"!==e.fp&&t.uint32(56).uint64(e.fp),!1!==e.isSubscribed&&t.uint32(16).bool(e.isSubscribed),!1!==e.isPinned&&t.uint32(24).bool(e.isPinned),!1!==e.isBrandSafeQualified&&t.uint32(32).bool(e.isBrandSafeQualified),0!==e.finalScore&&t.uint32(41).double(e.finalScore),e.sccTags))Sr.encode(i,t.uint32(66).fork()).ldelim();for(let i of(0!==e.userEngagementScore&&t.uint32(77).float(e.userEngagementScore),e.sccV3Tags))Sr.encode(i,t.uint32(82).fork()).ldelim();return 0!==e.garmBrandSafety&&t.uint32(88).int32(e.garmBrandSafety),t},decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sn();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 6:if(48!==e)break;a.corpus=i.int32();continue;case 7:if(56!==e)break;a.fp=Sl(i.uint64());continue;case 2:if(16!==e)break;a.isSubscribed=i.bool();continue;case 3:if(24!==e)break;a.isPinned=i.bool();continue;case 4:if(32!==e)break;a.isBrandSafeQualified=i.bool();continue;case 5:if(41!==e)break;a.finalScore=i.double();continue;case 8:if(66!==e)break;a.sccTags.push(Sr.decode(i,i.uint32()));continue;case 9:if(77!==e)break;a.userEngagementScore=i.float();continue;case 10:if(82!==e)break;a.sccV3Tags.push(Sr.decode(i,i.uint32()));continue;case 11:if(88!==e)break;a.garmBrandSafety=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sa.fromPartial(e??{}),fromPartial(e){let t=Sn();return t.corpus=e.corpus??0,t.fp=e.fp??"0",t.isSubscribed=e.isSubscribed??!1,t.isPinned=e.isPinned??!1,t.isBrandSafeQualified=e.isBrandSafeQualified??!1,t.finalScore=e.finalScore??0,t.sccTags=e.sccTags?.map(e=>Sr.fromPartial(e))||[],t.userEngagementScore=e.userEngagementScore??0,t.sccV3Tags=e.sccV3Tags?.map(e=>Sr.fromPartial(e))||[],t.garmBrandSafety=e.garmBrandSafety??0,t}};function So(){return{sccTag:0,weight:0}}let Sr={encode:(e,t=m2.default.Writer.create())=>(0!==e.sccTag&&t.uint32(8).int32(e.sccTag),0!==e.weight&&t.uint32(21).float(e.weight),t),decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=So();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.sccTag=i.int32();continue;case 2:if(21!==e)break;a.weight=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sr.fromPartial(e??{}),fromPartial(e){let t=So();return t.sccTag=e.sccTag??0,t.weight=e.weight??0,t}};function Sd(){return{storyOffset:0,feedType:0,feedStyle:0,adsDisabled:!1,minAdsPos:0,sccTags:[],stories:[]}}let Ss={encode(e,t=m2.default.Writer.create()){for(let i of(0!==e.storyOffset&&t.uint32(8).uint32(e.storyOffset),0!==e.feedType&&t.uint32(16).int32(e.feedType),0!==e.feedStyle&&t.uint32(32).int32(e.feedStyle),!1!==e.adsDisabled&&t.uint32(40).bool(e.adsDisabled),0!==e.minAdsPos&&t.uint32(48).uint32(e.minAdsPos),e.sccTags))t.uint32(58).string(i);for(let i of e.stories)Sa.encode(i,t.uint32(26).fork()).ldelim();return t},decode(e,t){let i=e instanceof m2.default.Reader?e:m2.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sd();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.storyOffset=i.uint32();continue;case 2:if(16!==e)break;a.feedType=i.int32();continue;case 4:if(32!==e)break;a.feedStyle=i.int32();continue;case 5:if(40!==e)break;a.adsDisabled=i.bool();continue;case 6:if(48!==e)break;a.minAdsPos=i.uint32();continue;case 7:if(58!==e)break;a.sccTags.push(i.string());continue;case 3:if(26!==e)break;a.stories.push(Sa.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ss.fromPartial(e??{}),fromPartial(e){let t=Sd();return t.storyOffset=e.storyOffset??0,t.feedType=e.feedType??0,t.feedStyle=e.feedStyle??0,t.adsDisabled=e.adsDisabled??!1,t.minAdsPos=e.minAdsPos??0,t.sccTags=e.sccTags?.map(e=>e)||[],t.stories=e.stories?.map(e=>Sa.fromPartial(e))||[],t}};function Sl(e){return e.toString()}function Sc(){return{shouldDisableAds:!1,endCardAffordance:0,adkitDismissAffordance:void 0,shouldEnableBolt:!1,boltStreamingThresholdMs:void 0,adkitRewardedDismissAffordance:void 0,skAdNetworkVersion:"",embeddedAdStyle:0,webBrowserType:0,videoAssetOptions:{},shouldEnableGraphene:!1,grapheneSamplingPercentage:void 0,shouldEnableHeaderBidding:!1,smallFormatLocalization:!1,shouldDisableCof:!1,crashReportingDisabled:!1,shouldDisableCofPersistence:!1}}m2.default.util.Long!==rv.default&&(m2.default.util.Long=rv.default,m2.default.configure()),(ai=e4||(e4={}))[ai.NOT_ELIGIBLE=0]="NOT_ELIGIBLE",ai[ai.DEFAULT=1]="DEFAULT",ai[ai.TRANSPARENT_CARD_PURPLE_BUTTON=2]="TRANSPARENT_CARD_PURPLE_BUTTON",ai[ai.GRAY_TOP_BAR_BLUE_BUTTON=3]="GRAY_TOP_BAR_BLUE_BUTTON",ai[ai.UNRECOGNIZED=-1]="UNRECOGNIZED",(an=e8||(e8={}))[an.WEB_BROWSER_V11=0]="WEB_BROWSER_V11",an[an.SAFARI=1]="SAFARI",an[an.UNRECOGNIZED=-1]="UNRECOGNIZED",(aa=e6||(e6={}))[aa.END_CARD_NONE=0]="END_CARD_NONE",aa[aa.END_CARD_FULL_IMMEDIATE=1]="END_CARD_FULL_IMMEDIATE",aa[aa.UNRECOGNIZED=-1]="UNRECOGNIZED";let Su={encode:(e,t=rA.default.Writer.create())=>(!1!==e.shouldDisableAds&&t.uint32(8).bool(e.shouldDisableAds),0!==e.endCardAffordance&&t.uint32(16).int32(e.endCardAffordance),void 0!==e.adkitDismissAffordance&&S_.encode(e.adkitDismissAffordance,t.uint32(26).fork()).ldelim(),!1!==e.shouldEnableBolt&&t.uint32(32).bool(e.shouldEnableBolt),void 0!==e.boltStreamingThresholdMs&&mK.encode({value:e.boltStreamingThresholdMs},t.uint32(42).fork()).ldelim(),void 0!==e.adkitRewardedDismissAffordance&&S_.encode(e.adkitRewardedDismissAffordance,t.uint32(50).fork()).ldelim(),""!==e.skAdNetworkVersion&&t.uint32(58).string(e.skAdNetworkVersion),0!==e.embeddedAdStyle&&t.uint32(64).int32(e.embeddedAdStyle),0!==e.webBrowserType&&t.uint32(72).int32(e.webBrowserType),Object.entries(e.videoAssetOptions).forEac
2h(([e,i])=>{Sf.encode({key:e,value:i},t.uint32(82).fork()).ldelim()}),!1!==e.shouldEnableGraphene&&t.uint32(88).bool(e.shouldEnableGraphene),void 0!==e.grapheneSamplingPercentage&&mZ.encode({value:e.grapheneSamplingPercentage},t.uint32(98).fork()).ldelim(),!1!==e.shouldEnableHeaderBidding&&t.uint32(104).bool(e.shouldEnableHeaderBidding),!1!==e.smallFormatLocalization&&t.uint32(112).bool(e.smallFormatLocalization),!1!==e.shouldDisableCof&&t.uint32(120).bool(e.shouldDisableCof),!1!==e.crashReportingDisabled&&t.uint32(128).bool(e.crashReportingDisabled),!1!==e.shouldDisableCofPersistence&&t.uint32(136).bool(e.shouldDisableCofPersistence),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.shouldDisableAds=i.bool();continue;case 2:if(16!==e)break;a.endCardAffordance=i.int32();continue;case 3:if(26!==e)break;a.adkitDismissAffordance=S_.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.shouldEnableBolt=i.bool();continue;case 5:if(42!==e)break;a.boltStreamingThresholdMs=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.adkitRewardedDismissAffordance=S_.decode(i,i.uint32());continue;case 7:if(58!==e)break;a.skAdNetworkVersion=i.string();continue;case 8:if(64!==e)break;a.embeddedAdStyle=i.int32();continue;case 9:if(72!==e)break;a.webBrowserType=i.int32();continue;case 10:if(82!==e)break;let t=Sf.decode(i,i.uint32());void 0!==t.value&&(a.videoAssetOptions[t.key]=t.value);continue;case 11:if(88!==e)break;a.shouldEnableGraphene=i.bool();continue;case 12:if(98!==e)break;a.grapheneSamplingPercentage=mZ.decode(i,i.uint32()).value;continue;case 13:if(104!==e)break;a.shouldEnableHeaderBidding=i.bool();continue;case 14:if(112!==e)break;a.smallFormatLocalization=i.bool();continue;case 15:if(120!==e)break;a.shouldDisableCof=i.bool();continue;case 16:if(128!==e)break;a.crashReportingDisabled=i.bool();continue;case 17:if(136!==e)break;a.shouldDisableCofPersistence=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Su.fromPartial(e??{}),fromPartial(e){let t=Sc();return t.shouldDisableAds=e.shouldDisableAds??!1,t.endCardAffordance=e.endCardAffordance??0,t.adkitDismissAffordance=void 0!==e.adkitDismissAffordance&&null!==e.adkitDismissAffordance?S_.fromPartial(e.adkitDismissAffordance):void 0,t.shouldEnableBolt=e.shouldEnableBolt??!1,t.boltStreamingThresholdMs=e.boltStreamingThresholdMs??void 0,t.adkitRewardedDismissAffordance=void 0!==e.adkitRewardedDismissAffordance&&null!==e.adkitRewardedDismissAffordance?S_.fromPartial(e.adkitRewardedDismissAffordance):void 0,t.skAdNetworkVersion=e.skAdNetworkVersion??"",t.embeddedAdStyle=e.embeddedAdStyle??0,t.webBrowserType=e.webBrowserType??0,t.videoAssetOptions=Object.entries(e.videoAssetOptions??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=Sm.fromPartial(i)),e),{}),t.shouldEnableGraphene=e.shouldEnableGraphene??!1,t.grapheneSamplingPercentage=e.grapheneSamplingPercentage??void 0,t.shouldEnableHeaderBidding=e.shouldEnableHeaderBidding??!1,t.smallFormatLocalization=e.smallFormatLocalization??!1,t.shouldDisableCof=e.shouldDisableCof??!1,t.crashReportingDisabled=e.crashReportingDisabled??!1,t.shouldDisableCofPersistence=e.shouldDisableCofPersistence??!1,t}};function Sp(){return{key:"",value:void 0}}let Sf={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&Sm.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=Sm.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sf.fromPartial(e??{}),fromPartial(e){let t=Sp();return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?Sm.fromPartial(e.value):void 0,t}};function ST(){return{values:void 0}}let Sm={encode:(e,t=rA.default.Writer.create())=>(e.values?.$case==="stringValue"&&t.uint32(10).string(e.values.stringValue),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ST();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.values={$case:"stringValue",stringValue:i.string()};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sm.fromPartial(e??{}),fromPartial(e){let t=ST();return e.values?.$case==="stringValue"&&e.values?.stringValue!==void 0&&e.values?.stringValue!==null&&(t.values={$case:"stringValue",stringValue:e.values.stringValue}),t}};function SE(){return{shouldEnableDismissDelay:!1,dismissDelaySeconds:void 0,endcardDismissDelaySeconds:void 0}}let S_={encode:(e,t=rA.default.Writer.create())=>(!1!==e.shouldEnableDismissDelay&&t.uint32(8).bool(e.shouldEnableDismissDelay),void 0!==e.dismissDelaySeconds&&mq.encode({value:e.dismissDelaySeconds},t.uint32(18).fork()).ldelim(),void 0!==e.endcardDismissDelaySeconds&&mq.encode({value:e.endcardDismissDelaySeconds},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.shouldEnableDismissDelay=i.bool();continue;case 2:if(18!==e)break;a.dismissDelaySeconds=mq.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.endcardDismissDelaySeconds=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>S_.fromPartial(e??{}),fromPartial(e){let t=SE();return t.shouldEnableDismissDelay=e.shouldEnableDismissDelay??!1,t.dismissDelaySeconds=e.dismissDelaySeconds??void 0,t.endcardDismissDelaySeconds=e.endcardDismissDelaySeconds??void 0,t}};function SS(){return{crawlUrl:"",creativeId:""}}let SI={encode:(e,t=rA.default.Writer.create())=>(""!==e.crawlUrl&&t.uint32(10).string(e.crawlUrl),""!==e.creativeId&&t.uint32(18).string(e.creativeId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.crawlUrl=i.string();continue;case 2:if(18!==e)break;a.creativeId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SI.fromPartial(e??{}),fromPartial(e){let t=SS();return t.crawlUrl=e.crawlUrl??"",t.creativeId=e.creativeId??"",t}};function Sv(){return{distanceThreshold:0,velocityThreshold:0,swipeAngle:void 0,edgeInsets:void 0,slowSwipeDistanceThreshold:0}}let SA={encode:(e,t=rA.default.Writer.create())=>(0!==e.distanceThreshold&&t.uint32(9).double(e.distanceThreshold),0!==e.velocityThreshold&&t.uint32(17).double(e.velocityThreshold),void 0!==e.swipeAngle&&SN.encode(e.swipeAngle,t.uint32(26).fork()).ldelim(),void 0!==e.edgeInsets&&Sb.encode(e.edgeInsets,t.uint32(34).fork()).ldelim(),0!==e.slowSwipeDistanceThreshold&&t.uint32(41).double(e.slowSwipeDistanceThreshold),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sv();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(9!==e)break;a.distanceThreshold=i.double();continue;case 2:if(17!==e)break;a.velocityThreshold=i.double();continue;case 3:if(26!==e)break;a.swipeAngle=SN.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.edgeInsets=Sb.decode(i,i.uint32());continue;case 5:if(41!==e)break;a.slowSwipeDistanceThreshold=i.double();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SA.fromPartial(e??{}),fromPartial(e){let t=Sv();return t.distanceThreshold=e.distanceThreshold??0,t.velocityThreshold=e.velocityThreshold??0,t.swipeAngle=void 0!==e.swipeAngle&&null!==e.swipeAngle?SN.fromPartial(e.swipeAngle):void 0,t.edgeInsets=void 0!==e.edgeInsets&&null!==e.edgeInsets?Sb.fromPartial(e.edgeInsets):void 0,t.slowSwipeDistanceThreshold=e.slowSwipeDistanceThreshold??0,t}};function Sk(){return{topInset:0,rightInset:0,bottomInset:0,leftInset:0}}let Sb={encode:(e,t=rA.default.Writer.create())=>(0!==e.topInset&&t.uint32(9).double(e.topInset),0!==e.rightInset&&t.uint32(17).double(e.rightInset),0!==e.bottomInset&&t.uint32(25).double(e.bottomInset),0!==e.leftInset&&t.uint32(33).double(e.leftInset),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sk();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(9!==e)break;a.topInset=i.double();continue;case 2:if(17!==e)break;a.rightInset=i.double();continue;case 3:if(25!==e)break;a.bottomInset=i.double();continue;case 4:if(33!==e)break;a.leftInset=i.double();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sb.fromPartial(e??{}),fromPartial(e){let t=Sk();return t.topInset=e.topInset??0,t.rightInset=e.rightInset??0,t.bottomInset=e.bottomInset??0,t.leftInset=e.leftInset??0,t}};function Sg(){return{leftThreshold:0,rightThreshold:0}}let SN={encode:(e,t=rA.default.Writer.create())=>(0!==e.leftThreshold&&t.uint32(9).double(e.leftThreshold),0!==e.rightThreshold&&t.uint32(17).double(e.rightThreshold),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sg();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(9!==e)break;a.leftThreshold=i.double();continue;case 2:if(17!==e)break;a.rightThreshold=i.double();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SN.fromPartial(e??{}
2),fromPartial(e){let t=Sg();return t.leftThreshold=e.leftThreshold??0,t.rightThreshold=e.rightThreshold??0,t}};function SR(){return{adFlagged:void 0,adFlaggedReason:0,adFlaggedNote:void 0}}(ao=e7||(e7={}))[ao.UNKNOWN_AD_FLAG_REASON=0]="UNKNOWN_AD_FLAG_REASON",ao[ao.FREQUENCY_CAP_TOO_HIGH=1]="FREQUENCY_CAP_TOO_HIGH",ao[ao.FREQUENCY_AD_LOAD=2]="FREQUENCY_AD_LOAD",ao[ao.OFFENSIVE_SEXUAL=3]="OFFENSIVE_SEXUAL",ao[ao.OFFENSIVE_VIOLENT=4]="OFFENSIVE_VIOLENT",ao[ao.OFFENSIVE_SPEECH=5]="OFFENSIVE_SPEECH",ao[ao.OFFENSIVE_COPYRIGHT=6]="OFFENSIVE_COPYRIGHT",ao[ao.OFFENSIVE_OTHER=7]="OFFENSIVE_OTHER",ao[ao.IRRELEVANT_DEMO=8]="IRRELEVANT_DEMO",ao[ao.IRRELEVANT_CONTEXT=9]="IRRELEVANT_CONTEXT",ao[ao.IRRELEVANT_ANNOYING=10]="IRRELEVANT_ANNOYING",ao[ao.IRRELEVANT_PRODUCT=11]="IRRELEVANT_PRODUCT",ao[ao.IRRELEVANT_OTHER=12]="IRRELEVANT_OTHER",ao[ao.FRAUD_SCAM=13]="FRAUD_SCAM",ao[ao.IP_COPYRIGHT=14]="IP_COPYRIGHT",ao[ao.IP_TRADEMARK=15]="IP_TRADEMARK",ao[ao.IP_PUBLICITY=16]="IP_PUBLICITY",ao[ao.RELEVANT_FTW=17]="RELEVANT_FTW",ao[ao.RELEVANT_PRODUCT=18]="RELEVANT_PRODUCT",ao[ao.RELEVANT_OTHER=19]="RELEVANT_OTHER",ao[ao.ILLEGAL_CONTENT=20]="ILLEGAL_CONTENT",ao[ao.UNRECOGNIZED=-1]="UNRECOGNIZED";let SP={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.adFlagged&&mX.encode({value:e.adFlagged},t.uint32(10).fork()).ldelim(),0!==e.adFlaggedReason&&t.uint32(16).int32(e.adFlaggedReason),void 0!==e.adFlaggedNote&&mJ.encode({value:e.adFlaggedNote},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adFlagged=mX.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.adFlaggedReason=i.int32();continue;case 3:if(26!==e)break;a.adFlaggedNote=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SP.fromPartial(e??{}),fromPartial(e){let t=SR();return t.adFlagged=e.adFlagged??void 0,t.adFlaggedReason=e.adFlaggedReason??0,t.adFlaggedNote=e.adFlaggedNote??void 0,t}};function SO(){return{adHidden:void 0,reason:0}}(ar=e5||(e5={}))[ar.AD_HIDING_REASON_UNSET=0]="AD_HIDING_REASON_UNSET",ar[ar.FREQUENCY_CAP_TOO_HIGH=1]="FREQUENCY_CAP_TOO_HIGH",ar[ar.IRRELEVANT_GENERAL=2]="IRRELEVANT_GENERAL",ar[ar.OFFENSIVE_GENERAL=3]="OFFENSIVE_GENERAL",ar[ar.ALREADY_BOUGHT_ITEM=4]="ALREADY_BOUGHT_ITEM",ar[ar.ALREADY_INSTALLED_APP=5]="ALREADY_INSTALLED_APP",ar[ar.UNRECOGNIZED=-1]="UNRECOGNIZED";let SC={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.adHidden&&mX.encode({value:e.adHidden},t.uint32(10).fork()).ldelim(),0!==e.reason&&t.uint32(16).int32(e.reason),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adHidden=mX.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.reason=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SC.fromPartial(e??{}),fromPartial(e){let t=SO();return t.adHidden=e.adHidden??void 0,t.reason=e.reason??0,t}};function Sy(){return{adShareOpen:void 0,adShareSend:void 0,isSubscribed:void 0,subscribeButtonTappedTsMs:[],adContextMenuOpen:void 0,initialIsSubscribed:void 0,hostUserId:void 0,isFavorited:void 0,favoriteButtonTappedTsMs:[]}}let Sh={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.adShareOpen&&mX.encode({value:e.adShareOpen},t.uint32(10).fork()).ldelim(),void 0!==e.adShareSend&&mX.encode({value:e.adShareSend},t.uint32(18).fork()).ldelim(),void 0!==e.isSubscribed&&mX.encode({value:e.isSubscribed},t.uint32(26).fork()).ldelim(),e.subscribeButtonTappedTsMs))mK.encode({value:i},t.uint32(34).fork()).ldelim();for(let i of(void 0!==e.adContextMenuOpen&&mX.encode({value:e.adContextMenuOpen},t.uint32(42).fork()).ldelim(),void 0!==e.initialIsSubscribed&&mX.encode({value:e.initialIsSubscribed},t.uint32(50).fork()).ldelim(),void 0!==e.hostUserId&&mJ.encode({value:e.hostUserId},t.uint32(58).fork()).ldelim(),void 0!==e.isFavorited&&mX.encode({value:e.isFavorited},t.uint32(66).fork()).ldelim(),e.favoriteButtonTappedTsMs))mK.encode({value:i},t.uint32(74).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sy();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adShareOpen=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.adShareSend=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.isSubscribed=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.subscribeButtonTappedTsMs.push(mK.decode(i,i.uint32()).value);continue;case 5:if(42!==e)break;a.adContextMenuOpen=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.initialIsSubscribed=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.hostUserId=mJ.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.isFavorited=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.favoriteButtonTappedTsMs.push(mK.decode(i,i.uint32()).value);continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sh.fromPartial(e??{}),fromPartial(e){let t=Sy();return t.adShareOpen=e.adShareOpen??void 0,t.adShareSend=e.adShareSend??void 0,t.isSubscribed=e.isSubscribed??void 0,t.subscribeButtonTappedTsMs=e.subscribeButtonTappedTsMs?.map(e=>e)||[],t.adContextMenuOpen=e.adContextMenuOpen??void 0,t.initialIsSubscribed=e.initialIsSubscribed??void 0,t.hostUserId=e.hostUserId??void 0,t.isFavorited=e.isFavorited??void 0,t.favoriteButtonTappedTsMs=e.favoriteButtonTappedTsMs?.map(e=>e)||[],t}};function SL(){return{lensSessionId:void 0}}let SD={encode:(e,t=rA.default.Writer.create())=>
2(void 0!==e.lensSessionId&&mJ.encode({value:e.lensSessionId},t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.lensSessionId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SD.fromPartial(e??{}),fromPartial(e){let t=SL();return t.lensSessionId=e.lensSessionId??void 0,t}};function Sw(){return{tryOnButtonClicked:void 0,arExperienceTimeViewedMillis:void 0,unlockableId:void 0,arLensSession:[],arExperienceAttachmentClicked:void 0}}let SM={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.tryOnButtonClicked&&mX.encode({value:e.tryOnButtonClicked},t.uint32(10).fork()).ldelim(),void 0!==e.arExperienceTimeViewedMillis&&mK.encode({value:e.arExperienceTimeViewedMillis},t.uint32(18).fork()).ldelim(),void 0!==e.unlockableId&&mz.encode({value:e.unlockableId},t.uint32(26).fork()).ldelim(),e.arLensSession))SD.encode(i,t.uint32(34).fork()).ldelim();return void 0!==e.arExperienceAttachmentClicked&&mX.encode({value:e.arExperienceAttachmentClicked},t.uint32(42).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sw();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.tryOnButtonClicked=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.arExperienceTimeViewedMillis=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.unlockableId=mz.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.arLensSession.push(SD.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.arExperienceAttachmentClicked=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SM.fromPartial(e??{}),fromPartial(e){let t=Sw();return t.tryOnButtonClicked=e.tryOnButtonClicked??void 0,t.arExperienceTimeViewedMillis=e.arExperienceTimeViewedMillis??void 0,t.unlockableId=e.unlockableId??void 0,t.arLensSession=e.arLensSession?.map(e=>SD.fromPartial(e))||[],t.arExperienceAttachmentClicked=e.arExperienceAttachmentClicked??void 0,t}};function SU(){return{xPosition:void 0,yPosition:void 0,xPositionRelative:void 0,yPositionRelative:void 0}}let SV={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.xPosition&&mH.encode({value:e.xPosition},t.uint32(10).fork()).ldelim(),void 0!==e.yPosition&&mH.encode({value:e.yPosition},t.uint32(18).fork()).ldelim(),void 0!==e.xPositionRelative&&mH.encode({value:e.xPositionRelative},t.uint32(26).fork()).ldelim(),void 0!==e.yPositionRelative&&mH.encode({value:e.yPositionRelative},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SU();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.xPosition=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.yPosition=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.xPositionRelative=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.yPositionRelative=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SV.fromPartial(e??{}),fromPartial(e){let t=SU();return t.xPosition=e.xPosition??void 0,t.yPosition=e.yPosition??void 0,t.xPositionRelative=e.xPositionRelative??void 0,t.yPositionRelative=e.yPositionRelative??void 0,t}};function SB(){return{captionCtaPosition:void 0}}let SF={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.captionCtaPosition&&SV.encode(e.captionCtaPosition,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SB();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.captionCtaPosition=SV.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SF.fromPartial(e??{}),fromPartial(e){let t=SB();return t.captionCtaPosition=void 0!==e.captionCtaPosition&&null!==e.captionCtaPosition?SV.fromPartial(e.captionCtaPosition):void 0,t}};function SG(){return{cardCtaAccessoryMetadataType:void 0}}(ad=e9||(e9={}))[ad.LIVE_REVIEW_UNSET=0]="LIVE_REVIEW_UNSET",ad[ad.LIVE_REVIEW_BITMOJI=1]="LIVE_REVIEW_BITMOJI",ad[ad.LIVE_REVIEW_INITIALS=2]="LIVE_REVIEW_INITIALS",ad[ad.UNRECOGNIZED=-1]="UNRECOGNIZED";let SW={encode:(e,t=rA.default.Writer.create())=>(e.cardCtaAccessoryMetadataType?.$case==="liveReview"&&SH.encode(e.cardCtaAccessoryMetadataType.liveReview,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SG();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.cardCtaAccessoryMetadataType={$case:"liveReview",liveReview:SH.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SW.fromPartial(e??{}),fromPartial(e){let t=SG();return e.cardCtaAccessoryMetadataType?.$case==="liveReview"&&e.cardCtaAccessoryMetadataType?.liveReview!==void 0&&e.cardCtaAccessoryMetadataType?.liveReview!==null&&(t.cardCtaAccessoryMetadataType={$case:"liveReview",liveReview:SH.fromPartial(e.cardCtaAccessoryMetadataType.liveReview)}),t}};function Sx(){return{displayedReviewIds:[],tappedReviewIndex:void 0,liveReviewStyle:0}}let SH={encode(e,t=rA.default.Writer.create()){for(let i of e.displayedReviewIds)t.uint32(10).string(i);return void 0!==e.tappedReviewIndex&&mq.encode({value:e.tappedReviewIndex},t.uint32(18).fork()).ldelim(),0!==e.liveReviewStyle&&t.uint32(24).int32(e.liveReviewStyle),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sx();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.displayedReviewIds.push(i.string());continue;case 2:if(18!==e)break;a.tappedReviewIndex=mq.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.liveReviewStyle=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SH.fromPartial(e??{}),fromPartial(e){let t=Sx();return t.displayedReviewIds=e.displayedReviewIds?.map(e=>e)||[],t.tappedReviewIndex=e.tappedReviewIndex??void 0,t.liveReviewStyle=e.liveReviewStyle??0,t}};function SY(){return{clickInfo:void 0,attachmentFullyVisibleTimestampMs:void 0,attachmentTriggeredTimestampMs:void 0,multiSegmentIndex:void 0}}let SK={encode(e,t=rA.default.Writer.create()){switch(e.clickInfo?.$case){case"tapInfo":Sz.encode(e.clickInfo.tapInfo,t.uint32(10).fork()).ldelim();break;case"swipeInfo":SZ.encode(e.clickInfo.swipeInfo,t.uint32(18).fork()).ldelim()}return void 0!==e.attachmentFullyVisibleTimestampMs&&mK.encode({value:e.attachmentFullyVisibleTimestampMs},t.uint32(26).fork()).ldelim(),void 0!==e.attachmentTriggeredTimestampMs&&mK.encode({value:e.attachmentTriggeredTimestampMs},t.uint32(34).fork()).ldelim(),void 0!==e.multiSegmentIndex&&mK.encode({value:e.multiSegmentIndex},t.uint32(42).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SY();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.clickInfo={$case:"tapInfo",tapInfo:Sz.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.clickInfo={$case:"swipeInfo",swipeInfo:SZ.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.attachmentFullyVisibleTimestampMs=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.attachmentTriggeredTimestampMs=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.multiSegmentIndex=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SK.fromPartial(e??{}),fromPartial(e){let t=SY();return e.clickInfo?.$case==="tapInfo"&&e.clickInfo?.tapInfo!==void 0&&e.clickInfo?.tapInfo!==null&&(t.clickInfo={$case:"tapInfo",tapInfo:Sz.fromPartial(e.clickInfo.tapInfo)}),e.clickInfo?.$case==="swipeInfo"&&e.clickInfo?.swipeInfo!==void 0&&e.clickInfo?.swipeInfo!==null&&(t.clickInfo={$case:"swipeInfo",swipeInfo:SZ.fromPartial(e.clickInfo.swipeInfo)}),t.attachmentFullyVisibleTimestampMs=e.attachmentFullyVisibleTimestampMs??void 0,t.attachmentTriggeredTimestampMs=e.attachmentTriggeredTimestampMs??void 0,t.multiSegmentIndex=e.multiSegmentIndex??void 0,t}};
2function S$(){return{tapPositionInfo:void 0,tapTimestampMs:void 0,tapSource:0}}let Sz={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.tapPositionInfo&&SV.encode(e.tapPositionInfo,t.uint32(10).fork()).ldelim(),void 0!==e.tapTimestampMs&&mK.encode({value:e.tapTimestampMs},t.uint32(18).fork()).ldelim(),0!==e.tapSource&&t.uint32(24).int32(e.tapSource),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=S$();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.tapPositionInfo=SV.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.tapTimestampMs=mK.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.tapSource=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Sz.fromPartial(e??{}),fromPartial(e){let t=S$();return t.tapPositionInfo=void 0!==e.tapPositionInfo&&null!==e.tapPositionInfo?SV.fromPartial(e.tapPositionInfo):void 0,t.tapTimestampMs=e.tapTimestampMs??void 0,t.tapSource=e.tapSource??0,t}};function Sq(){return{swipeSource:0,swipeDetectionFailureReason:0,startSwipePositionInfo:void 0,endSwipePositionInfo:void 0,startSwipeTimestampMs:void 0,endSwipeTimestampMs:void 0,peekAttachmentMaxDistancePt:void 0,hintDisplayTimestampMs:void 0}}let SZ={encode:(e,t=rA.default.Writer.create())=>(0!==e.swipeSource&&t.uint32(8).int32(e.swipeSource),0!==e.swipeDetectionFailureReason&&t.uint32(16).int32(e.swipeDetectionFailureReason),void 0!==e.startSwipePositionInfo&&SV.encode(e.startSwipePositionInfo,t.uint32(26).fork()).ldelim(),void 0!==e.endSwipePositionInfo&&SV.encode(e.endSwipePositionInfo,t.uint32(34).fork()).ldelim(),void 0!==e.startSwipeTimestampMs&&mK.encode({value:e.startSwipeTimestampMs},t.uint32(42).fork()).ldelim(),void 0!==e.endSwipeTimestampMs&&mK.encode({value:e.endSwipeTimestampMs},t.uint32(50).fork()).ldelim(),void 0!==e.peekAttachmentMaxDistancePt&&mK.encode({value:e.peekAttachmentMaxDistancePt},t.uint32(58).fork()).ldelim(),void 0!==e.hintDisplayTimestampMs&&mK.encode({value:e.hintDisplayTimestampMs},t.uint32(66).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Sq();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.swipeSource=i.int32();continue;case 2:if(16!==e)break;a.swipeDetectionFailureReason=i.int32();continue;case 3:if(26!==e)break;a.startSwipePositionInfo=SV.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.endSwipePositionInfo=SV.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.startSwipeTimestampMs=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.endSwipeTimestampMs=mK.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.peekAttachmentMaxDistancePt=mK.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.hintDisplayTimestampMs=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SZ.fromPartial(e??{}),fromPartial(e){let t=Sq();return t.swipeSource=e.swipeSource??0,t.swipeDetectionFailureReason=e.swipeDetectionFailureReason??0,t.startSwipePositionInfo=void 0!==e.startSwipePositionInfo&&null!==e.startSwipePositionInfo?SV.fromPartial(e.startSwipePositionInfo):void 0,t.endSwipePositionInfo=void 0!==e.endSwipePositionInfo&&null!==e.endSwipePositionInfo?SV.fromPartial(e.endSwipePositionInfo):void 0,t.startSwipeTimestampMs=e.startSwipeTimestampMs??void 0,t.endSwipeTimestampMs=e.endSwipeTimestampMs??void 0,t.peekAttachmentMaxDistancePt=e.peekAttachmentMaxDistancePt??void 0,t.hintDisplayTimestampMs=e.hintDisplayTimestampMs??void 0,t}};var Sj=rA;function SX(){return{mediaLocationType:0,mediaInfo:new Uint8Array(0),mediaInfo640px:new Uint8Array(0)}}(as=te||(te={}))[as.MediaLocationType_NONE=0]="MediaLocationType_NONE",as[as.MediaLocationType_ZIP=1]="MediaLocationType_ZIP",as[as.MediaLocationType_DISCOVER=2]="MediaLocationType_DISCOVER",as[as.MediaLocationType_URL=3]="MediaLocationType_URL",as[as.MediaLocationType_BOLT=4]="MediaLocationType_BOLT",as[as.UNRECOGNIZED=-1]="UNRECOGNIZED";let SQ={encode:(e,t=rA.default.Writer.create())=>(0!==e.mediaLocationType&&t.uint32(8).int32(e.mediaLocationType),0!==e.mediaInfo.length&&t.uint32(18).bytes(e.mediaInfo),0!==e.mediaInfo640px.length&&t.uint32(26).bytes(e.mediaInfo640px),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mediaLocationType=i.int32();continue;case 2:if(18!==e)break;a.mediaInfo=i.bytes();continue;case 3:if(26!==e)break;a.mediaInfo640px=i.bytes();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>SQ.fromPartial(e??{}),fromPartial(e){let t=SX();return t.mediaLocationType=e.mediaLocationType??0,t.mediaInfo=e.mediaInfo??new Uint8Array(0),t.mediaInfo640px=e.mediaInfo640px??new Uint8Array(0),t}};function SJ(){return{mediaType:0,mediaLocations:[]}}let S0={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.mediaType&&t.uint32(8).int32(e.mediaType),e.mediaLocations))SQ.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=SJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.mediaType=i.int32();continue;case 2:if(18!==e)break;a.mediaLocations.push(SQ.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>S0.fromPartial(e??{}),fromPartial(e){let t=SJ();return t.mediaType=e.mediaType??0,t.mediaLocations=e.mediaLocations?.map(e=>SQ.fromPartial(e))||[],t}};function S2(){return{color:void 0}}let S3={encode:(e,t=Sj.default.Writer.create())=>(void 0!==e.color&&mJ.encode({value:e.color},t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof Sj.default.Reader?e:Sj.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=S2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.color=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>S3.fromPartial(e??{}),fromPartial(e){let t=S2();return t.color=e.color??void 0,t}},S1={encode:(e,t=Sj.default.Writer.create())=>t,decode(e,t){let i=e instanceof Sj.default.Reader?e:Sj.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>S1.fromPartial(e??{}),fromPartial:e=>({})};function S4(){return{mediaRenderInfo:void 0,blurRadius:void 0,shading:void 0,scale:void 0}}let S8={encode:(e,t=Sj.default.Writer.create())=>(void 0!==e.mediaRenderInfo&&S0.encode(e.mediaRenderInfo,t.uint32(10).fork()).ldelim(),void 0!==e.blurRadius&&mH.encode({value:e.blurRadius},t.uint32(18).fork()).ldelim(),void 0!==e.shading&&mH.encode({value:e.shading},t.uint32(26).fork()).ldelim(),void 0!==e.scale&&mH.encode({value:e.scale},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof Sj.default.Reader?e:Sj.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=S4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.mediaRenderInfo=S0.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.blurRadius=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.shading=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.scale=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>S8.fromPartial(e??{}),fromPartial(e){let t=S4();return t.mediaRenderInfo=void 0!==e.mediaRenderInfo&&null!==e.mediaRenderInfo?S0.fromPartial(e.mediaRenderInfo):void 0,t.blurRadius=e.blurRadius??void 0,t.shading=e.shading??void 0,t.scale=e.scale??void 0,t}};var S6=rA,S7=rA,S5=rA;let S9={encode:(e,t=S5.default.Writer.create())=>t,decode(e,t){let i=e instanceof S5.default.Reader?e:S5.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>S9.fromPartial(e??{}),fromPartial:e=>({})};function Ie(){return{maxTextWidth:0,borderRadius:0,textPadding:0,positionOffsetX:0,positionOffsetY:0,appearAnimationDuration:0,appearAnimationDelay:0}}let It={encode:(e,t=S5.default.Writer.create())=>(0!==e.maxTextWidth&&t.uint32(8).int32(e.maxTextWidth),0!==e.borderRadius&&t.uint32(16).int32(e.borderRadius),0!==e.textPadding&&t.uint32(24).int32(e.textPadding),0!==e.positionOffsetX&&t.uint32(32).int32(e.positionOffsetX),0!==e.positionOffsetY&&t.uint32(40).int32(e.positionOffsetY),0!==e.appearAnimationDuration&&t.uint32(53).float(e.appearAnimationDuration),0!==e.appearAnimationDelay&&t.uint32(61).float(e.appearAnimationDelay),t),decode(e,t){let i=e instanceof S5.default.Reader?e:S5.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ie();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.maxTextWidth=i.int32();continue;case 2:if(16!==e)break;a.borderRadius=i.int32();continue;case 3:if(24!==e)break;a.textPadding=i.int32();continue;case 4:if(32!==e)break;a.positionOffsetX=i.int32();continue;case 5:if(40!==e)break;a.positionOffsetY=i.int32();continue;case 6:if(53!==e)break;a.appearAnimationDuration=i.float();continue;case 7:if(61!==e)break;a.appearAnimationDelay=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>It.fromPartial(e??{}),fromPartial(e){let t=Ie();return t.maxTextWidth=e.maxTextWidth??0,t.borderRadius=e.borderRadius??0,t.textPadding=e.textPadding??0,t.positionOffsetX=e.positionOffsetX??0,t.positionOffsetY=e.positionOffsetY??0,t.appearAnimationDuration=e.appearAnimationDuration??0,t.appearAnimationDelay=e.appearAnimationDelay??0,t}};function Ii(){return{maxTextWidth:0,borderRadius:0,textPadding:0,maxNumberOfLines:0,positionOffsetX:0,positionOffsetY:0,appearAnimationDuration:0,appearAnimationDelay:0}}let In={encode:(e,t=S5.default.Writer.create())=>(0!==e.maxTextWidth&&t.uint32(8).int32(e.maxTextWidth),0!==e.borderRadius&&t.uint32(16).int32(e.borderRadius),0!==e.textPadding&&t.uint32(24).int32(e.textPadding),0!==e.maxNumberOfLines&&t.uint32(32).int32(e.maxNumberOfLines),0!==e.positionOffsetX&&t.uint32(40).int32(e.positionOffsetX),0!==e.positionOffsetY&&t.uint32(48).int32(e.positionOffsetY),0!==e.appearAnimationDuration&&t.uint32(61).float(e.appearAnimationDuration),0!==e.appearAnimationDelay&&t.uint32(69).float(e.appearAnimationDelay),t),decode(e,t){let i=e instanceof S5.default.Reader?e:S5.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ii();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.maxTextWidth=i.int32();continue;case 2:if(16!==e)break;a.borderRadius=i.int32();continue;case 3:if(24!==e)break;a.textPadding=i.int32();continue;case 4:if(32!==e)break;a.maxNumberOfLines=i.int32();continue;case 5:if(40!==e)break;a.positionOffsetX=i.int32();continue;case 6:if(48!==e)break;a.positionOffsetY=i.int32();continue;case 7:if(61!==e)break;a.appearAnimationDuration=i.float();continue;case 8:if(69!==e)break;a.appearAnimationDelay=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>In.fromPartial(e??{}),fromPartial(e){let t=Ii();return t.maxTextWidth=e.maxTextWidth??0,t.borderRadius=e.borderRadius??0,t.textPadding=e.textPadding??0,t.maxNumberOfLines=e.maxNumberOfLines??0,t.positionOffsetX=e.positionOffsetX??0,t.positionOffsetY=e.positionOffsetY??0,t.appearAnimationDuration=e.appearAnimationDuration??0,t.appearAnimationDelay=e.appearAnimationDelay??0,t}};function Ia(){return{config:void 0}}let Io={encode(e,t=S5.default.Writer.create()){switch(e.config?.$case){case"noPillConfig":S9.encode(e.config.noPillConfig,t.uint32(10).fork()).ldelim();break;case"staticTextPillConfig":It.encode(e.config.staticTextPillConfig,t.uint32(18).fork()).ldelim();break;case"metadataPillConfig":In.encode(e.config.metadataPillConfig,t.uint32(26).fork()).ldelim()}return t},decode(e,t){let i=e instanceof S5.default.Reader?e:S5.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ia();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.config={$case:"noPillConfig",noPillConfig:S9.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.config={$case:"staticTextPillConfig",staticTextPillConfig:It.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.config={$case:"metadataPillConfig",metadataPillConfig:In.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Io.fromPartial(e??{}),fromPartial(e){let t=Ia();return e.config?.$case==="noPillConfig"&&e.config?.noPillConfig!==void 0&&e.config?.noPillConfig!==null&&(t.config={$case:"noPillConfig",noPillConfig:S9.fromPartial(e.config.noPillConfig)}),e.config?.$case==="staticTextPillConfig"&&e.config?.staticTextPillConfig!==void 0&&e.config?.staticTextPillConfig!==null&&(t.config={$case:"staticTextPillConfig",staticTextPillConfig:It.fromPartial(e.config.staticTextPillConfig)}),e.config?.$case==="metadataPillConfig"&&e.config?.metadataPillConfig!==void 0&&e.config?.metadataPillConfig!==null&&(t.config={$case:"metadataPillConfig",metadataPillConfig:In.fromPartial(e.config.metadataPillConfig)}),t}};function Ir(){return{animationCurve:"",controlPoints:[],durationMs:0,tileDelaysMs:[]}}let Id={encode(e,t=rA.default.Writer.create()){for(let i of(""!==e.animationCurve&&t.uint32(10).string(e.animationCurve),t.uint32(18).fork(),e.controlPoints))t.double(i);for(let i of(t.ldelim(),0!==e.durationMs&&t.uint32(25).double(e.durationMs),t.uint32(34).fork(),e.t
2ileDelaysMs))t.double(i);return t.ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ir();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.animationCurve=i.string();continue;case 2:if(17===e){a.controlPoints.push(i.double());continue}if(18===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.controlPoints.push(i.double());continue}break;case 3:if(25!==e)break;a.durationMs=i.double();continue;case 4:if(33===e){a.tileDelaysMs.push(i.double());continue}if(34===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.tileDelaysMs.push(i.double());continue}}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Id.fromPartial(e??{}),fromPartial(e){let t=Ir();return t.animationCurve=e.animationCurve??"",t.controlPoints=e.controlPoints?.map(e=>e)||[],t.durationMs=e.durationMs??0,t.tileDelaysMs=e.tileDelaysMs?.map(e=>e)||[],t}};function Is(){return{enabled:!1}}let Il={encode:(e,t=S7.default.Writer.create())=>(!1!==e.enabled&&t.uint32(8).bool(e.enabled),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Is();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.enabled=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Il.fromPartial(e??{}),fromPartial(e){let t=Is();return t.enabled=e.enabled??!1,t}};function Ic(){return{columnVerticalOffset:0,spaceBetweenTiles:0,horizontalPadding:0,tileImageAspectRatio:0,tileWidth:"",topMargin:0}}let Iu={encode:(e,t=S7.default.Writer.create())=>(0!==e.columnVerticalOffset&&t.uint32(8).int32(e.columnVerticalOffset),0!==e.spaceBetweenTiles&&t.uint32(16).int32(e.spaceBetweenTiles),0!==e.horizontalPadding&&t.uint32(24).int32(e.horizontalPadding),0!==e.tileImageAspectRatio&&t.uint32(37).float(e.tileImageAspectRatio),""!==e.tileWidth&&t.uint32(42).string(e.tileWidth),0!==e.topMargin&&t.uint32(48).int32(e.topMargin),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ic();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.columnVerticalOffset=i.int32();continue;case 2:if(16!==e)break;a.spaceBetweenTiles=i.int32();continue;case 3:if(24!==e)break;a.horizontalPadding=i.int32();continue;case 4:if(37!==e)break;a.tileImageAspectRatio=i.float();continue;case 5:if(42!==e)break;a.tileWidth=i.string();continue;case 6:if(48!==e)break;a.topMargin=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Iu.fromPartial(e??{}),fromPartial(e){let t=Ic();return t.columnVerticalOffset=e.columnVerticalOffset??0,t.spaceBetweenTiles=e.spaceBetweenTiles??0,t.horizontalPadding=e.horizontalPadding??0,t.tileImageAspectRatio=e.tileImageAspectRatio??0,t.tileWidth=e.tileWidth??"",t.topMargin=e.topMargin??0,t}};function Ip(){return{config:void 0}}let If={encode:(e,t=S7.default.Writer.create())=>(e.config?.$case==="offsetColumnsConfig"&&Iu.encode(e.config.offsetColumnsConfig,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ip();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.config={$case:"offsetColumnsConfig",offsetColumnsConfig:Iu.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>If.fromPartial(e??{}),fromPartial(e){let t=Ip();return e.config?.$case==="offsetColumnsConfig"&&e.config?.offsetColumnsConfig!==void 0&&e.config?.offsetColumnsConfig!==null&&(t.config={$case:"offsetColumnsConfig",offsetColumnsConfig:Iu.fromPartial(e.config.offsetColumnsConfig)}),t}};function IT(){return{spaceBetweenTiles:0,largeTileImageAspectRatio:0,regularTileImageAspectRatio:0,largeTileWidth:"",regularTileWidth:""}}let Im={encode:(e,t=S7.default.Writer.create())=>(0!==e.spaceBetweenTiles&&t.uint32(8).int32(e.spaceBetweenTiles),0!==e.largeTileImageAspectRatio&&t.uint32(21).float(e.largeTileImageAspectRatio),0!==e.regularTileImageAspectRatio&&t.uint32(29).float(e.regularTileImageAspectRatio),""!==e.largeTileWidth&&t.uint32(34).string(e.largeTileWidth),""!==e.regularTileWidth&&t.uint32(42).string(e.regularTileWidth),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.spaceBetweenTiles=i.int32();continue;case 2:if(21!==e)break;a.largeTileImageAspectRatio=i.float();continue;case 3:if(29!==e)break;a.regularTileImageAspectRatio=i.float();continue;case 4:if(34!==e)break;a.largeTileWidth=i.string();continue;case 5:if(42!==e)break;a.regularTileWidth=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Im.fromPartial(e??{}),fromPartial(e){let t=IT();return t.spaceBetweenTiles=e.spaceBetweenTiles??0,t.largeTileImageAspectRatio=e.largeTileImageAspectRatio??0,t.regularTileImageAspectRatio=e.regularTileImageAspectRatio??0,t.largeTileWidth=e.largeTileWidth??"",t.regularTileWidth=e.regularTileWidth??"",t}};function IE(){return{config:void 0}}let I_={encode:(e,t=S7.default.Writer.create())=>
2(e.config?.$case==="threeTilesLargeTileItemConfig"&&Im.encode(e.config.threeTilesLargeTileItemConfig,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.config={$case:"threeTilesLargeTileItemConfig",threeTilesLargeTileItemConfig:Im.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I_.fromPartial(e??{}),fromPartial(e){let t=IE();return e.config?.$case==="threeTilesLargeTileItemConfig"&&e.config?.threeTilesLargeTileItemConfig!==void 0&&e.config?.threeTilesLargeTileItemConfig!==null&&(t.config={$case:"threeTilesLargeTileItemConfig",threeTilesLargeTileItemConfig:Im.fromPartial(e.config.threeTilesLargeTileItemConfig)}),t}},IS={encode:(e,t=S7.default.Writer.create())=>t,decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IS.fromPartial(e??{}),fromPartial:e=>({})},II={encode:(e,t=S7.default.Writer.create())=>(0!==e.index&&t.uint32(8).int32(e.index),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={index:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.index=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>II.fromPartial(e??{}),fromPartial(e){let t={index:0};return t.index=e.index??0,t}};function Iv(){return{value:void 0}}let IA={encode(e,t=S7.default.Writer.create()){switch(e.value?.$case){case"defaultAttachment":IS.encode(e.value.defaultAttachment,t.uint32(10).fork()).ldelim();break;case"collectionItem":II.encode(e.value.collectionItem,t.uint32(18).fork()).ldelim()}return t},decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Iv();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.value={$case:"defaultAttachment",defaultAttachment:IS.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.value={$case:"collectionItem",collectionItem:II.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IA.fromPartial(e??{}),fromPartial(e){let t=Iv();return e.value?.$case==="defaultAttachment"&&e.value?.defaultAttachment!==void 0&&e.value?.defaultAttachment!==null&&(t.value={$case:"defaultAttachment",defaultAttachment:IS.fromPartial(e.value.defaultAttachment)}),e.value?.$case==="collectionItem"&&e.value?.collectionItem!==void 0&&e.value?.collectionItem!==null&&(t.value={$case:"collectionItem",collectionItem:II.fromPartial(e.value.collectionItem)}),t}};function Ik(){return{tileMediaAspectRatio:0,tileWidth:"",skipTapsOnTileTimeMs:"0",skipZoneWidthPercentageRight:0,skipZoneWidthPercentageLeft:0,bottomCtaCardEnabled:!1}}let Ib={encode:(e,t=S7.default.Writer.create())=>(0!==e.tileMediaAspectRatio&&t.uint32(13).float(e.tileMediaAspectRatio),""!==e.tileWidth&&t.uint32(18).string(e.tileWidth),"0"!==e.skipTapsOnTileTimeMs&&t.uint32(24).int64(e.skipTapsOnTileTimeMs),0!==e.skipZoneWidthPercentageRight&&t.uint32(32).int32(e.skipZoneWidthPercentageRight),0!==e.skipZoneWidthPercentageLeft&&t.uint32(40).int32(e.skipZoneWidthPercentageLeft),!1!==e.bottomCtaCardEnabled&&t.uint32(48).bool(e.bottomCtaCardEnabled),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ik();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.tileMediaAspectRatio=i.float();continue;case 2:if(18!==e)break;a.tileWidth=i.string();continue;case 3:if(24!==e)break;a.skipTapsOnTileTimeMs=Iy(i.int64());continue;case 4:if(32!==e)break;a.skipZoneWidthPercentageRight=i.int32();continue;case 5:if(40!==e)break;a.skipZoneWidthPercentageLeft=i.int32();continue;case 6:if(48!==e)break;a.bottomCtaCardEnabled=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ib.fromPartial(e??{}),fromPartial(e){let t=Ik();return t.tileMediaAspectRatio=e.tileMediaAspectRatio??0,t.tileWidth=e.tileWidth??"",t.skipTapsOnTileTimeMs=e.skipTapsOnTileTimeMs??"0",t.skipZoneWidthPercentageRight=e.skipZoneWidthPercentageRight??0,t.skipZoneWidthPercentageLeft=e.skipZoneWidthPercentageLeft??0,t.bottomCtaCardEnabled=e.bottomCtaCardEnabled??!1,t}};function Ig(){return{config:void 0}}let IN={encode:(e,t=S7.default.Writer.create())=>
2(e.config?.$case==="singleLargeItemConfig"&&Ib.encode(e.config.singleLargeItemConfig,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ig();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.config={$case:"singleLargeItemConfig",singleLargeItemConfig:Ib.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IN.fromPartial(e??{}),fromPartial(e){let t=Ig();return e.config?.$case==="singleLargeItemConfig"&&e.config?.singleLargeItemConfig!==void 0&&e.config?.singleLargeItemConfig!==null&&(t.config={$case:"singleLargeItemConfig",singleLargeItemConfig:Ib.fromPartial(e.config.singleLargeItemConfig)}),t}};function IR(){return{minItems:void 0,columns:0,spaceBetweenRows:0,spaceBetweenTiles:0,tileImageAspectRatio:0,tileWidth:""}}let IP={encode:(e,t=S7.default.Writer.create())=>(void 0!==e.minItems&&mq.encode({value:e.minItems},t.uint32(10).fork()).ldelim(),0!==e.columns&&t.uint32(16).int32(e.columns),0!==e.spaceBetweenRows&&t.uint32(24).int32(e.spaceBetweenRows),0!==e.spaceBetweenTiles&&t.uint32(32).int32(e.spaceBetweenTiles),0!==e.tileImageAspectRatio&&t.uint32(45).float(e.tileImageAspectRatio),""!==e.tileWidth&&t.uint32(50).string(e.tileWidth),t),decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.minItems=mq.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.columns=i.int32();continue;case 3:if(24!==e)break;a.spaceBetweenRows=i.int32();continue;case 4:if(32!==e)break;a.spaceBetweenTiles=i.int32();continue;case 5:if(45!==e)break;a.tileImageAspectRatio=i.float();continue;case 6:if(50!==e)break;a.tileWidth=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IP.fromPartial(e??{}),fromPartial(e){let t=IR();return t.minItems=e.minItems??void 0,t.columns=e.columns??0,t.spaceBetweenRows=e.spaceBetweenRows??0,t.spaceBetweenTiles=e.spaceBetweenTiles??0,t.tileImageAspectRatio=e.tileImageAspectRatio??0,t.tileWidth=e.tileWidth??"",t}};function IO(){return{enabled:!1,includeCollectionDefaultAttachment:!1,minCollectionElements:0,itemOrder:[],showPrice:!1,floatingPillConfig:void 0,fourTilesConfig:void 0,showTileMetadata:!1,skipTapsOnGridTimeMs:"0",skipZoneWidthPercentageRight:0,skipZoneWidthPercentageLeft:0,useActiveItemAttachment:!1,trayConfig:void 0,singleItemConfig:void 0,threeTilesConfig:void 0,oneTapAttachmentOpenEligible:!1,oneTapAttachmentOpenTimeThresholdMs:void 0,showTileMetadataOnBottom:!1,gridBottomOffset:0,gridTileBorderRadius:void 0,verticalCarouselConfig:void 0,tileAnimationConfig:void 0}}let IC={encode(e,t=S7.default.Writer.create()){for(let i of(!1!==e.enabled&&t.uint32(8).bool(e.enabled),!1!==e.includeCollectionDefaultAttachment&&t.uint32(16).bool(e.includeCollectionDefaultAttachment),0!==e.minCollectionElements&&t.uint32(24).int32(e.minCollectionElements),e.itemOrder))IA.encode(i,t.uint32(34).fork()).ldelim();return!1!==e.showPrice&&t.uint32(40).bool(e.showPrice),void 0!==e.floatingPillConfig&&Io.encode(e.floatingPillConfig,t.uint32(50).fork()).ldelim(),void 0!==e.fourTilesConfig&&If.encode(e.fourTilesConfig,t.uint32(58).fork()).ldelim(),!1!==e.showTileMetadata&&t.uint32(64).bool(e.showTileMetadata),"0"!==e.skipTapsOnGridTimeMs&&t.uint32(72).int64(e.skipTapsOnGridTimeMs),0!==e.skipZoneWidthPercentageRight&&t.uint32(80).int32(e.skipZoneWidthPercentageRight),0!==e.skipZoneWidthPercentageLeft&&t.uint32(88).int32(e.skipZoneWidthPercentageLeft),!1!==e.useActiveItemAttachment&&t.uint32(96).bool(e.useActiveItemAttachment),void 0!==e.trayConfig&&Il.encode(e.trayConfig,t.uint32(106).fork()).ldelim(),void 0!==e.singleItemConfig&&IN.encode(e.singleItemConfig,t.uint32(114).fork()).ldelim(),void 0!==e.threeTilesConfig&&I_.encode(e.threeTilesConfig,t.uint32(122).fork()).ldelim(),!1!==e.oneTapAttachmentOpenEligible&&t.uint32(128).bool(e.oneTapAttachmentOpenEligible),void 0!==e.oneTapAttachmentOpenTimeThresholdMs&&mH.encode({value:e.oneTapAttachmentOpenTimeThresholdMs},t.uint32(138).fork()).ldelim(),!1!==e.showTileMetadataOnBottom&&t.uint32(144).bool(e.showTileMetadataOnBottom),0!==e.gridBottomOffset&&t.uint32(160).int32(e.gridBottomOffset),void 0!==e.gridTileBorderRadius&&mq.encode({value:e.gridTileBorderRadius},t.uint32(170).fork()).ldelim(),void 0!==e.verticalCarouselConfig&&IP.encode(e.verticalCarouselConfig,t.uint32(178).fork()).ldelim(),void 0!==e.tileAnimationConfig&&Id.encode(e.tileAnimationConfig,t.uint32(186).fork()).ldelim(),t},decode(e,t){let i=e instanceof S7.default.Reader?e:S7.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.enabled=i.bool();continue;case 2:if(16!==e)break;a.includeCollectionDefaultAttachment=i.bool();continue;case 3:if(24!==e)break;a.minCollectionElements=i.int32();continue;case 4:if(34!==e)break;a.itemOrder.push(IA.decode(i,i.uint32()));continue;case 5:if(40!==e)break;a.showPrice=i.bool();continue;case 6:if(50!==e)break;a.floatingPillConfig=Io.decode(i,i.uint32());continue;case 7:if(58!==e)break;a.fourTilesConfig=If.decode(i,i.uint32());continue;case 8:if(64!==e)break;a.showTileMetadata=i.bool();continue;case 9:if(72!==e)break;a.skipTapsOnGridTimeMs=Iy(i.int64());continue;case 10:if(80!==e)break;a.skipZoneWidthPercentageRight=i.int32();continue;case 11:if(88!==e)break;a.skipZoneWidthPercentageLeft=i.int32();continue;case 12:if(96!==e)break;a.useActiveItemAttachment=i.bool();continue;case 13:if(106!==e)break;a.trayConfig=Il.decode(i,i.uint32());continue;case 14:if(114!==e)break;a.singleItemConfig=IN.decode(i,i.uint32());continue;case 15:if(122!==e)break;a.threeTilesConfig=I_.decode(i,i.uint32());continue;case 16:if(128!==e)break;a.oneTapAttachmentOpenEligible=i.bool();continue;case 17:if(138!==e)break;a.oneTapAttachmentOpenTimeThresholdMs=mH.decode(i,i.uint32()).value;continue;case 18:if(144!==e)break;a.showTileMetadataOnBottom=i.bool();continue;case 20:if(160!==e)break;a.gridBottomOffset=i.int32();continue;case 21:if(170!==e)break;a.gridTileBorderRadius=mq.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.verticalCarouselConfig=IP.decode(i,i.uint32());continue;case 23:if(186!==e)break;a.tileAnimationConfig=Id.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IC.fromPartial(e??{}),fromPartial(e){let t=IO();return t.enabled=e.enabled??!1,t.includeCollectionDefaultAttachment=e.includeCollectionDefaultAttachment??!1,t.minCollectionElements=e.minCollectionElements??
20,t.itemOrder=e.itemOrder?.map(e=>IA.fromPartial(e))||[],t.showPrice=e.showPrice??!1,t.floatingPillConfig=void 0!==e.floatingPillConfig&&null!==e.floatingPillConfig?Io.fromPartial(e.floatingPillConfig):void 0,t.fourTilesConfig=void 0!==e.fourTilesConfig&&null!==e.fourTilesConfig?If.fromPartial(e.fourTilesConfig):void 0,t.showTileMetadata=e.showTileMetadata??!1,t.skipTapsOnGridTimeMs=e.skipTapsOnGridTimeMs??"0",t.skipZoneWidthPercentageRight=e.skipZoneWidthPercentageRight??0,t.skipZoneWidthPercentageLeft=e.skipZoneWidthPercentageLeft??0,t.useActiveItemAttachment=e.useActiveItemAttachment??!1,t.trayConfig=void 0!==e.trayConfig&&null!==e.trayConfig?Il.fromPartial(e.trayConfig):void 0,t.singleItemConfig=void 0!==e.singleItemConfig&&null!==e.singleItemConfig?IN.fromPartial(e.singleItemConfig):void 0,t.threeTilesConfig=void 0!==e.threeTilesConfig&&null!==e.threeTilesConfig?I_.fromPartial(e.threeTilesConfig):void 0,t.oneTapAttachmentOpenEligible=e.oneTapAttachmentOpenEligible??!1,t.oneTapAttachmentOpenTimeThresholdMs=e.oneTapAttachmentOpenTimeThresholdMs??void 0,t.showTileMetadataOnBottom=e.showTileMetadataOnBottom??!1,t.gridBottomOffset=e.gridBottomOffset??0,t.gridTileBorderRadius=e.gridTileBorderRadius??void 0,t.verticalCarouselConfig=void 0!==e.verticalCarouselConfig&&null!==e.verticalCarouselConfig?IP.fromPartial(e.verticalCarouselConfig):void 0,t.tileAnimationConfig=void 0!==e.tileAnimationConfig&&null!==e.tileAnimationConfig?Id.fromPartial(e.tileAnimationConfig):void 0,t}};function Iy(e){return e.toString()}S7.default.util.Long!==rv.default&&(S7.default.util.Long=rv.default,S7.default.configure());let Ih={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>Ih.fromPartial(e??{}),fromPartial:e=>({})},IL={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IL.fromPartial(e??{}),fromPartial:e=>({})},ID={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>ID.fromPartial(e??{}),fromPartial:e=>({})},Iw={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>Iw.fromPartial(e??{}),fromPartial:e=>({})};function IM(){return{textColor:"",titleBackgroundColor:""}}let IU={encode:(e,t=S6.default.Writer.create())=>(""!==e.textColor&&t.uint32(10).string(e.textColor),""!==e.titleBackgroundColor&&t.uint32(18).string(e.titleBackgroundColor),t),decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IM();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.textColor=i.string();continue;case 2:if(18!==e)break;a.titleBackgroundColor=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IU.fromPartial(e??{}),fromPartial(e){let t=IM();return t.textColor=e.textColor??"",t.titleBackgroundColor=e.titleBackgroundColor??"",t}},IV={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IV.fromPartial(e??{}),fromPartial:e=>({})},IB={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IB.fromPartial(e??{}),fromPartial:e=>({})},IF={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IF.fromPartial(e??{}),fromPartial:e=>({})},IG={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IG.fromPartial(e??{}),fromPartial:e=>({})};function IW(){return{textColor:"",titleBackgroundColor:"",subtitleBackgroundColor:""}}let Ix={encode:(e,t=S6.default.Writer.create())=>(""!==e.textColor&&t.uint32(10).string(e.textColor),""!==e.titleBackgroundColor&&t.uint32(18).string(e.titleBackgroundColor),""!==e.subtitleBackgroundColor&&t.uint32(26).string(e.subtitleBackgroundColor),t),decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.textColor=i.string();continue;case 2:if(18!==e)break;a.titleBackgroundColor=i.string();continue;case 3:if(26!==e)break;a.subtitleBackgroundColor=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ix.fromPartial(e??{}),fromPartial(e){let t=IW();return t.textColor=e.textColor??"",t.titleBackgroundColor=e.titleBackgroundColor??"",t.subtitleBackgroundColor=e.subtitleBackgroundColor??"",t}},IH={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IH.fromPartial(e??{}),fromPartial:e=>({})},IY={encode:(e,t=S6.default.Writer.create())=>t,decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>IY.fromPartial(e??{}),fromPartial:e=>({})};function IK(){return{config:void 0}}let I$={encode:(e,t=S6.default.Writer.create())=>(void 0!==e.config&&IC.encode(e.config,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof S6.default.Reader?e:S6.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.config=IC.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I$.fromPartial(e??{}),fromPartial(e){let t=IK();return t.config=void 0!==e.config&&null!==e.config?IC.fromPartial(e.config):void 0,t}};function Iz(){return{layout:0,templateName:void 0,aspectRatio:void 0,isFallbackAspectRatio:void 0,numImagesShown:void 0,template:void 0,background:void 0}}let Iq={encode(e,t=rA.default.Writer.create()){switch(0!==e.layout&&t.uint32(8).int32(e.layout),void 0!==e.templateName&&mJ.encode({value:e.templateName},t.uint32(18).fork()).ldelim(),void 0!==e.aspectRatio&&mH.encode({value:e.aspectRatio},t.uint32(26).fork()).ldelim(),void 0!==e.isFallbackAspectRatio&&mX.encode({value:e.isFallbackAspectRatio},t.uint32(34).fork()).ldelim(),void 0!==e.numImagesShown&&mq.encode({value:e.numImagesShown},t.uint32(42).fork()).ldelim(),e.template?.$case){case"fillWidth":Ih.encode(e.template.fillWidth,t.uint32(50).fork()).ldelim();break;case"fillHeight":IL.encode(e.template.fillHeight,t.uint32(58).fork()).ldelim();break;case"fit":ID.encode(e.template.fit,t.uint32(66).fork()).ldelim();break;case"header":Iw.encode(e.template.header,t.uint32(74).fork()).ldelim();break;case"tilt":IU.encode(e.template.tilt,t.uint32(82).fork()).ldelim();break;case"carousel":IV.encode(e.template.carousel,t.uint32(90).fork()).ldelim();break;case"slideshow":IB.encode(e.template.slideshow,t.uint32(98).fork()).ldelim();break;case"echoTall":IF.encode(e.template.echoTall,t.uint32(106).fork()).ldelim();break;case"echoWide":IG.encode(e.template.echoWide,t.uint32(114).fork()).ldelim();break;case"presetColor":Ix.encode(e.template.presetColor,t.uint32(122).fork()).ldelim();break;case"whiteTall":IH.encode(e.template.whiteTall,t.uint32(130).fork()).ldelim();break;case"whiteWide":IY.encode(e.template.whiteWide,t.uint32(138).fork()).ldelim();break;case"grid":I$.encode(e.template.grid,t.uint32(162).fork()).ldelim()}
2switch(e.background?.$case){case"colorBackground":S3.encode(e.background.colorBackground,t.uint32(146).fork()).ldelim();break;case"echoBackground":S1.encode(e.background.echoBackground,t.uint32(154).fork()).ldelim();break;case"mediaBackground":S8.encode(e.background.mediaBackground,t.uint32(170).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Iz();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.layout=i.int32();continue;case 2:if(18!==e)break;a.templateName=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.aspectRatio=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.isFallbackAspectRatio=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.numImagesShown=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.template={$case:"fillWidth",fillWidth:Ih.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.template={$case:"fillHeight",fillHeight:IL.decode(i,i.uint32())};continue;case 8:if(66!==e)break;a.template={$case:"fit",fit:ID.decode(i,i.uint32())};continue;case 9:if(74!==e)break;a.template={$case:"header",header:Iw.decode(i,i.uint32())};continue;case 10:if(82!==e)break;a.template={$case:"tilt",tilt:IU.decode(i,i.uint32())};continue;case 11:if(90!==e)break;a.template={$case:"carousel",carousel:IV.decode(i,i.uint32())};continue;case 12:if(98!==e)break;a.template={$case:"slideshow",slideshow:IB.decode(i,i.uint32())};continue;case 13:if(106!==e)break;a.template={$case:"echoTall",echoTall:IF.decode(i,i.uint32())};continue;case 14:if(114!==e)break;a.template={$case:"echoWide",echoWide:IG.decode(i,i.uint32())};continue;case 15:if(122!==e)break;a.template={$case:"presetColor",presetColor:Ix.decode(i,i.uint32())};continue;case 16:if(130!==e)break;a.template={$case:"whiteTall",whiteTall:IH.decode(i,i.uint32())};continue;case 17:if(138!==e)break;a.template={$case:"whiteWide",whiteWide:IY.decode(i,i.uint32())};continue;case 20:if(162!==e)break;a.template={$case:"grid",grid:I$.decode(i,i.uint32())};continue;case 18:if(146!==e)break;a.background={$case:"colorBackground",colorBackground:S3.decode(i,i.uint32())};continue;case 19:if(154!==e)break;a.background={$case:"echoBackground",echoBackground:S1.decode(i,i.uint32())};continue;case 21:if(170!==e)break;a.background={$case:"mediaBackground",mediaBackground:S8.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Iq.fromPartial(e??{}),fromPartial(e){let t=Iz();return t.layout=e.layout??0,t.templateName=e.templateName??void 0,t.aspectRatio=e.aspectRatio??void 0,t.isFallbackAspectRatio=e.isFallbackAspectRatio??void 0,t.numImagesShown=e.numImagesShown??void 0,e.template?.$case==="fillWidth"&&e.template?.fillWidth!==void 0&&e.template?.fillWidth!==null&&(t.template={$case:"fillWidth",fillWidth:Ih.fromPartial(e.template.fillWidth)}),e.template?.$case==="fillHeight"&&e.template?.fillHeight!==void 0&&e.template?.fillHeight!==null&&(t.template={$case:"fillHeight",fillHeight:IL.fromPartial(e.template.fillHeight)}),e.template?.$case==="fit"&&e.template?.fit!==void 0&&e.template?.fit!==null&&(t.template={$case:"fit",fit:ID.fromPartial(e.template.fit)}),e.template?.$case==="header"&&e.template?.header!==void 0&&e.template?.header!==null&&(t.template={$case:"header",header:Iw.fromPartial(e.template.header)}),e.template?.$case==="tilt"&&e.template?.tilt!==void 0&&e.template?.tilt!==null&&(t.template={$case:"tilt",tilt:IU.fromPartial(e.template.tilt)}),e.template?.$case==="carousel"&&e.template?.carousel!==void 0&&e.template?.carousel!==null&&(t.template={$case:"carousel",carousel:IV.fromPartial(e.template.carousel)}),e.template?.$case==="slideshow"&&e.template?.slideshow!==void 0&&e.template?.slideshow!==null&&(t.template={$case:"slideshow",slideshow:IB.fromPartial(e.template.slideshow)}),e.template?.$case==="echoTall"&&e.template?.echoTall!==void 0&&e.template?.echoTall!==null&&(t.template={$case:"echoTall",echoTall:IF.fromPartial(e.template.echoTall)}),e.template?.$case==="echoWide"&&e.template?.echoWide!==void 0&&e.template?.echoWide!==null&&(t.template={$case:"echoWide",echoWide:IG.fromPartial(e.template.echoWide)}),e.template?.$case==="presetColor"&&e.template?.presetColor!==void 0&&e.template?.presetColor!==null&&(t.template={$case:"presetColor",presetColor:Ix.fromPartial(e.template.presetColor)}
2),e.template?.$case==="whiteTall"&&e.template?.whiteTall!==void 0&&e.template?.whiteTall!==null&&(t.template={$case:"whiteTall",whiteTall:IH.fromPartial(e.template.whiteTall)}),e.template?.$case==="whiteWide"&&e.template?.whiteWide!==void 0&&e.template?.whiteWide!==null&&(t.template={$case:"whiteWide",whiteWide:IY.fromPartial(e.template.whiteWide)}),e.template?.$case==="grid"&&e.template?.grid!==void 0&&e.template?.grid!==null&&(t.template={$case:"grid",grid:I$.fromPartial(e.template.grid)}),e.background?.$case==="colorBackground"&&e.background?.colorBackground!==void 0&&e.background?.colorBackground!==null&&(t.background={$case:"colorBackground",colorBackground:S3.fromPartial(e.background.colorBackground)}),e.background?.$case==="echoBackground"&&e.background?.echoBackground!==void 0&&e.background?.echoBackground!==null&&(t.background={$case:"echoBackground",echoBackground:S1.fromPartial(e.background.echoBackground)}),e.background?.$case==="mediaBackground"&&e.background?.mediaBackground!==void 0&&e.background?.mediaBackground!==null&&(t.background={$case:"mediaBackground",mediaBackground:S8.fromPartial(e.background.mediaBackground)}),t}};(al=tt||(tt={}))[al.UNSET=0]="UNSET",al[al.RESHUFFLE=1]="RESHUFFLE",al[al.SEE_MORE=2]="SEE_MORE",al[al.UNRECOGNIZED=-1]="UNRECOGNIZED",(ac=ti||(ti={}))[ac.UNSET=0]="UNSET",ac[ac.GRID=1]="GRID",ac[ac.BOTTOM_SHEET=2]="BOTTOM_SHEET",ac[ac.UNRECOGNIZED=-1]="UNRECOGNIZED";let IZ={encode:(e,t=rA.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={type:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IZ.fromPartial(e??{}),fromPartial(e){let t={type:0};return t.type=e.type??0,t}};function Ij(){return{type:0,tileIndex:void 0,collectionItemIndex:void 0}}let IX={encode:(e,t=rA.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),void 0!==e.tileIndex&&mZ.encode({value:e.tileIndex},t.uint32(18).fork()).ldelim(),void 0!==e.collectionItemIndex&&mZ.encode({value:e.collectionItemIndex},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ij();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue;case 2:if(18!==e)break;a.tileIndex=mZ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.collectionItemIndex=mZ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IX.fromPartial(e??{}),fromPartial(e){let t=Ij();return t.type=e.type??0,t.tileIndex=e.tileIndex??void 0,t.collectionItemIndex=e.collectionItemIndex??void 0,t}};function IQ(){return{visibleStartTime:void 0,percentVisible:0,additionalImpressionData:void 0}}let IJ={encode(e,t=rA.default.Writer.create()){switch(void 0!==e.visibleStartTime&&mK.encode({value:e.visibleStartTime},t.uint32(10).fork()).ldelim(),0!==e.percentVisible&&t.uint32(16).int32(e.percentVisible),e.additionalImpressionData?.$case){case"moreItemsImpression":IZ.encode(e.additionalImpressionData.moreItemsImpression,t.uint32(26).fork()).ldelim();break;case"dominoTileImpression":IX.encode(e.additionalImpressionData.dominoTileImpression,t.uint32(34).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=IQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.visibleStartTime=mK.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.percentVisible=i.int32();continue;case 3:if(26!==e)break;a.additionalImpressionData={$case:"moreItemsImpression",moreItemsImpression:IZ.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.additionalImpressionData={$case:"dominoTileImpression",dominoTileImpression:IX.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>IJ.fromPartial(e??{}),fromPartial(e){let t=IQ();return t.visibleStartTime=e.visibleStartTime??void 0,t.percentVisible=e.percentVisible??0,e.additionalImpressionData?.$case==="moreItemsImpression"&&e.additionalImpressionData?.moreItemsImpression!==void 0&&e.additionalImpressionData?.moreItemsImpression!==null&&(t.additionalImpressionData={$case:"moreItemsImpression",moreItemsImpression:IZ.fromPartial(e.additionalImpressionData.moreItemsImpression)}),e.additionalImpressionData?.$case==="dominoTileImpression"&&e.additionalImpressionData?.dominoTileImpression!==void 0&&e.additionalImpressionData?.dominoTileImpression!==null&&(t.additionalImpressionData={$case:"dominoTileImpression",dominoTileImpression:IX.fromPartial(e.additionalImpressionData.dominoTileImpression)}),t}};function I0(){return{displayedTsMs:"0",tappedIndex:void 0,endCardType:0,screenshotEndCardStyle:0,servedScreenshotCount:void 0,screenshotSwipeCount:void 0,reviewEndCardStyle:0,tapToSkipMs:void 0,oneTapDelayMs:void 0,displayedReviewIds:[]}}(au=tn||(tn={}))[au.END_CARD_APP_SCREENSHOTS_UNSET=0]="END_CARD_APP_SCREENSHOTS_UNSET",au[au.END_CARD_CTA=1
2]="END_CARD_CTA",au[au.END_CARD_APP_REVIEW=2]="END_CARD_APP_REVIEW",au[au.END_CARD_AR=3]="END_CARD_AR",au[au.END_CARD_POLL=4]="END_CARD_POLL",au[au.UNRECOGNIZED=-1]="UNRECOGNIZED",(ap=ta||(ta={}))[ap.SCREENSHOT_END_CARD_STYLE_DEFAULT_UNSET=0]="SCREENSHOT_END_CARD_STYLE_DEFAULT_UNSET",ap[ap.SCREENSHOT_END_CARD_STYLE_GALLERY=1]="SCREENSHOT_END_CARD_STYLE_GALLERY",ap[ap.UNRECOGNIZED=-1]="UNRECOGNIZED",(af=to||(to={}))[af.REVIEW_END_CARD_STYLE_DEFAULT_UNSET=0]="REVIEW_END_CARD_STYLE_DEFAULT_UNSET",af[af.REVIEW_END_CARD_STYLE_TITLE_ONLY=1]="REVIEW_END_CARD_STYLE_TITLE_ONLY",af[af.REVIEW_END_CARD_STYLE_V1_SINGLE_REVIEW=2]="REVIEW_END_CARD_STYLE_V1_SINGLE_REVIEW",af[af.UNRECOGNIZED=-1]="UNRECOGNIZED";let I2={encode(e,t=rA.default.Writer.create()){for(let i of("0"!==e.displayedTsMs&&t.uint32(8).int64(e.displayedTsMs),void 0!==e.tappedIndex&&mq.encode({value:e.tappedIndex},t.uint32(18).fork()).ldelim(),0!==e.endCardType&&t.uint32(24).int32(e.endCardType),0!==e.screenshotEndCardStyle&&t.uint32(32).int32(e.screenshotEndCardStyle),void 0!==e.servedScreenshotCount&&mq.encode({value:e.servedScreenshotCount},t.uint32(42).fork()).ldelim(),void 0!==e.screenshotSwipeCount&&mq.encode({value:e.screenshotSwipeCount},t.uint32(50).fork()).ldelim(),0!==e.reviewEndCardStyle&&t.uint32(56).int32(e.reviewEndCardStyle),void 0!==e.tapToSkipMs&&mK.encode({value:e.tapToSkipMs},t.uint32(66).fork()).ldelim(),void 0!==e.oneTapDelayMs&&mK.encode({value:e.oneTapDelayMs},t.uint32(74).fork()).ldelim(),e.displayedReviewIds))t.uint32(82).string(i);return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=I0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.displayedTsMs=i.int64().toString();continue;case 2:if(18!==e)break;a.tappedIndex=mq.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.endCardType=i.int32();continue;case 4:if(32!==e)break;a.screenshotEndCardStyle=i.int32();continue;case 5:if(42!==e)break;a.servedScreenshotCount=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.screenshotSwipeCount=mq.decode(i,i.uint32()).value;continue;case 7:if(56!==e)break;a.reviewEndCardStyle=i.int32();continue;case 8:if(66!==e)break;a.tapToSkipMs=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.oneTapDelayMs=mK.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.displayedReviewIds.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I2.fromPartial(e??{}),fromPartial(e){let t=I0();return t.displayedTsMs=e.displayedTsMs??"0",t.tappedIndex=e.tappedIndex??void 0,t.endCardType=e.endCardType??0,t.screenshotEndCardStyle=e.screenshotEndCardStyle??0,t.servedScreenshotCount=e.servedScreenshotCount??void 0,t.screenshotSwipeCount=e.screenshotSwipeCount??void 0,t.reviewEndCardStyle=e.reviewEndCardStyle??0,t.tapToSkipMs=e.tapToSkipMs??void 0,t.oneTapDelayMs=e.oneTapDelayMs??void 0,t.displayedReviewIds=e.displayedReviewIds?.map(e=>e)||[],t}};function I3(){return{exitCoordStartSwipeTapPositionXRelative:void 0,exitCoordStartSwipeTapPositionX:void 0,exitCoordStartSwipeTapPositionYRelative:void 0,exitCoordStartSwipeTapPositionY:void 0,exitCoordEndSwipeTapPositionXRelative:void 0,exitCoordEndSwipeTapPositionX:void 0,exitCoordEndSwipeTapPositionYRelative:void 0,exitCoordEndSwipeTapPositionY:void 0,exitCoordSwipeTapDuration:void 0,segmentIndex:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let I1={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.exitCoordStartSwipeTapPositionXRelative&&mH.encode({value:e.exitCoordStartSwipeTapPositionXRelative},t.uint32(10).fork()).ldelim(),void 0!==e.exitCoordStartSwipeTapPositionX&&mH.encode({value:e.exitCoordStartSwipeTapPositionX},t.uint32(18).fork()).ldelim(),void 0!==e.exitCoordStartSwipeTapPositionYRelative&&mH.encode({value:e.exitCoordStartSwipeTapPositionYRelative},t.uint32(26).fork()).ldelim(),void 0!==e.exitCoordStartSwipeTapPositionY&&mH.encode({value:e.exitCoordStartSwipeTapPositionY},t.uint32(34).fork()).ldelim(),void 0!==e.exitCoordEndSwipeTapPositionXRelative&&mH.encode({value:e.exitCoordEndSwipeTapPositionXRelative},t.uint32(42).fork()).ldelim(),void 0!==e.exitCoordEndSwipeTapPositionX&&mH.encode({value:e.exitCoordEndSwipeTapPositionX},t.uint32(50).fork()).ldelim(),void 0!==e.exitCoordEndSwipeTapPositionYRelative&&mH.encode({value:e.exitCoordEndSwipeTapPositionYRelative},t.uint32(58).fork()).ldelim(),void 0!==e.exitCoordEndSwipeTapPositionY&&mH.encode({value:e.exitCoordEndSwipeTapPositionY},t.uint32(66).fork()).ldelim(),void 0!==e.exitCoordSwipeTapDuration&&mH.encode({value:e.exitCoordSwipeTapDuration},t.uint32(74).fork()).ldelim(),void 0!==e.segmentIndex&&mq.encode({value:e.segmentIndex},t.uint32(82).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=I3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.exitCoordStartSwipeTapPositionXRelative=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.exitCoordStartSwipeTapPositionX=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.exitCoordStartSwipeTapPositionYRelative=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.exitCoordStartSwipeTapPositionY=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.exitCoordEndSwipeTapPositionXRelative=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.exitCoordEndSwipeTapPositionX=mH.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.exitCoordEndSwipeTapPositionYRelative=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.exitCoordEndSwipeTapPositionY=mH.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.exitCoordSwipeTapDuration=mH.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.segmentIndex=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I1.fromPartial(e??{}),fromPartial(e){let t=I3();return t.exitCoordStartSwipeTapPositionXRelative=e.exitCoordStartSwipeTapPositionXRelative??void 0,t.exit
2CoordStartSwipeTapPositionX=e.exitCoordStartSwipeTapPositionX??void 0,t.exitCoordStartSwipeTapPositionYRelative=e.exitCoordStartSwipeTapPositionYRelative??void 0,t.exitCoordStartSwipeTapPositionY=e.exitCoordStartSwipeTapPositionY??void 0,t.exitCoordEndSwipeTapPositionXRelative=e.exitCoordEndSwipeTapPositionXRelative??void 0,t.exitCoordEndSwipeTapPositionX=e.exitCoordEndSwipeTapPositionX??void 0,t.exitCoordEndSwipeTapPositionYRelative=e.exitCoordEndSwipeTapPositionYRelative??void 0,t.exitCoordEndSwipeTapPositionY=e.exitCoordEndSwipeTapPositionY??void 0,t.exitCoordSwipeTapDuration=e.exitCoordSwipeTapDuration??void 0,t.segmentIndex=e.segmentIndex??void 0,t}};function I4(){return{liveReviewType:0,displayedReviewIds:[],tappedReviewIndex:void 0}}let I8={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.liveReviewType&&t.uint32(8).int32(e.liveReviewType),e.displayedReviewIds))t.uint32(18).string(i);return void 0!==e.tappedReviewIndex&&mq.encode({value:e.tappedReviewIndex},t.uint32(26).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=I4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.liveReviewType=i.int32();continue;case 2:if(18!==e)break;a.displayedReviewIds.push(i.string());continue;case 3:if(26!==e)break;a.tappedReviewIndex=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I8.fromPartial(e??{}),fromPartial(e){let t=I4();return t.liveReviewType=e.liveReviewType??0,t.displayedReviewIds=e.displayedReviewIds?.map(e=>e)||[],t.tappedReviewIndex=e.tappedReviewIndex??void 0,t}};function I6(){return{containsPlayableAd:void 0,tryItOutButtonClicked:void 0,tryItOutButtonDisplayedTsMs:void 0,tryItOutButtonClickedTsMs:void 0,playableAdViewTimeStartTsMs:void 0,playableAdViewTimeEndTsMs:void 0,playableContentTapsNum:void 0,playableContentSwipesNum:void 0,error:void 0,retryButtonTapped:void 0}}let I7={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.containsPlayableAd&&mX.encode({value:e.containsPlayableAd},t.uint32(10).fork()).ldelim(),void 0!==e.tryItOutButtonClicked&&mX.encode({value:e.tryItOutButtonClicked},t.uint32(18).fork()).ldelim(),void 0!==e.tryItOutButtonDisplayedTsMs&&mK.encode({value:e.tryItOutButtonDisplayedTsMs},t.uint32(26).fork()).ldelim(),void 0!==e.tryItOutButtonClickedTsMs&&mK.encode({value:e.tryItOutButtonClickedTsMs},t.uint32(34).fork()).ldelim(),void 0!==e.playableAdViewTimeStartTsMs&&mK.encode({value:e.playableAdViewTimeStartTsMs},t.uint32(42).fork()).ldelim(),void 0!==e.playableAdViewTimeEndTsMs&&mK.encode({value:e.playableAdViewTimeEndTsMs},t.uint32(50).fork()).ldelim(),void 0!==e.playableContentTapsNum&&mZ.encode({value:e.playableContentTapsNum},t.uint32(58).fork()).ldelim(),void 0!==e.playableContentSwipesNum&&mZ.encode({value:e.playableContentSwipesNum},t.uint32(66).fork()).ldelim(),void 0!==e.error&&I9.encode(e.error,t.uint32(74).fork()).ldelim(),void 0!==e.retryButtonTapped&&mX.encode({value:e.retryButtonTapped},t.uint32(82).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=I6();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.containsPlayableAd=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.tryItOutButtonClicked=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.tryItOutButtonDisplayedTsMs=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.tryItOutButtonClickedTsMs=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.playableAdViewTimeStartTsMs=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.playableAdViewTimeEndTsMs=mK.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.playableContentTapsNum=mZ.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.playableContentSwipesNum=mZ.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.error=I9.decode(i,i.uint32());continue;case 10:if(82!==e)break;a.retryButtonTapped=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I7.fromPartial(e??{}),fromPartial(e){let t=I6();return t.containsPlayableAd=e.containsPlayableAd??void 0,t.tryItOutButtonClicked=e.tryItOutButtonClicked??void 0,t.tryItOutButtonDisplayedTsMs=e.tryItOutButtonDisplayedTsMs??void 0,t.tryItOutButtonClickedTsMs=e.tryItOutButtonClickedTsMs??void 0,t.playableAdViewTimeStartTsMs=e.playableAdViewTimeStartTsMs??void 0,t.playableAdViewTimeEndTsMs=e.playableAdViewTimeEndTsMs??void 0,t.playableContentTapsNum=e.playableContentTapsNum??void 0,t.playableContentSwipesNum=e.playableContentSwipesNum??void 0,t.error=void 0!==e.error&&null!==e.error?I9.fromPartial(e.error):void 0,t.retryButtonTapped=e.retryButtonTapped??void 0,t}};function I5(){return{webViewLoadErrorStatusCode:0,webViewLoadErrorDescription:""}}let I9={encode:(e,t=rA.default.Writer.create())=>(0!==e.webViewLoadErrorStatusCode&&t.uint32(8).int32(e.webViewLoadErrorStatusCode),""!==e.webViewLoadErrorDescription&&t.uint32(18).string(e.webViewLoadErrorDescription),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=I5();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.webViewLoadErrorStatusCode=i.int32();continue;case 2:if(18!==e)break;a.webViewLoadErrorDescription=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>I9.fromPartial(e??{}),fromPartial(e){let t=I5();return t.webViewLoadErrorStatusCode=e.webViewLoadErrorStatusCode??0,t.webViewLoadErrorDescription=e.webViewLoadErrorDescription??"",t}};function ve(){return{selectedOptionIds:[],pollStickerShownTimeMs:void 0}}let vt={encode(e,t=rA.default.Writer.create()){for(let i of e.selectedOptionIds)t.uint32(18).string(i);return void 0!==e.pollStickerShownTimeMs&&mK.encode({value:e.pollStickerShownTimeMs},t.uint32(26).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ve();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 2:if(18!==e)break;a.selectedOptionIds.push(i.string());continue;case 3:if(26!==e)break;a.pollStickerShownTimeMs=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vt.fromPartial(e??{}),fromPartial(e){let t=ve();return t.selectedOptionIds=e.selectedOptionIds?.map(e=>e)||[],t.pollStickerShownTimeMs=e.pollStickerShownTimeMs??void 0,t}};function vi(){return{promoType:0,promoDiscount:void 0,promoCode:void 0}}(aT=tr||(tr={}))[aT.INFO_CARD_UNSET=0]="INFO_CARD_UNSET",aT[aT.PILL_BUTTON=1]="PILL_BUTTON",aT[aT.UNRECOGNIZED=-1]="UNRECOGNIZED";let vn={encode:(e,t=rA.default.Writer.create())=>(0!==e.promoType&&t.uint32(8).int32(e.promoType),void 0!==e.promoDiscount&&mJ.encode({value:e.promoDiscount},t.uint32(18).fork()).ldelim(),void 0!==e.promoCode&&mJ.encode({value:e.promoCode},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vi();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.promoType=i.int32();continue;case 2:if(18!==e)break;a.promoDiscount=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.promoCode=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vn.fromPartial(e??{}),fromPartial(e){let t=vi();return t.promoType=e.promoType??0,t.promoDiscount=e.promoDiscount??void 0,t.promoCode=e.promoCode??void 0,t}};function va(){return{isCustomPlacementEnabled:void 0,xCoordinateBottomLeftPct:void 0,yCoordinateBottomLeftPct:void 0}}let vo={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.isCustomPlacementEnabled&&mX.encode({value:e.isCustomPlacementEnabled},t.uint32(10).fork()).ldelim(),void 0!==e.xCoordinateBottomLeftPct&&mx.encode({value:e.xCoordinateBottomLeftPct},t.uint32(18).fork()).ldelim(),void 0!==e.yCoordinateBottomLeftPct&&mx.encode({value:e.yCoordinateBottomLeftPct},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=va();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;
2a.isCustomPlacementEnabled=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.xCoordinateBottomLeftPct=mx.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.yCoordinateBottomLeftPct=mx.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vo.fromPartial(e??{}),fromPartial(e){let t=va();return t.isCustomPlacementEnabled=e.isCustomPlacementEnabled??void 0,t.xCoordinateBottomLeftPct=e.xCoordinateBottomLeftPct??void 0,t.yCoordinateBottomLeftPct=e.yCoordinateBottomLeftPct??void 0,t}};function vr(){return{customPlacementServerConfig:void 0,isDoubleTapEnabled:void 0,stickerXPositionBottomLeft:void 0,stickerYPositionBottomLeft:void 0,stickerXPositionBottomLeftRelative:void 0,stickerYPositionBottomLeftRelative:void 0,stickerHeight:void 0,stickerWidth:void 0,stickerRelativeHeight:void 0,stickerRelativeWidth:void 0}}let vd={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.customPlacementServerConfig&&vo.encode(e.customPlacementServerConfig,t.uint32(10).fork()).ldelim(),void 0!==e.isDoubleTapEnabled&&mX.encode({value:e.isDoubleTapEnabled},t.uint32(18).fork()).ldelim(),void 0!==e.stickerXPositionBottomLeft&&mx.encode({value:e.stickerXPositionBottomLeft},t.uint32(26).fork()).ldelim(),void 0!==e.stickerYPositionBottomLeft&&mx.encode({value:e.stickerYPositionBottomLeft},t.uint32(34).fork()).ldelim(),void 0!==e.stickerXPositionBottomLeftRelative&&mx.encode({value:e.stickerXPositionBottomLeftRelative},t.uint32(42).fork()).ldelim(),void 0!==e.stickerYPositionBottomLeftRelative&&mx.encode({value:e.stickerYPositionBottomLeftRelative},t.uint32(50).fork()).ldelim(),void 0!==e.stickerHeight&&mx.encode({value:e.stickerHeight},t.uint32(58).fork()).ldelim(),void 0!==e.stickerWidth&&mx.encode({value:e.stickerWidth},t.uint32(66).fork()).ldelim(),void 0!==e.stickerRelativeHeight&&mx.encode({value:e.stickerRelativeHeight},t.uint32(74).fork()).ldelim(),void 0!==e.stickerRelativeWidth&&mx.encode({value:e.stickerRelativeWidth},t.uint32(82).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vr();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.customPlacementServerConfig=vo.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.isDoubleTapEnabled=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.stickerXPositionBottomLeft=mx.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.stickerYPositionBottomLeft=mx.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.stickerXPositionBottomLeftRelative=mx.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.stickerYPositionBottomLeftRelative=mx.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.stickerHeight=mx.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.stickerWidth=mx.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.stickerRelativeHeight=mx.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.stickerRelativeWidth=mx.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vd.fromPartial(e??{}),fromPartial(e){let t=vr();return t.customPlacementServerConfig=void 0!==e.customPlacementServerConfig&&null!==e.customPlacementServerConfig?vo.fromPartial(e.customPlacementServerConfig):void 0,t.isDoubleTapEnabled=e.isDoubleTapEnabled??void 0,t.stickerXPositionBottomLeft=e.stickerXPositionBottomLeft??void 0,t.stickerYPositionBottomLeft=e.stickerYPositionBottomLeft??void 0,t.stickerXPositionBottomLeftRelative=e.stickerXPositionBottomLeftRelative??void 0,t.stickerYPositionBottomLeftRelative=e.stickerYPositionBottomLeftRelative??void 0,t.stickerHeight=e.stickerHeight??void 0,t.stickerWidth=e.stickerWidth??void 0,t.stickerRelativeHeight=e.stickerRelativeHeight??void 0,t.stickerRelativeWidth=e.stickerRelativeWidth??void 0,t}};function vs(){return{answers:[],submittedTsMs:void 0}}let vl={encode(e,t=rA.default.Writer.create()){for(let i of e.answers)vu.encode(i,t.uint32(10).fork()).ldelim();return void 0!==e.submittedTsMs&&mK.encode({value:e.submittedTsMs},t.uint32(18).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vs();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.answers.push(vu.decode(i,i.uint32()));continue;case 2:if(18!==e)break;a.submittedTsMs=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vl.fromPartial(e??{}),fromPartial(e){let t=vs();return t.answers=e.answers?.map(e=>vu.fromPartial(e))||[],t.submittedTsMs=e.submittedTsMs??void 0,t}};function vc(){return{selectedChoices:[],selectedTsMs:void 0,openEndedAnswer:"",questionPresentedTsMs:void 0,questionSubmittedTsMs:void 0}}let vu={encode(e,t=rA.default.Writer.create()){for(let i of(t.uint32(10).fork(),e.selectedChoices))t.int32(i);return t.ldelim(),void 0!==e.selectedTsMs&&mK.encode({value:e.selectedTsMs},t.uint32(18).fork()).ldelim(),""!==e.openEndedAnswer&&t.uint32(26).string(e.openEndedAnswer),void 0!==e.questionPresentedTsMs&&mK.encode({value:e.questionPresentedTsMs},t.uint32(34).fork()).ldelim(),void 0!==e.questionSubmittedTsMs&&mK.encode({value:e.questionSubmittedTsMs},t.uint32(42).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8===e){a.selectedChoices.push(i.int32());continue}if(10===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.selectedChoices.push(i.int32());continue}break;case 2:if(18!==e)break;a.selectedTsMs=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.openEndedAnswer=i.string();continue;case 4:if(34!==e)break;a.questionPresentedTsMs=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.questionSubmittedTsMs=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vu.fromPartial(e??{}),fromPartial(e){let t=vc();return t.selectedChoices=e.selectedChoices?.map(e=>e)||[],t.selectedTsMs=e.selectedTsMs??void 0,t.openEndedAnswer=e.openEndedAnswer??"",t.questionPresentedTsMs=e.questionPresentedTsMs??void 0,t.questionSubmittedTsMs=e.questionSubmittedTsMs??void 0,t}};function vp(){return{stickerMetadataType:void 0,stickerInfo:void 0}}let vf={encode(e,t=rA.default.Writer.create()){switch(e.stickerMetadataType?.$case){case"surveyAnswer":vl.encode(e.stickerMetadataType.surveyAnswer,t.uint32(10).fork()).ldelim();break;case"reviewStickerMetadata":vm.encode(e.stickerMetadataType.reviewStickerMetadata,t.uint32(26).fork()).ldelim()}return void 0!==e.stickerInfo&&vd.encode(e.stickerInfo,t.uint32(18).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.stickerMetadataType={$case:"surveyAnswer",surveyAnswer:vl.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.stickerMetadataType={$case:"reviewStickerMetadata",reviewStickerMetadata:vm.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.stickerInfo=vd.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vf.fromPartial(e??{}),fromPartial(e){let t=vp();return e.stickerMetadataType?.$case==="surveyAnswer"&&e.stickerMetadataType?.surveyAnswer!==void 0&&e.stickerMetadataType?.surveyAnswer!==null&&(t.stickerMetadataType={$case:"surveyAnswer",surveyAnswer:vl.fromPartial(e.stickerMetadataType.surveyAnswer)}),e.stickerMetadataType?.$case==="reviewStickerMetadata"&&e.stickerMetadataType?.reviewStickerMetadata!==void 0&&e.stickerMetadataType?.reviewStickerMetadata!==null&&(t.stickerMetadataType={$case:"reviewStickerMetadata",reviewStickerMetadata:vm.fromPartial(e.stickerMetadataType.reviewStickerMetadata)}),t.stickerInfo=void 0!==e.stickerInfo&&null!==e.stickerInfo?vd.fromPartial(e.stickerInfo):void 0,t}};function vT(){return{displayedReviewId:""}}let vm={encode:(e,t=rA.default.Writer.create())=>
2(""!==e.displayedReviewId&&t.uint32(10).string(e.displayedReviewId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.displayedReviewId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vm.fromPartial(e??{}),fromPartial(e){let t=vT();return t.displayedReviewId=e.displayedReviewId??"",t}};function vE(){return{startSwipeTapPositionXRelative:void 0,startSwipeTapPositionX:void 0,startSwipeTapPositionYRelative:void 0,startSwipeTapPositionY:void 0,endSwipeTapPositionXRelative:void 0,endSwipeTapPositionX:void 0,endSwipeTapPositionYRelative:void 0,endSwipeTapPositionY:void 0,swipeTapDuration:void 0,secondPointSwipePositionXRelative:void 0,secondPointSwipePositionX:void 0,secondPointSwipePositionYRelative:void 0,secondPointSwipePositionY:void 0,tapAttachmentSource:0}}(am=td||(td={}))[am.UNSET=0]="UNSET",am[am.NONE=1]="NONE",am[am.CARD=2]="CARD",am[am.TRAY=3]="TRAY",am[am.END_CARD=4]="END_CARD",am[am.BUTTON=5]="BUTTON",am[am.GRID=6]="GRID",am[am.BOTTOM_SHEET=7]="BOTTOM_SHEET",am[am.BRAND_ICON=8]="BRAND_ICON",am[am.BRAND_ATTRIBUTION=9]="BRAND_ATTRIBUTION",am[am.CHAT_FEED_CELL_CTA=10]="CHAT_FEED_CELL_CTA",am[am.CHAT_FEED_CELL_ACTION_MENU_CTA=11]="CHAT_FEED_CELL_ACTION_MENU_CTA",am[am.FLOATING_PILL=12]="FLOATING_PILL",am[am.AR_EXPERIENCE_CTA=13]="AR_EXPERIENCE_CTA",am[am.TAP_TOOLTIP=14]="TAP_TOOLTIP",am[am.CHAT_ATTACHMENT=15]="CHAT_ATTACHMENT",am[am.PLAYABLE_AD_CONTENT=16]="PLAYABLE_AD_CONTENT",am[am.PLAYABLE_AD_CTA=17]="PLAYABLE_AD_CTA",am[am.PROMOTED_PLACE_BANNER_CTA=18]="PROMOTED_PLACE_BANNER_CTA",am[am.END_CARD_CTA=19]="END_CARD_CTA",am[am.CAPTION_CTA=20]="CAPTION_CTA",am[am.STICKER_CTA=21]="STICKER_CTA",am[am.STICKER_CTA_TAPPABLE_AREA=22]="STICKER_CTA_TAPPABLE_AREA",am[am.CHAT_ATTACHMENT_TILE=23]="CHAT_ATTACHMENT_TILE",am[am.SPOTLIGHT_CTA_PILL=24]="SPOTLIGHT_CTA_PILL",am[am.APP_REVIEW_STICKER=25]="APP_REVIEW_STICKER",am[am.WAKE_UP_UI_TOOLTIP=26]="WAKE_UP_UI_TOOLTIP",am[am.TAP_TOOLTIP_END_CARD=27]="TAP_TOOLTIP_END_CARD",am[am.CHAT_FEED_BANNER_CTA=28]="CHAT_FEED_BANNER_CTA",am[am.CHAT_FEED_BANNER_ACTION_MENU_CTA=29]="CHAT_FEED_BANNER_ACTION_MENU_CTA",am[am.LIVE_REVIEW=30]="LIVE_REVIEW",am[am.UNRECOGNIZED=-1]="UNRECOGNIZED";let v_={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.startSwipeTapPositionXRelative&&mH.encode({value:e.startSwipeTapPositionXRelative},t.uint32(10).fork()).ldelim(),void 0!==e.startSwipeTapPositionX&&mH.encode({value:e.startSwipeTapPositionX},t.uint32(18).fork()).ldelim(),void 0!==e.startSwipeTapPositionYRelative&&mH.encode({value:e.startSwipeTapPositionYRelative},t.uint32(26).fork()).ldelim(),void 0!==e.startSwipeTapPositionY&&mH.encode({value:e.startSwipeTapPositionY},t.uint32(34).fork()).ldelim(),void 0!==e.endSwipeTapPositionXRelative&&mH.encode({value:e.endSwipeTapPositionXRelative},t.uint32(42).fork()).ldelim(),void 0!==e.endSwipeTapPositionX&&mH.encode({value:e.endSwipeTapPositionX},t.uint32(50).fork()).ldelim(),void 0!==e.endSwipeTapPositionYRelative&&mH.encode({value:e.endSwipeTapPositionYRelative},t.uint32(58).fork()).ldelim(),void 0!==e.endSwipeTapPositionY&&mH.encode({value:e.endSwipeTapPositionY},t.uint32(66).fork()).ldelim(),void 0!==e.swipeTapDuration&&mH.encode({value:e.swipeTapDuration},t.uint32(74).fork()).ldelim(),void 0!==e.secondPointSwipePositionXRelative&&mH.encode({value:e.secondPointSwipePositionXRelative},t.uint32(82).fork()).ldelim(),void 0!==e.secondPointSwipePositionX&&mH.encode({value:e.secondPointSwipePositionX},t.uint32(90).fork()).ldelim(),void 0!==e.secondPointSwipePositionYRelative&&mH.encode({value:e.secondPointSwipePositionYRelative},t.uint32(98).fork()).ldelim(),void 0!==e.secondPointSwipePositionY&&mH.encode({value:e.secondPointSwipePositionY},t.uint32(106).fork()).ldelim(),0!==e.tapAttachmentSource&&t.uint32(112).int32(e.tapAttachmentSource),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.startSwipeTapPositionXRelative=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.startSwipeTapPositionX=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.startSwipeTapPositionYRelative=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.startSwipeTapPositionY=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.endSwipeTapPositionXRelative=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.endSwipeTapPositionX=mH.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.endSwipeTapPositionYRelative=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.endSwipeTapPositionY=mH.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.swipeTapDuration=mH.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.secondPointSwipePositionXRelative=mH.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.secondPointSwipePositionX=mH.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.secondPointSwipePositionYRelative=mH.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.secondPointSwipePositionY=mH.decode(i,i.uint32()).value;continue;case 14:if(112!==e)break;a.tapAttachmentSource=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>v_.fromPartial(e??{}),fromPartial(e){let t=vE();return t.startSwipeTapPositionXRelative=e.startSwipeTapPositionXRelative??void 0,t.startSwipeTapPositionX=e.startSwipeTapPositionX??void 0,t.startSwipeTapPositionYRelative=e.startSwipeTapPositionYRelative??void 0,t.startSwipeTapPositionY=e.startSwipeTapPositionY??void 0,t.endSwipeTapPositionXRelative=e.endSwipeTapPositionXRelative??void 0,t.endSwipeTapPositionX=e.endSwipeTapPositionX??void 0,t.endSwipeTapPositionYRelative=e.endSwipeTapPositionYRelative??void 0,t.endSwipeTapPositionY=e.endSwipeTapPositionY??void 0,t.swipeTapDuration=e.swipeTapDuration??void 0,t.secondPointSwipePositionXRelative=e.secondPointSwipePositionXRelative??void 0,t.secondPointSwipePositionX=e.secondPointSwipePositionX??void 0,t.secondPointSwipePositionYRelative=e.secondPointSwipePositionYRelative??void 0,t.secondPointSwipePositionY=e.secondPointSwipePositionY??void 0,t.tapAttachmentSource=e.tapAttachmentSource??0,t}};function vS(){return{position:void 0,timestampMs:void 0,type:0}}(aE=ts||(ts={}))[aE.TAP_TO_PAUSE_EVENT_TYPE_UNSET=0]="TAP_TO_PAUSE_EVENT_TYPE_UNSET",aE[aE.TAP_TO_PAUSE=1]="TAP_TO_PAUSE",aE[aE.TAP_TO_RESUME=2]="TAP_TO_RESUME",aE[aE.UNRECOGNIZED=-1]="UNRECOGNIZED";let vI={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.position&&SV.encode(e.position,t.uint32(10).fork()).ldelim(),void 0!==e.timestampMs&&mK.encode({value:e.timestampMs},t.uint32(18).fork()).ldelim(),0!==e.type&&t.uint32(24).int32(e.type),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.position=SV.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.timestampMs=mK.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.type=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vI.fromPartial(e??{}),fromPartial(e){let t=vS();return t.position=void 0!==e.position&&null!==e.position?SV.fromPartial(e.position):void 0,t.timestampMs=e.timestampMs??void 0,t.type=e.type??0,t}};function vv(){return{tooltipImpressions:[]}}(a_=tl||(tl={}))[a_.TOOLTIP_DISPLAY_TYPE_UNSET=0]="TOOLTIP_DISPLAY_TYPE_UNSET",a_[a_.TOOLTIP_DISPLAY_TYPE_TAP=1]="TOOLTIP_DISPLAY_TYPE_TAP",a_[a_.TOOLTIP_DISPLAY_TYPE_AUTO_REVEAL=2]="TOOLTIP_DISPLAY_TYPE_AUTO_REVEAL",a_[a_.TOOLTIP_DISPLAY_TYPE_DISMISS=3]="TOOLTIP_DISPLAY_TYPE_DISMISS",a_[a_.UNRECOGNIZED=-1]="UNRECOGNIZED",(aS=tc||
2(tc={}))[aS.SOURCE_UNSET=0]="SOURCE_UNSET",aS[aS.TAP_WHERE_YOUR_ATTENTION_IS=1]="TAP_WHERE_YOUR_ATTENTION_IS",aS[aS.SCREENSHOT_END_CARD=2]="SCREENSHOT_END_CARD",aS[aS.APP_REVIEW_END_CARD=3]="APP_REVIEW_END_CARD",aS[aS.CTA_END_CARD=4]="CTA_END_CARD",aS[aS.TAP_TO_PAUSE=5]="TAP_TO_PAUSE",aS[aS.STATIC_CENTER_TAP=6]="STATIC_CENTER_TAP",aS[aS.COUNTDOWN_STICKER=7]="COUNTDOWN_STICKER",aS[aS.UNRECOGNIZED=-1]="UNRECOGNIZED";let vA={encode(e,t=rA.default.Writer.create()){for(let i of e.tooltipImpressions)vb.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vv();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.tooltipImpressions.push(vb.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vA.fromPartial(e??{}),fromPartial(e){let t=vv();return t.tooltipImpressions=e.tooltipImpressions?.map(e=>vb.fromPartial(e))||[],t}};function vk(){return{timestampMs:"0",tooltipDisplayType:0,tooltipPosition:void 0,source:0}}let vb={encode:(e,t=rA.default.Writer.create())=>("0"!==e.timestampMs&&t.uint32(8).int64(e.timestampMs),0!==e.tooltipDisplayType&&t.uint32(16).int32(e.tooltipDisplayType),void 0!==e.tooltipPosition&&SV.encode(e.tooltipPosition,t.uint32(26).fork()).ldelim(),0!==e.source&&t.uint32(32).int32(e.source),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vk();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.timestampMs=i.int64().toString();continue;case 2:if(16!==e)break;a.tooltipDisplayType=i.int32();continue;case 3:if(26!==e)break;a.tooltipPosition=SV.decode(i,i.uint32());continue;case 4:if(32!==e)break;a.source=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vb.fromPartial(e??{}),fromPartial(e){let t=vk();return t.timestampMs=e.timestampMs??"0",t.tooltipDisplayType=e.tooltipDisplayType??0,t.tooltipPosition=void 0!==e.tooltipPosition&&null!==e.tooltipPosition?SV.fromPartial(e.tooltipPosition):void 0,t.source=e.source??0,t}};function vg(){return{source:0,dpaProductId:void 0,tileIndex:void 0,sourceRelativeLocationX:void 0,sourceRelativeLocationY:void 0,screenRelativeLocationX:void 0,screenRelativeLocationY:void 0,timestampMillis:void 0,screenLocationX:void 0,screenLocationY:void 0,attachmentTriggered:!1,collectionItemIndex:void 0,scrollDepth:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(aI=tu||(tu={}))[aI.UNSET=0]="UNSET",aI[aI.TILE=1]="TILE",aI[aI.PILL=2]="PILL",aI[aI.GRID=3]="GRID",aI[aI.BOTTOM_SHEET=4]="BOTTOM_SHEET",aI[aI.BOTTOM_SHEET_TILE=5]="BOTTOM_SHEET_TILE",aI[aI.BOTTOM_SHEET_SWIPE_UP=6]="BOTTOM_SHEET_SWIPE_UP",aI[aI.STICKERS=7]="STICKERS",aI[aI.ROOT=8]="ROOT",aI[aI.MORE_ITEMS_BUTTON=9]="MORE_ITEMS_BUTTON",aI[aI.BOTTOM_SHEET_CLOSE=10]="BOTTOM_SHEET_CLOSE",aI[aI.SCROLL_UP=11]="SCROLL_UP",aI[aI.SCROLL_DOWN=12]="SCROLL_DOWN",aI[aI.UNRECOGNIZED=-1]="UNRECOGNIZED";let vN={encode:(e,t=rA.default.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),void 0!==e.dpaProductId&&mK.encode({value:e.dpaProductId},t.uint32(18).fork()).ldelim(),void 0!==e.tileIndex&&mZ.encode({value:e.tileIndex},t.uint32(26).fork()).ldelim(),void 0!==e.sourceRelativeLocationX&&mH.encode({value:e.sourceRelativeLocationX},t.uint32(34).fork()).ldelim(),void 0!==e.sourceRelativeLocationY&&mH.encode({value:e.sourceRelativeLocationY},t.uint32(42).fork()).ldelim(),void 0!==e.screenRelativeLocationX&&mH.encode({value:e.screenRelativeLocationX},t.uint32(50).fork()).ldelim(),void 0!==e.screenRelativeLocationY&&mH.encode({value:e.screenRelativeLocationY},t.uint32(58).fork()).ldelim(),void 0!==e.timestampMillis&&mK.encode({value:e.timestampMillis},t.uint32(66).fork()).ldelim(),void 0!==e.screenLocationX&&mH.encode({value:e.screenLocationX},t.uint32(74).fork()).ldelim(),void 0!==e.screenLocationY&&mH.encode({value:e.screenLocationY},t.uint32(82).fork()).ldelim(),!1!==e.attachmentTriggered&&t.uint32(88).bool(e.attachmentTriggered),void 0!==e.collectionItemIndex&&mZ.encode({value:e.collectionItemIndex},t.uint32(98).fork()).ldelim(),void 0!==e.scrollDepth&&mH.encode({value:e.scrollDepth},t.uint32(106).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vg();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.source=i.int32();continue;case 2:if(18!==e)break;a.dpaProductId=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.tileIndex=mZ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.sourceRelativeLocationX=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.sourceRelativeLocationY=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.screenRelativeLocationX=mH.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.screenRelativeLocationY=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.timestampMillis=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.screenLocationX=mH.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.screenLocationY=mH.decode(i,i.uint32()).value;continue;case 11:if(88!==e)break;a.attachmentTriggered=i.bool();continue;case 12:if(98!==e)break;a.collectionItemIndex=mZ.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.scrollDepth=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vN.fromPartial(e??{}),fromPartial(e){let t=vg();return t.source=e.source??0,t.dpaProductId=e.dpaProductId??void 0,t.tileIndex=e.tileIndex??void 0,t.sourceRelativeLocationX=e.sourceRelativeLocationX??void 0,t.sourceRelativeLocationY=e.sourceRelativeLocationY??void 0,t.screenRelativeLocationX=e.screenRelativeLocationX??void 0,t.screenRelativeLocationY=e.screenRelativeLocationY??void 0,t.timestampMillis=e.timestampMillis??void 0,t.screenLocationX=e.screenLocationX??void 0,t.screenLocationY=e.screenLocationY??void 0,t.attachmentTriggered=e.attachmentTriggered??!1,t.collectionItemIndex=e.collectionItemIndex??void 0,t.scrollDepth=e.scrollDepth??void 0,t}};function vR(){return{maxVolumeAtStart:void 0,maxVolumeAt25PercentMediaDuration:void 0,maxVolumeAt50PercentMediaDuration:void 0,maxVolumeAt75PercentMediaDuration:void 0,maxVolumeAt97PercentMediaDuration:void 0,maxVolumeAt100PercentMediaDuration:void 0}}let vP={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.maxVolumeAtStart&&mH.encode({value:e.maxVolumeAtStart},t.uint32(10).fork()).ldelim(),void 0!==e.maxVolumeAt25PercentMediaDuration&&mH.encode({value:e.maxVolumeAt25PercentMediaDuration},t.uint32(18).fork()).ldelim(),void 0!==e.maxVolumeAt50PercentMediaDuration&&mH.encode({value:e.maxVolumeAt50PercentMediaDuration},t.uint32(26).fork()).ldelim(),void 0!==e.maxVolumeAt75PercentMediaDuration&&mH.encode({value:e.maxVolumeAt75PercentMediaDuration},t.uint32(34).fork()).ldelim(),void 0!==e.maxVolumeAt97PercentMediaDuration&&mH.encode({value:e.maxVolumeAt97PercentMediaDuration},t.uint32(42).fork()).ldelim(),void 0!==e.maxVolumeAt100PercentMediaDuration&&mH.encode({value:e.maxVolumeAt100PercentMediaDuration},t.uint32(50).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vR();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.maxVolumeAtStart=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.maxVolumeAt25PercentMediaDuration=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.maxVolumeAt50PercentMediaDuration=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.maxVolumeAt75PercentMediaDuration=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.maxVolumeAt97PercentMediaDuration=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.maxVolumeAt100PercentMediaDuration=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vP.fromPartial(e??{}),fromPartial(e){let t=vR();return t.maxVolumeAtStart=e.maxVolumeAtStart??void 0,t.maxVolumeAt25PercentMediaDuration=e.maxVolumeAt25PercentMediaDuration??void 0,t.maxVolumeAt50PercentMediaDuration=e.maxVolumeAt50PercentMediaDuration??void 0,t.maxVolumeAt75PercentMediaDuration=e.maxVolumeAt75PercentMediaDuration??void 0,t.maxVolumeAt97PercentMediaDuration=e.maxVolumeAt97PercentMediaDuration??void 0,t.maxVolumeAt100PercentMediaDuration=e.maxVolumeAt100PercentMediaDuration??void 0,t}};function vO(){return{numOfTapsFromTopsnap:void 0,numOfTapsFromCard:void 0}}let vC={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.numOfTapsFromTopsnap&&mq.encode({value:e.numOfTapsFromTopsnap},t.uint32(10).fork()).ldelim(),void 0!==e.numOfTapsFromCard&&mq.encode({value:e.numOfTapsFromCard},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.numOfTapsFromTopsnap=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.numOfTapsFromCard=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vC.fromPartial(e??{}),fromPartial(e){let t=vO();return t.numOfTapsFromTopsnap=e.numOfTapsFromTopsnap??void 0,t.numOfTapsFromCard=e.numOfTapsFromCard??void 0,t}};function vy(){return{topsnapTimeViewedSeconds:void 0,topsnapMediaDurationSeconds:void 0,longformTimeViewedSeconds:void 0,swiped:void 0,deltaBetweenReceiveAndRenderMillis:void 0,swipeCount:void 0,creativeId:new Uint8Array(0),topsnapTimeViewedBeforeInteractionSeconds:void 0,topsnapVolumes:void 0,topsnapMaxContinuousTimeViewedSeconds:void 0,topsnapAudibleTimeViewedSeconds:void 0,topsnapMediaType:0,wasPrefetched:void 0,unskippableDurationSeconds:void 0,unskippableViewTimeSeconds:void 0,adSkippableType:0,fatalMediaLoadError:void 0,wasBoosted:void 0,autoEndCardInteractionCount:void 0,dpa:void 0,autoEndCardViewedCount:void 0,adResponseParseCompleteTsMs:void 0,adInsertionCompleteTsMs:void 0,topsnapFullyPresentTsMs:void 0,ctaInteractableTsMs:void 0,attachmentPageLoadedTsMs:void 0,attachmentTriggeredTsMs:void 0,attachmentFullyPresentedTsMs:void 0,attachmentDismissTriggerTsMs:void 0,topsnapDimissTriggerTsMs:void 0,ctaWillDisplayTsMs:void 0,ctaDidDisplayTsMs:void 0,topsnapPlaybackBeginTsMs:void 0,preferredAttachmentType:0,actualAttachmentType:0,isExternalAttachment:void 0,swipeSensitivity:void 0,exitEventSwipeInfo:void 0,stickerMetadata:[],adCtaCardType:0,adInteraction:void 0,attemptSwipeCount:void 0,arShoppingExperienceTrack:void 0,topsnapTimeViewedSecondsV2:void 0,returnToAppSeconds:void 0,attemptSwipeCountAll:void 0,peekAutoTriggerAttachmentDistanceThresholdPt:void 0,clickInteractions:[],topsnapInteractionTracks:[],endCardImpressionTrack:void 0,swipedTopSnapResumeTimeTsMs:void 0,swipedTopSnapPauseTimeTsMs:void 0,swipedTopSnapStopTimeTsMs:void 0,isInstantPageEnabled:!1,oneTapAttachmentOpenEligible:!1,oneTapAttachmentOpenTimeThresholdMs:void 0,dpaTopsnapImpressionTracks:[],playableAdInteractionTrack:void 0,canShowMultiSegmentExperience:!1,tooltipImpressionTrack:void 0,hasShopifyStorefrontToken:!1,productType:0,defaultAttachmentPositionIndex:void 0,endCardType:0,captionCta:void 0,tapToPauseInteractions:[],promoImpressionTrack:void 0,pollStickerTrack:void 0,wakeUpUiInteraction:void 0,stickerCtaType:0,liveReviewImpressionTrack:void 0,cardCtaAccessoryMetadata:void 0}}let vh={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.topsnapTimeViewedSeconds&&mH.encode({value:e.topsnapTimeViewedSeconds},t.uint32(10).fork()).ldelim(),void 0!==e.topsnapMediaDurationSeconds&&mH.encode({value:e.topsnapMediaDurationSeconds},t.uint32(18).fork()).ldelim(),void 0!==e.longformTimeViewedSeconds&&mH.encode({value:e.longformTimeViewedSeconds},t.uint32(26).fork()).ldelim(),void 0!==e.swiped&&mX.encode({value:e.swiped},t.uint32(34).fork()).ldelim(),void 0!==e.deltaBetweenReceiveAndRenderMillis&&mK.encode({value:e.deltaBetweenReceiveAndRenderMillis},t.uint32(42).fork()).ldelim(),void 0!==e.swipeCount&&mq.encode({value:e.swipeCount},t.uint32(50).fork()).ldelim(),0!==e.creativeId.length&&t.uint32(58).bytes(e.creativeId),void 0!==e.topsnapTimeViewedBeforeInteractionSeconds&&mH.encode({value:e.topsnapTimeViewedBeforeInteractionSeconds},t.uint32(66).fork()).ldelim(),void 0!==e.topsnapVolumes&&vP.encode(e.topsnapVolumes,t.uint32(74).fork()).ldelim(),void 0!==e.topsnapMaxContinuousTimeViewedSeconds&&mH.encode({value:e.topsnapMaxContinuousTimeViewedSeconds},t.uint32(82).fork()).ldelim(),void 0!==e.topsnapAudibleTimeViewedSeconds&&mH.encode({value:e.topsnapAudibleTimeViewedSeconds},t.uint32(90).fork()).ldelim(),0!==e.topsnapMediaType&&t.uint32(96).int32(e.topsnapMediaType),void 0!==e.wasPrefetched&&mX.encode({value:e.wasPrefetched},t.uint32(106).fork()).ldelim(),void 0!==e.unskippableDurationSeconds&&mH.encode({value:e.unskippableDurationSeconds},t.uint32(114).fork()).ldelim(),void 0!==e.unskippableViewTimeSeconds&&mH.encode({value:e.unskippableViewTimeSeconds},t.uint32(122).fork()).ldelim(),0!==e.adSkippableType&&t.uint32(128).int32(e.adSkippableType),void 0!==e.fatalMediaLoadError&&mX.encode({value:e.fatalMediaLoadError},t.uint32(138).fork()).ldelim(),void 0!==e.wasBoosted&&mX.encode({value:e.wasBoosted},t.uint32(146).fork()).ldelim(),void 0!==e.autoEndCardInteractionCount&&mq.encode({value:e.autoEndCardInteractionCount},t.uint32(154).fork()).ldelim(),void 0!==e.dpa&&Iq.encode(e.dpa,t.uint32(162).fork()).ldelim(),void 0!==e.autoEndCardViewedCount&&mq.encode({value:e.autoEndCardViewedCount},t.uint32(170).fork()).ldelim(),void 0!==e.adResponseParseCompleteTsMs&&mK.encode({value:e.adResponseParseCompleteTsMs},t.uint32(178).fork()).ldelim(),void 0!==e.adInsertionCompleteTsMs&&mK.encode({value:e.adInsertionCompleteTsMs},t.uint32(186).fork()).ldelim(),void 0!==e.topsnapFullyPresentTsMs&&mK.encode({value:e.topsnapFullyPresentTsMs},t.uint32(194).fork()).ldelim(),void 0!==e.ctaInteractableTsMs&&mK.encode({value:e.ctaInteractableTsMs},t.uint32(202).fork()).ldelim(),void 0!==e.attachmentPageLoadedTsMs&&mK.encode({value:e.attachmentPageLoadedTsMs},t.uint32(210).fork()).ldelim(),void 0!==e.attachmentTriggeredTsMs&&mK.encode({value:e.attachmentTriggeredTsMs},t.uint32(218).fork()).ldelim(),void 0!==e.attachmentFullyPresentedTsMs&&mK.encode({value:e.attachmentFullyPresentedTsMs},t.uint32(226).fork()).ldelim(),void 0!==e.attachmentDismissTriggerTsMs&&mK.encode({value:e.attachmentDismissTriggerTsMs}
2,t.uint32(234).fork()).ldelim(),void 0!==e.topsnapDimissTriggerTsMs&&mK.encode({value:e.topsnapDimissTriggerTsMs},t.uint32(242).fork()).ldelim(),void 0!==e.ctaWillDisplayTsMs&&mK.encode({value:e.ctaWillDisplayTsMs},t.uint32(250).fork()).ldelim(),void 0!==e.ctaDidDisplayTsMs&&mK.encode({value:e.ctaDidDisplayTsMs},t.uint32(258).fork()).ldelim(),void 0!==e.topsnapPlaybackBeginTsMs&&mK.encode({value:e.topsnapPlaybackBeginTsMs},t.uint32(266).fork()).ldelim(),0!==e.preferredAttachmentType&&t.uint32(272).int32(e.preferredAttachmentType),0!==e.actualAttachmentType&&t.uint32(280).int32(e.actualAttachmentType),void 0!==e.isExternalAttachment&&mX.encode({value:e.isExternalAttachment},t.uint32(290).fork()).ldelim(),void 0!==e.swipeSensitivity&&v_.encode(e.swipeSensitivity,t.uint32(298).fork()).ldelim(),void 0!==e.exitEventSwipeInfo&&I1.encode(e.exitEventSwipeInfo,t.uint32(306).fork()).ldelim(),e.stickerMetadata))vf.encode(i,t.uint32(314).fork()).ldelim();for(let i of(0!==e.adCtaCardType&&t.uint32(320).int32(e.adCtaCardType),void 0!==e.adInteraction&&Sh.encode(e.adInteraction,t.uint32(330).fork()).ldelim(),void 0!==e.attemptSwipeCount&&mq.encode({value:e.attemptSwipeCount},t.uint32(338).fork()).ldelim(),void 0!==e.arShoppingExperienceTrack&&SM.encode(e.arShoppingExperienceTrack,t.uint32(346).fork()).ldelim(),void 0!==e.topsnapTimeViewedSecondsV2&&mH.encode({value:e.topsnapTimeViewedSecondsV2},t.uint32(354).fork()).ldelim(),void 0!==e.returnToAppSeconds&&mH.encode({value:e.returnToAppSeconds},t.uint32(362).fork()).ldelim(),void 0!==e.attemptSwipeCountAll&&mq.encode({value:e.attemptSwipeCountAll},t.uint32(370).fork()).ldelim(),void 0!==e.peekAutoTriggerAttachmentDistanceThresholdPt&&mq.encode({value:e.peekAutoTriggerAttachmentDistanceThresholdPt},t.uint32(378).fork()).ldelim(),e.clickInteractions))SK.encode(i,t.uint32(386).fork()).ldelim();for(let i of e.topsnapInteractionTracks)vN.encode(i,t.uint32(394).fork()).ldelim();for(let i of(void 0!==e.endCardImpressionTrack&&I2.encode(e.endCardImpressionTrack,t.uint32(402).fork()).ldelim(),void 0!==e.swipedTopSnapResumeTimeTsMs&&mK.encode({value:e.swipedTopSnapResumeTimeTsMs},t.uint32(410).fork()).ldelim(),void 0!==e.swipedTopSnapPauseTimeTsMs&&mK.encode({value:e.swipedTopSnapPauseTimeTsMs},t.uint32(418).fork()).ldelim(),void 0!==e.swipedTopSnapStopTimeTsMs&&mK.encode({value:e.swipedTopSnapStopTimeTsMs},t.uint32(426).fork()).ldelim(),!1!==e.isInstantPageEnabled&&t.uint32(432).bool(e.isInstantPageEnabled),!1!==e.oneTapAttachmentOpenEligible&&t.uint32(440).bool(e.oneTapAttachmentOpenEligible),void 0!==e.oneTapAttachmentOpenTimeThresholdMs&&mH.encode({value:e.oneTapAttachmentOpenTimeThresholdMs},t.uint32(450).fork()).ldelim(),e.dpaTopsnapImpressionTracks))IJ.encode(i,t.uint32(458).fork()).ldelim();for(let i of(void 0!==e.playableAdInteractionTrack&&I7.encode(e.playableAdInteractionTrack,t.uint32(466).fork()).ldelim(),!1!==e.canShowMultiSegmentExperience&&t.uint32(472).bool(e.canShowMultiSegmentExperience),void 0!==e.tooltipImpressionTrack&&vA.encode(e.tooltipImpressionTrack,t.uint32(482).fork()).ldelim(),!1!==e.hasShopifyStorefrontToken&&t.uint32(488).bool(e.hasShopifyStorefrontToken),0!==e.productType&&t.uint32(496).int32(e.productType),void 0!==e.defaultAttachmentPositionIndex&&mq.encode({value:e.defaultAttachmentPositionIndex},t.uint32(506).fork()).ldelim(),0!==e.endCardType&&t.uint32(512).int32(e.endCardType),void 0!==e.captionCta&&SF.encode(e.captionCta,t.uint32(522).fork()).ldelim(),e.tapToPauseInteractions))vI.encode(i,t.uint32(530).fork()).ldelim();return void 0!==e.promoImpressionTrack&&vn.encode(e.promoImpressionTrack,t.uint32(538).fork()).ldelim(),void 0!==e.pollStickerTrack&&vt.encode(e.pollStickerTrack,t.uint32(546).fork()).ldelim(),void 0!==e.wakeUpUiInteraction&&vC.encode(e.wakeUpUiInteraction,t.uint32(554).fork()).ldelim(),0!==e.stickerCtaType&&t.uint32(560).int32(e.stickerCtaType),void 0!==e.liveReviewImpressionTrack&&I8.encode(e.liveReviewImpressionTrack,t.uint32(570).fork()).ldelim(),void 0!==e.cardCtaAccessoryMetadata&&SW.encode(e.cardCtaAccessoryMetadata,t.uint32(578).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vy();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.topsnapTimeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.topsnapMediaDurationSeconds=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.longformTimeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.swiped=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.deltaBetweenReceiveAndRenderMillis=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.swipeCount=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.creativeId=i.bytes();continue;case 8:if(66!==e)break;a.topsnapTimeViewedBeforeInteractionSeconds=mH.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.topsnapVolumes=vP.decode(i,i.uint32());continue;case 10:if(82!==e)break;a.topsnapMaxContinuousTimeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.topsnapAudibleTimeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 12:if(96!==e)break;a.topsnapMediaType=i.int32();continue;case 13:if(106!==e)break;a.wasPrefetched=mX.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.unskippableDurationSeconds=mH.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.unskippableViewTimeSeconds=mH.decode(i,i.uint32()).value;continue;case 16:if(128!==e)break;a.adSkippableType=i.int32();continue;case 17:if(138!==e)break;a.fatalMediaLoadError=mX.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;a.wasBoosted=mX.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.autoEndCardInteractionCount=mq.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.dpa=Iq.decode(i,i.uint32());continue;case 21:if(170!==e)break;a.autoEndCardViewedCount=mq.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.adResponseParseCompleteTsMs=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.adInsertionCompleteTsMs=mK.decode(i,i.uint32()).value;continue;case 24:if(194!==e)break;a.topsnapFullyPresentTsMs=mK.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.ctaInteractableTsMs=mK.decode(i,i.uint32()).value;continue;case 26:if(210!==e)break;a.attachmentPageLoadedTsMs=mK.decode(i,i.uint32()).value;continue;case 27:if(218!==e)break;a.attachmentTriggeredTsMs=mK.decode(i,i.uint32()).value;continue;case 28:if(226!==e)break;a.attachmentFullyPresentedTsMs=mK.decode(i,i.uint32()).value;continue;case 29:if(234!==e)break;a.attachmentDismissTriggerTsMs=mK.decode(i,i.uint32()).value;continue;case 30:if(242!==e)break;a.topsnapDimissTriggerTsMs=mK.decode(i,i.uint32()).value;continue;case 31:if(250!==e)break;a.ctaWillDisplayTsMs=mK.decode(i,i.uint32()).value;continue;case 32:if(258!==e)break;a.ctaDidDisplayTsMs=mK.decode(i,i.uint32()).value;continue;case 33:if(266!==e)break;a.topsnapPlaybackBeginTsMs=mK.decode(i,i.uint32()).value;continue;case 34:if(272!==e)break;a.preferredAttachmentType=i.int32();continue;case 35:if(280!==e)break;a.actualAttachmentType=i.int32();continue;case 36:if(290!==e)break;a.isExternalAttachment=mX.decode(i,i.uint32()).value;continue;case 37:if(298!==e)break;a.swipeSensitivity=v_.decode(i,i.uint32());continue;case 38:if(306!==e)break;a.exitEventSwipeInfo=I1.decode(i,i.uint32());continue;case 39:if(314!==e)break;a.stickerMetadata.push(vf.decode(i,i.uint32()));continue;case 40:if(320!==e)break;a.adCtaCardType=i.int32();continue;case 41:if(330!==e)break;a.adInteraction=Sh.decode(i,i.uint32());continue;case 42:if(338!==e)break;a.attemptSwipeCount=mq.decode(i,i.uint32()).value;continue;case 43:if(346!==e)break;a.arShoppingExperienceTrack=SM.decode(i,i.uint32());continue;case 44:if(354!==e)break;a.topsnapTimeViewedSecondsV2=mH.decode(i,i.uint32()).value;continue;case 45:if(362!==e)break;a.returnToAppSeconds=mH.decode(i,i.uint32()).value;continue;case 46:if(370!==e)break;a.attemptSwipeCountAll=mq.decode(i,i.uint32()).value;continue;case 47:if(378!==e)break;a.peekAutoTriggerAttachmentDistanceThresholdPt=mq.decode(i,i.uint32()).value;continue;case 48:if(386!==e)break;a.clickInteractions.push(SK.decode(i,i.uint32()));continue;case 49:if(394!==e)break;a.topsnapInteractionTracks.push(vN.decode(i,i.uint32()));continue;case 50:if(402!==e)break;a.endCardImpressionTrack=I2.decode(i,i.uint32());continue;case 51:if(410!==e)break;a.swipedTopSnapResumeTimeTsMs=mK.decode(i,i.uint32()).value;continue;case 52:if(418!==e)break;a.swipedTopSnapPauseTimeTsMs=mK.decode(i,i.uint32()).value;continue;case 53:if(426!==e)break;a.swipedTopSnapStopTimeTsMs=mK.decode(i,i.uint32()).value;continue;case 54:if(432!==e)break;a.isInstantPageEnabled=i.bool();continue;case 55:if(440!==e)break;a.oneTapAttachmentOpenEligible=i.bool();continue;case 56:if(450!==e)break;a.oneTapAttachmentOpenTimeThresholdMs=mH.decode(i,i.uint32()).value;continue;case 57:if(458!==e)break;a.dpaTopsnapImpressionTracks.push(IJ.decode(i,i.uint32()));continue;case 58:if(466!==e)break;a.playableAdInteractionTrack=I7.decode(i,i.uint32());continue;case 59:if(472!==e)break;
2a.canShowMultiSegmentExperience=i.bool();continue;case 60:if(482!==e)break;a.tooltipImpressionTrack=vA.decode(i,i.uint32());continue;case 61:if(488!==e)break;a.hasShopifyStorefrontToken=i.bool();continue;case 62:if(496!==e)break;a.productType=i.int32();continue;case 63:if(506!==e)break;a.defaultAttachmentPositionIndex=mq.decode(i,i.uint32()).value;continue;case 64:if(512!==e)break;a.endCardType=i.int32();continue;case 65:if(522!==e)break;a.captionCta=SF.decode(i,i.uint32());continue;case 66:if(530!==e)break;a.tapToPauseInteractions.push(vI.decode(i,i.uint32()));continue;case 67:if(538!==e)break;a.promoImpressionTrack=vn.decode(i,i.uint32());continue;case 68:if(546!==e)break;a.pollStickerTrack=vt.decode(i,i.uint32());continue;case 69:if(554!==e)break;a.wakeUpUiInteraction=vC.decode(i,i.uint32());continue;case 70:if(560!==e)break;a.stickerCtaType=i.int32();continue;case 71:if(570!==e)break;a.liveReviewImpressionTrack=I8.decode(i,i.uint32());continue;case 72:if(578!==e)break;a.cardCtaAccessoryMetadata=SW.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vh.fromPartial(e??{}),fromPartial(e){let t=vy();return t.topsnapTimeViewedSeconds=e.topsnapTimeViewedSeconds??void 0,t.topsnapMediaDurationSeconds=e.topsnapMediaDurationSeconds??void 0,t.longformTimeViewedSeconds=e.longformTimeViewedSeconds??void 0,t.swiped=e.swiped??void 0,t.deltaBetweenReceiveAndRenderMillis=e.deltaBetweenReceiveAndRenderMillis??void 0,t.swipeCount=e.swipeCount??void 0,t.creativeId=e.creativeId??new Uint8Array(0),t.topsnapTimeViewedBeforeInteractionSeconds=e.topsnapTimeViewedBeforeInteractionSeconds??void 0,t.topsnapVolumes=void 0!==e.topsnapVolumes&&null!==e.topsnapVolumes?vP.fromPartial(e.topsnapVolumes):void 0,t.topsnapMaxContinuousTimeViewedSeconds=e.topsnapMaxContinuousTimeViewedSeconds??void 0,t.topsnapAudibleTimeViewedSeconds=e.topsnapAudibleTimeViewedSeconds??void 0,t.topsnapMediaType=e.topsnapMediaType??0,t.wasPrefetched=e.wasPrefetched??void 0,t.unskippableDurationSeconds=e.unskippableDurationSeconds??void 0,t.unskippableViewTimeSeconds=e.unskippableViewTimeSeconds??void 0,t.adSkippableType=e.adSkippableType??0,t.fatalMediaLoadError=e.fatalMediaLoadError??void 0,t.wasBoosted=e.wasBoosted??void 0,t.autoEndCardInteractionCount=e.autoEndCardInteractionCount??void 0,t.dpa=void 0!==e.dpa&&null!==e.dpa?Iq.fromPartial(e.dpa):void 0,t.autoEndCardViewedCount=e.autoEndCardViewedCount??void 0,t.adResponseParseCompleteTsMs=e.adResponseParseCompleteTsMs??void 0,t.adInsertionCompleteTsMs=e.adInsertionCompleteTsMs??void 0,t.topsnapFullyPresentTsMs=e.topsnapFullyPresentTsMs??void 0,t.ctaInteractableTsMs=e.ctaInteractableTsMs??void 0,t.attachmentPageLoadedTsMs=e.attachmentPageLoadedTsMs??void 0,t.attachmentTriggeredTsMs=e.attachmentTriggeredTsMs??void 0,t.attachmentFullyPresentedTsMs=e.attachmentFullyPresentedTsMs??void 0,t.attachmentDismissTriggerTsMs=e.attachmentDismissTriggerTsMs??void 0,t.topsnapDimissTriggerTsMs=e.topsnapDimissTriggerTsMs??void 0,t.ctaWillDisplayTsMs=e.ctaWillDisplayTsMs??void 0,t.ctaDidDisplayTsMs=e.ctaDidDisplayTsMs??void 0,t.topsnapPlaybackBeginTsMs=e.topsnapPlaybackBeginTsMs??void 0,t.preferredAttachmentType=e.preferredAttachmentType??0,t.actualAttachmentType=e.actualAttachmentType??0,t.isExternalAttachment=e.isExternalAttachment??void 0,t.swipeSensitivity=void 0!==e.swipeSensitivity&&null!==e.swipeSensitivity?v_.fromPartial(e.swipeSensitivity):void 0,t.exitEventSwipeInfo=void 0!==e.exitEventSwipeInfo&&null!==e.exitEventSwipeInfo?I1.fromPartial(e.exitEventSwipeInfo):void 0,t.stickerMetadata=e.stickerMetadata?.map(e=>vf.fromPartial(e))||[],t.adCtaCardType=e.adCtaCardType??0,t.adInteraction=void 0!==e.adInteraction&&null!==e.adInteraction?Sh.fromPartial(e.adInteraction):void 0,t.attemptSwipeCount=e.attemptSwipeCount??void 0,t.arShoppingExperienceTrack=void 0!==e.arShoppingExperienceTrack&&null!==e.arShoppingExperienceTrack?SM.fromPartial(e.arShoppingExperienceTrack):void 0,t.topsnapTimeViewedSecondsV2=e.topsnapTimeViewedSecondsV2??void 0,t.returnToAppSeconds=e.returnToAppSeconds??void 0,t.attemptSwipeCountAll=e.attemptSwipeCountAll??void 0,t.peekAutoTriggerAttachmentDistanceThresholdPt=e.peekAutoTriggerAttachmentDistanceThresholdPt??void 0,t.clickInteractions=e.clickInteractions?.map(e=>SK.fromPartial(e))||[],t.topsnapInteractionTracks=e.topsnapInteractionTracks?.map(e=>vN.fromPartial(e))||[],t.endCardImpressionTrack=void 0!==e.endCardImpressionTrack&&null!==e.endCardImpressionTrack?I2.fromPartial(e.endCardImpressionTrack):void 0,t.swipedTopSnapResumeTimeTsMs=e.swipedTopSnapResumeTimeTsMs??void 0,t.swipedTopSnapPauseTimeTsMs=e.swipedTopSnapPauseTimeTsMs??void 0,t.swipedTopSnapStopTimeTsMs=e.swipedTopSnapStopTimeTsMs??void 0,t.isInstantPageEnabled=e.isInstantPageEnabled??!1,t.oneTapAttachmentOpenEligible=e.oneTapAttachmentOpenEligible??!1,t.oneTapAttachmentOpenTimeThresholdMs=e.oneTapAttachmentOpenTimeThresholdMs??void 0,t.dpaTopsnapImpressionTracks=e.dpaTopsnapImpressionTracks?.map(e=>IJ.fromPartial(e))||[],t.playableAdInteractionTrack=void 0!==e.playableAdInteractionTrack&&null!==e.playableAdInteractionTrack?I7.fromPartial(e.playableAdInteractionTrack):void 0,t.canShowMultiSegmentExperience
2=e.canShowMultiSegmentExperience??!1,t.tooltipImpressionTrack=void 0!==e.tooltipImpressionTrack&&null!==e.tooltipImpressionTrack?vA.fromPartial(e.tooltipImpressionTrack):void 0,t.hasShopifyStorefrontToken=e.hasShopifyStorefrontToken??!1,t.productType=e.productType??0,t.defaultAttachmentPositionIndex=e.defaultAttachmentPositionIndex??void 0,t.endCardType=e.endCardType??0,t.captionCta=void 0!==e.captionCta&&null!==e.captionCta?SF.fromPartial(e.captionCta):void 0,t.tapToPauseInteractions=e.tapToPauseInteractions?.map(e=>vI.fromPartial(e))||[],t.promoImpressionTrack=void 0!==e.promoImpressionTrack&&null!==e.promoImpressionTrack?vn.fromPartial(e.promoImpressionTrack):void 0,t.pollStickerTrack=void 0!==e.pollStickerTrack&&null!==e.pollStickerTrack?vt.fromPartial(e.pollStickerTrack):void 0,t.wakeUpUiInteraction=void 0!==e.wakeUpUiInteraction&&null!==e.wakeUpUiInteraction?vC.fromPartial(e.wakeUpUiInteraction):void 0,t.stickerCtaType=e.stickerCtaType??0,t.liveReviewImpressionTrack=void 0!==e.liveReviewImpressionTrack&&null!==e.liveReviewImpressionTrack?I8.fromPartial(e.liveReviewImpressionTrack):void 0,t.cardCtaAccessoryMetadata=void 0!==e.cardCtaAccessoryMetadata&&null!==e.cardCtaAccessoryMetadata?SW.fromPartial(e.cardCtaAccessoryMetadata):void 0,t}};function vL(){return{commonSnapAdImpression:void 0,didCall:void 0}}let vD={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.didCall&&mX.encode({value:e.didCall},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.didCall=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vD.fromPartial(e??{}),fromPartial(e){let t=vL();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.didCall=e.didCall??void 0,t}};function vw(){return{screenDimension:void 0}}let vM={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.screenDimension&&vV.encode(e.screenDimension,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vw();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.screenDimension=vV.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vM.fromPartial(e??{}),fromPartial(e){let t=vw();return t.screenDimension=void 0!==e.screenDimension&&null!==e.screenDimension?vV.fromPartial(e.screenDimension):void 0,t}};function vU(){return{height:void 0,width:void 0}}let vV={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.height&&mq.encode({value:e.height},t.uint32(10).fork()).ldelim(),void 0!==e.width&&mq.encode({value:e.width},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vU();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.height=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.width=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vV.fromPartial(e??{}),fromPartial(e){let t=vU();return t.height=e.height??void 0,t.width=e.width??void 0,t}};function vB(){return{avgFps:void 0,lensApplyDelayMillis:void 0,frameProcessingTimeAvgMillis:void 0}}let vF={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.avgFps&&mH.encode({value:e.avgFps},t.uint32(10).fork()).ldelim(),void 0!==e.lensApplyDelayMillis&&mK.encode({value:e.lensApplyDelayMillis},t.uint32(18).fork()).ldelim(),void 0!==e.frameProcessingTimeAvgMillis&&mK.encode({value:e.frameProcessingTimeAvgMillis},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vB();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.avgFps=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.lensApplyDelayMillis=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.frameProcessingTimeAvgMillis=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vF.fromPartial(e??{}),fromPartial(e){let t=vB();return t.avgFps=e.avgFps??void 0,t.lensApplyDelayMillis=e.lensApplyDelayMillis??void 0,t.frameProcessingTimeAvgMillis=e.frameProcessingTimeAvgMillis??void 0,t}};function vG(){return{productImpressions:[]}}let vW={encode(e,t=rA.default.Writer.create()){for(let i of e.productImpressions)vH.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vG();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.productImpressions.push(vH.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vW.fromPartial(e??{}),fromPartial(e){let t=vG();return t.productImpressions=e.productImpressions?.map(e=>vH.fromPartial(e))||[],t}};function vx(){return{productId:"0",option:void 0,positionIndex:void 0,swipedOverCount:void 0,totalTimeMillis:void 0,withSnapSend:void 0,withStoryPost:void 0,withSnapSave:void 0,productTapped:void 0,firstTriggerTimestamp:void 0}}let vH={encode:(e,t=rA.default.Writer.create())=>("0"!==e.productId&&t.uint32(8).int64(e.productId),void 0!==e.option&&mJ.encode({value:e.option},t.uint32(18).fork()).ldelim(),void 0!==e.positionIndex&&mq.encode({value:e.positionIndex},t.uint32(26).fork()).ldelim(),void 0!==e.swipedOverCount&&mq.encode({value:e.swipedOverCount},t.uint32(34).fork()).ldelim(),void 0!==e.totalTimeMillis&&mK.encode({value:e.totalTimeMillis},t.uint32(42).fork()).ldelim(),void 0!==e.withSnapSend&&mX.encode({value:e.withSnapSend},t.uint32(50).fork()).ldelim(),void 0!==e.withStoryPost&&mX.encode({value:e.withStoryPost},t.uint32(58).fork()).ldelim(),void 0!==e.withSnapSave&&mX.encode({value:e.withSnapSave},t.uint32(66).fork()).ldelim(),void 0!==e.productTapped&&mX.encode({value:e.productTapped},t.uint32(74).fork()).ldelim(),void 0!==e.firstTriggerTimestamp&&mK.encode({value:e.firstTriggerTimestamp},t.uint32(82).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vx();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.productId=i.int64().toString();continue;case 2:if(18!==e)break;a.option=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.positionIndex=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.swipedOverCount=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.totalTimeMillis=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.withSnapSend=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.withStoryPost=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.withSnapSave=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.productTapped=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.firstTriggerTimestamp=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vH.fromPartial(e??{}),fromPartial(e){let t=vx();return t.productId=e.productId??"0",t.option=e.option??void 0,t.positionIndex=e.positionIndex??void 0,t.swipedOverCount=e.swipedOverCount??void 0,t.totalTimeMillis=e.totalTimeMillis??void 0,t.withSnapSend=e.withSnapSend??void 0,t.withStoryPost=e.withStoryPost??void 0,t.withSnapSave=e.withSnapSave??void 0,t.productTapped=e.productTapped??void 0,t.firstTriggerTimestamp=e.firstTriggerTimestamp??void 0,t}};function vY(){return{camera:void 0,isAudioOn:void 0,mediaType:0,snapDurationMillis:void 0,snapPreviewMillis:void 0,geofilterLoadedCount:void 0,filterCarouselEntryDirection:0,filterSwipeCount:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(av=tp||(tp={}))[av.UNKNOWN_FILTER_CAROUSEL_ENTRY_DIRECTION=0]="UNKNOWN_FILTER_CAROUSEL_ENTRY_DIRECTION",av[av.NONE=1]="NONE",av[av.LEFT=2]="LEFT",av[av.RIGHT=3]="RIGHT",av[av.UNRECOGNIZED=-1]="UNRECOGNIZED";let vK={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.camera&&mK.encode({value:e.camera},t.uint32(10).fork()).ldelim(),void 0!==e.isAudioOn&&mX.encode({value:e.isAudioOn},t.uint32(18).fork()).ldelim(),0!==e.mediaType&&t.uint32(24).int32(e.mediaType),void 0!==e.snapDurationMillis&&mK.encode({value:e.snapDurationMillis},t.uint32(34).fork()).ldelim(),void 0!==e.snapPreviewMillis&&mK.encode({value:e.snapPreviewMillis},t.uint32(42).fork()).ldelim(),void 0!==e.geofilterLoadedCount&&mK.encode({value:e.geofilterLoadedCount},t.uint32(50).fork()).ldelim(),0!==e.filterCarouselEntryDirection&&t.uint32(56).int32(e.filterCarouselEntryDirection),void 0!==e.filterSwipeCount&&mK.encode({value:e.filterSwipeCount},t.uint32(66).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vY();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.camera=mK.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.isAudioOn=mX.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.mediaType=i.int32();continue;case 4:if(34!==e)break;a.snapDurationMillis=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.snapPreviewMillis=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.geofilterLoadedCount=mK.decode(i,i.uint32()).value;continue;case 7:if(56!==e)break;a.filterCarouselEntryDirection=i.int32();continue;case 8:if(66!==e)break;a.filterSwipeCount=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vK.fromPartial(e??{}),fromPartial(e){let t=vY();return t.camera=e.camera??void 0,t.isAudioOn=e.isAudioOn??void 0,t.mediaType=e.mediaType??0,t.snapDurationMillis=e.snapDurationMillis??void 0,t.snapPreviewMillis=e.snapPreviewMillis??void 0,t.geofilterLoadedCount=e.geofilterLoadedCount??void 0,t.filterCarouselEntryDirection=e.filterCarouselEntryDirection??0,t.filterSwipeCount=e.filterSwipeCount??void 0,t}};function v$(){return{autofillConsentPromptEvent:void 0,autofillConsentPromptAcceptance:void 0,autofillInsertedCount:void 0,autofillDetected:void 0,autofillDetectedCount:void 0,autofillDetectedList:[],autofillInsertedList:[],autofillSavePromptEvent:void 0,autofillSavePromptAcceptance:void 0,autofillInsertionEdit:void 0,autofillScriptReady:void 0,submittedList:[],hasUserInfoInAutofillSetting:!1,autofillSettingAvailableInfo:[],formClickEvent:void 0,formClickList:[],autofillConsentPromptList:[],autofillConsentPromptAcceptedList:[],autofillMoreEditList:[],autofillSaveSettingEvent:void 0,autofillSavedInsertedList:[],autofillSavedUpdatedList:[]}}let vz={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.autofillConsentPromptEvent&&mX.encode({value:e.autofillConsentPromptEvent},t.uint32(10).fork()).ldelim(),void 0!==e.autofillConsentPromptAcceptance&&mX.encode({value:e.autofillConsentPromptAcceptance},t.uint32(18).fork()).ldelim(),void 0!==e.autofillInsertedCount&&mq.encode({value:e.autofillInsertedCount},t.uint32(26).fork()).ldelim(),void 0!==e.autofillDetected&&mX.encode({value:e.autofillDetected},t.uint32(34).fork()).ldelim(),void 0!==e.autofillDetectedCount&&mq.encode({value:e.autofillDetectedCount},t.uint32(42).fork()).ldelim(),e.autofillDetectedList))mJ.encode({value:i},t.uint32(50).fork()).ldelim();for(let i of e.autofillInsertedList)mJ.encode({value:i},t.uint32(58).fork()).ldelim();for(let i of(void 0!==e.autofillSavePromptEvent&&mX.encode({value:e.autofillSavePromptEvent},t.uint32(66).fork()).ldelim(),void 0!==e.autofillSavePromptAcceptance&&mX.encode({value:e.autofillSavePromptAcceptance},t.uint32(74).fork()).ldelim(),void 0!==e.autofillInsertionEdit&&mX.encode({value:e.autofillInsertionEdit},t.uint32(82).fork()).ldelim(),void 0!==e.autofillScriptReady&&mX.encode({value:e.autofillScriptReady},t.uint32(90).fork()).ldelim(),e.submittedList))mJ.encode({value:i},t.uint32(98).fork()).ldelim();for(let i of(!1!==e.hasUserInfoInAutofillSetting&&t.uint32(104).bool(e.hasUserInfoInAutofillSetting),e.autofillSettingAvailableInfo))mJ.encode({value:i},t.uint32(114).fork()).ldelim();for(let i of(void 0!==e.formClickEvent&&mX.encode({value:e.formClickEvent},t.uint32(122).fork()).ldelim(),e.formClickList))mJ.encode({value:i},t.uint32(130).fork()).ldelim();for(let i of e.autofillConsentPromptList)mJ.encode({value:i},t.uint32(138).fork()).ldelim();for(let i of e.autofillConsentPromptAcceptedList)mJ.encode({value:i},t.uint32(146).fork()).ldelim();for(let i of e.autofillMoreEditList)mJ.encode({value:i},t.uint32(154).fork()).ldelim();for(let i of(void 0!==e.autofillSaveSettingEvent&&mX.encode({value:e.autofillSaveSettingEvent},t.uint32(162).fork()).ldelim(),e.autofillSavedInsertedList))mJ.encode({value:i},t.uint32(170).fork()).ldelim();for(let i of e.autofillSavedUpdatedList)mJ.encode({value:i},t.uint32(178).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v$();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.autofillConsentPromptEvent=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.autofillConsentPromptAcceptance=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.autofillInsertedCount=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.autofillDetected=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.autofillDetectedCount=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.autofillDetectedList.push(mJ.decode(i,i.uint32()).value);continue;case 7:if(58!==e)break;a.autofillInsertedList.push(mJ.decode(i,i.uint32()).value);continue;case 8:if(66!==e)break;a.autofillSavePromptEvent=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.autofillSavePromptAcceptance=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.autofillInsertionEdit=mX.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.autofillScriptReady=mX.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.submittedList.push(mJ.decode(i,i.uint32()).value);continue;case 13:if(104!==e)break;a.hasUserInfoInAutofillSetting=i.bool();continue;case 14:if(114!==e)break;a.autofillSettingAvailableInfo.push(mJ.decode(i,i.uint32()).value);continue;case 15:if(122!==e)break;a.formClickEvent=mX.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.formClickList.push(mJ.decode(i,i.uint32()).value);continue;case 17:if(138!==e)break;a.autofillConsentPromptList.push(mJ.decode(i,i.uint32()).value);continue;case 18:if(146!==e)break;a.autofillConsentPromptAcceptedList.push(mJ.decode(i,i.uint32()).value);continue;case 19:if(154!==e)break;a.autofillMoreEditList.push(mJ.decode(i,i.uint32()).value);continue;case 20:if(162!==e)break;a.autofillSaveSettingEvent=mX.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.autofillSavedInsertedList.push(mJ.decode(i,i.uint32()).value);continue;case 22:if(178!==e)break;a.autofillSavedUpdatedList.push(mJ.decode(i,i.uint32()).value);continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vz.fromPartial(e??{}),fromPartial(e){let t=v$();return t.autofillConsentPromptEvent=e.autofillConsentPromptEvent??void 0,t.autofillConsentPromptAcceptance=e.autofillConsentPromptAcceptance??void 0,t.autofillInsertedCount=e.autofillInsertedCount??void 0,t.autofillDetected=e.autofillDetected??void 0,t.autofillDetectedCount=e.autofillDetectedCount??void 0,t.autofillDetectedList=e.autofillDetectedList?.map(e=>e)||[],t.autofillInsertedList=e.autofillInsertedList?.map(e=>e)||[],t.autofillSavePromptEvent=e.autofillSavePromptEvent??void 0,t.autofillSavePromptAcceptance=e.autofillSavePromptAcceptance??void 0,t.autofillInsertionEdit=e.autofillInsertionEdit??void 0,t.autofillScriptReady=e.autofillScriptReady??void 0,t.submittedList=e.submittedList?.map(e=>e)||[],t.hasUserInfoInAutofillSetting=e.hasUserInfoInAutofillSetting??!1,t.autofillSettingAvailableInfo=e.autofillSettingAvailableInfo?.map(e=>e)||[],t.formClickEvent=e.formClickEvent??void 0,t.formClickLi
2st=e.formClickList?.map(e=>e)||[],t.autofillConsentPromptList=e.autofillConsentPromptList?.map(e=>e)||[],t.autofillConsentPromptAcceptedList=e.autofillConsentPromptAcceptedList?.map(e=>e)||[],t.autofillMoreEditList=e.autofillMoreEditList?.map(e=>e)||[],t.autofillSaveSettingEvent=e.autofillSaveSettingEvent??void 0,t.autofillSavedInsertedList=e.autofillSavedInsertedList?.map(e=>e)||[],t.autofillSavedUpdatedList=e.autofillSavedUpdatedList?.map(e=>e)||[],t}};function vq(){return{domDownloadLatencyMillis:void 0,domLoadLatencyMillis:void 0,firstContentfulPaintLatency:void 0,fullLoadLatency:void 0,loadProgress:void 0,hasSubsequentNavigation:void 0,resourcesLoadedFromCache:void 0,resourcesLoadedFromNetwork:void 0,resourcesLoadedSizeBytes:void 0,browserUserAgent:void 0,pageUrl:void 0,cssResourcesCacheLoad:void 0,scriptResourcesCacheLoad:void 0,imgResourcesCacheLoad:void 0,linkResourcesCacheLoad:void 0,cssResourcesNetworkLoad:void 0,scriptResourcesNetworkLoad:void 0,imgResourcesNetworkLoad:void 0,linkResourcesNetworkLoad:void 0,webviewInitializeStartTsMs:void 0,webviewInitializeEndTsMs:void 0,webviewLoadUrlTsMs:void 0,webviewNavigationStartTsMs:void 0,htmlResponseStartLatencyMs:void 0,domInteractiveLatencyMs:void 0,domContentLoadedStartLatencyMs:void 0,domCompleteLatencyMs:void 0,perfMetricsPageUrl:void 0,webviewInitializedSuccessfully:void 0,webviewInitializeErrorReason:void 0,webviewNavigationFinishTsMs:void 0,subNavigationTypes:[],htmlResolveServerRedirectCount:void 0,htmlResolveServerRedirectCompleteTsMs:void 0,serverRedirectResolvedUrl:void 0,hasPostClickEngagement:void 0}}(aA=tf||(tf={}))[aA.TYPE_UNSET=0]="TYPE_UNSET",aA[aA.OTHER=1]="OTHER",aA[aA.LINK_ACTIVATED=2]="LINK_ACTIVATED",aA[aA.BACK_FORWARD=3]="BACK_FORWARD",aA[aA.RELOAD=4]="RELOAD",aA[aA.UNRECOGNIZED=-1]="UNRECOGNIZED";let vZ={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.domDownloadLatencyMillis&&mK.encode({value:e.domDownloadLatencyMillis},t.uint32(10).fork()).ldelim(),void 0!==e.domLoadLatencyMillis&&mK.encode({value:e.domLoadLatencyMillis},t.uint32(18).fork()).ldelim(),void 0!==e.firstContentfulPaintLatency&&mK.encode({value:e.firstContentfulPaintLatency},t.uint32(26).fork()).ldelim(),void 0!==e.fullLoadLatency&&mK.encode({value:e.fullLoadLatency},t.uint32(34).fork()).ldelim(),void 0!==e.loadProgress&&mq.encode({value:e.loadProgress},t.uint32(42).fork()).ldelim(),void 0!==e.hasSubsequentNavigation&&mX.encode({value:e.hasSubsequentNavigation},t.uint32(50).fork()).ldelim(),void 0!==e.resourcesLoadedFromCache&&mq.encode({value:e.resourcesLoadedFromCache},t.uint32(58).fork()).ldelim(),void 0!==e.resourcesLoadedFromNetwork&&mq.encode({value:e.resourcesLoadedFromNetwork},t.uint32(66).fork()).ldelim(),void 0!==e.resourcesLoadedSizeBytes&&mK.encode({value:e.resourcesLoadedSizeBytes},t.uint32(74).fork()).ldelim(),void 0!==e.browserUserAgent&&mJ.encode({value:e.browserUserAgent},t.uint32(82).fork()).ldelim(),void 0!==e.pageUrl&&mJ.encode({value:e.pageUrl},t.uint32(90).fork()).ldelim(),void 0!==e.cssResourcesCacheLoad&&mq.encode({value:e.cssResourcesCacheLoad},t.uint32(98).fork()).ldelim(),void 0!==e.scriptResourcesCacheLoad&&mq.encode({value:e.scriptResourcesCacheLoad},t.uint32(106).fork()).ldelim(),void 0!==e.imgResourcesCacheLoad&&mq.encode({value:e.imgResourcesCacheLoad},t.uint32(114).fork()).ldelim(),void 0!==e.linkResourcesCacheLoad&&mq.encode({value:e.linkResourcesCacheLoad},t.uint32(122).fork()).ldelim(),void 0!==e.cssResourcesNetworkLoad&&mq.encode({value:e.cssResourcesNetworkLoad},t.uint32(130).fork()).ldelim(),void 0!==e.scriptResourcesNetworkLoad&&mq.encode({value:e.scriptResourcesNetworkLoad},t.uint32(138).fork()).ldelim(),void 0!==e.imgResourcesNetworkLoad&&mq.encode({value:e.imgResourcesNetworkLoad},t.uint32(146).fork()).ldelim(),void 0!==e.linkResourcesNetworkLoad&&mq.encode({value:e.linkResourcesNetworkLoad},t.uint32(154).fork()).ldelim(),void 0!==e.webviewInitializeStartTsMs&&mK.encode({value:e.webviewInitializeStartTsMs},t.uint32(162).fork()).ldelim(),void 0!==e.webviewInitializeEndTsMs&&mK.encode({value:e.webviewInitializeEndTsMs},t.uint32(170).fork()).ldelim(),void 0!==e.webviewLoadUrlTsMs&&mK.encode({value:e.webviewLoadUrlTsMs},t.uint32(178).fork()).ldelim(),void 0!==e.webviewNavigationStartTsMs&&mK.encode({value:e.webviewNavigationStartTsMs},t.uint32(186).fork()).ldelim(),void 0!==e.htmlResponseStartLatencyMs&&mK.encode({value:e.htmlResponseStartLatencyMs},t.uint32(194).fork()).ldelim(),void 0!==e.domInteractiveLatencyMs&&mK.encode({value:e.domInteractiveLatencyMs},t.uint32(202).fork()).ldelim(),void 0!==e.domContentLoadedStartLatencyMs&&mK.encode({value:e.domContentLoadedStartLatencyMs},t.uint32(210).fork()).ldelim(),void 0!==e.domCompleteLatencyMs&&mK.encode({value:e.domCompleteLatencyMs},t.uint32(218).fork()).ldelim(),void 0!==e.perfMetricsPageUrl&&mJ.encode({value:e.perfMetricsPageUrl},t.uint32(226).fork()).ldelim(),void 0!==e.webviewInitializedSuccessfully&&mX.encode({value:e.webviewInitializedSuccessfully},t.uint32(234).fork()).ldelim(),void 0!==e.webviewInitializeErrorReason&&mJ.encode({value:e.webviewInitializeErrorReason},t.uint32(242).fork()).ldelim(),void 0!==e.webviewNavigationFinishTsMs&&mK.encode({value:e.webviewNavigationFinishTsMs},t.uint32(250).fork()).ldelim(),t.uint32(258).fork(),e.subNavigationTypes))t.int32(i);return t.ldelim(),void 0!==e.htmlResolveServerRedirectCount&&mK.encode({value:e.htmlResolveServerRedirectCount},t.uint32(266).fork()).ldelim(),void 0!==e.htmlResolveServerRedirectCompleteTsMs&&mK.encode({value:e.htmlResolveServerRedirectCompleteTsMs},t.uint32(274).fork()).ldelim(),void 0!==e.serverRedirectResolvedUrl&&mJ.encode({value:e.serverRedirectResolvedUrl},t.uint32(282).fork()).ldelim(),void 0!==e.hasPostClickEngagement&&mX.encode({value:e.hasPostClickEngagement},t.uint32(290).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vq();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.domDownloadLatencyMillis=mK.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.domLoadLatencyMillis=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.firstContentfulPaintLatency=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.fullLoadLatency=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.loadProgress=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.hasSubsequentNavigation=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;
2a.resourcesLoadedFromCache=mq.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.resourcesLoadedFromNetwork=mq.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.resourcesLoadedSizeBytes=mK.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.browserUserAgent=mJ.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.pageUrl=mJ.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.cssResourcesCacheLoad=mq.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.scriptResourcesCacheLoad=mq.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.imgResourcesCacheLoad=mq.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.linkResourcesCacheLoad=mq.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.cssResourcesNetworkLoad=mq.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.scriptResourcesNetworkLoad=mq.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;a.imgResourcesNetworkLoad=mq.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.linkResourcesNetworkLoad=mq.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.webviewInitializeStartTsMs=mK.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.webviewInitializeEndTsMs=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.webviewLoadUrlTsMs=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.webviewNavigationStartTsMs=mK.decode(i,i.uint32()).value;continue;case 24:if(194!==e)break;a.htmlResponseStartLatencyMs=mK.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.domInteractiveLatencyMs=mK.decode(i,i.uint32()).value;continue;case 26:if(210!==e)break;a.domContentLoadedStartLatencyMs=mK.decode(i,i.uint32()).value;continue;case 27:if(218!==e)break;a.domCompleteLatencyMs=mK.decode(i,i.uint32()).value;continue;case 28:if(226!==e)break;a.perfMetricsPageUrl=mJ.decode(i,i.uint32()).value;continue;case 29:if(234!==e)break;a.webviewInitializedSuccessfully=mX.decode(i,i.uint32()).value;continue;case 30:if(242!==e)break;a.webviewInitializeErrorReason=mJ.decode(i,i.uint32()).value;continue;case 31:if(250!==e)break;a.webviewNavigationFinishTsMs=mK.decode(i,i.uint32()).value;continue;case 32:if(256===e){a.subNavigationTypes.push(i.int32());continue}if(258===e){let e=i.uint32()+i.pos;for(;i.pos<e;)a.subNavigationTypes.push(i.int32());continue}break;case 33:if(266!==e)break;a.htmlResolveServerRedirectCount=mK.decode(i,i.uint32()).value;continue;case 34:if(274!==e)break;a.htmlResolveServerRedirectCompleteTsMs=mK.decode(i,i.uint32()).value;continue;case 35:if(282!==e)break;a.serverRedirectResolvedUrl=mJ.decode(i,i.uint32()).value;continue;case 36:if(290!==e)break;a.hasPostClickEngagement=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vZ.fromPartial(e??{}),fromPartial(e){let t=vq();return t.domDownloadLatencyMillis=e.domDownloadLatencyMillis??void 0,t.domLoadLatencyMillis=e.domLoadLatencyMillis??void 0,t.firstContentfulPaintLatency=e.firstContentfulPaintLatency??void 0,t.fullLoadLatency=e.fullLoadLatency??void 0,t.loadProgress=e.loadProgress??void 0,t.hasSubsequentNavigation=e.hasSubsequentNavigation??void 0,t.resourcesLoadedFromCache=e.resourcesLoadedFromCache??void 0,t.resourcesLoadedFromNetwork=e.resourcesLoadedFromNetwork??void 0,t.resourcesLoadedSizeBytes=e.resourcesLoadedSizeBytes??void 0,t.browserUserAgent=e.browserUserAgent??void 0,t.pageUrl=e.pageUrl??void 0,t.cssResourcesCacheLoad=e.cssResourcesCacheLoad??void 0,t.scriptResourcesCacheLoad=e.scriptResourcesCacheLoad??void 0,t.imgResourcesCacheLoad=e.imgResourcesCacheLoad??void 0,t.linkResourcesCacheLoad=e.linkResourcesCacheLoad??void 0,t.cssResourcesNetworkLoad=e.cssResourcesNetworkLoad??void 0,t.scriptResourcesNetworkLoad=e.scriptResourcesNetworkLoad??void 0,t.imgResourcesNetworkLoad=e.imgResourcesNetworkLoad??void 0,t.linkResourcesNetworkLoad=e.linkResourcesNetworkLoad??void 0,t.webviewInitializeStartTsMs=e.webviewInitializeStartTsMs??void 0,t.webviewInitializeEndTsMs=e.webviewInitializeEndTsMs??void 0,t.webviewLoadUrlTsMs=e.webviewLoadUrlTsMs??void 0,t.webviewNavigationStartTsMs=e.webviewNavigationStartTsMs??void 0,t.htmlResponseStartLatencyMs=e.htmlResponseStartLatencyMs??void 0,t.domInteractiveLatencyMs=e.domInteractiveLatencyMs??void 0,t.domContentLoadedStartLatencyMs=e.domContentLoadedStartLatencyMs??void 0,t.domCompleteLatencyMs=e.domCompleteLatencyMs??void 0,t.perfMetricsPageUrl=e.perfMetricsPageUrl??void 0,t.webviewInitializedSuccessfully=e.webviewInitializedSuccessfully??void 0,t.webviewInitializeErrorReason=e.webviewInitializeErrorReason??void 0,t.webviewNavigationFinishTsMs=e.webviewNavigationFinishTsMs??void 0,t.subNavigationTypes=e.subNavigationTypes?.map(e=>e)||[],t.htmlResolveServerRedirectCount=e.htmlResolveServerRedirectCount??void 0,t.htmlResolveServerRedirectCompleteTsMs=e.htmlResolveServerRedirectCompleteTsMs??void 0,t.serverRedirectResolvedUrl=e.serverRedirectResolvedUrl??void 0,t.hasPostClickEngagement=e.hasPostClickEngagement??void 0,t}};function vj(){return{pageViewGaHit:!1,gaHitCounts:!1,domDownloadLatencyMillis:"0",domLoadLatencyMillis:"0",hasSubsequentNavigation:!1,prefetched:!1,gaHitTypes:[],loadProgress:void 0,firstContentfulPaintLatency:"0",webViewLoadInfo:void 0,gaIncluded:void 0,firstGaTriggerLatency:void 0,resourcesPrefetchCount:0,prefetchMode:0,openInBrowser:!1,landingPageGaPageViewHit:!1,firstPixelTriggerLatency:void 0,webBrowserType:0,hasJsBasedPerformanceTiming:!1,webViewAutofillInfo:void 0,firstGaHitTsMs:void 0,firstAdobePingTsMs:void 0,adobePingCount:void 0,htmlPrefetchStartTsMs:void 0,htmlPrefetchEndTsMs:void 0,loadPrefetchedHtml:!1,rawPerformanceMetrics:"",perfMetricsLoadError:!1,perfMetricLoadErrorReason:"",lightningModeEnableServerSetting:void 0,lightningModeUrl:void 0,scCidDropDetected:void 0,exbInAppHtmlResolveStatus:0,exbOpenedOnSubNav:!1,deeplinkAttempted:!1,detectSnapPixelEvent:!1,snapPixelHasCid:!1,defaultBrowserPackageName:"",scrollC
2ount:0,tapCount:0,isInstantPageEnabled:!1,isShopPayUser:!1,didUseShopifyStorefrontToken:!1,canAppendClickIdForExbHopping:!1,instantPageType:0,didShowInstantPageFallbackWebview:!1,didTapExternalButton:!1,didTapCopyLink:!1,didPresentSkoverlay:!1}}(ak=tT||(tT={}))[ak.UNSET=0]="UNSET",ak[ak.SUCCESS=1]="SUCCESS",ak[ak.HTML_RESOLVING=2]="HTML_RESOLVING",ak[ak.HTML_RESOLVE_ERROR=3]="HTML_RESOLVE_ERROR",ak[ak.REDIRECT_HINTS_MISMATCH=4]="REDIRECT_HINTS_MISMATCH",ak[ak.UNRECOGNIZED=-1]="UNRECOGNIZED",(ab=tm||(tm={}))[ab.INSTANT_PAGE_TYPE_UNSET=0]="INSTANT_PAGE_TYPE_UNSET",ab[ab.PSP=1]="PSP",ab[ab.PSP_COLLECTION=2]="PSP_COLLECTION",ab[ab.PDP=3]="PDP",ab[ab.PSP_PRODUCT=4]="PSP_PRODUCT",ab[ab.UNRECOGNIZED=-1]="UNRECOGNIZED";let vX={encode(e,t=rA.default.Writer.create()){for(let i of(!1!==e.pageViewGaHit&&t.uint32(8).bool(e.pageViewGaHit),!1!==e.gaHitCounts&&t.uint32(16).bool(e.gaHitCounts),"0"!==e.domDownloadLatencyMillis&&t.uint32(24).int64(e.domDownloadLatencyMillis),"0"!==e.domLoadLatencyMillis&&t.uint32(32).int64(e.domLoadLatencyMillis),!1!==e.hasSubsequentNavigation&&t.uint32(40).bool(e.hasSubsequentNavigation),!1!==e.prefetched&&t.uint32(48).bool(e.prefetched),e.gaHitTypes))mJ.encode({value:i},t.uint32(58).fork()).ldelim();return void 0!==e.loadProgress&&mq.encode({value:e.loadProgress},t.uint32(66).fork()).ldelim(),"0"!==e.firstContentfulPaintLatency&&t.uint32(72).int64(e.firstContentfulPaintLatency),void 0!==e.webViewLoadInfo&&vZ.encode(e.webViewLoadInfo,t.uint32(82).fork()).ldelim(),void 0!==e.gaIncluded&&mX.encode({value:e.gaIncluded},t.uint32(90).fork()).ldelim(),void 0!==e.firstGaTriggerLatency&&mK.encode({value:e.firstGaTriggerLatency},t.uint32(98).fork()).ldelim(),0!==e.resourcesPrefetchCount&&t.uint32(104).int32(e.resourcesPrefetchCount),0!==e.prefetchMode&&t.uint32(112).int32(e.prefetchMode),!1!==e.openInBrowser&&t.uint32(120).bool(e.openInBrowser),!1!==e.landingPageGaPageViewHit&&t.uint32(128).bool(e.landingPageGaPageViewHit),void 0!==e.firstPixelTriggerLatency&&mK.encode({value:e.firstPixelTriggerLatency},t.uint32(138).fork()).ldelim(),0!==e.webBrowserType&&t.uint32(144).int32(e.webBrowserType),!1!==e.hasJsBasedPerformanceTiming&&t.uint32(152).bool(e.hasJsBasedPerformanceTiming),void 0!==e.webViewAutofillInfo&&vz.encode(e.webViewAutofillInfo,t.uint32(162).fork()).ldelim(),void 0!==e.firstGaHitTsMs&&mK.encode({value:e.firstGaHitTsMs},t.uint32(170).fork()).ldelim(),void 0!==e.firstAdobePingTsMs&&mK.encode({value:e.firstAdobePingTsMs},t.uint32(178).fork()).ldelim(),void 0!==e.adobePingCount&&mK.encode({value:e.adobePingCount},t.uint32(186).fork()).ldelim(),void 0!==e.htmlPrefetchStartTsMs&&mK.encode({value:e.htmlPrefetchStartTsMs},t.uint32(194).fork()).ldelim(),void 0!==e.htmlPrefetchEndTsMs&&mK.encode({value:e.htmlPrefetchEndTsMs},t.uint32(202).fork()).ldelim(),!1!==e.loadPrefetchedHtml&&t.uint32(208).bool(e.loadPrefetchedHtml),""!==e.rawPerformanceMetrics&&t.uint32(218).string(e.rawPerformanceMetrics),!1!==e.perfMetricsLoadError&&t.uint32(224).bool(e.perfMetricsLoadError),""!==e.perfMetricLoadErrorReason&&t.uint32(234).string(e.perfMetricLoadErrorReason),void 0!==e.lightningModeEnableServerSetting&&mX.encode({value:e.lightningModeEnableServerSetting},t.uint32(242).fork()).ldelim(),void 0!==e.lightningModeUrl&&mJ.encode({value:e.lightningModeUrl},t.uint32(250).fork()).ldelim(),void 0!==e.scCidDropDetected&&mX.encode({value:e.scCidDropDetected},t.uint32(258).fork()).ldelim(),0!==e.exbInAppHtmlResolveStatus&&t.uint32(264).int32(e.exbInAppHtmlResolveStatus),!1!==e.exbOpenedOnSubNav&&t.uint32(272).bool(e.exbOpenedOnSubNav),!1!==e.deeplinkAttempted&&t.uint32(280).bool(e.deeplinkAttempted),!1!==e.detectSnapPixelEvent&&t.uint32(288).bool(e.detectSnapPixelEvent),!1!==e.snapPixelHasCid&&t.uint32(296).bool(e.snapPixelHasCid),""!==e.defaultBrowserPackageName&&t.uint32(306).string(e.defaultBrowserPackageName),0!==e.scrollCount&&t.uint32(312).int32(e.scrollCount),0!==e.tapCount&&t.uint32(320).int32(e.tapCount),!1!==e.isInstantPageEnabled&&t.uint32(328).bool(e.isInstantPageEnabled),!1!==e.isShopPayUser&&t.uint32(336).bool(e.isShopPayUser),!1!==e.didUseShopifyStorefrontToken&&t.uint32(344).bool(e.didUseShopifyStorefrontToken),!1!==e.canAppendClickIdForExbHopping&&t.uint32(352).bool(e.canAppendClickIdForExbHopping),0!==e.instantPageType&&t.uint32(360).int32(e.instantPageType),!1!==e.didShowInstantPageFallbackWebview&&t.uint32(368).bool(e.didShowInstantPageFallbackWebview),!1!==e.didTapExternalButton&&t.uint32(376).bool(e.didTapExternalButton),!1!==e.didTapCopyLink&&t.uint32(384).bool(e.didTapCopyLink),!1!==e.didPresentSkoverlay&&t.uint32(392).bool(e.didPresentSkoverlay),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v
2j();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.pageViewGaHit=i.bool();continue;case 2:if(16!==e)break;a.gaHitCounts=i.bool();continue;case 3:if(24!==e)break;a.domDownloadLatencyMillis=vQ(i.int64());continue;case 4:if(32!==e)break;a.domLoadLatencyMillis=vQ(i.int64());continue;case 5:if(40!==e)break;a.hasSubsequentNavigation=i.bool();continue;case 6:if(48!==e)break;a.prefetched=i.bool();continue;case 7:if(58!==e)break;a.gaHitTypes.push(mJ.decode(i,i.uint32()).value);continue;case 8:if(66!==e)break;a.loadProgress=mq.decode(i,i.uint32()).value;continue;case 9:if(72!==e)break;a.firstContentfulPaintLatency=vQ(i.int64());continue;case 10:if(82!==e)break;a.webViewLoadInfo=vZ.decode(i,i.uint32());continue;case 11:if(90!==e)break;a.gaIncluded=mX.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.firstGaTriggerLatency=mK.decode(i,i.uint32()).value;continue;case 13:if(104!==e)break;a.resourcesPrefetchCount=i.int32();continue;case 14:if(112!==e)break;a.prefetchMode=i.int32();continue;case 15:if(120!==e)break;a.openInBrowser=i.bool();continue;case 16:if(128!==e)break;a.landingPageGaPageViewHit=i.bool();continue;case 17:if(138!==e)break;a.firstPixelTriggerLatency=mK.decode(i,i.uint32()).value;continue;case 18:if(144!==e)break;a.webBrowserType=i.int32();continue;case 19:if(152!==e)break;a.hasJsBasedPerformanceTiming=i.bool();continue;case 20:if(162!==e)break;a.webViewAutofillInfo=vz.decode(i,i.uint32());continue;case 21:if(170!==e)break;a.firstGaHitTsMs=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.firstAdobePingTsMs=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.adobePingCount=mK.decode(i,i.uint32()).value;continue;case 24:if(194!==e)break;a.htmlPrefetchStartTsMs=mK.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.htmlPrefetchEndTsMs=mK.decode(i,i.uint32()).value;continue;case 26:if(208!==e)break;a.loadPrefetchedHtml=i.bool();continue;case 27:if(218!==e)break;a.rawPerformanceMetrics=i.string();continue;case 28:if(224!==e)break;a.perfMetricsLoadError=i.bool();continue;case 29:if(234!==e)break;a.perfMetricLoadErrorReason=i.string();continue;case 30:if(242!==e)break;a.lightningModeEnableServerSetting=mX.decode(i,i.uint32()).value;continue;case 31:if(250!==e)break;a.lightningModeUrl=mJ.decode(i,i.uint32()).value;continue;case 32:if(258!==e)break;a.scCidDropDetected=mX.decode(i,i.uint32()).value;continue;case 33:if(264!==e)break;a.exbInAppHtmlResolveStatus=i.int32();continue;case 34:if(272!==e)break;a.exbOpenedOnSubNav=i.bool();continue;case 35:if(280!==e)break;a.deeplinkAttempted=i.bool();continue;case 36:if(288!==e)break;a.detectSnapPixelEvent=i.bool();continue;case 37:if(296!==e)break;a.snapPixelHasCid=i.bool();continue;case 38:if(306!==e)break;a.defaultBrowserPackageName=i.string();continue;case 39:if(312!==e)break;a.scrollCount=i.int32();continue;case 40:if(320!==e)break;a.tapCount=i.int32();continue;case 41:if(328!==e)break;a.isInstantPageEnabled=i.bool();continue;case 42:if(336!==e)break;a.isShopPayUser=i.bool();continue;case 43:if(344!==e)break;a.didUseShopifyStorefrontToken=i.bool();continue;case 44:if(352!==e)break;a.canAppendClickIdForExbHopping=i.bool();continue;case 45:if(360!==e)break;a.instantPageType=i.int32();continue;case 46:if(368!==e)break;a.didShowInstantPageFallbackWebview=i.bool();continue;case 47:if(376!==e)break;a.didTapExternalButton=i.bool();continue;case 48:if(384!==e)break;a.didTapCopyLink=i.bool();continue;case 49:if(392!==e)break;a.didPresentSkoverlay=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>vX.fromPartial(e??{}),fromPartial(e){let t=vj();return t.pageViewGaHit=e.pageViewGaHit??!1,t.gaHitCounts=e.gaHitCounts??!1,t.domDownloadLatencyMillis=e.domDownloadLatencyMillis??"0",t.domLoadLatencyMillis=e.domLoadLatencyMillis??"0",t.hasSubsequentNavigation=e.hasSubsequentNavigation??!1,t.prefetched=e.prefetched??!1,t.gaHitTypes=e.gaHitTypes?.map(e=>e)||[],t.loadProgress=e.loadProgress??void 0,t.firstContentfulPaintLatency=e.firstContentfulPaintLatency??"0",t.webViewLoadInfo=void 0!==e.webViewLoadInfo&&null!==e.webViewLoadInfo?vZ.fromPartial(e.webViewLoadInfo):void 0,t.gaIncluded=e.gaIncluded??void 0,t.firstGaTriggerLatency=e.firstGaTriggerLatency??void 0,t.resourcesPrefetchCount=e.resourcesPrefetchCount??0,t.prefetchMode=e.prefetchMode??0,t.openInBrowser=e.openInBrowser??!1,t.landingPageGaPageViewHit=e.landingPageGaPageViewHit??!1,t.firstPixelTriggerLatency=e.firstPixelTriggerLatency??void 0,t.webBrowserType=e.webBrowserType??0,t.hasJsBasedPerformanceTiming=e.hasJsBasedPerformanceTiming??!1,t.webViewAutofillInfo=void 0!==e.webViewAutofillInfo&&null!==e.webViewAutofillInfo?vz.fromPartial(e.webViewAutofillInfo):void 0,t.firstGaHitTsMs=e.firstGaHitTsMs??void 0,t.firstAdobePingTsMs=e.firstAdobePingTsMs??void 0,t.adobePingCount=e.adobePingCount??void 0,t.htmlPrefetchStartTsMs=e.htmlPrefetchStartTsMs??void 0,t.htmlPrefetchEndTsMs=e.htmlPrefetchEndTsMs??void 0,t.loadPrefetchedHtml=e.loadPrefetchedHtml??!1,t.rawPerformanceMetrics=e.rawPerformanceMetrics??"",t.perfMetricsLoadError=e.perfMetricsLoadError??!1,t.perfMetricLoadErrorReason=e.perfMetricLoadErrorReason??"",t.lightningModeEnableServerSetting=e.lightningModeEnableServerSetting??void 0,t.lightningModeUrl=e.lightningModeUrl??void 0,t.scCidDropDetected=e.scCidDropDetected??void 0,t.exbInAppHtmlResolveStatus=e.exbInAppHtmlResolveStatus??0,t.exbOpenedOnSubNav=e.exbOpenedOnSubNav??!1,t.deeplinkAttempted=e.deeplinkAttempted??!1,t.detectSnapPixelEvent=e.detectSnapPixelEvent??!1,t.snapPixelHasCid=e.snapPixelHasCid??!1,t.defaultBrowserPackageName=e.defaultBrowserPackageName??"",t.scrollC
2ount=e.scrollCount??0,t.tapCount=e.tapCount??0,t.isInstantPageEnabled=e.isInstantPageEnabled??!1,t.isShopPayUser=e.isShopPayUser??!1,t.didUseShopifyStorefrontToken=e.didUseShopifyStorefrontToken??!1,t.canAppendClickIdForExbHopping=e.canAppendClickIdForExbHopping??!1,t.instantPageType=e.instantPageType??0,t.didShowInstantPageFallbackWebview=e.didShowInstantPageFallbackWebview??!1,t.didTapExternalButton=e.didTapExternalButton??!1,t.didTapCopyLink=e.didTapCopyLink??!1,t.didPresentSkoverlay=e.didPresentSkoverlay??!1,t}};function vQ(e){return e.toString()}function vJ(){return{typedTrackData:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(ag=tE||(tE={}))[ag.UNKNOWN_ATTACHMENT_TYPE=0]="UNKNOWN_ATTACHMENT_TYPE",ag[ag.NO_ATTACHMENT=1]="NO_ATTACHMENT",ag[ag.LONGFORM_VIDEO=2]="LONGFORM_VIDEO",ag[ag.REMOTE_WEBVIEW=3]="REMOTE_WEBVIEW",ag[ag.APP_INSTALL=4]="APP_INSTALL",ag[ag.DEEP_LINK=5]="DEEP_LINK",ag[ag.UNRECOGNIZED=-1]="UNRECOGNIZED";let v0={encode(e,t=rA.default.Writer.create()){switch(e.typedTrackData?.$case){case"longformVideoImpression":v3.encode(e.typedTrackData.longformVideoImpression,t.uint32(10).fork()).ldelim();break;case"remoteWebpageImpression":v4.encode(e.typedTrackData.remoteWebpageImpression,t.uint32(18).fork()).ldelim();break;case"appInstallImpression":v6.encode(e.typedTrackData.appInstallImpression,t.uint32(26).fork()).ldelim();break;case"deepLinkImpression":v5.encode(e.typedTrackData.deepLinkImpression,t.uint32(34).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=vJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.typedTrackData={$case:"longformVideoImpression",longformVideoImpression:v3.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.typedTrackData={$case:"remoteWebpageImpression",remoteWebpageImpression:v4.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.typedTrackData={$case:"appInstallImpression",appInstallImpression:v6.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.typedTrackData={$case:"deepLinkImpression",deepLinkImpression:v5.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>v0.fromPartial(e??{}),fromPartial(e){let t=vJ();return e.typedTrackData?.$case==="longformVideoImpression"&&e.typedTrackData?.longformVideoImpression!==void 0&&e.typedTrackData?.longformVideoImpression!==null&&(t.typedTrackData={$case:"longformVideoImpression",longformVideoImpression:v3.fromPartial(e.typedTrackData.longformVideoImpression)}),e.typedTrackData?.$case==="remoteWebpageImpression"&&e.typedTrackData?.remoteWebpageImpression!==void 0&&e.typedTrackData?.remoteWebpageImpression!==null&&(t.typedTrackData={$case:"remoteWebpageImpression",remoteWebpageImpression:v4.fromPartial(e.typedTrackData.remoteWebpageImpression)}),e.typedTrackData?.$case==="appInstallImpression"&&e.typedTrackData?.appInstallImpression!==void 0&&e.typedTrackData?.appInstallImpression!==null&&(t.typedTrackData={$case:"appInstallImpression",appInstallImpression:v6.fromPartial(e.typedTrackData.appInstallImpression)}),e.typedTrackData?.$case==="deepLinkImpression"&&e.typedTrackData?.deepLinkImpression!==void 0&&e.typedTrackData?.deepLinkImpression!==null&&(t.typedTrackData={$case:"deepLinkImpression",deepLinkImpression:v5.fromPartial(e.typedTrackData.deepLinkImpression)}),t}};function v2(){return{viewTimeSec:void 0,mediaDurationSec:void 0,renderedTimestampMs:void 0,openTimestampMs:void 0}}let v3={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.viewTimeSec&&mH.encode({value:e.viewTimeSec},t.uint32(10).fork()).ldelim(),void 0!==e.mediaDurationSec&&mH.encode({value:e.mediaDurationSec},t.uint32(18).fork()).ldelim(),void 0!==e.renderedTimestampMs&&mK.encode({value:e.renderedTimestampMs},t.uint32(26).fork()).ldelim(),void 0!==e.openTimestampMs&&mK.encode({value:e.openTimestampMs},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.viewTimeSec=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.mediaDurationSec=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.renderedTimestampMs=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.openTimestampMs=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>v3.fromPartial(e??{}),fromPartial(e){let t=v2();return t.viewTimeSec=e.viewTimeSec??void 0,t.mediaDurationSec=e.mediaDurationSec??void 0,t.renderedTimestampMs=e.renderedTimestampMs??void 0,t.openTimestampMs=e.openTimestampMs??void 0,t}};function v1(){return{viewTimeSec:void 0,renderedTimestampMs:void 0,loadedOnEntry:void 0,loadedOnExit:void 0,openTimestampMs:void 0,pixelCookieSet:void 0,webviewContext:void 0}}let v4={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.viewTimeSec&&mH.encode({value:e.viewTimeSec},t.uint32(10).fork()).ldelim(),void 0!==e.renderedTimestampMs&&mK.encode({value:e.renderedTimestampMs},t.uint32(18).fork()).ldelim(),void 0!==e.loadedOnEntry&&mX.encode({value:e.loadedOnEntry},t.uint32(26).fork()).ldelim(),void 0!==e.loadedOnExit&&mX.encode({value:e.loadedOnExit},t.uint32(34).fork()).ldelim(),void 0!==e.openTimestampMs&&mK.encode({value:e.openTimestampMs},t.uint32(42).fork()).ldelim(),void 0!==e.pixelCookieSet&&mX.encode({value:e.pixelCookieSet},t.uint32(50).fork()).ldelim(),void 0!==e.webviewContext&&vX.encode(e.webviewContext,t.uint32(58).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.viewTimeSec=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.renderedTimestampMs=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.loadedOnEntry=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.loadedOnExit=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.openTimestampMs=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.pixelCookieSet=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.webviewContext=vX.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>v4.fromPartial(e??{}),fromPartial(e){let t=v1();return t.viewTimeSec=e.viewTimeSec??void 0,t.renderedTimestampMs=e.renderedTimestampMs??void 0,t.loadedOnEntry=e.loadedOnEntry??void 0,t.loadedOnExit=e.loadedOnExit??void 0,t.openTimestampMs=e.openTimestampMs??void 0,t.pixelCookieSet=e.pixelCookieSet??void 0,t.webviewContext=void 0!==e.webviewContext&&null!==e.webviewContext?vX.fromPartial(e.webviewContext):void 0,t}};function v8(){return{viewTimeSec:void 0,openTimestampMs:void 0,loadedOnEntry:void 0,loadedOnExit:void 0,visibleLoadTimeMs:void 0}}let v6={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.viewTimeSec&&mH.encode({value:e.viewTimeSec},t.uint32(10).fork()).ldelim(),void 0!==e.openTimestampMs&&mK.encode({value:e.openTimestampMs},t.uint32(18).fork()).ldelim(),void 0!==e.loadedOnEntry&&mX.encode({value:e.loadedOnEntry},t.uint32(26).fork()).ldelim(),void 0!==e.loadedOnExit&&mX.encode({value:e.loadedOnExit},t.uint32(34).fork()).ldelim(),void 0!==e.visibleLoadTimeMs&&mH.encode({value:e.visibleLoadTimeMs},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.viewTimeSec=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.openTimestampMs=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.loadedOnEntry=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.loadedOnExit=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.visibleLoadTimeMs=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>v6.fromPartial(e??{}),fromPartial(e){let t=v8();return t.viewTimeSec=e.viewTimeSec??void 0,t.openTimestampMs=e.openTimestampMs??void 0,t.loadedOnEntry=e.loadedOnEntry??void 0,t.loadedOnExit=e.loadedOnExit??void 0,t.visibleLoadTimeMs=e.visibleLoadTimeMs??void 0,t}};function v7(){return{openTimestampMs:void 0,redirectToStore:void 0,redirectToWebview:void 0,deeplinkUri:void 0}}let v5={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.openTimestampMs&&mK.encode({value:e.openTimestampMs},t.uint32(10).fork()).ldelim(),void 0!==e.redirectToStore&&mX.encode({value:e.redirectToStore},t.uint32(18).fork()).ldelim(),void 0!==e.redirectToWebview&&mX.encode({value:e.redirectToWebview},t.uint32(26).fork()).ldelim(),void 0!==e.deeplinkUri&&mJ.encode({value:e.deeplinkUri},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.openTimestampMs=mK.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.redirectToStore=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.redirectToWebview=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.deeplinkUri=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>v5.fromPartial(e??{}),fromPartial(e){let t=v7();return t.openTimestampMs=e.openTimestampMs??void 0,t.redirectToStore=e.redirectToStore??void 0,t.redirectToWebview=e.redirectToWebview??void 0,t.deeplinkUri=e.deeplinkUri??void 0,t}};function v9(){return{snapCreationInfo:void 0,lensSessionId:void 0,carouselSize:void 0,lensImpressions:[],deviceInfo:void 0,carouselExitEvent:0,cameraType:0,lastInteractedLensId:void 0}}(aN=t_||(t_={}))[aN.UNKNOWN_EXIT_EVENT=0]="UNKNOWN_EXIT_EVENT",aN[aN.SWIPE_LEFT=1]="SWIPE_LEFT",aN[aN.SWIPE_RIGHT=2]="SWIPE_RIGHT",aN[aN.SWIPE_UP=3]="SWIPE_UP",aN[aN.SWIPE_DOWN=4]="SWIPE_DOWN",aN[aN.EXIT_CAROUSEL=5]="EXIT_CAROUSEL",aN[aN.CAPTURE_SNAP=6]="CAPTURE_SNAP",aN[aN.BACKGROUND_APP=7]="BACKGROUND_APP",aN[aN.OPEN_SEARCH=8]="OPEN_SEARCH",aN[aN.OPEN_PROFILE=9]="OPEN_PROFILE",aN[aN.ADD_FRIENDS=10]="ADD_FRIENDS",aN[aN.CLICK_CTA=11]="CLICK_CTA",aN[aN.OPEN_SUB_CAROUSEL=12]="OPEN_SUB_CAROUSEL",aN[aN.CLOSE_SUB_CAROUSEL=13]="CLOSE_SUB_CAROUSEL",aN[aN.UNRECOGNIZED=-1]="UNRECOGNIZED",(aR=tS||(tS={}))[aR.UNKNOWN_UNLOCK_TYPE=0]="UNKNOWN_UNLOCK_TYPE",aR[aR.NO_UNLOCK=1]="NO_UNLOCK",aR[aR.SOCIAL_UNLOCK=2]="SOCIAL_UNLOCK",aR[aR.UNRECOGNIZED=-1]="UNRECOGNIZED",(aP=tI||(tI={}))[aP.UNKNOWN=0]="UNKNOWN",aP[aP.LIVE_CAMERA=1]="LIVE_CAMERA",aP[aP.POST_CAPTURE=2]="POST_CAPTURE",aP[aP.UNRECOGNIZED=-1]="UNRECOGNIZED",(aO=tv||(tv={}))[aO.UNKNOWN_TRACK_TYPE=0]="UNKNOWN_TRACK_TYPE",aO[aO.CAROUSEL_SESSION=1]="CAROUSEL_SESSION",aO[aO.INDEPENDENT_LENS_IMPRESSION=2]="INDEPENDENT_LENS_IMPRESSION",aO[aO.UNRECOGNIZED=-1]="UNRECOGNIZED",(aC=tA||(tA={}
2))[aC.UNKNOWN_CLIENT_TRACK_LOGGING_STRATEGY=0]="UNKNOWN_CLIENT_TRACK_LOGGING_STRATEGY",aC[aC.WITH_CAROUSEL_SESSION=1]="WITH_CAROUSEL_SESSION",aC[aC.INDEPENDENT_ON_SESSION_END=2]="INDEPENDENT_ON_SESSION_END",aC[aC.INDEPENDENT_ON_LENS_EXIT=3]="INDEPENDENT_ON_LENS_EXIT",aC[aC.UNRECOGNIZED=-1]="UNRECOGNIZED",(ay=tk||(tk={}))[ay.UNKNOWN_TYPE=0]="UNKNOWN_TYPE",ay[ay.LENS_EXIT=1]="LENS_EXIT",ay[ay.SNAP_CAPTURE_SESSION_ENDED=2]="SNAP_CAPTURE_SESSION_ENDED",ay[ay.ATTACHMENT_CLOSE=3]="ATTACHMENT_CLOSE",ay[ay.UNRECOGNIZED=-1]="UNRECOGNIZED",(ah=tb||(tb={}))[ah.UNKNOWN_TRIGGER=0]="UNKNOWN_TRIGGER",ah[ah.MOUTH_OPENED=1]="MOUTH_OPENED",ah[ah.BROWS_RAISED=2]="BROWS_RAISED",ah[ah.SMILE_STARTED=3]="SMILE_STARTED",ah[ah.KISS_STARTED=4]="KISS_STARTED",ah[ah.HAND_FOUND=5]="HAND_FOUND",ah[ah.WRIST_FOUND=6]="WRIST_FOUND",ah[ah.FOOT_FOUND=7]="FOOT_FOUND",ah[ah.SURFACE_FOUND=8]="SURFACE_FOUND",ah[ah.FACE_FOUND=9]="FACE_FOUND",ah[ah.UNRECOGNIZED=-1]="UNRECOGNIZED",(aL=tg||(tg={}))[aL.UNKNOWN_PLACEMENT=0]="UNKNOWN_PLACEMENT",aL[aL.SURFACE=1]="SURFACE",aL[aL.WRISTWEAR=2]="WRISTWEAR",aL[aL.FOOTWEAR=3]="FOOTWEAR",aL[aL.EYEWEAR=4]="EYEWEAR",aL[aL.GARMENT=5]="GARMENT",aL[aL.UNRECOGNIZED=-1]="UNRECOGNIZED";let Ae={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.snapCreationInfo&&vK.encode(e.snapCreationInfo,t.uint32(10).fork()).ldelim(),void 0!==e.lensSessionId&&mJ.encode({value:e.lensSessionId},t.uint32(18).fork()).ldelim(),void 0!==e.carouselSize&&mK.encode({value:e.carouselSize},t.uint32(26).fork()).ldelim(),e.lensImpressions))Ai.encode(i,t.uint32(34).fork()).ldelim();return void 0!==e.deviceInfo&&vM.encode(e.deviceInfo,t.uint32(42).fork()).ldelim(),0!==e.carouselExitEvent&&t.uint32(48).int32(e.carouselExitEvent),0!==e.cameraType&&t.uint32(56).int32(e.cameraType),void 0!==e.lastInteractedLensId&&mJ.encode({value:e.lastInteractedLensId},t.uint32(66).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=v9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapCreationInfo=vK.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.lensSessionId=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.carouselSize=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.lensImpressions.push(Ai.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.deviceInfo=vM.decode(i,i.uint32());continue;case 6:if(48!==e)break;a.carouselExitEvent=i.int32();continue;case 7:if(56!==e)break;a.cameraType=i.int32();continue;case 8:if(66!==e)break;a.lastInteractedLensId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ae.fromPartial(e??{}),fromPartial(e){let t=v9();return t.snapCreationInfo=void 0!==e.snapCreationInfo&&null!==e.snapCreationInfo?vK.fromPartial(e.snapCreationInfo):void 0,t.lensSessionId=e.lensSessionId??void 0,t.carouselSize=e.carouselSize??void 0,t.lensImpressions=e.lensImpressions?.map(e=>Ai.fromPartial(e))||[],t.deviceInfo=void 0!==e.deviceInfo&&null!==e.deviceInfo?vM.fromPartial(e.deviceInfo):void 0,t.carouselExitEvent=e.carouselExitEvent??0,t.cameraType=e.cameraType??0,t.lastInteractedLensId=e.lastInteractedLensId??void 0,t}};function At(){return{lensId:void 0,totalSwipedViewMillis:void 0,lensOptionId:void 0,swipedOverCount:void 0,withSnapSend:void 0,withStoryPost:void 0,withMemoriesSave:void 0,withSelfieCamera:void 0,withWorldCamera:void 0,isAudioOn:void 0,lensIndexPos:void 0,encryptedAdTrackData:new Uint8Array(0),encryptedSponsoredUnlockableTargetingInfoData:new Uint8Array(0),rankingId:new Uint8Array(0),rankingData:new Uint8Array(0),attachmentImpression:void 0,encGeoData:new Uint8Array(0),withAttachmentOpen:void 0,attachmentType:0,snapSendRecipientCount:void 0,snapSendCount:void 0,storyPostCount:void 0,memoriesSaveCount:void 0,captureTimeMillis:void 0,postCaptureTimeMillis:void 0,maxSwipeTimeMillis:void 0,maxContinuousTimeMillis:void 0,totalTimeMillis:void 0,reactionTimestamp:void 0,shareTimestamp:void 0,swipeUpTimestamp:void 0,saveTimestamp:void 0,screenshotTimestamp:void 0,unlockType:0,lensCreativeId:new Uint8Array(0),firstFaceRenderTimestamp:void 0,firstTriggerTimestamp:void 0,lensPerformanceMetrics:void 0,adFlagData:void 0,lensProductImpressionCollectionTrack:void 0,lensSource:0,stackedImpressions:[],isCachedBeforeSession:void 0,isCachedAfterSession:void 0,noFillServeItemId:new Uint8Array(0),snapTakenCount:void 0,infoClickedCount:void 0,withMediaPlayPrecapture:void 0,withMediaPlayPostcapture:void 0,isRendered:void 0,mixerRequestId:new Uint8Array(0),lensNamespace:void 0,sponsoredType:0,lensSessionId:void 0,deviceInfo:void 0,cameraType:0,isTrackLoggedIndependently:void 0,trackType:0,clientTrackLoggingStrategy:0,carouselExitEvent:0,independentLensImpressionTrigger:0,maxScreenPortionRendered:void 0,commonSnapAdImpression:void 0,postLensRenderUserInteractions:void 0,withCameraFlip:void 0}}let Ai={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.lensId&&mJ.encode({value:e.lensId},t.uint32(10).fork()).ldelim(),void 0!==e.totalSwipedViewMillis&&mK.encode({value:e.totalSwipedViewMillis},t.uint32(18).fork()).ldelim(),void 0!==e.lensOptionId&&mJ.encode({value:e.lensOptionId},t.uint32(26).fork()).ldelim(),void 0!==e.swipedOverCount&&mK.encode({value:e.swipedOverCount},t.uint32(34).fork()).ldelim(),void 0!==e.withSnapSend&&mX.encode({value:e.withSnapSend},t.uint32(42).fork()).ldelim(),void 0!==e.withStoryPost&&mX.encode({value:e.withStoryPost},t.uint32(50).fork()).ldelim(),void 0!==e.withMemoriesSave&&mX.encode({value:e.withMemoriesSave},t.uint32(58).fork()).ldelim(),void 0!==e.withSelfieCamera&&mX.encode({value:e.withSelfieCamera},t.uint32(66).fork()).ldelim(),void 0!==e.withWorldCamera&&mX.encode({value:e.withWorldCamera},t.uint32(74).fork()).ldelim(),void 0!==e.isAudioOn&&mX.encode({value:e.isAudioOn},t.uint32(82).fork()).ldelim(),void 0!==e.lensIndexPos&&mK.encode({value:e.lensIndexPos},t.uint32(90).fork()).ldelim(),0!==e.encryptedAdTrackData.length&&t.uint32(98).bytes(e.encryptedAdTrackData),0!==e.encryptedSponsoredUnlockableTargetingInfoData.length&&t.uint32(106).bytes(e.encryptedSponsoredUnlockableTargetingInfoData),0!==e.rankingId.length&&t.uint32(114).bytes(e.rankingId),0!==e.rankingData.length&&t.uint32(122).bytes(e.rankingData),void 0!==e.attachmentImpression&&v0.encode(e.attachmentImpression,t.uint32(130).fork()).ldelim(),0!==e.encGeoData.length&&t.uint32(138).bytes(e.encGeoData),void 0!==e.withAttachmentOpen&&mX.encode({value:e.withAttachmentOpen},t.uint32(146).fork()).ldelim(),0!==e.attachmentType&&t.uint32(152).int32(e.attachmentType),void 0!==e.snapSen
2dRecipientCount&&mK.encode({value:e.snapSendRecipientCount},t.uint32(162).fork()).ldelim(),void 0!==e.snapSendCount&&mK.encode({value:e.snapSendCount},t.uint32(170).fork()).ldelim(),void 0!==e.storyPostCount&&mK.encode({value:e.storyPostCount},t.uint32(178).fork()).ldelim(),void 0!==e.memoriesSaveCount&&mK.encode({value:e.memoriesSaveCount},t.uint32(186).fork()).ldelim(),void 0!==e.captureTimeMillis&&mK.encode({value:e.captureTimeMillis},t.uint32(194).fork()).ldelim(),void 0!==e.postCaptureTimeMillis&&mK.encode({value:e.postCaptureTimeMillis},t.uint32(202).fork()).ldelim(),void 0!==e.maxSwipeTimeMillis&&mK.encode({value:e.maxSwipeTimeMillis},t.uint32(210).fork()).ldelim(),void 0!==e.maxContinuousTimeMillis&&mK.encode({value:e.maxContinuousTimeMillis},t.uint32(218).fork()).ldelim(),void 0!==e.totalTimeMillis&&mK.encode({value:e.totalTimeMillis},t.uint32(226).fork()).ldelim(),void 0!==e.reactionTimestamp&&mK.encode({value:e.reactionTimestamp},t.uint32(234).fork()).ldelim(),void 0!==e.shareTimestamp&&mK.encode({value:e.shareTimestamp},t.uint32(242).fork()).ldelim(),void 0!==e.swipeUpTimestamp&&mK.encode({value:e.swipeUpTimestamp},t.uint32(250).fork()).ldelim(),void 0!==e.saveTimestamp&&mK.encode({value:e.saveTimestamp},t.uint32(258).fork()).ldelim(),void 0!==e.screenshotTimestamp&&mK.encode({value:e.screenshotTimestamp},t.uint32(266).fork()).ldelim(),0!==e.unlockType&&t.uint32(272).int32(e.unlockType),0!==e.lensCreativeId.length&&t.uint32(282).bytes(e.lensCreativeId),void 0!==e.firstFaceRenderTimestamp&&mK.encode({value:e.firstFaceRenderTimestamp},t.uint32(290).fork()).ldelim(),void 0!==e.firstTriggerTimestamp&&mK.encode({value:e.firstTriggerTimestamp},t.uint32(298).fork()).ldelim(),void 0!==e.lensPerformanceMetrics&&vF.encode(e.lensPerformanceMetrics,t.uint32(306).fork()).ldelim(),void 0!==e.adFlagData&&SP.encode(e.adFlagData,t.uint32(314).fork()).ldelim(),void 0!==e.lensProductImpressionCollectionTrack&&vW.encode(e.lensProductImpressionCollectionTrack,t.uint32(322).fork()).ldelim(),0!==e.lensSource&&t.uint32(328).int32(e.lensSource),e.stackedImpressions))AE.encode(i,t.uint32(338).fork()).ldelim();return void 0!==e.isCachedBeforeSession&&mX.encode({value:e.isCachedBeforeSession},t.uint32(346).fork()).ldelim(),void 0!==e.isCachedAfterSession&&mX.encode({value:e.isCachedAfterSession},t.uint32(354).fork()).ldelim(),0!==e.noFillServeItemId.length&&t.uint32(362).bytes(e.noFillServeItemId),void 0!==e.snapTakenCount&&mK.encode({value:e.snapTakenCount},t.uint32(370).fork()).ldelim(),void 0!==e.infoClickedCount&&mK.encode({value:e.infoClickedCount},t.uint32(378).fork()).ldelim(),void 0!==e.withMediaPlayPrecapture&&mX.encode({value:e.withMediaPlayPrecapture},t.uint32(386).fork()).ldelim(),void 0!==e.withMediaPlayPostcapture&&mX.encode({value:e.withMediaPlayPostcapture},t.uint32(394).fork()).ldelim(),void 0!==e.isRendered&&mX.encode({value:e.isRendered},t.uint32(402).fork()).ldelim(),0!==e.mixerRequestId.length&&t.uint32(410).bytes(e.mixerRequestId),void 0!==e.lensNamespace&&mJ.encode({value:e.lensNamespace},t.uint32(418).fork()).ldelim(),0!==e.sponsoredType&&t.uint32(424).int32(e.sponsoredType),void 0!==e.lensSessionId&&mJ.encode({value:e.lensSessionId},t.uint32(434).fork()).ldelim(),void 0!==e.deviceInfo&&vM.encode(e.deviceInfo,t.uint32(442).fork()).ldelim(),0!==e.cameraType&&t.uint32(448).int32(e.cameraType),void 0!==e.isTrackLoggedIndependently&&mX.encode({value:e.isTrackLoggedIndependently},t.uint32(458).fork()).ldelim(),0!==e.trackType&&t.uint32(464).int32(e.trackType),0!==e.clientTrackLoggingStrategy&&t.uint32(472).int32(e.clientTrackLoggingStrategy),0!==e.carouselExitEvent&&t.uint32(480).int32(e.carouselExitEvent),0!==e.independentLensImpressionTrigger&&t.uint32(488).int32(e.independentLensImpressionTrigger),void 0!==e.maxScreenPortionRendered&&mH.encode({value:e.maxScreenPortionRendered},t.uint32(498).fork()).ldelim(),void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(506).fork()).ldelim(),void 0!==e.postLensRenderUserInteractions&&Aa.encode(e.postLensRenderUserInteractions,t.uint32(514).fork()).ldelim(),void 0!==e.withCameraFlip&&mX.encode({value:e.withCameraFlip},t.uint32(522).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=At();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.lensId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.totalSwipedViewMillis=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.lensOptionId=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.swipedOverCount=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.withSnapSend=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.withStoryPost=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.withMemoriesSave=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.withSelfieCamera=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.withWorldCamera=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.isAudioOn=mX.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.lensIndexPos=mK.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.encryptedAdTrackData=i.bytes();continue;case 13:if(106!==e)break;a.encryptedSponsoredUnlockableTargetingInfoData=i.bytes();continue;case 14:if(114!==e)break;a.rankingId=i.bytes();continue;case 15:if(122!==e)break;a.rankingData=i.bytes();continue;case 16:if(130!==e)break;a.attachmentImpression=v0.decode(i,i.uint32());continue;case 17:if(138!==e)break;a.encGeoData=i.bytes();continue;case 18:if(146!==e)break;a.withAttachmentOpen=mX.decode(i,i.uint32()).value;continue;case 19:if(152!==e)break;a.attachmentType=i.int32();continue;case 20:if(162!==e)break;a.snapSendRecipientCount=mK.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.snapSendCount=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.storyPostCount=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.memoriesSaveCount=mK.decode(i,i.uint32()).value;continue;case 24:if(194!==e)break;a.captureTimeMillis=mK.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.postCaptureTimeMillis=mK.decode(i,i.uint32()).value;continue;case 26:if(210!==e)break;a.maxSwipeTimeMillis=mK.decode(i,i.uint32()).value;continue;case 27:if(218!==e)break;a.maxContinuousTimeMillis=mK.decode(i,i.uint32()).value;continue;case 28:if(226!==e)break;a.totalTimeMillis=mK.decode(i,i.uint32()).value;continue;case 29:if(234!==e)break;a.reactionTimestamp=mK.decode(i,i.uint32()).value;continue;case 30:if(242!==e)break;a.shareTimestamp=mK.decode(i,i.uint32()).value;continue;case 31:if(250!==e)break;a.swipeUpTimestamp=mK.decode(i,i.uint32()).value;continue;case 32:if(258!==e)break;a.saveTimestamp=mK.decode(i,i.uint32()).value;continue;case 33:if(266!==e)break;a.screenshotTimestamp=mK.decode(i,i.uint32()).value;continue;case 34:if(272!==e)break;a.unlockType=i.int32();continue;case 35:if(282!==e)break;a.lensCreativeId=i.bytes();continue;case 36:if(290!==e)break;a.firstFaceRenderTimestamp=mK.decode(i,i.uint32()).value;continue;case 37:if(298!==e)break;a.firstTriggerTimestamp=mK.decode(i,i.uint32()).value;continue;case 38:if(306!==e)break;a.lensPerformanceMetrics=vF.decode(i,i.uint32());continue;case 39:if(314!==e)break;a.adFlagData=SP.decode(i,i.uint32());continue;case 40:if(322!==e)break;a.lensProductImpressionCollectionTrack=vW.decode(i,i.uint32());continue;case 41:if(328!==e)break;a.lensSource=i.int32();continue;case 42:if(338!==e)break;a.stackedImpressions.push(AE.decode(i,i.uint32()));continue;case 43:if(346!==e)break;a.isCachedBeforeSession=mX.decode(i,i.uint32()).value;continue;case 44:if(354!==e)break;a.isCachedAfterSession=mX.decode(i,i.uint32()).value;continue;case 45:if(362!==e)break;a.noFillServeItemId=i.bytes();continue;case 46:if(370!==e)break;a.snapTakenCount=mK.decode(i,i.uint32()).value;continue;case 47:if(378!==e)break;
2a.infoClickedCount=mK.decode(i,i.uint32()).value;continue;case 48:if(386!==e)break;a.withMediaPlayPrecapture=mX.decode(i,i.uint32()).value;continue;case 49:if(394!==e)break;a.withMediaPlayPostcapture=mX.decode(i,i.uint32()).value;continue;case 50:if(402!==e)break;a.isRendered=mX.decode(i,i.uint32()).value;continue;case 51:if(410!==e)break;a.mixerRequestId=i.bytes();continue;case 52:if(418!==e)break;a.lensNamespace=mJ.decode(i,i.uint32()).value;continue;case 53:if(424!==e)break;a.sponsoredType=i.int32();continue;case 54:if(434!==e)break;a.lensSessionId=mJ.decode(i,i.uint32()).value;continue;case 55:if(442!==e)break;a.deviceInfo=vM.decode(i,i.uint32());continue;case 56:if(448!==e)break;a.cameraType=i.int32();continue;case 57:if(458!==e)break;a.isTrackLoggedIndependently=mX.decode(i,i.uint32()).value;continue;case 58:if(464!==e)break;a.trackType=i.int32();continue;case 59:if(472!==e)break;a.clientTrackLoggingStrategy=i.int32();continue;case 60:if(480!==e)break;a.carouselExitEvent=i.int32();continue;case 61:if(488!==e)break;a.independentLensImpressionTrigger=i.int32();continue;case 62:if(498!==e)break;a.maxScreenPortionRendered=mH.decode(i,i.uint32()).value;continue;case 63:if(506!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 64:if(514!==e)break;a.postLensRenderUserInteractions=Aa.decode(i,i.uint32());continue;case 65:if(522!==e)break;a.withCameraFlip=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ai.fromPartial(e??{}),fromPartial(e){let t=At();return t.lensId=e.lensId??void 0,t.totalSwipedViewMillis=e.totalSwipedViewMillis??void 0,t.lensOptionId=e.lensOptionId??void 0,t.swipedOverCount=e.swipedOverCount??void 0,t.withSnapSend=e.withSnapSend??void 0,t.withStoryPost=e.withStoryPost??void 0,t.withMemoriesSave=e.withMemoriesSave??void 0,t.withSelfieCamera=e.withSelfieCamera??void 0,t.withWorldCamera=e.withWorldCamera??void 0,t.isAudioOn=e.isAudioOn??void 0,t.lensIndexPos=e.lensIndexPos??void 0,t.encryptedAdTrackData=e.encryptedAdTrackData??new Uint8Array(0),t.encryptedSponsoredUnlockableTargetingInfoData=e.encryptedSponsoredUnlockableTargetingInfoData??new Uint8Array(0),t.rankingId=e.rankingId??new Uint8Array(0),t.rankingData=e.rankingData??new Uint8Array(0),t.attachmentImpression=void 0!==e.attachmentImpression&&null!==e.attachmentImpression?v0.fromPartial(e.attachmentImpression):void 0,t.encGeoData=e.encGeoData??new Uint8Array(0),t.withAttachmentOpen=e.withAttachmentOpen??void 0,t.attachmentType=e.attachmentType??0,t.snapSendRecipientCount=e.snapSen
2dRecipientCount??void 0,t.snapSendCount=e.snapSendCount??void 0,t.storyPostCount=e.storyPostCount??void 0,t.memoriesSaveCount=e.memoriesSaveCount??void 0,t.captureTimeMillis=e.captureTimeMillis??void 0,t.postCaptureTimeMillis=e.postCaptureTimeMillis??void 0,t.maxSwipeTimeMillis=e.maxSwipeTimeMillis??void 0,t.maxContinuousTimeMillis=e.maxContinuousTimeMillis??void 0,t.totalTimeMillis=e.totalTimeMillis??void 0,t.reactionTimestamp=e.reactionTimestamp??void 0,t.shareTimestamp=e.shareTimestamp??void 0,t.swipeUpTimestamp=e.swipeUpTimestamp??void 0,t.saveTimestamp=e.saveTimestamp??void 0,t.screenshotTimestamp=e.screenshotTimestamp??void 0,t.unlockType=e.unlockType??0,t.lensCreativeId=e.lensCreativeId??new Uint8Array(0),t.firstFaceRenderTimestamp=e.firstFaceRenderTimestamp??void 0,t.firstTriggerTimestamp=e.firstTriggerTimestamp??void 0,t.lensPerformanceMetrics=void 0!==e.lensPerformanceMetrics&&null!==e.lensPerformanceMetrics?vF.fromPartial(e.lensPerformanceMetrics):void 0,t.adFlagData=void 0!==e.adFlagData&&null!==e.adFlagData?SP.fromPartial(e.adFlagData):void 0,t.lensProductImpressionCollectionTrack=void 0!==e.lensProductImpressionCollectionTrack&&null!==e.lensProductImpressionCollectionTrack?vW.fromPartial(e.lensProductImpressionCollectionTrack):void 0,t.lensSource=e.lensSource??0,t.stackedImpressions=e.stackedImpressions?.map(e=>AE.fromPartial(e))||[],t.isCachedBeforeSession=e.isCachedBeforeSession??void 0,t.isCachedAfterSession=e.isCachedAfterSession??void 0,t.noFillServeItemId=e.noFillServeItemId??new Uint8Array(0),t.snapTakenCount=e.snapTakenCount??void 0,t.infoClickedCount=e.infoClickedCount??void 0,t.withMediaPlayPrecapture=e.withMediaPlayPrecapture??void 0,t.withMediaPlayPostcapture=e.withMediaPlayPostcapture??void 0,t.isRendered=e.isRendered??void 0,t.mixerRequestId=e.mixerRequestId??new Uint8Array(0),t.lensNamespace=e.lensNamespace??void 0,t.sponsoredType=e.sponsoredType??0,t.lensSe
2ssionId=e.lensSessionId??void 0,t.deviceInfo=void 0!==e.deviceInfo&&null!==e.deviceInfo?vM.fromPartial(e.deviceInfo):void 0,t.cameraType=e.cameraType??0,t.isTrackLoggedIndependently=e.isTrackLoggedIndependently??void 0,t.trackType=e.trackType??0,t.clientTrackLoggingStrategy=e.clientTrackLoggingStrategy??0,t.carouselExitEvent=e.carouselExitEvent??0,t.independentLensImpressionTrigger=e.independentLensImpressionTrigger??0,t.maxScreenPortionRendered=e.maxScreenPortionRendered??void 0,t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.postLensRenderUserInteractions=void 0!==e.postLensRenderUserInteractions&&null!==e.postLensRenderUserInteractions?Aa.fromPartial(e.postLensRenderUserInteractions):void 0,t.withCameraFlip=e.withCameraFlip??void 0,t}};function An(){return{withLensTap:void 0,creatorEvents:[],shoppingLensTrackingEvents:[]}}let Aa={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.withLensTap&&mX.encode({value:e.withLensTap},t.uint32(10).fork()).ldelim(),e.creatorEvents))Ar.encode(i,t.uint32(18).fork()).ldelim();for(let i of e.shoppingLensTrackingEvents)As.encode(i,t.uint32(26).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=An();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.withLensTap=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.creatorEvents.push(Ar.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.shoppingLensTrackingEvents.push(As.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Aa.fromPartial(e??{}),fromPartial(e){let t=An();return t.withLensTap=e.withLensTap??void 0,t.creatorEvents=e.creatorEvents?.map(e=>Ar.fromPartial(e))||[],t.shoppingLensTrackingEvents=e.shoppingLensTrackingEvents?.map(e=>As.fromPartial(e))||[],t}};function Ao(){return{trigger:0,totalCount:0}}let Ar={encode:(e,t=rA.default.Writer.create())=>(0!==e.trigger&&t.uint32(8).int32(e.trigger),0!==e.totalCount&&t.uint32(16).int32(e.totalCount),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ao();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.trigger=i.int32();continue;case 2:if(16!==e)break;a.totalCount=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ar.fromPartial(e??{}),fromPartial(e){let t=Ao();return t.trigger=e.trigger??0,t.totalCount=e.totalCount??0,t}};function Ad(){return{placementType:0,totalCount:0}}let As={encode:(e,t=rA.default.Writer.create())=>(0!==e.placementType&&t.uint32(8).int32(e.placementType),0!==e.totalCount&&t.uint32(16).int32(e.totalCount),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ad();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.placementType=i.int32();continue;case 2:if(16!==e)break;a.totalCount=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>As.fromPartial(e??{}),fromPartial(e){let t=Ad();return t.placementType=e.placementType??0,t.totalCount=e.totalCount??0,t}};function Al(){return{deviceInfo:void 0,lensTileImpressions:[]}}let Ac={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.deviceInfo&&vM.encode(e.deviceInfo,t.uint32(10).fork()).ldelim(),e.lensTileImpressions))Ap.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Al();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.deviceInfo=vM.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.lensTileImpressions.push(Ap.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ac.fromPartial(e??{}),fromPartial(e){let t=Al();return t.deviceInfo=void 0!==e.deviceInfo&&null!==e.deviceInfo?vM.fromPartial(e.deviceInfo):void 0,t.lensTileImpressions=e.lensTileImpressions?.map(e=>Ap.fromPartial(e))||[],t}};function Au(){return{lensSessionId:void 0,lensImpression:void 0,tileImpression:void 0}}let Ap={encode:(e,t=rA.default.Writer.create())=>
2(void 0!==e.lensSessionId&&mJ.encode({value:e.lensSessionId},t.uint32(10).fork()).ldelim(),void 0!==e.lensImpression&&Ai.encode(e.lensImpression,t.uint32(18).fork()).ldelim(),void 0!==e.tileImpression&&AT.encode(e.tileImpression,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Au();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.lensSessionId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.lensImpression=Ai.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.tileImpression=AT.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ap.fromPartial(e??{}),fromPartial(e){let t=Au();return t.lensSessionId=e.lensSessionId??void 0,t.lensImpression=void 0!==e.lensImpression&&null!==e.lensImpression?Ai.fromPartial(e.lensImpression):void 0,t.tileImpression=void 0!==e.tileImpression&&null!==e.tileImpression?AT.fromPartial(e.tileImpression):void 0,t}};function Af(){return{lensId:void 0,encryptedAdTrackData:new Uint8Array(0),encryptedSponsoredUnlockableTargetingInfoData:new Uint8Array(0),rankingId:new Uint8Array(0),rankingData:new Uint8Array(0),encGeoData:new Uint8Array(0),lensCreativeId:new Uint8Array(0),adFlagData:void 0,tileTimeMillis:void 0,tileTapped:void 0,launchedSelfie:void 0,tileIndexPos:void 0,tileMaxViewedPercentage:void 0}}let AT={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.lensId&&mJ.encode({value:e.lensId},t.uint32(10).fork()).ldelim(),0!==e.encryptedAdTrackData.length&&t.uint32(18).bytes(e.encryptedAdTrackData),0!==e.encryptedSponsoredUnlockableTargetingInfoData.length&&t.uint32(26).bytes(e.encryptedSponsoredUnlockableTargetingInfoData),0!==e.rankingId.length&&t.uint32(34).bytes(e.rankingId),0!==e.rankingData.length&&t.uint32(42).bytes(e.rankingData),0!==e.encGeoData.length&&t.uint32(50).bytes(e.encGeoData),0!==e.lensCreativeId.length&&t.uint32(58).bytes(e.lensCreativeId),void 0!==e.adFlagData&&SP.encode(e.adFlagData,t.uint32(66).fork()).ldelim(),void 0!==e.tileTimeMillis&&mK.encode({value:e.tileTimeMillis},t.uint32(74).fork()).ldelim(),void 0!==e.tileTapped&&mX.encode({value:e.tileTapped},t.uint32(82).fork()).ldelim(),void 0!==e.launchedSelfie&&mX.encode({value:e.launchedSelfie},t.uint32(90).fork()).ldelim(),void 0!==e.tileIndexPos&&mK.encode({value:e.tileIndexPos},t.uint32(98).fork()).ldelim(),void 0!==e.tileMaxViewedPercentage&&mK.encode({value:e.tileMaxViewedPercentage},t.uint32(106).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Af();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.lensId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.encryptedAdTrackData=i.bytes();continue;case 3:if(26!==e)break;a.encryptedSponsoredUnlockableTargetingInfoData=i.bytes();continue;case 4:if(34!==e)break;a.rankingId=i.bytes();continue;case 5:if(42!==e)break;a.rankingData=i.bytes();continue;case 6:if(50!==e)break;a.encGeoData=i.bytes();continue;case 7:if(58!==e)break;a.lensCreativeId=i.bytes();continue;case 8:if(66!==e)break;a.adFlagData=SP.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.tileTimeMillis=mK.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.tileTapped=mX.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.launchedSelfie=mX.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.tileIndexPos=mK.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.tileMaxViewedPercentage=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AT.fromPartial(e??{}),fromPartial(e){let t=Af();return t.lensId=e.lensId??void 0,t.encryptedAdTrackData=e.encryptedAdTrackData??new Uint8Array(0),t.encryptedSponsoredUnlockableTargetingInfoData=e.encryptedSponsoredUnlockableTargetingInfoData??new Uint8Array(0),t.rankingId=e.rankingId??new Uint8Array(0),t.rankingData=e.rankingData??new Uint8Array(0),t.encGeoData=e.encGeoData??new Uint8Array(0),t.lensCreativeId=e.lensCreativeId??new Uint8Array(0),t.adFlagData=void 0!==e.adFlagData&&null!==e.adFlagData?SP.fromPartial(e.adFlagData):void 0,t.tileTimeMillis=e.tileTimeMillis??void 0,t.tileTapped=e.tileTapped??void 0,t.launchedSelfie=e.launchedSelfie??void 0,t.tileIndexPos=e.tileIndexPos??void 0,t.tileMaxViewedPercentage=e.tileMaxViewedPercentage??void 0,t}};function Am(){return{appliedLensIds:[],snapSendCount:void 0,storyPostCount:void 0,memoriesSaveCount:void 0}}let AE={encode(e,t=rA.default.Writer.create()){for(let i of e.appliedLensIds)mJ.encode({value:i},t.uint32(10).fork()).ldelim();
2return void 0!==e.snapSendCount&&mK.encode({value:e.snapSendCount},t.uint32(18).fork()).ldelim(),void 0!==e.storyPostCount&&mK.encode({value:e.storyPostCount},t.uint32(26).fork()).ldelim(),void 0!==e.memoriesSaveCount&&mK.encode({value:e.memoriesSaveCount},t.uint32(34).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Am();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.appliedLensIds.push(mJ.decode(i,i.uint32()).value);continue;case 2:if(18!==e)break;a.snapSendCount=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.storyPostCount=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.memoriesSaveCount=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AE.fromPartial(e??{}),fromPartial(e){let t=Am();return t.appliedLensIds=e.appliedLensIds?.map(e=>e)||[],t.snapSendCount=e.snapSendCount??void 0,t.storyPostCount=e.storyPostCount??void 0,t.memoriesSaveCount=e.memoriesSaveCount??void 0,t}};function A_(){return{commonSnapAdImpression:void 0,adToLensCarouselImpressions:[]}}let AS={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),e.adToLensCarouselImpressions))Ae.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=A_();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.adToLensCarouselImpressions.push(Ae.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AS.fromPartial(e??{}),fromPartial(e){let t=A_();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.adToLensCarouselImpressions=e.adToLensCarouselImpressions?.map(e=>Ae.fromPartial(e))||[],t}};function AI(){return{commonSnapAdImpression:void 0,didMessage:void 0}}let Av={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.didMessage&&mX.encode({value:e.didMessage},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AI();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.didMessage=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Av.fromPartial(e??{}),fromPartial(e){let t=AI();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.didMessage=e.didMessage??void 0,t}};function AA(){return{commonSnapAdImpression:void 0,placeProfileId:void 0}}let Ak={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.placeProfileId&&mJ.encode({value:e.placeProfileId},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.placeProfileId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ak.fromPartial(e??{}),fromPartial(e){let t=AA();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.placeProfileId=e.placeProfileId??void 0,t}};function Ab(){return{response:0}}(aD=tN||(tN={}))[aD.UNSET=0]="UNSET",aD[aD.NOT_TAPPED=1]="NOT_TAPPED",aD[aD.INTERESTED=2]="INTERESTED",aD[aD.NOT_INTERESTED=3]="NOT_INTERESTED",aD[aD.UNRECOGNIZED=-1]="UNRECOGNIZED";let Ag={encode:(e,t=rA.default.Writer.create())=>(0!==e.response&&t.uint32(8).int32(e.response),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ab();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.response=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ag.fromPartial(e??{}),fromPartial(e){let t=Ab();return t.response=e.response??0,t}};function AN(){return{red:0,green:0,blue:0,alpha:void 0}}let AR={encode:(e,t=rA.default.Writer.create())=>(0!==e.red&&t.uint32(13).float(e.red),0!==e.green&&t.uint32(21).float(e.green),0!==e.blue&&t.uint32(29).float(e.blue),void 0!==e.alpha&&mH.encode({value:e.alpha},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.red=i.float();continue;case 2:if(21!==e)break;a.green=i.float();continue;case 3:if(29!==e)break;a.blue=i.float();continue;case 4:if(34!==e)break;a.alpha=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AR.fromPartial(e??{}),fromPartial(e){let t=AN();return t.red=e.red??0,t.green=e.green??0,t.blue=e.blue??0,t.alpha=e.alpha??void 0,t}};function AP(){return{delayMs:void 0,durationMs:void 0}}let AO={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.delayMs&&mH.encode({value:e.delayMs},t.uint32(10).fork()).ldelim(),void 0!==e.durationMs&&mH.encode({value:e.durationMs},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.delayMs=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.durationMs=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AO.fromPartial(e??{}),fromPartial(e){let t=AP();return t.delayMs=e.delayMs??void 0,t.durationMs=e.durationMs??void 0,t}};function AC(){return{alpha:void 0,directionDegrees:void 0}}let Ay={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.alpha&&mH.encode({value:e.alpha},t.uint32(10).fork()).ldelim(),void 0!==e.directionDegrees&&mK.encode({value:e.directionDegrees},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.alpha=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.directionDegrees=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ay.fromPartial(e??{}),fromPartial(e){let t=AC();return t.alpha=e.alpha??void 0,t.directionDegrees=e.directionDegrees??void 0,t}};function Ah(){return{initialProperties:void 0,stages:[]}}let AL={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.initialProperties&&AU.encode(e.initialProperties,t.uint32(10).fork()).ldelim(),e.stages))Aw.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Ah();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.initialProperties=AU.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.stages.push(Aw.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AL.fromPartial(e??{}),fromPartial(e){let t=Ah();return t.initialProperties=void 0!==e.initialProperties&&null!==e.initialProperties?AU.fromPartial(e.initialProperties):void 0,t.stages=e.stages?.map(e=>Aw.fromPartial(e))||[],t}};function AD(){return{animationTime:void 0,properties:void 0}}let Aw={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.animationTime&&AO.encode(e.animationTime,t.uint32(10).fork()).ldelim(),void 0!==e.properties&&AU.encode(e.properties,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AD();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.animationTime=AO.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.properties=AU.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Aw.fromPartial(e??{}),fromPartial(e){let t=AD();return t.animationTime=void 0!==e.animationTime&&null!==e.animationTime?AO.fromPartial(e.animationTime):void 0,t.properties=void 0!==e.properties&&null!==e.properties?AU.fromPartial(e.properties):void 0,t}};function AM(){return{width:void 0,height:void 0,backgroundColor:void 0,opacity:void 0,translationY:void 0,shimmer:void 0}}let AU={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.width&&mH.encode({value:e.width},t.uint32(10).fork()).ldelim(),void 0!==e.height&&mH.encode({value:e.height},t.uint32(18).fork()).ldelim(),void 0!==e.backgroundColor&&AR.encode(e.backgroundColor,t.uint32(26).fork()).ldelim(),void 0!==e.opacity&&mH.encode({value:e.opacity},t.uint32(34).fork()).ldelim(),void 0!==e.translationY&&mH.encode({value:e.translationY},t.uint32(42).fork()).ldelim(),void 0!==e.shimmer&&Ay.encode(e.shimmer,t.uint32(50).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AM();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.width=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.height=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.backgroundColor=AR.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.opacity=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.translationY=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.shimmer=Ay.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AU.fromPartial(e??{}),fromPartial(e){let t=AM();return t.width=e.width??void 0,t.height=e.height??void 0,t.backgroundColor=void 0!==e.backgroundColor&&null!==e.backgroundColor?AR.fromPartial(e.backgroundColor):void 0,t.opacity=e.opacity??void 0,t.translationY=e.translationY??void 0,t.shimmer=void 0!==e.shimmer&&null!==e.shimmer?Ay.fromPartial(e.shimmer):void 0,t}};function AV(){return{preferredWidthDp:void 0,preferredHeightDp:void 0,adStageAnimation:void 0}}let AB={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.preferredWidthDp&&mH.encode({value:e.preferredWidthDp},t.uint32(10).fork()).ldelim(),void 0!==e.preferredHeightDp&&mH.encode({value:e.preferredHeightDp},t.uint32(18).fork()).ldelim(),void 0!==e.adStageAnimation&&AL.encode(e.adStageAnimation,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.preferredWidthDp=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.preferredHeightDp=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.adStageAnimation=AL.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AB.fromPartial(e??{}),fromPartial(e){let t=AV();return t.preferredWidthDp=e.preferredWidthDp??void 0,t.preferredHeightDp=e.preferredHeightDp??void 0,t.adStageAnimation=void 0!==e.adStageAnimation&&null!==e.adStageAnimation?AL.fromPartial(e.adStageAnimation):void 0,t}};function AF(){return{preloadTriggeredTsMs:void 0,preloadedTsMs:void 0,triggeredTsMs:void 0,presentedTsMs:void 0,wasBiometricShown:void 0,skanStartImpressionTsMs:void 0,skanEndImpressionTsMs:void 0,frame:void 0,tap:void 0,appInactivityTriggeredTsMs:[],cumulativeViewTimeSeconds:void 0,error:void 0,erroredTsMs:void 0}}let AG={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.preloadTriggeredTsMs&&mK.encode({value:e.preloadTriggeredTsMs},t.uint32(10).fork()).ldelim(),void 0!==e.preloadedTsMs&&mK.encode({value:e.preloadedTsMs},t.uint32(18).fork()).ldelim(),void 0!==e.triggeredTsMs&&mK.encode({value:e.triggeredTsMs},t.uint32(26).fork()).ldelim(),void 0!==e.presentedTsMs&&mK.encode({value:e.presentedTsMs},t.uint32(34).fork()).ldelim(),void 0!==e.wasBiometricShown&&mX.encode({value:e.wasBiometricShown},t.uint32(42).fork()).ldelim(),void 0!==e.skanStartImpressionTsMs&&mK.encode({value:e.skanStartImpressionTsMs},t.uint32(50).fork()).ldelim(),void 0!==e.skanEndImpressionTsMs&&mK.encode({value:e.skanEndImpressionTsMs},t.uint32(58).fork()).ldelim(),void 0!==e.frame&&Ax.encode(e.frame,t.uint32(66).fork()).ldelim(),void 0!==e.tap&&AY.encode(e.tap,t.uint32(74).fork()).ldelim(),e.appInactivityTriggeredTsMs))mK.encode({value:i},t.uint32(82).fork()).ldelim();return void 0!==e.cumulativeViewTimeSeconds&&mH.encode({value:e.cumulativeViewTimeSeconds},t.uint32(90).fork()).ldelim(),void 0!==e.error&&A$.encode(e.error,t.uint32(98).fork()).ldelim(),void 0!==e.erroredTsMs&&mK.encode({value:e.erroredTsMs},t.uint32(106).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.preloadTriggeredTsMs=mK.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.preloadedTsMs=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.triggeredTsMs=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.presentedTsMs=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.wasBiometricShown=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.skanStartImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.skanEndImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.frame=Ax.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.tap=AY.decode(i,i.uint32());continue;case 10:if(82!==e)break;a.appInactivityTriggeredTsMs.push(mK.decode(i,i.uint32()).value);continue;case 11:if(90!==e)break;a.cumulativeViewTimeSeconds=mH.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.error=A$.decode(i,i.uint32());continue;case 13:if(106!==e)break;a.erroredTsMs=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AG.fromPartial(e??{}),fromPartial(e){let t=AF();return t.preloadTriggeredTsMs=e.preloadTriggeredTsMs??void 0,t.preloadedTsMs=e.preloadedTsMs??void 0,t.triggeredTsMs=e.triggeredTsMs??void 0,t.presentedTsMs=e.presentedTsMs??void 0,t.wasBiometricShown=e.wasBiometricShown??void 0,t.skanStartImpressionTsMs=e.skanStartImpressionTsMs??void 0,t.skanEndImpressionTsMs=e.skanEndImpressionTsMs??void 0,t.frame=void 0!==e.frame&&null!==e.frame?Ax.fromPartial(e.frame):void 0,t.tap=void 0!==e.tap&&null!==e.tap?AY.fromPartial(e.tap):void 0,t.appInactivityTriggeredTsMs=e.appInactivityTriggeredTsMs?.map(e=>e)||[],t.cumulativeViewTimeSeconds=e.cumulativeViewTimeSeconds??void 0,t.error=void 0!==e.error&&null!==e.error?A$.fromPartial(e.error):void 0,t.erroredTsMs=e.erroredTsMs??void 0,t}};function AW(){return{originXRelative:0,originYRelative:0,widthRelative:0,heightRelative:0}}let Ax={encode:(e,t=rA.default.Writer.create())=>(0!==e.originXRelative&&t.uint32(13).float(e.originXRelative),0!==e.originYRelative&&t.uint32(21).float(e.originYRelative),0!==e.widthRelative&&t.uint32(29).float(e.widthRelative),0!==e.heightRelative&&t.uint32(37).float(e.heightRelative),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.originXRelative=i.float();continue;case 2:if(21!==e)break;a.originYRelative=i.float();continue;case 3:if(29!==e)break;a.widthRelative=i.float();continue;case 4:if(37!==e)break;a.heightRelative=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Ax.fromPartial(e??{}),fromPartial(e){let t=AW();return t.originXRelative=e.originXRelative??0,t.originYRelative=e.originYRelative??0,t.widthRelative=e.widthRelative??0,t.heightRelative=e.heightRelative??0,t}};function AH(){return{posXRelative:0,posYRelative:0,tsMs:"0"}}let AY={encode:(e,t=rA.default.Writer.create())=>(0!==e.posXRelative&&t.uint32(13).float(e.posXRelative
2),0!==e.posYRelative&&t.uint32(21).float(e.posYRelative),"0"!==e.tsMs&&t.uint32(24).int64(e.tsMs),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.posXRelative=i.float();continue;case 2:if(21!==e)break;a.posYRelative=i.float();continue;case 3:if(24!==e)break;a.tsMs=i.int64().toString();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AY.fromPartial(e??{}),fromPartial(e){let t=AH();return t.posXRelative=e.posXRelative??0,t.posYRelative=e.posYRelative??0,t.tsMs=e.tsMs??"0",t}};function AK(){return{domain:"",code:0}}let A$={encode:(e,t=rA.default.Writer.create())=>(""!==e.domain&&t.uint32(10).string(e.domain),0!==e.code&&t.uint32(16).int32(e.code),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.domain=i.string();continue;case 2:if(16!==e)break;a.code=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>A$.fromPartial(e??{}),fromPartial(e){let t=AK();return t.domain=e.domain??"",t.code=e.code??0,t}};function Az(){return{commonSnapAdImpression:void 0,loadedOnEntry:void 0,loadedOnExit:void 0,visibleLoadTimeMs:void 0,skoverlayEnabled:void 0,customProductPageEnabled:void 0,appInstallStatus:0,isDefaultAppStoreSet:void 0,isAppStorePrioritized:void 0,packageIdHandlingAttachmentOpen:void 0,skOverlayMetrics:void 0,skanStartImpressionTsMs:void 0,skanEndImpressionTsMs:void 0,storeKitLoadedTsMs:void 0,infoCardConfig:void 0,hsdpAttempt:void 0,hasGoogleAccountAssociatedWithDevice:void 0,skanViewThroughViewTimeSeconds:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let Aq={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.loadedOnEntry&&mX.encode({value:e.loadedOnEntry},t.uint32(18).fork()).ldelim(),void 0!==e.loadedOnExit&&mX.encode({value:e.loadedOnExit},t.uint32(26).fork()).ldelim(),void 0!==e.visibleLoadTimeMs&&mH.encode({value:e.visibleLoadTimeMs},t.uint32(34).fork()).ldelim(),void 0!==e.skoverlayEnabled&&mX.encode({value:e.skoverlayEnabled},t.uint32(42).fork()).ldelim(),void 0!==e.customProductPageEnabled&&mX.encode({value:e.customProductPageEnabled},t.uint32(50).fork()).ldelim(),0!==e.appInstallStatus&&t.uint32(56).int32(e.appInstallStatus),void 0!==e.isDefaultAppStoreSet&&mX.encode({value:e.isDefaultAppStoreSet},t.uint32(66).fork()).ldelim(),void 0!==e.isAppStorePrioritized&&mX.encode({value:e.isAppStorePrioritized},t.uint32(74).fork()).ldelim(),void 0!==e.packageIdHandlingAttachmentOpen&&mJ.encode({value:e.packageIdHandlingAttachmentOpen},t.uint32(82).fork()).ldelim(),void 0!==e.skOverlayMetrics&&AG.encode(e.skOverlayMetrics,t.uint32(90).fork()).ldelim(),void 0!==e.skanStartImpressionTsMs&&mK.encode({value:e.skanStartImpressionTsMs},t.uint32(98).fork()).ldelim(),void 0!==e.skanEndImpressionTsMs&&mK.encode({value:e.skanEndImpressionTsMs},t.uint32(106).fork()).ldelim(),void 0!==e.storeKitLoadedTsMs&&mK.encode({value:e.storeKitLoadedTsMs},t.uint32(114).fork()).ldelim(),void 0!==e.infoCardConfig&&AB.encode(e.infoCardConfig,t.uint32(122).fork()).ldelim(),void 0!==e.hsdpAttempt&&mX.encode({value:e.hsdpAttempt},t.uint32(130).fork()).ldelim(),void 0!==e.hasGoogleAccountAssociatedWithDevice&&mX.encode({value:e.hasGoogleAccountAssociatedWithDevice},t.uint32(138).fork()).ldelim(),void 0!==e.skanViewThroughViewTimeSeconds&&mH.encode({value:e.skanViewThroughViewTimeSeconds},t.uint32(146).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=Az();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.loadedOnEntry=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.loadedOnExit=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.visibleLoadTimeMs=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.skoverlayEnabled=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.customProductPageEnabled=mX.decode(i,i.uint32()).value;continue;case 7:if(56!==e)break;a.appInstallStatus=i.int32();continue;case 8:if(66!==e)break;a.isDefaultAppStoreSet=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.isAppStorePrioritized=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.packageIdHandlingAttachmentOpen=mJ.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.skOverlayMetrics=AG.decode(i,i.uint32());continue;case 12:if(98!==e)break;a.skanStartImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.skanEndImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.storeKitLoadedTsMs=mK.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.infoCardConfig=AB.decode(i,i.uint32());continue;case 16:if(130!==e)break;a.hsdpAttempt=mX.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.hasGoogleAccountAssociatedWithDevice=mX.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;a.skanViewThroughViewTimeSeconds=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Aq.fromPartial(e??{}),fromPartial(e){let t=Az();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.loadedOnEntry=e.loadedOnEntry??void 0,t.loadedOnExit=e.loadedOnExit??void 0,t.visibleLoadTimeMs=e.visibleLoadTimeMs??void 0,t.skoverlayEnabled=e.skoverlayEnabled??void 0,t.customProductPageEnabled=e.customProductPageEnabled??void 0,t.appInstallStatus=e.appInstallStatus??0,t.isDefaultAppStoreSet=e.isDefaultAppStoreSet??void 0,t.isAppStorePrioritized=e.isAppStorePrioritized??void 0,t.packageIdHandlingAttachmentOpen=e.packageIdHandlingAttachmentOpen??void 0,t.skOverlayMetrics=void 0!==e.skOverlayMetrics&&null!==e.skOverlayMetrics?AG.fromPartial(e.skOverlayMetrics):void 0,t.skanStartImpressionTsMs=e.skanStartImpressionTsMs??void 0,t.skanEndImpressionTsMs=e.skanEndImpressionTsMs??void 0,t.storeKitLoadedTsMs=e.storeKitLoadedTsMs??void 0,t.infoCardConfig=void 0!==e.infoCardConfig&&null!==e.infoCardConfig?AB.fromPartial(e.infoCardConfig):void 0,t.hsdpAttempt=e.hsdpAttempt??void 0,t.hasGoogleAccountAssociatedWithDevice=e.hasGoogleAccountAssociatedWithDevice??void 0,t.skanViewThroughViewTimeSeconds=e.skanViewThroughViewTimeSeconds??void 0,t}};function AZ(){return{chatFeedBannerTapped:void 0,chatFeedBannerTapDestination:0}}(aw=tR||(tR={}))[aw.UNSET=0]="UNSET",aw[aw.AD_SNAP=1]="AD_SNAP",aw[aw.AD_ATTACHMENT=2]="AD_ATTACHMENT",aw[aw.PUBLIC_PROFILE=3]="PUBLIC_PROFILE",aw[aw.UNRECOGNIZED=-1]="UNRECOGNIZED";let Aj={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.chatFeedBannerTapped&&mX.encode({value:e.chatFeedBannerTapped},t.uint32(10).fork()).ldelim(),0!==e.chatFeedBannerTapDestination&&t.uint32(16).int32(e.chatFeedBannerTapDestination),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AZ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.chatFeedBannerTapped=mX.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.chatFeedBannerTapDestination=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>Aj.fromPartial(e??{}),fromPartial(e){let t=AZ();return t.chatFeedBannerTapped=e.chatFeedBannerTapped??void 0,t.chatFeedBannerTapDestination=e.chatFeedBannerTapDestination??0,t}};function AX(){return{chatFeedCellTapped:void 0,chatFeedCellTapDestination:0,chatFeedCellE
2xpectedFeedPosition:void 0,chatFeedCellActualFeedPosition:void 0,chatFeedCellMaxVisibilityPercentage:void 0,chatFeedCellAppearedAboveFold:void 0,isAiSponsoredSnap:void 0,isFirstChatConversationOpen:void 0}}(aM=tP||(tP={}))[aM.UNSET=0]="UNSET",aM[aM.AD_SNAP=1]="AD_SNAP",aM[aM.AD_ATTACHMENT=2]="AD_ATTACHMENT",aM[aM.PUBLIC_PROFILE=3]="PUBLIC_PROFILE",aM[aM.LIVE_STORY=4]="LIVE_STORY",aM[aM.CHAT=5]="CHAT",aM[aM.UNRECOGNIZED=-1]="UNRECOGNIZED";let AQ={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.chatFeedCellTapped&&mX.encode({value:e.chatFeedCellTapped},t.uint32(10).fork()).ldelim(),0!==e.chatFeedCellTapDestination&&t.uint32(16).int32(e.chatFeedCellTapDestination),void 0!==e.chatFeedCellExpectedFeedPosition&&mq.encode({value:e.chatFeedCellExpectedFeedPosition},t.uint32(26).fork()).ldelim(),void 0!==e.chatFeedCellActualFeedPosition&&mq.encode({value:e.chatFeedCellActualFeedPosition},t.uint32(34).fork()).ldelim(),void 0!==e.chatFeedCellMaxVisibilityPercentage&&mH.encode({value:e.chatFeedCellMaxVisibilityPercentage},t.uint32(42).fork()).ldelim(),void 0!==e.chatFeedCellAppearedAboveFold&&mX.encode({value:e.chatFeedCellAppearedAboveFold},t.uint32(50).fork()).ldelim(),void 0!==e.isAiSponsoredSnap&&mX.encode({value:e.isAiSponsoredSnap},t.uint32(58).fork()).ldelim(),void 0!==e.isFirstChatConversationOpen&&mX.encode({value:e.isFirstChatConversationOpen},t.uint32(66).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.chatFeedCellTapped=mX.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.chatFeedCellTapDestination=i.int32();continue;case 3:if(26!==e)break;a.chatFeedCellExpectedFeedPosition=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.chatFeedCellActualFeedPosition=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.chatFeedCellMaxVisibilityPercentage=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.chatFeedCellAppearedAboveFold=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.isAiSponsoredSnap=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.isFirstChatConversationOpen=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>AQ.fromPartial(e??{}),fromPartial(e){let t=AX();return t.chatFeedCellTapped=e.chatFeedCellTapped??void 0,t.chatFeedCellTapDestination=e.chatFeedCellTapDestination??0,t.chatFeedCellExpectedFeedPosition=e.chatFeedCellExpectedFeedPosition??void 0,t.chatFeedCellActualFeedPosition=e.chatFeedCellActualFeedPosition??void 0,t.chatFeedCellMaxVisibilityPercentage=e.chatFeedCellMaxVisibilityPercentage??void 0,t.chatFeedCellAppearedAboveFold=e.chatFeedCellAppearedAboveFold??void 0,t.isAiSponsoredSnap=e.isAiSponsoredSnap??void 0,t.isFirstChatConversationOpen=e.isFirstChatConversationOpen??void 0,t}};function AJ(){return{orgId:void 0,gameId:void 0,buildId:void 0,slotId:void 0,developerFacingRequestId:void 0}}let A0={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.orgId&&mJ.encode({value:e.orgId},t.uint32(10).fork()).ldelim(),void 0!==e.gameId&&mJ.encode({value:e.gameId},t.uint32(18).fork()).ldelim(),void 0!==e.buildId&&mJ.encode({value:e.buildId},t.uint32(26).fork()).ldelim(),void 0!==e.slotId&&mJ.encode({value:e.slotId},t.uint32(34).fork()).ldelim(),void 0!==e.developerFacingRequestId&&mJ.encode({value:e.developerFacingRequestId},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=AJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.orgId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.gameId=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.buildId=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.slotId=mJ.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.developerFacingRequestId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>A0.fromPartial(e??{}),fromPartial(e){let t=AJ();return t.orgId=e.orgId??void 0,t.gameId=e.gameId??void 0,t.buildId=e.buildId??void 0,t.slotId=e.slotId??void 0,t.developerFacingRequestId=e.developerFacingRequestId??void 0,t}};function A2(){return{preferredImageSizeDp:void 0}}let A3={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.preferredImageSizeDp&&mH.encode({value:e.preferredImageSizeDp},t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=A2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.preferredImageSizeDp=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>A3.fromPartial(e??{}),fromPartial(e){let t=A2();return t.preferredImageSizeDp=e.preferredImageSizeDp??void 0,t}};function A1(){return{source:0,dpaProductId:void 0,tileIndex:void 0,sourceRelativeLocationX:void 0,sourceRelativeLocationY:void 0,screenRelativeLocationX:void 0,screenRelativeLocationY:void 0,timestampMillis:void 0}}(aU=tO||(tO={}))[aU.UNSET=0]="UNSET",aU[aU.TILE=1]="TILE",aU[aU.PILL=2]="PILL",aU[aU.GRI
2D=3]="GRID",aU[aU.BOTTOM_SHEET=4]="BOTTOM_SHEET",aU[aU.BOTTOM_SHEET_TILE=5]="BOTTOM_SHEET_TILE",aU[aU.UNRECOGNIZED=-1]="UNRECOGNIZED";let A4={encode:(e,t=rA.default.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),void 0!==e.dpaProductId&&mK.encode({value:e.dpaProductId},t.uint32(18).fork()).ldelim(),void 0!==e.tileIndex&&mZ.encode({value:e.tileIndex},t.uint32(26).fork()).ldelim(),void 0!==e.sourceRelativeLocationX&&mH.encode({value:e.sourceRelativeLocationX},t.uint32(34).fork()).ldelim(),void 0!==e.sourceRelativeLocationY&&mH.encode({value:e.sourceRelativeLocationY},t.uint32(42).fork()).ldelim(),void 0!==e.screenRelativeLocationX&&mH.encode({value:e.screenRelativeLocationX},t.uint32(50).fork()).ldelim(),void 0!==e.screenRelativeLocationY&&mH.encode({value:e.screenRelativeLocationY},t.uint32(58).fork()).ldelim(),void 0!==e.timestampMillis&&mK.encode({value:e.timestampMillis},t.uint32(66).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=A1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.source=i.int32();continue;case 2:if(18!==e)break;a.dpaProductId=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.tileIndex=mZ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.sourceRelativeLocationX=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.sourceRelativeLocationY=mH.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.screenRelativeLocationX=mH.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.screenRelativeLocationY=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.timestampMillis=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>A4.fromPartial(e??{}),fromPartial(e){let t=A1();return t.source=e.source??0,t.dpaProductId=e.dpaProductId??void 0,t.tileIndex=e.tileIndex??void 0,t.sourceRelativeLocationX=e.sourceRelativeLocationX??void 0,t.sourceRelativeLocationY=e.sourceRelativeLocationY??void 0,t.screenRelativeLocationX=e.screenRelativeLocationX??void 0,t.screenRelativeLocationY=e.screenRelativeLocationY??void 0,t.timestampMillis=e.timestampMillis??void 0,t}};function A8(){return{pharmaDisclaimerImpressions:void 0,pharmaDisclaimerClickInteractions:void 0}}let A6={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.pharmaDisclaimerImpressions&&A5.encode(e.pharmaDisclaimerImpressions,t.uint32(10).fork()).ldelim(),void 0!==e.pharmaDisclaimerClickInteractions&&ke.encode(e.pharmaDisclaimerClickInteractions,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=A8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.pharmaDisclaimerImpressions=A5.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.pharmaDisclaimerClickInteractions=ke.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>A6.fromPartial(e??{}),fromPartial(e){let t=A8();return t.pharmaDisclaimerImpressions=void 0!==e.pharmaDisclaimerImpressions&&null!==e.pharmaDisclaimerImpressions?A5.fromPartial(e.pharmaDisclaimerImpressions):void 0,t.pharmaDisclaimerClickInteractions=void 0!==e.pharmaDisclaimerClickInteractions&&null!==e.pharmaDisclaimerClickInteractions?ke.fromPartial(e.pharmaDisclaimerClickInteractions):void 0,t}};function A7(){return{importantSafetyInformation:void 0,prescribingInformation:void 0,medicationGuide:void 0,patientInformation:void 0,brandWebsite:void 0}}let A5={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.importantSafetyInformation&&mX.encode({value:e.importantSafetyInformation},t.uint32(10).fork()).ldelim(),void 0!==e.prescribingInformation&&mX.encode({value:e.prescribingInformation},t.uint32(18).fork()).ldelim(),void 0!==e.medicationGuide&&mX.encode({value:e.medicationGuide},t.uint32(26).fork()).ldelim(),void 0!==e.patientInformation&&mX.encode({value:e.patientInformation},t.uint32(34).fork()).ldelim(),void 0!==e.brandWebsite&&mX.encode({value:e.brandWebsite},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=A7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.importantSafetyInformation=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.prescribingInformation=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.medicationGuide=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.patientInformation=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.brandWebsite=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>A5.fromPartial(e??{}),fromPartial(e){let t=A7();return t.importantSafetyInformation=e.importantSafetyInformation??void 0,t.prescribingInformation=e.prescribingInformation??void 0,t.medicationGuide=e.medicationGuide??void 0,t.patientInformation=e.patientInformation??void 0,t.brandWebsite=e.brandWebsite??void 0,t}};function A9(){return{importantSafetyInformation:void 0,prescribingInformation:void 0,medicationGuide:void 0,patientInformation:void 0,brandWebsite:void 0}}let ke={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.importantSafetyInformation&&mX.encode({value:e.importantSafetyInformation},t.uint32(10).fork()).ldelim(),void 0!==e.prescribingInformation&&mX.encode({value:e.prescribingInformation},t.uint32(18).fork()).ldelim(),void 0!==e.medicationGuide&&mX.encode({value:e.medicationGuide},t.uint32(26).fork()).ldelim(),void 0!==e.patientInformation&&mX.encode({value:e.patientInformation},t.uint32(34).fork()).ldelim(),void 0!==e.brandWebsite&&mX.encode({value:e.brandWebsite},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=A9();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.importantSafetyInformation=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.prescribingInformation=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.medicationGuide=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.patientInformation=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.brandWebsite=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ke.fromPartial(e??{}),fromPartial(e){let t=A9();return t.importantSafetyInformation=e.importantSafetyInformation??void 0,t.prescribingInformation=e.prescribingInformation??void 0,t.medicationGuide=e.medicationGuide??void 0,t.patientInformation=e.patientInformation??void 0,t.brandWebsite=e.brandWebsite??void 0,t}};function kt(){return{commonSnapAdImpression:void 0,loadedOnEntry:void 0,loadedOnExit:void 0,visibleLoadTime:void 0,pixelCookieSet:void 0,initalPageStatusCode:void 0,webpageHalfOpenViewedSeconds:void 0,webpageFatalError:void 0,apkDownloaded:void 0,webviewContext:void 0,webviewExitMethod:0,packageIdHandlingAttachmentOpen:void 0,scbV2Used:void 0,infoCardConfig:void 0,pharmaAd:void 0}}(aV=tC||(tC={}))[aV.WEBVIEW_EXIT_METHOD_UNSET=0]="WEBVIEW_EXIT_METHOD_UNSET",aV[aV.EXIT_BUTTON=1]="EXIT_BUTTON",aV[aV.APP_BACKGROUND=2]="APP_BACKGROUND",aV[aV.SWIPE_DOWN=3]="SWIPE_DOWN",aV[aV.PAGE_BACK=4]="PAGE_BACK",aV[aV.SWIPE_RIGHT=5]="SWIPE_RIGHT",aV[aV.UNRECOGNIZED=-1]="UNRECOGNIZED";let ki={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.loadedOnEntry&&mX.encode({value:e.loadedOnEntry},t.uint32(18).fork()).ldelim(),void 0!==e.loadedOnExit&&mX.encode({value:e.loadedOnExit},t.uint32(26).fork()).ldelim(),void 0!==e.visibleLoadTime&&mH.encode({value:e.visibleLoadTime},t.uint32(34).fork()).ldelim(),void 0!==e.pixelCookieSet&&mX.encode({value:e.pixelCookieSet},t.uint32(42).fork()).ldelim(),void 0!==e.initalPageStatusCode&&mq.encode({value:e.initalPageStatusCode},t.uint32(50).fork()).ldelim(),void 0!==e.webpageHalfOpenViewedSeconds&&mH.encode({value:e.webpageHalfOpenViewedSeconds},t.uint32(58).fork()).ldelim(),void 0!==e.webpageFatalError&&mX.encode({value:e.webpageFatalError},t.uint32(66).fork()).ldelim(),void 0!==e.apkDownloaded&&mX.encode({value:e.apkDownloaded},t.uint32(74).fork()).ldelim(),void 0!==e.webviewContext&&vX.encode(e.webviewContext,t.uint32(82).fork()).ldelim(),0!==e.webviewExitMethod&&t.uint32(88).int32(e.webviewExitMethod),void 0!==e.packageIdHandlingAttachmentOpen&&mJ.encode({value:e.packageIdHandlingAttachmentOpen},t.uint32(98).fork()).ldelim(),void 0!==e.scbV2Used&&mX.encode({value:e.scbV2Used},t.uint32(106).fork()).ldelim(),void 0!==e.infoCardConfig&&AB.encode(e.infoCardConfig,t.uint32(114).fork()).ldelim(),void 0!==e.pharmaAd&&A6.encode(e.pharmaAd,t.uint32(122).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kt();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.loadedOnEntry=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.loadedOnExit=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.visibleLoadTime=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.pixelCookieSet=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.initalPageStatusCode=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.webpageHalfOpenViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.webpageFatalError=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.apkDownloaded=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.webviewContext=vX.decode(i,i.uint32());continue;case 11:if(88!==e)break;a.webviewExitMethod=i.int32();continue;case 12:if(98!==e)break;a.packageIdHandlingAttachmentOpen=mJ.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.scbV2Used=mX.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.infoCardConfig=AB.decode(i,i.uint32());continue;case 15:if(122!==e)break;a.pharmaAd=A6.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ki.fromPartial(e??{}),fromPartial(e){let t=kt();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.loadedOnEntry=e.loadedOnEntry??void 0,t.loadedOnExit=e.loadedOnExit??void 0,t.visibleLoadTime=e.visibleLoadTime??void 0,t.pixelCookieSet=e.pixelCookieSet??void 0,t.initalPageStatusCode=e.initalPageStatusCode??void 0,t.webpageHalfOpenViewedSeconds=e.webpageHalfOpenViewedSeconds??void 0,t.webpageFatalError=e.webpageFatalError??void 0,t.apkDownloaded=e.apkDownloaded??void 0,t.webviewContext=void 0!==e.webviewContext&&null!==e.webviewContext?vX.fromPartial(e.webviewContext):void 0,t.webviewExitMethod=e.webviewExitMethod??0,t.packageIdHandlingAttachmentOpen=e.packageIdHandlingAttachmentOpen??void 0,t.scbV2Used=e.scbV2Used??void 0,t.infoCardConfig=void 0!==e.infoCardConfig&&null!==e.infoCardConfig?AB.fromPartial(e.infoCardConfig):void 0,t.pharmaAd=void 0!==e.pharmaAd&&null!==e.pharmaAd?A6.fromPartial(e.pharmaAd):void 0,t}};function kn(){return{commonSnapAdImpression:void 0,deepLinkedToAppCount:void 0,deepLinkedToAppInstallCount:void 0,deepLink
2FallbackToWebview:void 0,deeplinkUri:"",customProductPageEnabled:void 0,deepLinkFallbackToDefaultBrowser:void 0,remoteWebpageImpressionTrack:void 0,appInstallStatus:0,appInstall:void 0,ctaActivity:0,infoCardConfig:void 0,deepLinkFallbackType:0,isInternalDeepLink:void 0,skanStartImpressionTsMs:void 0,skanEndImpressionTsMs:void 0,skanViewThroughViewTimeSeconds:void 0}}let ka={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.deepLinkedToAppCount&&mq.encode({value:e.deepLinkedToAppCount},t.uint32(18).fork()).ldelim(),void 0!==e.deepLinkedToAppInstallCount&&mq.encode({value:e.deepLinkedToAppInstallCount},t.uint32(26).fork()).ldelim(),void 0!==e.deepLinkFallbackToWebview&&mX.encode({value:e.deepLinkFallbackToWebview},t.uint32(34).fork()).ldelim(),""!==e.deeplinkUri&&t.uint32(42).string(e.deeplinkUri),void 0!==e.customProductPageEnabled&&mX.encode({value:e.customProductPageEnabled},t.uint32(50).fork()).ldelim(),void 0!==e.deepLinkFallbackToDefaultBrowser&&mX.encode({value:e.deepLinkFallbackToDefaultBrowser},t.uint32(58).fork()).ldelim(),void 0!==e.remoteWebpageImpressionTrack&&ki.encode(e.remoteWebpageImpressionTrack,t.uint32(66).fork()).ldelim(),0!==e.appInstallStatus&&t.uint32(72).int32(e.appInstallStatus),void 0!==e.appInstall&&Aq.encode(e.appInstall,t.uint32(82).fork()).ldelim(),0!==e.ctaActivity&&t.uint32(88).int32(e.ctaActivity),void 0!==e.infoCardConfig&&AB.encode(e.infoCardConfig,t.uint32(98).fork()).ldelim(),0!==e.deepLinkFallbackType&&t.uint32(104).int32(e.deepLinkFallbackType),void 0!==e.isInternalDeepLink&&mX.encode({value:e.isInternalDeepLink},t.uint32(114).fork()).ldelim(),void 0!==e.skanStartImpressionTsMs&&mK.encode({value:e.skanStartImpressionTsMs},t.uint32(122).fork()).ldelim(),void 0!==e.skanEndImpressionTsMs&&mK.encode({value:e.skanEndImpressionTsMs},t.uint32(130).fork()).ldelim(),void 0!==e.skanViewThroughViewTimeSeconds&&mH.encode({value:e.skanViewThroughViewTimeSeconds},t.uint32(138).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kn();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.deepLinkedToAppCount=mq.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.deepLinkedToAppInstallCount=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.deepLinkFallbackToWebview=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.deeplinkUri=i.string();continue;case 6:if(50!==e)break;a.customProductPageEnabled=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.deepLinkFallbackToDefaultBrowser=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.remoteWebpageImpressionTrack=ki.decode(i,i.uint32());continue;case 9:if(72!==e)break;a.appInstallStatus=i.int32();continue;case 10:if(82!==e)break;a.appInstall=Aq.decode(i,i.uint32());continue;case 11:if(88!==e)break;a.ctaActivity=i.int32();continue;case 12:if(98!==e)break;a.infoCardConfig=AB.decode(i,i.uint32());continue;case 13:if(104!==e)break;a.deepLinkFallbackType=i.int32();continue;case 14:if(114!==e)break;a.isInternalDeepLink=mX.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.skanStartImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.skanEndImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.skanViewThroughViewTimeSeconds=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ka.fromPartial(e??{}),fromPartial(e){let t=kn();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.deepLinkedToAppCount=e.deepLinkedToAppCount??void 0,t.deepLinkedToAppInstallCount=e.deepLinkedToAppInstallCount??void 0,t.deepLinkFallbackToWebview=e.deepLinkFallbackToWebview??void 0,t.deeplinkUri=e.deeplinkUri??"",t.customProductPageEnabled=e.customProductPageEnabled??void 0,t.deepLink
2FallbackToDefaultBrowser=e.deepLinkFallbackToDefaultBrowser??void 0,t.remoteWebpageImpressionTrack=void 0!==e.remoteWebpageImpressionTrack&&null!==e.remoteWebpageImpressionTrack?ki.fromPartial(e.remoteWebpageImpressionTrack):void 0,t.appInstallStatus=e.appInstallStatus??0,t.appInstall=void 0!==e.appInstall&&null!==e.appInstall?Aq.fromPartial(e.appInstall):void 0,t.ctaActivity=e.ctaActivity??0,t.infoCardConfig=void 0!==e.infoCardConfig&&null!==e.infoCardConfig?AB.fromPartial(e.infoCardConfig):void 0,t.deepLinkFallbackType=e.deepLinkFallbackType??0,t.isInternalDeepLink=e.isInternalDeepLink??void 0,t.skanStartImpressionTsMs=e.skanStartImpressionTsMs??void 0,t.skanEndImpressionTsMs=e.skanEndImpressionTsMs??void 0,t.skanViewThroughViewTimeSeconds=e.skanViewThroughViewTimeSeconds??void 0,t}};function ko(){return{index:void 0,productId:void 0}}let kr={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.index&&mq.encode({value:e.index},t.uint32(10).fork()).ldelim(),void 0!==e.productId&&mJ.encode({value:e.productId},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ko();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.index=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.productId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kr.fromPartial(e??{}),fromPartial(e){let t=ko();return t.index=e.index??void 0,t.productId=e.productId??void 0,t}};function kd(){return{commonSnapAdImpression:void 0,totalCatalogViewTime:void 0,totalShowcaseWebviewTime:void 0,productsViewed:void 0,productInteractions:[],storeOpened:void 0,totalStoreViewTime:void 0,lastViewedIndex:void 0}}let ks={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.totalCatalogViewTime&&mH.encode({value:e.totalCatalogViewTime},t.uint32(18).fork()).ldelim(),void 0!==e.totalShowcaseWebviewTime&&mH.encode({value:e.totalShowcaseWebviewTime},t.uint32(26).fork()).ldelim(),void 0!==e.productsViewed&&mq.encode({value:e.productsViewed},t.uint32(34).fork()).ldelim(),e.productInteractions))kr.encode(i,t.uint32(42).fork()).ldelim();return void 0!==e.storeOpened&&mX.encode({value:e.storeOpened},t.uint32(50).fork()).ldelim(),void 0!==e.totalStoreViewTime&&mH.encode({value:e.totalStoreViewTime},t.uint32(58).fork()).ldelim(),void 0!==e.lastViewedIndex&&mq.encode({value:e.lastViewedIndex},t.uint32(66).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kd();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.totalCatalogViewTime=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.totalShowcaseWebviewTime=mH.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.productsViewed=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.productInteractions.push(kr.decode(i,i.uint32()));continue;case 6:if(50!==e)break;a.storeOpened=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.totalStoreViewTime=mH.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.lastViewedIndex=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ks.fromPartial(e??{}),fromPartial(e){let t=kd();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.totalCatalogViewTime=e.totalCatalogViewTime??void 0,t.totalShowcaseWebviewTime=e.totalShowcaseWebviewTime??void 0,t.productsViewed=e.productsViewed??void 0,t.productInteractions=e.productInteractions?.map(e=>kr.fromPartial(e))||[],t.storeOpened=e.storeOpened??void 0,t.totalStoreViewTime=e.totalStoreViewTime??void 0,t.lastViewedIndex=e.lastViewedIndex??void 0,t}};function kl(){return{topsnapImpression:void 0,collectionItemsTrack:[],collectionInteractionsTrack:[],collectionCardConfig:void 0}}(aB=ty||(ty={}))[aB.VIEW_STATE_UNSET=0]="VIEW_STATE_UNSET",aB[aB.INTERACTED=1]="INTERACTED",aB[aB.VIEWED=2]="VIEWED",aB[aB.NOT_VIEWED=3]="NOT_VIEWED",aB[aB.UNRECOGNIZED=-1]="UNRECOGNIZED";let kc={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.topsnapImpression&&vh.encode(e.topsnapImpression,t.uint32(10).fork()).ldelim(),e.collectionItemsTrack))kp.encode(i,t.uint32(18).fork()).ldelim();for(let i of e.collectionInteractionsTrack)A4.encode(i,t.uint32(26).fork()).ldelim();return void 0!==e.collectionCardConfig&&A3.encode(e.collectionCardConfig,t.uint32(34).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kl();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.topsnapImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.collectionItemsTrack.push(kp.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.collectionInteractionsTrack.push(A4.decode(i,i.uint32()));continue;case 4:if(34!==e)break;a.collectionCardConfig=A3.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kc.fromPartial(e??{}),fromPartial(e){let t=kl();return t.topsnapImpression=void 0!==e.topsnapImpression&&null!==e.topsnapImpression?vh.fromPartial(e.topsnapImpression):void 0,t.collectionItemsTrack=e.collectionItemsTrack?.map(e=>kp.fromPartial(e))||[],t.collectionInteractionsTrack=e.collectionInteractionsTrack?.map(e=>A4.fromPartial(e))||[],t.collectionCardConfig=void 0!==e.collectionCardConfig&&null!==e.collectionCardConfig?A3.fromPartial(e.collectionCardConfig):void 0,t}};function ku(){return{productId:void 0,positionIndex:void 0,attachmentType:0,typedTrackData:void 0,viewState:0}}let kp={encode(e,t=rA.default.Writer.create()){switch(void 0!==e.productId&&mJ.encode({value:e.productId},t.uint32(10).fork()).ldelim(),void 0!==e.positionIndex&&mq.encode({value:e.positionIndex},t.uint32(18).fork()).ldelim(),0!==e.attachmentType&&t.uint32(24).int32(e.attachmentType),e.typedTrackData?.$case){case"remoteWebpage":ki.encode(e.typedTrackData.remoteWebpage,t.uint32(34).fork()).ldelim();break;case"deepLink":ka.encode(e.typedTrackData.deepLink,t.uint32(42).fork()).ldelim();break;case"showcase":ks.encode(e.typedTrackData.showcase,t.uint32(50).fork()).ldelim();break;case"appInstall":Aq.encode(e.typedTrackData.appInstall,t.uint32(58).fork()).ldelim()}return 0!==e.viewState&&t.uint32(64).int32(e.viewState),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ku();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.productId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.positionIndex=mq.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.attachmentType=i.int32();continue;case 4:if(34!==e)break;a.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.decode(i,i.uint32())};continue;case 5:if(42!==e)break;a.typedTrackData={$case:"deepLink",deepLink:ka.decode(i,i.uint32())};continue;case 6:if(50!==e)break;a.typedTrackData={$case:"showcase",showcase:ks.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.typedTrackData={$case:"appInstall",appInstall:Aq.decode(i,i.uint32())};continue;case 8:if(64!==e)break;a.viewState=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kp.fromPartial(e??{}),fromPartial(e){let t=ku();return t.productId=e.productId??void 0,t.positionIndex=e.positionIndex??void 0,t.attachmentType=e.attachmentType??0,e.typedTrackData?.$case==="remoteWebpage"&&e.typedTrackData?.remoteWebpage!==void 0&&e.typedTrackData?.remoteWebpage!==null&&(t.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.fromPartial(e.typedTrackData.remoteWebpage)}),e.typedTrackData?.$case==="deepLink"&&e.typedTrackData?.deepLink!==void 0&&e.typedTrackData?.deepLink!==null&&(t.typedTrackData={$case:"deepLink",deepLink:ka.fromPartial(e.typedTrackData.deepLink)}),e.typedTrackData?.$case==="showcase"&&e.typedTrackData?.showcase!==void 0&&e.typedTrackData?.showcase!==null&&(t.typedTrackData={$case:"showcase",showcase:ks.fromPartial(e.typedTrackData.showcase)}),e.typedTrackData?.$case==="appInstall"&&e.typedTrackData?.appInstall!==void 0&&e.typedTrackData?.appInstall!==null&&(t.typedTrackData={$case:"appInstall",appInstall:Aq.fromPartial(e.typedTrackData.appInstall)}),t.viewState=e.viewState??0,t}};function kf(){return{snapCreationInfo:void 0,snapSessionId:new Uint8Array(0),carouselSize:void 0,filterImpressions:[],deviceInfo:void 0,snapSessionIdString:""}}(aF=th||(th={}))[aF.UNKNOWN_FILTER_TYPE=0]="UNKNOWN_FILTER_TYPE",aF[aF.GEO_FILTER=1]="GEO_FILTER",aF[aF.BITMOJI_FILTER=2]="BITMOJI_FILTER",aF[aF.FRAME_FILTER=3]="FRAME_FILTER",aF[aF.UNRECOGNIZED=-1]="UNRECOGNIZED";let kT={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.snapCreationInfo&&vK.encode(e.snapCreationInfo,t.uint32(10).fork()).ldelim(),0!==e.snapSessionId.length&&t.uint32(18).bytes(e.snapSessionId),void 0!==e.carouselSize&&mK.encode({value:e.carouselSize},t.uint32(26).fork()).ldelim(),e.filterImpressions))kE.encode(i,t.uint32(34).fork()).ldelim();return void 0!==e.deviceInfo&&vM.encode(e.deviceInfo,t.uint32(42).fork()).ldelim(),""!==e.snapSessionIdString&&t.uint32(50).string(e.snapSessionIdString),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kf();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapCreationInfo=vK.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.snapSessionId=i.bytes();continue;case 3:if(26!==e)break;a.carouselSize=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.filterImpressions.push(kE.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.deviceInfo=vM.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.snapSessionIdString=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kT.fromPartial(e??{}),fromPartial(e){let t=kf();return t.snapCreationInfo=void 0!==e.snapCreationInfo&&null!==e.snapCreationInfo?vK.fromPartial(e.snapCreationInfo):void 0,t.snapSessionId=e.snapSessionId??new Uint8Array(0),t.carouselSize=e.carouselSize??void 0,t.filterImpressions=e.filterImpressions?.map(e=>kE.fromPartial(e))||[],t.deviceInfo=void 0!==e.deviceInfo&&null!==e.deviceInfo?vM.fromPartial(e.deviceInfo):void 0,t.snapSessionIdString=e.snapSessionIdString??"",t}};function km(){return{geofilterId:void 0,totalSwipedViewMillis:void 0,encGeoData:new Uint8Array(0),swipedOverCount:void 0,withSnapSend:void 0,withStoryPost:void 0,withMemoriesSave:void 0,filterIndexPos:void 0,geofilterType:0,encryptedAdTrackData:new Uint8Array(0),filterGeofilterIndexPos:void 0,firstSeenTimestamp:void 0,encryptedSponsoredUnlockableTargetingInfoData:new Uint8Array(0),rankingId:new Uint8Array(0),rankingData:new Uint8Array(0),snapSendRecipientCount:void 0,snapSendCount:void 0,storyPostCount:void 0,memoriesSaveCount:void 0,captureTimeMillis:void 0,postCaptureTimeMillis:void 0,maxSwipeTimeMillis:void 0,maxContinuousTimeMillis:void 0,totalTimeMillis:void 0,reactionTimestamp:void 0,shareTimestamp:void 0,swipeUpTimestamp:void 0,saveTimestamp:void 0,screenshotTimestamp:void 0,attachmentImpression:void 0,withAttachmentOpen:void 0,attachmentType:0,adFlagData:void 0}}let kE={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.geofilterId&&mJ.encode({value:e.geofilterId},t.uint32(10).fork()).ldelim(),void 0!==e.totalSwipedViewMillis&&mK.encode({value:e.totalSwipedViewMillis},t.uint32(18).fork()).ldelim(),0!==e.encGeoData.length&&t.uint32(26).bytes(e.encGeoData),void 0!==e.swipedOverCount&&mK.encode({value:e.swipedOverCount},t.uint32(34).fork()).ldelim(),void 0!==e.withSnapSend&&mX.encode({value:e.withSnapSend},t.uint32(42).fork()).ldelim(),void 0!==e.withStoryPost&&mX.encode({value:e.withStoryPost},t.uint32(50).fork()).ldelim(),void 0!==e.withMemoriesSave&&mX.encode({value:e.withMemoriesSave},t.uint32(58).fork()).ldelim(),void 0!==e.filterIndexPos&&mK.encode({value:e.filterIndexPos},t.uint32(66).fork()).ldelim(),0!==e.geofilterType&&t.uint32(72).int32(e.geofilterType),0!==e.encryptedAdTrackData.length&&t.uint32(82).bytes(e.encryptedAdTrackData),void 0!==e.filterGeofilterIndexPos&&mK.encode({value:e.filterGeofilterIndexPos},t.uint32(90).fork()).ldelim(),void 0!==e.firstSeenTimestamp&&mK.encode({value:e.firstSeenTimestamp},t.uint32(98).fork()).ldelim(),0!==e.encryptedSponsoredUnlockableTargetingInfoData.length&&t.uint32(106).bytes(e.encryptedSponsoredUnlockableTargetingInfoData),0!==e.rankingId.length&&t.uint32(114).bytes(e.rankingId),0!==e.rankingData.length&&t.uint32(122).bytes(e.rankingData),void 0!==e.snapSen
2dRecipientCount&&mK.encode({value:e.snapSendRecipientCount},t.uint32(130).fork()).ldelim(),void 0!==e.snapSendCount&&mK.encode({value:e.snapSendCount},t.uint32(138).fork()).ldelim(),void 0!==e.storyPostCount&&mK.encode({value:e.storyPostCount},t.uint32(146).fork()).ldelim(),void 0!==e.memoriesSaveCount&&mK.encode({value:e.memoriesSaveCount},t.uint32(154).fork()).ldelim(),void 0!==e.captureTimeMillis&&mK.encode({value:e.captureTimeMillis},t.uint32(162).fork()).ldelim(),void 0!==e.postCaptureTimeMillis&&mK.encode({value:e.postCaptureTimeMillis},t.uint32(170).fork()).ldelim(),void 0!==e.maxSwipeTimeMillis&&mK.encode({value:e.maxSwipeTimeMillis},t.uint32(178).fork()).ldelim(),void 0!==e.maxContinuousTimeMillis&&mK.encode({value:e.maxContinuousTimeMillis},t.uint32(186).fork()).ldelim(),void 0!==e.totalTimeMillis&&mK.encode({value:e.totalTimeMillis},t.uint32(194).fork()).ldelim(),void 0!==e.reactionTimestamp&&mK.encode({value:e.reactionTimestamp},t.uint32(202).fork()).ldelim(),void 0!==e.shareTimestamp&&mK.encode({value:e.shareTimestamp},t.uint32(210).fork()).ldelim(),void 0!==e.swipeUpTimestamp&&mK.encode({value:e.swipeUpTimestamp},t.uint32(218).fork()).ldelim(),void 0!==e.saveTimestamp&&mK.encode({value:e.saveTimestamp},t.uint32(226).fork()).ldelim(),void 0!==e.screenshotTimestamp&&mK.encode({value:e.screenshotTimestamp},t.uint32(234).fork()).ldelim(),void 0!==e.attachmentImpression&&v0.encode(e.attachmentImpression,t.uint32(242).fork()).ldelim(),void 0!==e.withAttachmentOpen&&mX.encode({value:e.withAttachmentOpen},t.uint32(250).fork()).ldelim(),0!==e.attachmentType&&t.uint32(256).int32(e.attachmentType),void 0!==e.adFlagData&&SP.encode(e.adFlagData,t.uint32(266).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=km();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.geofilterId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.totalSwipedViewMillis=mK.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.encGeoData=i.bytes();continue;case 4:if(34!==e)break;a.swipedOverCount=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.withSnapSend=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.withStoryPost=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.withMemoriesSave=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.filterIndexPos=mK.decode(i,i.uint32()).value;continue;case 9:if(72!==e)break;a.geofilterType=i.int32();continue;case 10:if(82!==e)break;a.encryptedAdTrackData=i.bytes();continue;case 11:if(90!==e)break;a.filterGeofilterIndexPos=mK.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.firstSeenTimestamp=mK.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.encryptedSponsoredUnlockableTargetingInfoData=i.bytes();continue;case 14:if(114!==e)break;a.rankingId=i.bytes();continue;case 15:if(122!==e)break;a.rankingData=i.bytes();continue;case 16:if(130!==e)break;a.snapSendRecipientCount=mK.decode(i,i.uint32()).value;continue;case 17:if(138!==e)break;a.snapSendCount=mK.decode(i,i.uint32()).value;continue;case 18:if(146!==e)break;a.storyPostCount=mK.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;a.memoriesSaveCount=mK.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.captureTimeMillis=mK.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.postCaptureTimeMillis=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.maxSwipeTimeMillis=mK.decode(i,i.uint32()).value;continue;case 23:if(186!==e)break;a.maxContinuousTimeMillis=mK.decode(i,i.uint32()).value;continue;case 24:if(194!==e)break;a.totalTimeMillis=mK.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.reactionTimestamp=mK.decode(i,i.uint32()).value;continue;case 26:if(210!==e)break;a.shareTimestamp=mK.decode(i,i.uint32()).value;continue;case 27:if(218!==e)break;a.swipeUpTimestamp=mK.decode(i,i.uint32()).value;continue;case 28:if(226!==e)break;a.saveTimestamp=mK.decode(i,i.uint32()).value;continue;case 29:if(234!==e)break;a.screenshotTimestamp=mK.decode(i,i.uint32()).value;continue;case 30:if(242!==e)break;a.attachmentImpression=v0.decode(i,i.uint32());continue;case 31:if(250!==e)break;a.withAttachmentOpen=mX.decode(i,i.uint32()).value;continue;case 32:if(256!==e)break;a.attachmentType=i.int32();continue;case 33:if(266!==e)break;a.adFlagData=SP.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kE.fromPartial(e??{}),fromPartial(e){let t=km();return t.geofilterId=e.geofilterId??void 0,t.totalSwipedViewMillis=e.totalSwipedViewMillis??void 0,t.encGeoData=e.encGeoData??new Uint8Array(0),t.swipedOverCount=e.swipedOverCount??void 0,t.withSnapSend=e.withSnapSend??void 0,t.withStoryPost=e.withStoryPost??void 0,t.withMemoriesSave=e.withMemoriesSave??void 0,t.filterIndexPos=e.filterIndexPos??void 0,t.geofilterType=e.geofilterType??0,t.encryptedAdTrackData=e.encryptedAdTrackData??new Uint8Array(0),t.filterGeofilterIndexPos=e.filterGeofilterIndexPos??void 0,t.firstSeenTimestamp=e.firstSeenTimestamp??void 0,t.encryptedSponsoredUnlockableTargetingInfoData=e.encryptedSponsoredUnlockableTargetingInfoData??new Uint8Array(0),t.rankingId=e.rankingId??new Uint8Array(0),t.rankingData=e.rankingData??new Uint8Array(0),t.snapSen
2dRecipientCount=e.snapSendRecipientCount??void 0,t.snapSendCount=e.snapSendCount??void 0,t.storyPostCount=e.storyPostCount??void 0,t.memoriesSaveCount=e.memoriesSaveCount??void 0,t.captureTimeMillis=e.captureTimeMillis??void 0,t.postCaptureTimeMillis=e.postCaptureTimeMillis??void 0,t.maxSwipeTimeMillis=e.maxSwipeTimeMillis??void 0,t.maxContinuousTimeMillis=e.maxContinuousTimeMillis??void 0,t.totalTimeMillis=e.totalTimeMillis??void 0,t.reactionTimestamp=e.reactionTimestamp??void 0,t.shareTimestamp=e.shareTimestamp??void 0,t.swipeUpTimestamp=e.swipeUpTimestamp??void 0,t.saveTimestamp=e.saveTimestamp??void 0,t.screenshotTimestamp=e.screenshotTimestamp??void 0,t.attachmentImpression=void 0!==e.attachmentImpression&&null!==e.attachmentImpression?v0.fromPartial(e.attachmentImpression):void 0,t.withAttachmentOpen=e.withAttachmentOpen??void 0,t.attachmentType=e.attachmentType??0,t.adFlagData=void 0!==e.adFlagData&&null!==e.adFlagData?SP.fromPartial(e.adFlagData):void 0,t}};function k_(){return{timeViewedSeconds:void 0,mediaDurationSeconds:void 0,snapCount:void 0,viewedSnapIndex:void 0,exitEvent:0,uniqueSwipeUps:void 0,totalSwipeUps:void 0,isAudioOn:void 0,snapImpressions:[]}}let kS={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.timeViewedSeconds&&mH.encode({value:e.timeViewedSeconds},t.uint32(10).fork()).ldelim(),void 0!==e.mediaDurationSeconds&&mH.encode({value:e.mediaDurationSeconds},t.uint32(18).fork()).ldelim(),void 0!==e.snapCount&&mq.encode({value:e.snapCount},t.uint32(26).fork()).ldelim(),void 0!==e.viewedSnapIndex&&mq.encode({value:e.viewedSnapIndex},t.uint32(34).fork()).ldelim(),0!==e.exitEvent&&t.uint32(40).int32(e.exitEvent),void 0!==e.uniqueSwipeUps&&mq.encode({value:e.uniqueSwipeUps},t.uint32(50).fork()).ldelim(),void 0!==e.totalSwipeUps&&mq.encode({value:e.totalSwipeUps},t.uint32(58).fork()).ldelim(),void 0!==e.isAudioOn&&mX.encode({value:e.isAudioOn},t.uint32(66).fork()).ldelim(),e.snapImpressions))kv.encode(i,t.uint32(74).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=k_();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.timeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.mediaDurationSeconds=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.snapCount=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.viewedSnapIndex=mq.decode(i,i.uint32()).value;continue;case 5:if(40!==e)break;a.exitEvent=i.int32();continue;case 6:if(50!==e)break;a.uniqueSwipeUps=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.totalSwipeUps=mq.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.isAudioOn=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.snapImpressions.push(kv.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kS.fromPartial(e??{}),fromPartial(e){let t=k_();return t.timeViewedSeconds=e.timeViewedSeconds??void 0,t.mediaDurationSeconds=e.mediaDurationSeconds??void 0,t.snapCount=e.snapCount??void 0,t.viewedSnapIndex=e.viewedSnapIndex??void 0,t.exitEvent=e.exitEvent??0,t.uniqueSwipeUps=e.uniqueSwipeUps??void 0,t.totalSwipeUps=e.totalSwipeUps??void 0,t.isAudioOn=e.isAudioOn??void 0,t.snapImpressions=e.snapImpressions?.map(e=>kv.fromPartial(e))||[],t}};function kI(){return{snapIndex:void 0,swipeUpCount:void 0,skipEvent:0,adType:0,attachmentOffsetIndex:void 0,typedTrackData:void 0}}let kv={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.snapIndex&&mq.encode({value:e.snapIndex},t.uint32(10).fork()).ldelim(),void 0!==e.swipeUpCount&&mq.encode({value:e.swipeUpCount},t.uint32(18).fork()).ldelim(),0!==e.skipEvent&&t.uint32(24).int32(e.skipEvent),0!==e.adType&&t.uint32(32).int32(e.adType),void 0!==e.attachmentOffsetIndex&&mq.encode({value:e.attachmentOffsetIndex},t.uint32(42).fork()).ldelim(),void 0!==e.typedTrackData&&kk.encode(e.typedTrackData,t.uint32(50).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kI();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapIndex=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.swipeUpCount=mq.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.skipEvent=i.int32();continue;case 4:if(32!==e)break;a.adType=i.int32();continue;case 5:if(42!==e)break;a.attachmentOffsetIndex=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.typedTrackData=kk.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kv.fromPartial(e??{}),fromPartial(e){let t=kI();
2return t.snapIndex=e.snapIndex??void 0,t.swipeUpCount=e.swipeUpCount??void 0,t.skipEvent=e.skipEvent??0,t.adType=e.adType??0,t.attachmentOffsetIndex=e.attachmentOffsetIndex??void 0,t.typedTrackData=void 0!==e.typedTrackData&&null!==e.typedTrackData?kk.fromPartial(e.typedTrackData):void 0,t}};function kA(){return{typedTrackData:void 0}}let kk={encode(e,t=rA.default.Writer.create()){switch(e.typedTrackData?.$case){case"collection":kc.encode(e.typedTrackData.collection,t.uint32(10).fork()).ldelim();break;case"appInstall":Aq.encode(e.typedTrackData.appInstall,t.uint32(18).fork()).ldelim();break;case"remoteWebpage":ki.encode(e.typedTrackData.remoteWebpage,t.uint32(26).fork()).ldelim();break;case"deepLink":ka.encode(e.typedTrackData.deepLink,t.uint32(34).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.typedTrackData={$case:"collection",collection:kc.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.typedTrackData={$case:"appInstall",appInstall:Aq.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.typedTrackData={$case:"deepLink",deepLink:ka.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kk.fromPartial(e??{}),fromPartial(e){let t=kA();return e.typedTrackData?.$case==="collection"&&e.typedTrackData?.collection!==void 0&&e.typedTrackData?.collection!==null&&(t.typedTrackData={$case:"collection",collection:kc.fromPartial(e.typedTrackData.collection)}),e.typedTrackData?.$case==="appInstall"&&e.typedTrackData?.appInstall!==void 0&&e.typedTrackData?.appInstall!==null&&(t.typedTrackData={$case:"appInstall",appInstall:Aq.fromPartial(e.typedTrackData.appInstall)}),e.typedTrackData?.$case==="remoteWebpage"&&e.typedTrackData?.remoteWebpage!==void 0&&e.typedTrackData?.remoteWebpage!==null&&(t.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.fromPartial(e.typedTrackData.remoteWebpage)}),e.typedTrackData?.$case==="deepLink"&&e.typedTrackData?.deepLink!==void 0&&e.typedTrackData?.deepLink!==null&&(t.typedTrackData={$case:"deepLink",deepLink:ka.fromPartial(e.typedTrackData.deepLink)}),t}};function kb(){return{validationType:0,standardType:0,customId:void 0}}(aG=tL||(tL={}))[aG.UNKNOWN_VALIDATION_UNSET=0]="UNKNOWN_VALIDATION_UNSET",aG[aG.PLAIN_TEXT=1]="PLAIN_TEXT",aG[aG.PHONE=2]="PHONE",aG[aG.EMAIL=3]="EMAIL",aG[aG.ADDRESS=4]="ADDRESS",aG[aG.DATE=5]="DATE",aG[aG.MULTI_SELECT_MULTI_ANSWER=6]="MULTI_SELECT_MULTI_ANSWER",aG[aG.MULTI_SELECT_SINGLE_ANSWER=7]="MULTI_SELECT_SINGLE_ANSWER",aG[aG.UNRECOGNIZED=-1]="UNRECOGNIZED",(aW=tD||(tD={}))[aW.UNKNOWN_STANDARD_UNSET=0]="UNKNOWN_STANDARD_UNSET",aW[aW.CUSTOM=1]="CUSTOM",aW[aW.STANDARD_FIRST_NAME=2]="STANDARD_FIRST_NAME",aW[aW.STANDARD_LAST_NAME=3]="STANDARD_LAST_NAME",aW[aW.STANDARD_PHONE=4]="STANDARD_PHONE",aW[aW.STANDARD_EMAIL=5]="STANDARD_EMAIL",aW[aW.STANDARD_ADDRESS=6]="STANDARD_ADDRESS",aW[aW.STANDARD_POSTAL_CODE=7]="STANDARD_POSTAL_CODE",aW[aW.STANDARD_BDAY=8]="STANDARD_BDAY",aW[aW.STANDARD_ORGANIZATION=9]="STANDARD_ORGANIZATION",aW[aW.STANDARD_ORGANIZATION_TITLE=10]="STANDARD_ORGANIZATION_TITLE",aW[aW.STANDARD_FULL_NAME=11]="STANDARD_FULL_NAME",aW[aW.UNRECOGNIZED=-1]="UNRECOGNIZED",(ax=tw||(tw={}))[ax.UNSET=0]="UNSET",ax[ax.NOT_PREFERRED=1]="NOT_PREFERRED",ax[ax.PREFERRED=2]="PREFERRED",ax[ax.DISQUALIFIED=3]="DISQUALIFIED",ax[ax.UNRECOGNIZED=-1]="UNRECOGNIZED",(aH=tM||(tM={}))[aH.LEAD_PREFERRED_STATUS_UNSET=0]="LEAD_PREFERRED_STATUS_UNSET",aH[aH.LEAD_PREFERRED=1]="LEAD_PREFERRED",aH[aH.LEAD_NOT_PREFERRED=2]="LEAD_NOT_PREFERRED",aH[aH.UNRECOGNIZED=-1]="UNRECOGNIZED",(aY=tU||(tU={}))[aY.STRATEGY_TYPE_UNSET=0]="STRATEGY_TYPE_UNSET",aY[aY.MORE_VOLUME=1]="MORE_VOLUME",aY[aY.HIGHER_INTENT=2]="HIGHER_INTENT",aY[aY.UNRECOGNIZED=-1]="UNRECOGNIZED",(aK=tV||(tV={}))[aK.AUTOFILL_CONFIG_UNSET=0]="AUTOFILL_CONFIG_UNSET",aK[aK.ENABLED=1]="ENABLED",aK[aK.DISABLE_ALL=2]="DISABLE_ALL",aK[aK.UNRECOGNIZED=-1]="UNRECOGNIZED",(a$=tB||(tB={}))[a$.FIELD_INPUT_METHOD_UNSET=0]="FIELD_INPUT_METHOD_UNSET",a$[a$.SELECTED=1]="SELECTED",a$[a$.AUTOFILLED=2]="AUTOFILLED",a$[a$.TYPED=3]="TYPED",a$[a$.PASTED=4]="PASTED",a$[a$.UNRECOGNIZED=-1]="UNRECOGNIZED";let kg={encode:(e,t=rA.default.Writer.create())=>(0!==e.validationType&&t.uint32(8).int32(e.validationType),0!==e.standardType&&t.uint32(16).int32(e.standardType),void 0!==e.customId&&mJ.encode({value:e.customId},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kb();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.validationType=i.int32();continue;case 2:if(16!==e)break;a.standardType=i.int32();continue;case 3:if(26!==e)break;a.customId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kg.fromPartial(e??{}),fromPartial(e){let t=kb();return t.validationType=e.validationType??0,t.standardType=e.standardType??0,t.customId=e.customId??void 0,t}};function kN(){return{identifier:void 0,value:"",subValues:{},fieldInputMethod:0,subValueInputMethods:{}}}let kR={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.identifier&&kg.encode(e.identifier,t.uint32(10).fork()).ldelim(),""!==e.value&&t.uint32(18).string(e.value),Object.entries(e.subValues).forEac
2h(([e,i])=>{kO.encode({key:e,value:i},t.uint32(26).fork()).ldelim()}),0!==e.fieldInputMethod&&t.uint32(32).int32(e.fieldInputMethod),Object.entries(e.subValueInputMethods).forEach(([e,i])=>{ky.encode({key:e,value:i},t.uint32(42).fork()).ldelim()}),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.identifier=kg.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.value=i.string();continue;case 3:if(26!==e)break;let t=kO.decode(i,i.uint32());void 0!==t.value&&(a.subValues[t.key]=t.value);continue;case 4:if(32!==e)break;a.fieldInputMethod=i.int32();continue;case 5:if(42!==e)break;let n=ky.decode(i,i.uint32());void 0!==n.value&&(a.subValueInputMethods[n.key]=n.value);continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kR.fromPartial(e??{}),fromPartial(e){let t=kN();return t.identifier=void 0!==e.identifier&&null!==e.identifier?kg.fromPartial(e.identifier):void 0,t.value=e.value??"",t.subValues=Object.entries(e.subValues??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=globalThis.String(i)),e),{}),t.fieldInputMethod=e.fieldInputMethod??0,t.subValueInputMethods=Object.entries(e.subValueInputMethods??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=i),e),{}),t}};function kP(){return{key:"",value:""}}let kO={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(18!==e)break;a.value=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kO.fromPartial(e??{}),fromPartial(e){let t=kP();return t.key=e.key??"",t.value=e.value??"",t}};function kC(){return{key:"",value:0}}let ky={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),0!==e.value&&t.uint32(16).int32(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(16!==e)break;a.value=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>ky.fromPartial(e??{}),fromPartial(e){let t=kC();return t.key=e.key??"",t.value=e.value??0,t}};function kh(){return{label:"",checked:!1}}let kL={encode:(e,t=rA.default.Writer.create())=>(""!==e.label&&t.uint32(10).string(e.label),!1!==e.checked&&t.uint32(16).bool(e.checked),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kh();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.label=i.string();continue;case 2:if(16!==e)break;a.checked=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kL.fromPartial(e??{}),fromPartial(e){let t=kh();return t.label=e.label??"",t.checked=e.checked??!1,t}};function kD(){return{submittedFields:[],consentCheckboxes:{},leadPreferredStatus:0,endPageInteraction:void 0,strategyType:0,autofillConfig:0,submittedConsentCheckboxes:[],leadCertificateData:void 0,leadCertificateTrackData:void 0}}let kw={encode(e,t=rA.default.Writer.create()){for(let i of e.submittedFields)kR.encode(i,t.uint32(10).fork()).ldelim();for(let i of(Object.entries(e.consentCheckboxes).forEach(([e,i])=>{kU.encode({key:e,value:i},t.uint32(18).fork()).ldelim()}),0!==e.leadPreferredStatus&&t.uint32(24).int32(e.leadPreferredStatus),void 0!==e.endPageInteraction&&kB.encode(e.endPageInteraction,t.uint32(34).fork()).ldelim(),0!==e.strategyType&&t.uint32(40).int32(e.strategyType),0!==e.autofillConfig&&t.uint32(48).int32(e.autofillConfig),e.submittedConsentCheckboxes))kL.encode(i,t.uint32(58).fork()).ldelim();return void 0!==e.leadCertificateData&&kG.encode(e.leadCertificateData,t.uint32(66).fork()).ldelim(),void 0!==e.leadCertificateTrackData&&kx.encode(e.leadCertificateTrackData,t.uint32(74).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kD();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.submittedFields.push(kR.decode(i,i.uint32()));continue;case 2:if(18!==e)break;let t=kU.decode(i,i.uint32());
2void 0!==t.value&&(a.consentCheckboxes[t.key]=t.value);continue;case 3:if(24!==e)break;a.leadPreferredStatus=i.int32();continue;case 4:if(34!==e)break;a.endPageInteraction=kB.decode(i,i.uint32());continue;case 5:if(40!==e)break;a.strategyType=i.int32();continue;case 6:if(48!==e)break;a.autofillConfig=i.int32();continue;case 7:if(58!==e)break;a.submittedConsentCheckboxes.push(kL.decode(i,i.uint32()));continue;case 8:if(66!==e)break;a.leadCertificateData=kG.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.leadCertificateTrackData=kx.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kw.fromPartial(e??{}),fromPartial(e){let t=kD();return t.submittedFields=e.submittedFields?.map(e=>kR.fromPartial(e))||[],t.consentCheckboxes=Object.entries(e.consentCheckboxes??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=globalThis.Boolean(i)),e),{}),t.leadPreferredStatus=e.leadPreferredStatus??0,t.endPageInteraction=void 0!==e.endPageInteraction&&null!==e.endPageInteraction?kB.fromPartial(e.endPageInteraction):void 0,t.strategyType=e.strategyType??0,t.autofillConfig=e.autofillConfig??0,t.submittedConsentCheckboxes=e.submittedConsentCheckboxes?.map(e=>kL.fromPartial(e))||[],t.leadCertificateData=void 0!==e.leadCertificateData&&null!==e.leadCertificateData?kG.fromPartial(e.leadCertificateData):void 0,t.leadCertificateTrackData=void 0!==e.leadCertificateTrackData&&null!==e.leadCertificateTrackData?kx.fromPartial(e.leadCertificateTrackData):void 0,t}};function kM(){return{key:"",value:!1}}let kU={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),!1!==e.value&&t.uint32(16).bool(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kM();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(16!==e)break;a.value=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kU.fromPartial(e??{}),fromPartial(e){let t=kM();return t.key=e.key??"",t.value=e.value??!1,t}};function kV(){return{userTappedCta:!1}}let kB={encode:(e,t=rA.default.Writer.create())=>(!1!==e.userTappedCta&&t.uint32(8).bool(e.userTappedCta),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kV();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.userTappedCta=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kB.fromPartial(e??{}),fromPartial(e){let t=kV();return t.userTappedCta=e.userTappedCta??!1,t}};function kF(){return{disclaimerTextSize:0,disclaimerBackgroundColor:"",disclaimerTextColor:"",locale:"",timeZoneName:"",firstVisibleTimestamp:"0"}}let kG={encode:(e,t=rA.default.Writer.create())=>(0!==e.disclaimerTextSize&&t.uint32(8).uint32(e.disclaimerTextSize),""!==e.disclaimerBackgroundColor&&t.uint32(18).string(e.disclaimerBackgroundColor),""!==e.disclaimerTextColor&&t.uint32(26).string(e.disclaimerTextColor),""!==e.locale&&t.uint32(34).string(e.locale),""!==e.timeZoneName&&t.uint32(42).string(e.timeZoneName),"0"!==e.firstVisibleTimestamp&&t.uint32(48).uint64(e.firstVisibleTimestamp),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kF();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.disclaimerTextSize=i.uint32();continue;case 2:if(18!==e)break;a.disclaimerBackgroundColor=i.string();continue;case 3:if(26!==e)break;a.disclaimerTextColor=i.string();continue;case 4:if(34!==e)break;a.locale=i.string();continue;case 5:if(42!==e)break;a.timeZoneName=i.string();continue;case 6:if(48!==e)break;a.firstVisibleTimestamp=i.uint64().toString();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kG.fromPartial(e??{}),fromPartial(e){let t=kF();return t.disclaimerTextSize=e.disclaimerTextSize??0,t.disclaimerBackgroundColor=e.disclaimerBackgroundColor??"",t.disclaimerTextColor=e.disclaimerTextColor??"",t.locale=e.locale??"",t.timeZoneName=e.timeZoneName??"",t.firstVisibleTimestamp=e.firstVisibleTimestamp??"0",t}};function kW(){return{startedAt:"",formRenderedAt:"",submittedAt:"",appLocation:"",model:"",osVersion:"",screenHeight:0,screenWidth:0,ip:"",inputFieldCertificateTrackData:[],consentFieldCertificateTrackData:[]}}let kx={encode(e,t=rA.default.Writer.create()){for(let i of(""!==e.startedAt&&t.uint32(10).string(e.startedAt),""!==e.formRenderedAt&&t.uint32(18).string(e.formRenderedAt),""!==e.submittedAt&&t.uint32(26).string(e.submittedAt),""!==e.appLocation&&t.uint32(34).string(e.appLocation),""!==e.model&&t.uint32(42).string(e.model),""!==e.osVersion&&t.uint32(50).string(e.osVersion),0!==e.screenHeight&&t.uint32(56).int32(e.screenHeight),0!==e.screenWidth&&t.uint32(64).int32(e.screenWidth),""!==e.ip&&t.uint32(74).string(e.ip),e.inputFieldCertificateTrackData))kY.encode(i,t.uint32(82).fork()).ldelim();for(let i of e.consentFieldCertificateTrackData)kq.encode(i,t.uint32(90).fork()).ldelim();return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kW();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.startedAt=i.string();continue;case 2:if(18!==e)break;a.formRenderedAt=i.string();continue;case 3:if(26!==e)break;a.submittedAt=i.string();continue;case 4:if(34!==e)break;a.appLocation=i.string();continue;case 5:if(42!==e)break;a.model=i.string();continue;case 6:if(50!==e)break;a.osVersion=i.string();continue;case 7:if(56!==e)break;a.screenHeight=i.int32();continue;case 8:if(64!==e)break;a.screenWidth=i.int32();continue;case 9:if(74!==e)break;a.ip=i.string();continue;case 10:if(82!==e)break;a.inputFieldCertificateTrackData.push(kY.decode(i,i.uint32()));continue;case 11:if(90!==e)break;a.consentFieldCertificateTrackData.push(kq.decode(i,i.uint32()));continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kx.fromPartial(e??{}),fromPartial(e){let t=kW();return t.startedAt=e.startedAt??"",t.formRenderedAt=e.formRenderedAt??"",t.submittedAt=e.submittedAt??"",t.appLocation=e.appLocation??"",t.model=e.model??"",t.osVersion=e.osVersion??"",t.screenHeight=e.screenHeight??0,t.screenWidth=e.screenWidth??0,t.ip=e.ip??"",t.inputFieldCertificateTrackData=e.inputFieldCertificateTrackData?.map(e=>kY.fromPartial(e))||[],t.consentFieldCertificateTrackData=e.consentFieldCertificateTrackData?.map(e=>kq.fromPartial(e))||[],t}};function kH(){return{validationType:0,standardType:0,customFieldId:"",autofilled:!1,fieldInputMethod:0,subValueInputMethods:{}}}let kY={encode:(e,t=rA.default.Writer.create())=>(0!==e.validationType&&t.uint32(8).int32(e.validationType),0!==e.standardType&&t.uint32(16).int32(e.standardType),""!==e.customFieldId&&t.uint32(26).string(e.customFieldId),!1!==e.autofilled&&t.uint32(32).bool(e.autofilled),0!==e.fieldInputMethod&&t.uint32(40).int32(e.fieldInputMethod),Object.entries(e.subValueInputMethods).forEac
2h(([e,i])=>{k$.encode({key:e,value:i},t.uint32(50).fork()).ldelim()}),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kH();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.validationType=i.int32();continue;case 2:if(16!==e)break;a.standardType=i.int32();continue;case 3:if(26!==e)break;a.customFieldId=i.string();continue;case 4:if(32!==e)break;a.autofilled=i.bool();continue;case 5:if(40!==e)break;a.fieldInputMethod=i.int32();continue;case 6:if(50!==e)break;let t=k$.decode(i,i.uint32());void 0!==t.value&&(a.subValueInputMethods[t.key]=t.value);continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kY.fromPartial(e??{}),fromPartial(e){let t=kH();return t.validationType=e.validationType??0,t.standardType=e.standardType??0,t.customFieldId=e.customFieldId??"",t.autofilled=e.autofilled??!1,t.fieldInputMethod=e.fieldInputMethod??0,t.subValueInputMethods=Object.entries(e.subValueInputMethods??{}).reduce((e,[t,i])=>(void 0!==i&&(e[t]=i),e),{}),t}};function kK(){return{key:"",value:0}}let k$={encode:(e,t=rA.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),0!==e.value&&t.uint32(16).int32(e.value),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kK();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=i.string();continue;case 2:if(16!==e)break;a.value=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>k$.fromPartial(e??{}),fromPartial(e){let t=kK();return t.key=e.key??"",t.value=e.value??0,t}};function kz(){return{required:!1,submittedValue:!1}}let kq={encode:(e,t=rA.default.Writer.create())=>(!1!==e.required&&t.uint32(8).bool(e.required),!1!==e.submittedValue&&t.uint32(16).bool(e.submittedValue),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kz();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.required=i.bool();continue;case 2:if(16!==e)break;a.submittedValue=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kq.fromPartial(e??{}),fromPartial(e){let t=kz();return t.required=e.required??!1,t.submittedValue=e.submittedValue??!1,t}};function kZ(){return{uiVersion:"",autofillUsed:!1,firstVisibleTimestampMs:void 0,exitedTimestampMs:void 0,submissionTimestampMs:void 0,pages:[],fields:[],consents:[],totalScrolls:0,totalTaps:0,lastVisitedPageId:void 0,lastVisitedFieldValidationType:0,lastVisitedFieldStandardType:0,lastVisitedFieldCustomFieldId:void 0,maxTotalFields:0,preferredStatus:0,loadedAnswersFromPersistentStore:!1}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),(az=tF||(tF={}))[az.UNKNOWN_FIELD_INTERACTION_OUTCOME_UNSET=0]="UNKNOWN_FIELD_INTERACTION_OUTCOME_UNSET",az[az.FIELD_NOT_VIEWED=1]="FIELD_NOT_VIEWED",az[az.FIELD_NOT_INTERACTED=2]="FIELD_NOT_INTERACTED",az[az.FIELD_ACTIVELY_INTERACTED=3]="FIELD_ACTIVELY_INTERACTED",az[az.UNRECOGNIZED=-1]="UNRECOGNIZED",(aq=tG||(tG={}))[aq.UNKNOWN_CONSENT_INTERACTION_OUTCOME_UNSET=0]="UNKNOWN_CONSENT_INTERACTION_OUTCOME_UNSET",aq[aq.CONSENT_NOT_VIEWED=1]="CONSENT_NOT_VIEWED",aq[aq.CONSENT_NOT_INTERACTED=2]="CONSENT_NOT_INTERACTED",aq[aq.CONSENT_ACTIVELY_INTERACTED=3]="CONSENT_ACTIVELY_INTERACTED",aq[aq.UNRECOGNIZED=-1]="UNRECOGNIZED";let kj={encode(e,t=rA.default.Writer.create()){for(let i of(""!==e.uiVersion&&t.uint32(10).string(e.uiVersion),!1!==e.autofillUsed&&t.uint32(16).bool(e.autofillUsed),void 0!==e.firstVisibleTimestampMs&&mK.encode({value:e.firstVisibleTimestampMs},t.uint32(26).fork()).ldelim(),void 0!==e.exitedTimestampMs&&mK.encode({value:e.exitedTimestampMs},t.uint32(34).fork()).ldelim(),void 0!==e.submissionTimestampMs&&mK.encode({value:e.submissionTimestampMs},t.uint32(42).fork()).ldelim(),e.pages))kQ.encode(i,t.uint32(50).fork()).ldelim();for(let i of e.fields)k0.encode(i,t.uint32(58).fork()).ldelim();for(let i of e.consents)k3.encode(i,t.uint32(66).fork()).ldelim();return 0!==e.totalScrolls&&t.uint32(72).int32(e.totalScrolls),0!==e.totalTaps&&t.uint32(80).int32(e.totalTaps),void 0!==e.lastVisitedPageId&&mJ.encode({value:e.lastVisitedPageId},t.uint32(90).fork()).ldelim(),0!==e.lastVisitedFieldValidationType&&t.uint32(96).int32(e.lastVisitedFieldValidationType),0!==e.lastVisitedFieldStandardType&&t.uint32(104).int32(e.lastVisitedFieldStandardType),void 0!==e.lastVisitedFieldCustomFieldId&&mJ.encode({value:e.lastVisitedFieldCustomFieldId},t.uint32(114).fork()).ldelim(),0!==e.maxTotalFields&&t.uint32(120).int32(e.maxTotalFields),0!==e.preferredStatus&&t.uint32(128).int32(e.preferredStatus),!1!==e.loadedAnswersFromPersistentStore&&t.uint32(136).bool(e.loadedAnswersFromPersistentStore),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kZ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.uiVersion=i.string();continue;case 2:if(16!==e)break;a.autofillUsed=i.bool();continue;case 3:if(26!==e)break;
2a.firstVisibleTimestampMs=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.exitedTimestampMs=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.submissionTimestampMs=mK.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.pages.push(kQ.decode(i,i.uint32()));continue;case 7:if(58!==e)break;a.fields.push(k0.decode(i,i.uint32()));continue;case 8:if(66!==e)break;a.consents.push(k3.decode(i,i.uint32()));continue;case 9:if(72!==e)break;a.totalScrolls=i.int32();continue;case 10:if(80!==e)break;a.totalTaps=i.int32();continue;case 11:if(90!==e)break;a.lastVisitedPageId=mJ.decode(i,i.uint32()).value;continue;case 12:if(96!==e)break;a.lastVisitedFieldValidationType=i.int32();continue;case 13:if(104!==e)break;a.lastVisitedFieldStandardType=i.int32();continue;case 14:if(114!==e)break;a.lastVisitedFieldCustomFieldId=mJ.decode(i,i.uint32()).value;continue;case 15:if(120!==e)break;a.maxTotalFields=i.int32();continue;case 16:if(128!==e)break;a.preferredStatus=i.int32();continue;case 17:if(136!==e)break;a.loadedAnswersFromPersistentStore=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kj.fromPartial(e??{}),fromPartial(e){let t=kZ();return t.uiVersion=e.uiVersion??"",t.autofillUsed=e.autofillUsed??!1,t.firstVisibleTimestampMs=e.firstVisibleTimestampMs??void 0,t.exitedTimestampMs=e.exitedTimestampMs??void 0,t.submissionTimestampMs=e.submissionTimestampMs??void 0,t.pages=e.pages?.map(e=>kQ.fromPartial(e))||[],t.fields=e.fields?.map(e=>k0.fromPartial(e))||[],t.consents=e.consents?.map(e=>k3.fromPartial(e))||[],t.totalScrolls=e.totalScrolls??0,t.totalTaps=e.totalTaps??0,t.lastVisitedPageId=e.lastVisitedPageId??void 0,t.lastVisitedFieldValidationType=e.lastVisitedFieldValidationType??0,t.lastVisitedFieldStandardType=e.lastVisitedFieldStandardType??0,t.lastVisitedFieldCustomFieldId=e.lastVisitedFieldCustomFieldId??void 0,t.maxTotalFields=e.maxTotalFields??0,t.preferredStatus=e.preferredStatus??0,t.loadedAnswersFromPersistentStore=e.loadedAnswersFromPersistentStore??!1,t}};function kX(){return{pageId:"",visitCount:0,totalTimeSpentMs:"0"}}let kQ={encode:(e,t=rA.default.Writer.create())=>(""!==e.pageId&&t.uint32(10).string(e.pageId),0!==e.visitCount&&t.uint32(16).int32(e.visitCount),"0"!==e.totalTimeSpentMs&&t.uint32(24).int64(e.totalTimeSpentMs),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kX();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.pageId=i.string();continue;case 2:if(16!==e)break;a.visitCount=i.int32();continue;case 3:if(24!==e)break;a.totalTimeSpentMs=i.int64().toString();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>kQ.fromPartial(e??{}),fromPartial(e){let t=kX();return t.pageId=e.pageId??"",t.visitCount=e.visitCount??0,t.totalTimeSpentMs=e.totalTimeSpentMs??"0",t}};function kJ(){return{validationType:0,standardType:0,customFieldId:void 0,pageId:void 0,relativeIndexOnPage:void 0,autofilled:!1,questionTextLength:0,answerTextLength:void 0,validationFailCount:0,interactionOutcome:0,isDataValid:!1}}let k0={encode:(e,t=rA.default.Writer.create())=>(0!==e.validationType&&t.uint32(8).int32(e.validationType),0!==e.standardType&&t.uint32(16).int32(e.standardType),void 0!==e.customFieldId&&mJ.encode({value:e.customFieldId},t.uint32(26).fork()).ldelim(),void 0!==e.pageId&&mJ.encode({value:e.pageId},t.uint32(34).fork()).ldelim(),void 0!==e.relativeIndexOnPage&&mq.encode({value:e.relativeIndexOnPage},t.uint32(42).fork()).ldelim(),!1!==e.autofilled&&t.uint32(48).bool(e.autofilled),0!==e.questionTextLength&&t.uint32(56).int32(e.questionTextLength),void 0!==e.answerTextLength&&mq.encode({value:e.answerTextLength},t.uint32(66).fork()).ldelim(),0!==e.validationFailCount&&t.uint32(72).int32(e.validationFailCount),0!==e.interactionOutcome&&t.uint32(80).int32(e.interactionOutcome),!1!==e.isDataValid&&t.uint32(88).bool(e.isDataValid),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=kJ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.validationType=i.int32();continue;case 2:if(16!==e)break;a.standardType=i.int32();continue;case 3:if(26!==e)break;a.customFieldId=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.pageId=mJ.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.relativeIndexOnPage=mq.decode(i,i.uint32()).value;continue;case 6:if(48!==e)break;a.autofilled=i.bool();continue;case 7:if(56!==e)break;a.questionTextLength=i.int32();continue;case 8:if(66!==e)break;a.answerTextLength=mq.decode(i,i.uint32()).value;continue;case 9:if(72!==e)break;a.validationFailCount=i.int32();continue;case 10:if(80!==e)break;a.interactionOutcome=i.int32();continue;case 11:if(88!==e)break;a.isDataValid=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>k0.fromPartial(e??{}),fromPartial(e){let t=kJ();return t.validationType=e.validationType??0,t.standardType=e.standardType??0,t.customFieldId=e.customFieldId??void 0,t.pageId=e.pageId??void 0,t.relativeIndexOnPage=e.relativeIndexOnPage??void 0,t.autofilled=e.autofilled??!1,t.questionTextLength=e.questionTextLength??0,t.answerTextLength=e.answerTextLength??void 0,t.validationFailCount=e.validationFailCount??0,t.interactionOutcome=e.interactionOutcome??0,t.isDataValid=e.isDataValid??!1,t}};function k2(){return{pageId:void 0,indexOnPage:void 0,required:!1,disclaimerTextLength:0,interactionOutcome:0,checked:!1}
2}let k3={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.pageId&&mJ.encode({value:e.pageId},t.uint32(10).fork()).ldelim(),void 0!==e.indexOnPage&&mq.encode({value:e.indexOnPage},t.uint32(18).fork()).ldelim(),!1!==e.required&&t.uint32(24).bool(e.required),0!==e.disclaimerTextLength&&t.uint32(32).int32(e.disclaimerTextLength),0!==e.interactionOutcome&&t.uint32(40).int32(e.interactionOutcome),!1!==e.checked&&t.uint32(48).bool(e.checked),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=k2();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.pageId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.indexOnPage=mq.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.required=i.bool();continue;case 4:if(32!==e)break;a.disclaimerTextLength=i.int32();continue;case 5:if(40!==e)break;a.interactionOutcome=i.int32();continue;case 6:if(48!==e)break;a.checked=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>k3.fromPartial(e??{}),fromPartial(e){let t=k2();return t.pageId=e.pageId??void 0,t.indexOnPage=e.indexOnPage??void 0,t.required=e.required??!1,t.disclaimerTextLength=e.disclaimerTextLength??0,t.interactionOutcome=e.interactionOutcome??0,t.checked=e.checked??!1,t}};function k1(){return{commonSnapAdImpression:void 0,submittedLead:void 0,formInteraction:void 0}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());let k4={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.submittedLead&&kw.encode(e.submittedLead,t.uint32(18).fork()).ldelim(),void 0!==e.formInteraction&&kj.encode(e.formInteraction,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=k1();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.submittedLead=kw.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.formInteraction=kj.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>k4.fromPartial(e??{}),fromPartial(e){let t=k1();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.submittedLead=void 0!==e.submittedLead&&null!==e.submittedLead?kw.fromPartial(e.submittedLead):void 0,t.formInteraction=void 0!==e.formInteraction&&null!==e.formInteraction?kj.fromPartial(e.formInteraction):void 0,t}};function k8(){return{commonSnapAdImpression:void 0,pageHeight:void 0,pageHeightSeen:void 0,pageCurrentOffset:void 0}}let k6={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.pageHeight&&mq.encode({value:e.pageHeight},t.uint32(18).fork()).ldelim(),void 0!==e.pageHeightSeen&&mq.encode({value:e.pageHeightSeen},t.uint32(26).fork()).ldelim(),void 0!==e.pageCurrentOffset&&mq.encode({value:e.pageCurrentOffset},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=k8();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.pageHeight=mq.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.pageHeightSeen=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.pageCurrentOffset=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>k6.fromPartial(e??{}),fromPartial(e){let t=k8();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.pageHeight=e.pageHeight??void 0,t.pageHeightSeen=e.pageHeightSeen??void 0,t.pageCurrentOffset=e.pageCurrentOffset??void 0,t}};function k7(){return{commonSnapAdImpression:void 0,longformMediaDurationSeconds:void 0}}let k5={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.longformMediaDurationSeconds&&mH.encode({value:e.longformMediaDurationSeconds},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=k7();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.longformMediaDurationSeconds=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>k5.fromPartial(e??{}),fromPartial(e){let t=k7();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.longformMediaDurationSeconds=e.longformMediaDurationSeconds??void 0,t}};var k9=rA;let be={encode:(e,t=k9.default.Writer.create())=>t,decode(e,t){let i=e instanceof k9.default.Reader?e:k9.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>be.fromPartial(e??{}),fromPartial:e=>({})};var bt=rA;function bi(){return{placeId:"",tileId:"0",pinType:0,annotations:[],weatherEffectPlayed:!1,events:[],commonSnapAdImpression:void 0}}(aZ=tW||(tW={}))[aZ.PIN_TYPE_UNSET=0]="PIN_TYPE_UNSET",aZ[aZ.STORY=1]="STORY",aZ[aZ.ICON=2]="ICON",aZ[aZ.UNRECOGNIZED=-1]="UNRECOGNIZED",(aj=tx||(tx={}))[aj.PIN_TYPE_UNSET=0]="PIN_TYPE_UNSET",aj[aj.STORY=1]="STORY",aj[aj.ICON=2]="ICON",aj[aj.UNRECOGNIZED=-1]="UNRECOGNIZED",(aX=tH||(tH={}))[aX.INVISIBLE_REASON_UNSET=0]="INVISIBLE_REASON_UNSET",aX[aX.OUT_OF_VIEWPORT=1]="OUT_OF_VIEWPORT",aX[aX.OCCLUDED=2]="OCCLUDED",aX[aX.HIDDEN_BY_TRAY=3]="HIDDEN_BY_TRAY",aX[aX.COLLIDE_WITH_OTHER_PLACE=4]="COLLIDE_WITH_OTHER_PLACE",aX[aX.HIDDEN_BY_UI=5]="HIDDEN_BY_UI",aX[aX.FAILED_PLACEMENT=6]="FAILED_PLACEMENT",aX[aX.NOT_IN_FEATURE_SET=7]="NOT_IN_FEATURE_SET",aX[aX.COLLIDED=8]="COLLIDED",aX[aX.UNRECOGNIZED=-1]="UNRECOGNIZED",(aQ=tY||(tY={}))[aQ.ACTION_UNSET=0]="ACTION_UNSET",aQ[aQ.OPEN=1]="OPEN",aQ[aQ.CLOSE=2]="CLOSE",aQ[aQ.VIEW_DIRECTIONS=3]="VIEW_DIRECTIONS",aQ[aQ.HEART=4]="HEART",aQ[aQ.CALL_BUSINESS=5]="CALL_BUSINESS",aQ[aQ.VISIT_WEBSITE=6]="VISIT_WEBSITE",aQ[aQ.VISIT_BRAND_PROFILE=7]="VISIT_BRAND_PROFILE",aQ[aQ.VIEW_PROFILE_CONTENT=8]="VIEW_PROFILE_CONTENT",aQ[aQ.UNRECOGNIZED=-1]="UNRECOGNIZED",(aJ=tK||(tK={}))[aJ.ACTION_UNSET=0]="ACTION_UNSET",aJ[aJ.OPEN_AD=1]="OPEN_AD",aJ[aJ.OPEN_BRAND_PROFILE=2]="OPEN_BRAND_PROFILE",aJ[aJ.OPEN_ATTACHMENT=3]="OPEN_ATTACHMENT",aJ[aJ.OPEN_LONG_PRESS=4]="OPEN_LONG_PRESS",aJ[aJ.UNRECOGNIZED=-1]="UNRECOGNIZED",(a0=t$||(t$={}))[a0.THREE_D_EVENT_TYPE_UNSET=0]="THREE_D_EVENT_TYPE_UNSET",a0[a0.START=1]="START",a0[a0.STOP=2]="STOP",a0[a0.UNRECOGNIZED=-1]="UNRECOGNIZED",(a2=tz||(tz={}))[a2.EFFECT_EVENT_TYPE_UNSET=0]="EFFECT_EVENT_TYPE_UNSET",a2[a2.START=1]="START",a2[a2.STOP=2]="STOP",a2[a2.UNRECOGNIZED=-1]="UNRECOGNIZED",(a3=tq||(tq={}))[a3.EFFECT_EVENT_NAME_UNSET=0]="EFFECT_EVENT_NAME_UNSET",a3[a3.PLACE=1]="PLACE",a3[a3.WEATHER=2]="WEATHER",a3[a3.UNRECOGNIZED=-1]="UNRECOGNIZED",(a1=tZ||(tZ={}))[a1.TYPE_UNSET=0]="TYPE_UNSET",a1[a1.PAUSE=1]="PAUSE",a1[a1.RESUME=2]="RESUME",a1[a1.UNRECOGNIZED=-1]="UNRECOGNIZED",(a4=tj||(tj={}))[a4.PAUSE_REASON_UNSET=0]="PAUSE_REASON_UNSET",a4[a4.APP_BACKGROUNDED=1]="APP_BACKGROUNDED",a4[a4.MODAL_PRESENTATION=2]="MODAL_PRESENTATION",a4[a4.UNRECOGNIZED=-1]="UNRECOGNIZED",(a8=tX||(tX={}))[a8.EXIT_EVENT_TRIGGER_UNSET=0]="EXIT_EVENT_TRIGGER_UNSET",a8[a8.APP_BACKGROUNDED=1]="APP_BACKGROUNDED",a8[a8.TAB_CLOSED=2]="TAB_CLOSED",a8[a8.UNRECOGNIZED=-1]="UNRECOGNIZED";let bn={encode(e,t=bt.default.Writer.create()){for(let i of(""!==e.placeId&&t.uint32(10).string(e.placeId),"0"!==e.tileId&&t.uint32(16).uint64(e.tileId),0!==e.pinType&&t.uint32(24).int32(e.pinType),e.annotations))t.uint32(34).string(i);for(let i of(!1!==e.weatherEffectPlayed&&t.uint32(40).bool(e.weatherEffectPlayed),e.events))bo.encode(i,t.uint32(50).fork()).ldelim();return void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(58).fork()).ldelim(),t},decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bi();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.placeId=i.string();continue;case 2:if(16!==e)break;a.tileId=bP(i.uint64());continue;case 3:if(24!==e)break;a.pinType=i.int32();continue;case 4:if(34!==e)break;a.annotations.push(i.string());continue;case 5:if(40!==e)break;a.weatherEffectPlayed=i.bool();continue;case 6:if(50!==e)break;a.events.push(bo.decode(i,i.uint32()));continue;case 7:if(58!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bn.fromPartial(e??{}),fromPartial(e){let t=bi();return t.placeId=e.placeId??"",t.tileId=e.tileId??"0",t.pinType=e.pinType??0,t.annotations=e.annotations?.map(e=>e)||[],t.weatherEffectPlayed=e.weatherEffectPlayed??!1,t.events=e.events?.map(e=>bo.fromPartial(e))||[],t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t}};function ba(){return{event:void 0,eventTimeMs:"0"}}let bo={encode(e,t=bt.default.Writer.create()){switch(e.event?.$case){case"zoom":bl.encode(e.event.zoom,t.uint32(10).fork()).ldelim();break;case"pinVisibility":bu.encode(e.event.pinVisibility,t.uint32(18).fork()).ldelim();break;case"placeAction":bf.encode(e.event.placeAction,t.uint32(26).fork()).ldelim();break;case"snapAd":bm.encode(e.event.snapAd,t.uint32(34).fork()).ldelim();break;case"threeD":bE.encode(e.event.threeD,t.uint32(42).fork()).ldelim();break;case"effect":bS.encode(e.event.effect,t.uint32(50).fork()).ldelim();break;case"sessionPauseResume":bv.encode(e.event.sessionPauseResume,t.uint32(58).fork()).ldelim();break;case"flush":bA.encode(e.event.flush,t.uint32(66).fork()).ldelim();break;case"exit":bb.encode(e.event.exit,t.uint32(74).fork()).ldelim();break;case"sessionRestart":bg.encode(e.event.sessionRestart,t.uint32(90).fork()).ldelim();break;case"sessionStart":bR.encode(e.event.sessionStart,t.uint32(98).fork()).ldelim();break;case"placeAdLoad":bd.encode(e.event.placeAdLoad,t.uint32(106).fork()).ldelim()}return"0"!==e.eventTimeMs&&t.uint32(80).int64(e.eventTimeMs),t},decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ba();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.event={$case:"zoom",zoom:bl.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.event={$case:"pinVisibility",pinVisibility:bu.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.event={$case:"placeAction",placeAction:bf.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.event={$case:"snapAd",snapAd:bm.decode(i,i.uint32())};continue;case 5:if(42!==e)break;a.event={$case:"threeD",threeD:bE.decode(i,i.uint32())};continue;case 6:if(50!==e)break;a.event={$case:"effect",effect:bS.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.event={$case:"sessionPauseResume",sessionPauseResume:bv.decode(i,i.uint32())};continue;case 8:if(66!==e)break;a.event={$case:"flush",flush:bA.decode(i,i.uint32())};continue;case 9:if(74!==e)break;a.event={$case:"exit",exit:bb.decode(i,i.uint32())};continue;case 11:if(90!==e)break;a.event={$case:"sessionRestart",sessionRestart:bg.decode(i,i.uint32())};continue;case 12:if(98!==e)break;a.event={$case:"sessionStart",sessionStart:bR.decode(i,i.uint32())};continue;case 13:if(106!==e)break;a.event={$case:"placeAdLoad",placeAdLoad:bd.decode(i,i.uint32())};continue;case 10:if(80!==e)break;a.eventTimeMs=bP(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bo.fromPartial(e??{}),fromPartial(e){let t=ba();return e.event?.$case==="zoom"&&e.event?.zoom!==void 0&&e.event?.zoom!==null&&(t.event={$case:"zoom",zoom:bl.fromPartial(e.event.zoom)}),e.event?.$case==="pinVisibility"&&e.event?.pinVisibility!==void 0&&e.event?.pinVisibility!==null&&(t.event={$case:"pinVisibility",pinVisibility:bu.fromPartial(e.event.pinVisibility)}),e.event?.$case==="placeAction"&&e.event?.placeAction!==void 0&&e.event?.placeAction!==null&&(t.event={$case:"placeAction",placeAction:bf.fromPartial(e.event.placeAction)}),e.event?.$case==="snapAd"&&e.event?.snapAd!==void 0&&e.event?.snapAd!==null&&(t.event={$case:"snapAd",snapAd:bm.fromPartial(e.event.snapAd)}),e.event?.$case==="threeD"&&e.event?.threeD!==void 0&&e.event?.threeD!==null&&(t.event={$case:"threeD",threeD:bE.fromPartial(e.event.threeD)}),e.event?.$case==="effect"&&e.event?.effect!==void 0&&e.event?.effect!==null&&(t.event={$case:"effect",effect:bS.fromPartial(e.event.effect)}),e.event?.$case==="sessionPauseResume"&&e.event?.sessionPauseResume!==void 0&&e.event?.sessionPauseResume!==null&&(t.event={$case:"sessionPauseResume",sessionPauseResume:bv.fromPartial(e.event.sessionPauseResume)}),e.event?.$case==="flush"&&e.event?.flush!==void 0&&e.event?.flush!==null&&(t.event={$case:"flush",flush:bA.fromPartial(e.event.flush)}),e.event?.$case==="exit"&&e.event?.exit!==void 0&&e.event?.exit!==null&&(t.event={$case:"exit",exit:bb.fromPartial(e.event.exit)}),e.event?.$case==="sessionRestart"&&e.event?.sessionRestart!==void 0&&e.event?.sessionRestart!==null&&(t.event={$case:"sessionRestart",sessionRestart:bg.fromPartial(e.event.sessionRestart)}),e.event?.$case==="sessionStart"&&e.event?.sessionStart!==void 0&&e.event?.sessionStart!==null&&(t.event={$case:"sessionStart",sessionStart:bR.fromPartial(e.event.sessionStart)}),e.event?.$case==="placeAdLoad"&&e.event?.placeAdLoad!==void 0&&e.event?.placeAdLoad!==null&&(t.event={$case:"placeAdLoad",placeAdLoad:bd.fromPartial(e.event.placeAdLoad)}),t.eventTimeMs=e.eventTimeMs??"0",t}};function br(){return{zoomLevel:0,pinType:0,annotations:[],tileId:"0"}}let bd={encode(e,t=bt.default.Writer.create()){for(let i of(0!==e.zoomLevel&&t.uint32(13).float(e.zoomLevel),0!==e.pinType&&t.uint32(16).int32(e.pinType),e.annotations))t.uint32(26).string(i);return"0"!==e.tileId&&t.uint32(32).uint64(e.tileId),t},decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=br();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.zoomLevel=i.float();continue;case 2:if(16!==e)break;a.pinType=i.int32();continue;case 3:if(26!==e)break;a.annotations.push(i.string());continue;case 4:if(32!==e)break;a.tileId=bP(i.uint64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bd.fromPartial(e??{}),fromPartial(e){let t=br();return t.zoomLevel=e.zoomLevel??0,t.pinType=e.pinType??0,t.annotations=e.annotations?.map(e=>e)||[],t.tileId=e.tileId??"0",t}};function bs(){return{zoomLevel:0}}let bl={encode:(e,t=bt.default.Writer.create())=>(0!==e.zoomLevel&&t.uint32(13).float(e.zoomLevel),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bs();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(13!==e)break;a.zoomLevel=i.float();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bl.fromPartial(e??{}),fromPartial(e){let t=bs();return t.zoomLevel=e.zoomLevel??0,t}};function bc(){return{visible:!1,invisibleReason:0,occlusionLayerGroupId:0,collidedWithPlaceId:"",zoomLevel:0,occludingLayerGroups:[]}}let bu={encode(e,t=bt.default.Writer.create()){for(let i of(!1!==e.visible&&t.uint32(8).bool(e.visible),0!==e.invisibleReason&&t.uint32(16).int32(e.invisibleReason),0!==e.occlusionLayerGroupId&&t.uint32(24).int32(e.occlusionLayerGroupId),""!==e.collidedWithPlaceId&&t.uint32(34).string(e.collidedWithPlaceId),0!==e.zoomLevel&&t.uint32(45).float(e.zoomLevel),e.occludingLayerGroups))t.uint32(50).string(i);return t},decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.visible=i.bool();continue;case 2:if(16!==e)break;a.invisibleReason=i.int32();continue;case 3:if(24!==e)break;a.occlusionLayerGroupId=i.int32();continue;case 4:if(34!==e)break;a.collidedWithPlaceId=i.string();continue;case 5:if(45!==e)break;a.zoomLevel=i.float();continue;case 6:if(50!==e)break;a.occludingLayerGroups.push(i.string());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bu.fromPartial(e??{}),fromPartial(e){let t=bc();return t.visible=e.visible??!1,t.invisibleReason=e.invisibleReason??0,t.occlusionLayerGroupId=e.occlusionLayerGroupId??0,t.collidedWithPlaceId=e.collidedWithPlaceId??"",t.zoomLevel=e.zoomLevel??0,t.occludingLayerGroups=e.occludingLayerGroups?.map(e=>e)||[],t}};function bp(){return{action:0}}let bf={encode:(e,t=bt.default.Writer.create())=>(0!==e.action&&t.uint32(8).int32(e.action),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.action=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bf.fromPartial(e??{}),fromPartial(e){let t=bp();return t.action=e.action??0,t}};function bT(){return{action:0}}let bm={encode:(e,t=bt.default.Writer.create())=>(0!==e.action&&t.uint32(8).int32(e.action),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.action=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bm.fromPartial(e??{}),fromPartial(e){let t=bT();return t.action=e.action??0,t}},bE={encode:(e,t=bt.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a={type:0};for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bE.fromPartial(e??{}),fromPartial(e){let t={type:0};return t.type=e.type??0,t}};function b_(){return{type:0,name:0}}let bS={encode:(e,t=bt.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.name&&t.uint32(16).int32(e.name),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b_();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue;case 2:if(16!==e)break;a.name=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bS.fromPartial(e??{}),fromPartial(e){let t=b_();return t.type=e.type??0,t.name=e.name??0,t}};function bI(){return{type:0,pauseReason:0}}let bv={encode:(e,t=bt.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.pauseReason&&t.uint32(16).int32(e.pauseReason),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bI();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.type=i.int32();continue;case 2:if(16!==e)break;a.pauseReason=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bv.fromPartial(e??{}),fromPartial(e){let t=bI();return t.type=e.type??0,t.pauseReason=e.pauseReason??0,t}},bA={encode:(e,t=bt.default.Writer.create())=>t,decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();
2if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>bA.fromPartial(e??{}),fromPartial:e=>({})};function bk(){return{trigger:0}}let bb={encode:(e,t=bt.default.Writer.create())=>(0!==e.trigger&&t.uint32(8).int32(e.trigger),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bk();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.trigger=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bb.fromPartial(e??{}),fromPartial(e){let t=bk();return t.trigger=e.trigger??0,t}},bg={encode:(e,t=bt.default.Writer.create())=>t,decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t;for(;i.pos<n;){let e=i.uint32();if((7&e)==4||0===e)break;i.skipType(7&e)}return{}},create:e=>bg.fromPartial(e??{}),fromPartial:e=>({})};function bN(){return{restart:!1}}let bR={encode:(e,t=bt.default.Writer.create())=>(!1!==e.restart&&t.uint32(8).bool(e.restart),t),decode(e,t){let i=e instanceof bt.default.Reader?e:bt.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.restart=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bR.fromPartial(e??{}),fromPartial(e){let t=bN();return t.restart=e.restart??!1,t}};function bP(e){return e.toString()}function bO(){return{commonSnapAdImpression:void 0,reminderSetTapCount:void 0,countdownId:void 0}}bt.default.util.Long!==rv.default&&(bt.default.util.Long=rv.default,bt.default.configure());let bC={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.reminderSetTapCount&&mq.encode({value:e.reminderSetTapCount},t.uint32(18).fork()).ldelim(),void 0!==e.countdownId&&mJ.encode({value:e.countdownId},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bO();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.reminderSetTapCount=mq.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.countdownId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bC.fromPartial(e??{}),fromPartial(e){let t=bO();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.reminderSetTapCount=e.reminderSetTapCount??void 0,t.countdownId=e.countdownId??void 0,t}};function by(){return{commonSnapAdImpression:void 0,channelSubscribedEndStatus:void 0}}let bh={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.channelSubscribedEndStatus&&mX.encode({value:e.channelSubscribedEndStatus},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=by();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.channelSubscribedEndStatus=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bh.fromPartial(e??{}),fromPartial(e){let t=by();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.channelSubscribedEndStatus=e.channelSubscribedEndStatus??void 0,t}};function bL(){return{commonSnapAdImpression:void 0}}let bD={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bL();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bD.fromPartial(e??{}),fromPartial(e){let t=bL();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t}};function bw(){return{timeViewedSeconds:void 0,mediaDurationSeconds:void 0,snapCount:void 0,viewedSnapIndex:void 0,exitEvent:0,uniqueSwipeUps:void 0,totalSwipeUps:void 0,isAudioOn:void 0,snapImpressions:[],tileImpression:void 0,creativeId:new Uint8Array(0),tileInteraction:void 0,updatedTileIndexPosition:void 0,storyAdHintInteraction:void 0,skanStartImpressionTsMs:void 0,skanEndImpressionTsMs:void 0,servedEndCardType:0}}let bM={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.timeViewedSeconds&&mH.encode({value:e.timeViewedSeconds},t.uint32(10).fork()).ldelim(),void 0!==e.mediaDurationSeconds&&mH.encode({value:e.mediaDurationSeconds},t.uint32(18).fork()).ldelim(),void 0!==e.snapCount&&mq.encode({value:e.snapCount},t.uint32(26).fork()).ldelim(),void 0!==e.viewedSnapIndex&&mq.encode({value:e.viewedSnapIndex},t.uint32(34).fork()).ldelim(),0!==e.exitEvent&&t.uint32(40).int32(e.exitEvent),void 0!==e.uniqueSwipeUps&&mq.encode({value:e.uniqueSwipeUps},t.uint32(50).fork()).ldelim(),void 0!==e.totalSwipeUps&&mq.encode({value:e.totalSwipeUps},t.uint32(58).fork()).ldelim(),void 0!==e.isAudioOn&&mX.encode({value:e.isAudioOn},t.uint32(66).fork()).ldelim(),e.snapImpressions))bV.encode(i,t.uint32(74).fork()).ldelim();return void 0!==e.tileImpression&&bF.encode(e.tileImpression,t.uint32(82).fork()).ldelim(),0!==e.creativeId.length&&t.uint32(90).bytes(e.creativeId),void 0!==e.tileInteraction&&bW.encode(e.tileInteraction,t.uint32(98).fork()).ldelim(),void 0!==e.updatedTileIndexPosition&&mq.encode({value:e.updatedTileIndexPosition},t.uint32(106).fork()).ldelim(),void 0!==e.storyAdHintInteraction&&bH.encode(e.storyAdHintInteraction,t.uint32(114).fork()).ldelim(),void 0!==e.skanStartImpressionTsMs&&mK.encode({value:e.skanStartImpressionTsMs},t.uint32(122).fork()).ldelim(),void 0!==e.skanEndImpressionTsMs&&mK.encode({value:e.skanEndImpressionTsMs},t.uint32(130).fork()).ldelim(),0!==e.servedEndCardType&&t.uint32(136).int32(e.servedEndCardType),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bw();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.timeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.mediaDurationSeconds=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.snapCount=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.viewedSnapIndex=mq.decode(i,i.uint32()).value;continue;case 5:if(40!==e)break;a.exitEvent=i.int32();continue;case 6:if(50!==e)break;a.uniqueSwipeUps=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.totalSwipeUps=mq.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.isAudioOn=mX.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.snapImpressions.push(bV.decode(i,i.uint32()));continue;case 10:if(82!==e)break;a.tileImpression=bF.decode(i,i.uint32());continue;case 11:if(90!==e)break;a.creativeId=i.bytes();continue;case 12:if(98!==e)break;a.tileInteraction=bW.decode(i,i.uint32());continue;case 13:if(106!==e)break;a.updatedTileIndexPosition=mq.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.storyAdHintInteraction=bH.decode(i,i.uint32());continue;case 15:if(122!==e)break;a.skanStartImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.skanEndImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 17:if(136!==e)break;a.servedEndCardType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bM.fromPartial(e??{}),fromPartial(e){let t=bw();return t.timeViewedSeconds=e.timeViewedSeconds??void 0,t.mediaDurationSeconds=e.mediaDurationSeconds??void 0,t.snapCount=e.snapCount??void 0,t.viewedSnapIndex=e.viewedSnapIndex??void 0,t.exitEvent=e.exitEvent??0,t.uniqueSwipeUps=e.uniqueSwipeUps??void 0,t.totalSwipeUps=e.totalSwipeUps??void 0,t.isAudioOn=e.isAudioOn??void 0,t.snapImpressions=e.snapImpressions?.map(e=>bV.fromPartial(e))||[],t.tileImpression=void 0!==e.tileImpression&&null!==e.tileImpression?bF.fromPartial(e.tileImpression):void 0,t.creativeId=e.creativeId??new Uint8Array(0),t.tileInteraction=void 0!==e.tileInteraction&&null!==e.tileInteraction?bW.fromPartial(e.tileInteraction):void 0,t.updatedTileIndexPosition=e.updatedTileIndexPosition??void 0,t.storyAdHintInteraction=void 0!==e.storyAdHintInteraction&&null!==e.storyAdHintInteraction?bH.fromPartial(e.storyAdHintInteraction):void 0,t.skanStartImpressionTsMs=e.skanStartImpressionTsMs??void 0,t.skanEndImpressionTsMs=e.skanEndImpressionTsMs??void 0,t.servedEndCardType=e.servedEndCardType??0,t}};
2function bU(){return{snapIndex:void 0,swipeUpCount:void 0,skipEvent:0,adType:0,typedTrackData:void 0}}let bV={encode(e,t=rA.default.Writer.create()){switch(void 0!==e.snapIndex&&mq.encode({value:e.snapIndex},t.uint32(10).fork()).ldelim(),void 0!==e.swipeUpCount&&mq.encode({value:e.swipeUpCount},t.uint32(18).fork()).ldelim(),0!==e.skipEvent&&t.uint32(24).int32(e.skipEvent),0!==e.adType&&t.uint32(32).int32(e.adType),e.typedTrackData?.$case){case"threeV":bD.encode(e.typedTrackData.threeV,t.uint32(42).fork()).ldelim();break;case"appInstall":Aq.encode(e.typedTrackData.appInstall,t.uint32(50).fork()).ldelim();break;case"longformVideo":k5.encode(e.typedTrackData.longformVideo,t.uint32(58).fork()).ldelim();break;case"remoteWebpage":ki.encode(e.typedTrackData.remoteWebpage,t.uint32(66).fork()).ldelim();break;case"localWebpage":k6.encode(e.typedTrackData.localWebpage,t.uint32(74).fork()).ldelim();break;case"deepLink":ka.encode(e.typedTrackData.deepLink,t.uint32(82).fork()).ldelim();break;case"subscribe":bh.encode(e.typedTrackData.subscribe,t.uint32(90).fork()).ldelim();break;case"adToLens":AS.encode(e.typedTrackData.adToLens,t.uint32(98).fork()).ldelim();break;case"adToCall":vD.encode(e.typedTrackData.adToCall,t.uint32(106).fork()).ldelim();break;case"adToMessage":Av.encode(e.typedTrackData.adToMessage,t.uint32(114).fork()).ldelim();break;case"showcase":ks.encode(e.typedTrackData.showcase,t.uint32(122).fork()).ldelim();break;case"reminder":bC.encode(e.typedTrackData.reminder,t.uint32(130).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bU();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapIndex=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.swipeUpCount=mq.decode(i,i.uint32()).value;continue;case 3:if(24!==e)break;a.skipEvent=i.int32();continue;case 4:if(32!==e)break;a.adType=i.int32();continue;case 5:if(42!==e)break;a.typedTrackData={$case:"threeV",threeV:bD.decode(i,i.uint32())};continue;case 6:if(50!==e)break;a.typedTrackData={$case:"appInstall",appInstall:Aq.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.typedTrackData={$case:"longformVideo",longformVideo:k5.decode(i,i.uint32())};continue;case 8:if(66!==e)break;a.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.decode(i,i.uint32())};continue;case 9:if(74!==e)break;a.typedTrackData={$case:"localWebpage",localWebpage:k6.decode(i,i.uint32())};continue;case 10:if(82!==e)break;a.typedTrackData={$case:"deepLink",deepLink:ka.decode(i,i.uint32())};continue;case 11:if(90!==e)break;a.typedTrackData={$case:"subscribe",subscribe:bh.decode(i,i.uint32())};continue;case 12:if(98!==e)break;a.typedTrackData={$case:"adToLens",adToLens:AS.decode(i,i.uint32())};continue;case 13:if(106!==e)break;a.typedTrackData={$case:"adToCall",adToCall:vD.decode(i,i.uint32())};continue;case 14:if(114!==e)break;a.typedTrackData={$case:"adToMessage",adToMessage:Av.decode(i,i.uint32())};continue;case 15:if(122!==e)break;a.typedTrackData={$case:"showcase",showcase:ks.decode(i,i.uint32())};continue;case 16:if(130!==e)break;a.typedTrackData={$case:"reminder",reminder:bC.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bV.fromPartial(e??{}),fromPartial(e){let t=bU();return t.snapIndex=e.snapIndex??void 0,t.swipeUpCount=e.swipeUpCount??void 0,t.skipEvent=e.skipEvent??0,t.adType=e.adType??0,e.typedTrackData?.$case==="threeV"&&e.typedTrackData?.threeV!==void 0&&e.typedTrackData?.threeV!==null&&(t.typedTrackData={$case:"threeV",threeV:bD.fromPartial(e.typedTrackData.threeV)}),e.typedTrackData?.$case==="appInstall"&&e.typedTrackData?.appInstall!==void 0&&e.typedTrackData?.appInstall!==null&&(t.typedTrackData={$case:"appInstall",appInstall:Aq.fromPartial(e.typedTrackData.appInstall)}),e.typedTrackData?.$case==="longformVideo"&&e.typedTrackData?.longformVideo!==void 0&&e.typedTrackData?.longformVideo!==null&&(t.typedTrackData={$case:"longformVideo",longformVideo:k5.fromPartial(e.typedTrackData.longformVideo)}),e.typedTrackData?.$case==="remoteWebpage"&&e.typedTrackData?.remoteWebpage!==void 0&&e.typedTrackData?.remoteWebpage!==null&&(t.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.fromPartial(e.typedTrackData.remoteWebpage)}),e.typedTrackData?.$case==="localWebpage"&&e.typedTrackData?.localWebpage!==void 0&&e.typedTrackData?.localWebpage!==null&&(t.typedTrackData={$case:"localWebpage",localWebpage:k6.fromPartial(e.typedTrackData.localWebpage)}),e.typedTrackData?.$case==="deepLink"&&e.typedTrackData?.deepLink!==void 0&&e.typedTrackData?.deepLink!==null&&(t.typedTrackData={$case:"deepLink",deepLink:ka.fromPartial(e.typedTrackData.deepLink)}),e.typedTrackData?.$case==="subscribe"&&e.typedTrackData?.subscribe!==void 0&&e.typedTrackData?.subscribe!==null&&(t.typedTrackData={$case:"subscribe",subscribe:bh.fromPartial(e.typedTrackData.subscribe)}
2),e.typedTrackData?.$case==="adToLens"&&e.typedTrackData?.adToLens!==void 0&&e.typedTrackData?.adToLens!==null&&(t.typedTrackData={$case:"adToLens",adToLens:AS.fromPartial(e.typedTrackData.adToLens)}),e.typedTrackData?.$case==="adToCall"&&e.typedTrackData?.adToCall!==void 0&&e.typedTrackData?.adToCall!==null&&(t.typedTrackData={$case:"adToCall",adToCall:vD.fromPartial(e.typedTrackData.adToCall)}),e.typedTrackData?.$case==="adToMessage"&&e.typedTrackData?.adToMessage!==void 0&&e.typedTrackData?.adToMessage!==null&&(t.typedTrackData={$case:"adToMessage",adToMessage:Av.fromPartial(e.typedTrackData.adToMessage)}),e.typedTrackData?.$case==="showcase"&&e.typedTrackData?.showcase!==void 0&&e.typedTrackData?.showcase!==null&&(t.typedTrackData={$case:"showcase",showcase:ks.fromPartial(e.typedTrackData.showcase)}),e.typedTrackData?.$case==="reminder"&&e.typedTrackData?.reminder!==void 0&&e.typedTrackData?.reminder!==null&&(t.typedTrackData={$case:"reminder",reminder:bC.fromPartial(e.typedTrackData.reminder)}),t}};function bB(){return{isViewed:void 0,isViewedAppSession:void 0,tileTapped:void 0,tileTimeViewedSeconds:void 0,hasCta:void 0,ctaTapped:void 0,containsPlayableAd:void 0,typedTrackData:void 0,tileAutoPlayEligible:void 0,tileAutoPlayed:void 0,tileAutoPlayTimeMs:void 0,skanStartImpressionTsMs:void 0,skanEndImpressionTsMs:void 0,skanViewThroughViewTimeSeconds:void 0}}let bF={encode(e,t=rA.default.Writer.create()){switch(void 0!==e.isViewed&&mX.encode({value:e.isViewed},t.uint32(10).fork()).ldelim(),void 0!==e.isViewedAppSession&&mX.encode({value:e.isViewedAppSession},t.uint32(18).fork()).ldelim(),void 0!==e.tileTapped&&mX.encode({value:e.tileTapped},t.uint32(26).fork()).ldelim(),void 0!==e.tileTimeViewedSeconds&&mH.encode({value:e.tileTimeViewedSeconds},t.uint32(34).fork()).ldelim(),void 0!==e.hasCta&&mX.encode({value:e.hasCta},t.uint32(42).fork()).ldelim(),void 0!==e.ctaTapped&&mX.encode({value:e.ctaTapped},t.uint32(50).fork()).ldelim(),void 0!==e.containsPlayableAd&&mX.encode({value:e.containsPlayableAd},t.uint32(82).fork()).ldelim(),e.typedTrackData?.$case){case"appInstall":Aq.encode(e.typedTrackData.appInstall,t.uint32(58).fork()).ldelim();break;case"remoteWebpage":ki.encode(e.typedTrackData.remoteWebpage,t.uint32(66).fork()).ldelim();break;case"deepLink":ka.encode(e.typedTrackData.deepLink,t.uint32(74).fork()).ldelim()}return void 0!==e.tileAutoPlayEligible&&mX.encode({value:e.tileAutoPlayEligible},t.uint32(90).fork()).ldelim(),void 0!==e.tileAutoPlayed&&mX.encode({value:e.tileAutoPlayed},t.uint32(98).fork()).ldelim(),void 0!==e.tileAutoPlayTimeMs&&mK.encode({value:e.tileAutoPlayTimeMs},t.uint32(106).fork()).ldelim(),void 0!==e.skanStartImpressionTsMs&&mK.encode({value:e.skanStartImpressionTsMs},t.uint32(114).fork()).ldelim(),void 0!==e.skanEndImpressionTsMs&&mK.encode({value:e.skanEndImpressionTsMs},t.uint32(122).fork()).ldelim(),void 0!==e.skanViewThroughViewTimeSeconds&&mH.encode({value:e.skanViewThroughViewTimeSeconds},t.uint32(130).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bB();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.isViewed=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.isViewedAppSession=mX.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.tileTapped=mX.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.tileTimeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.hasCta=mX.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.ctaTapped=mX.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.containsPlayableAd=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.typedTrackData={$case:"appInstall",appInstall:Aq.decode(i,i.uint32())};continue;case 8:if(66!==e)break;a.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.decode(i,i.uint32())};continue;case 9:if(74!==e)break;a.typedTrackData={$case:"deepLink",deepLink:ka.decode(i,i.uint32())};continue;case 11:if(90!==e)break;a.tileAutoPlayEligible=mX.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.tileAutoPlayed=mX.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.tileAutoPlayTimeMs=mK.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.skanStartImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.skanEndImpressionTsMs=mK.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.skanViewThroughViewTimeSeconds=mH.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bF.fromPartial(e??{}),fromPartial(e){let t=bB();return t.isViewed=e.isViewed??void 0,t.isViewedAppSession=e.isViewedAppSession??void 0,t.tileTapped=e.tileTapped??void 0,t.tileTimeViewedSeconds=e.tileTimeViewedSeconds??void 0,t.hasCta=e.hasCta??void 0,t.ctaTapped=e.ctaTapped??void 0,t.containsPlayableAd=e.containsPlayableAd??void 0,e.typedTrackData?.$case==="appInstall"&&e.typedTrackData?.appInstall!==void 0&&e.typedTrackData?.appInstall!==null&&(t.typedTrackData={$case:"appInstall",appInstall:Aq.fromPartial(e.typedTrackData.appInstall)}),e.typedTrackData?.$case==="remoteWebpage"&&e.typedTrackData?.remoteWebpage!==void 0&&e.typedTrackData?.remoteWebpage!==null&&(t.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.fromPartial(e.typedTrackData.remoteWebpage)}),e.typedTrackData?.$case==="deepLink"&&e.typedTrackData?.deepLink!==void 0&&e.typedTrackData?.deepLink!==null&&(t.typedTrackData={$case:"deepLink",deepLink:ka.fromPartial(e.typedTrackData.deepLink)}),t.tileAutoPlayEligible=e.tileAutoPlayEligible??void 0,t.tileAutoPlayed=e.tileAutoPlayed??void 0,t.tileAutoPlayTimeMs=e.tileAutoPlayTimeMs??void 0,t.skanStartImpressionTsMs=e.skanStartImpressionTsMs??void 0,t.skanEndImpressionTsMs=e.skanEndImpressionTsMs??void 0,t.skanViewThroughViewTimeSeconds=e.skanViewThroughViewTimeSeconds??void 0,t}};function bG(){return{ctaTapped:void 0,tileTimeViewedSeconds:void 0,typedTrackData:void 0}}let bW={encode(e,t=rA.default.Writer.create()){switch(void 0!==e.ctaTapped&&mX.encode({value:e.ctaTapped},t.uint32(10).fork()).ldelim(),void 0!==e.tileTimeViewedSeconds&&mH.encode({value:e.tileTimeViewedSeconds},t.uint32(18).fork()).ldelim(),e.typedTrackData?.$case){case"appInstall":Aq.encode(e.typedTrackData.appInstall,t.uint32(26).fork()).ldelim();break;case"remoteWebpage":ki.encode(e.typedTrackData.remoteWebpage,t.uint32(34).fork()).ldelim();break;case"deepLink":ka.encode(e.typedTrackData.deepLink,t.uint32(42).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bG();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.ctaTapped=mX.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.tileTimeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.typedTrackData={$case:"appInstall",appInstall:Aq.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.decode(i,i.uint32())};continue;case 5:if(42!==e)break;a.typedTrackData={$case:"deepLink",deepLink:ka.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bW.fromPartial(e??{}),fromPartial(e){let t=bG();return t.ctaTapped=e.ctaTapped??void 0,t.tileTimeViewedSeconds=e.tileTimeViewedSeconds??void 0,e.typedTrackData?.$case==="appInstall"&&e.typedTrackData?.appInstall!==void 0&&e.typedTrackData?.appInstall!==null&&(t.typedTrackData={$case:"appInstall",appInstall:Aq.fromPartial(e.typedTrackData.appInstall)}),e.typedTrackData?.$case==="remoteWebpage"&&e.typedTrackData?.remoteWebpage!==void 0&&e.typedTrackData?.remoteWebpage!==null&&(t.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.fromPartial(e.typedTrackData.remoteWebpage)}),e.typedTrackData?.$case==="deepLink"&&e.typedTrackData?.deepLink!==void 0&&e.typedTrackData?.deepLink!==null&&(t.typedTrackData={$case:"deepLink",deepLink:ka.fromPartial(e.typedTrackData.deepLink)}),t}};function bx(){return{expandButtonSnapIndex:void 0,expandButtonTapped:void 0}}let bH={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.expandButtonSnapIndex&&mq.encode({value:e.expandButtonSnapIndex},t.uint32(10).fork()).ldelim(),void 0!==e.expandButtonTapped&&mX.encode({value:e.expandButtonTapped},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bx();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.expandButtonSnapIndex=mq.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.expandButtonTapped=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bH.fromPartial(e??{}),fromPartial(e){let t=bx();return t.expandButtonSnapIndex=e.expandButtonSnapIndex??void 0,t.expandButtonTapped=e.expandButtonTapped??void 0,t}};function bY(){return{commonSnapAdImpression:void 0,answer:void 0}}let bK={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.commonSnapAdImpression&&vh.encode(e.commonSnapAdImpression,t.uint32(10).fork()).ldelim(),void 0!==e.answer&&vl.encode(e.answer,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bY();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.commonSnapAdImpression=vh.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.answer=vl.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bK.fromPartial(e??{}),fromPartial(e){let t=bY();return t.commonSnapAdImpression=void 0!==e.commonSnapAdImpression&&null!==e.commonSnapAdImpression?vh.fromPartial(e.commonSnapAdImpression):void 0,t.answer=void 0!==e.answer&&null!==e.answer?vl.fromPartial(e.answer):void 0,t}};function b$(){return{timeViewedSeconds:void 0,mediaDurationSeconds:void 0,encGeoData:new Uint8Array(0),isAudioOn:void 0,snapViewType:0,deviceInfo:void 0,snappableInviteAction:0,sponsoredInfo:void 0}}(a6=tQ||(tQ={}))[a6.UNKNOWN_SNAP_VIEW_TYPE=0]="UNKNOWN_SNAP_VIEW_TYPE",a6[a6.DIRECT_SNAP=1]="DIRECT_SNAP",a6[a6.STORY=2]="STORY",a6[a6.MEMORY_PREVIEW=3]="MEMORY_PREVIEW",a6[a6.MEMORY_EDIT=4]="MEMORY_EDIT",a6[a6.MEMORY_TILE=5]="MEMORY_TILE",a6[a6.DIRECT_SNAP_WITH_MODULAR_CAMERA=6]="DIRECT_SNAP_WITH_MODULAR_CAMERA",a6[a6.STORY_WITH_MODULAR_CAMERA=7]="STORY_WITH_MODULAR_CAMERA",a6[a6.LENS_CAROUSEL=8]="LENS_CAROUSEL",a6[a6.UNRECOGNIZED=-1]="UNRECOGNIZED",(a7=tJ||(tJ={}))[a7.UNKNOWN_SNAPPABLE_INVITE_ACTION=0]="UNKNOWN_SNAPPABLE_INVITE_ACTION",a7[a7.JOIN=1]="JOIN",a7[a7.SKIP=2]="SKIP",a7[a7.UNRECOGNIZED=-1]="UNRECOGNIZED";let bz={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.timeViewedSeconds&&mH.encode({value:e.timeViewedSeconds},t.uint32(10).fork()).ldelim(),void 0!==e.mediaDurationSeconds&&mH.encode({value:e.mediaDurationSeconds},t.uint32(18).fork()).ldelim(),0!==e.encGeoData.length&&t.uint32(26).bytes(e.encGeoData),void 0!==e.isAudioOn&&mX.encode({value:e.isAudioOn},t.uint32(34).fork()).ldelim(),0!==e.snapViewType&&t.uint32(40).int32(e.snapViewType),void 0!==e.deviceInfo&&vM.encode(e.deviceInfo,t.uint32(50).fork()).ldelim(),0!==e.snappableInviteAction&&t.uint32(56).int32(e.snappableInviteAction),void 0!==e.sponsoredInfo&&bZ.encode(e.sponsoredInfo,t.uint32(66).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b$();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.timeViewedSeconds=mH.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.mediaDurationSeconds=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.encGeoData=i.bytes();continue;case 4:if(34!==e)break;a.isAudioOn=mX.decode(i,i.uint32()).value;continue;case 5:if(40!==e)break;a.snapViewType=i.int32();continue;case 6:if(50!==e)break;a.deviceInfo=vM.decode(i,i.uint32());continue;case 7:if(56!==e)break;a.snappableInviteAction=i.int32();continue;case 8:if(66!==e)break;a.sponsoredInfo=bZ.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bz.fromPartial(e??{}),fromPartial(e){let t=b$();return t.timeViewedSeconds=e.timeViewedSeconds??void 0,t.mediaDurationSeconds=e.mediaDurationSeconds??void 0,t.encGeoData=e.encGeoData??new Uint8Array(0),t.isAudioOn=e.isAudioOn??void 0,t.snapViewType=e.snapViewType??0,t.deviceInfo=void 0!==e.deviceInfo&&null!==e.deviceInfo?vM.fromPartial(e.deviceInfo):void 0,t.snappableInviteAction=e.snappableInviteAction??0,t.sponsoredInfo=void 0!==e.sponsoredInfo&&null!==e.sponsoredInfo?bZ.fromPartial(e.sponsoredInfo):void 0,t}};function bq(){return{adId:"",withAttachmentOpenedCount:void 0}}let bZ={encode:(e,t=rA.default.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),void 0!==e.withAttachmentOpenedCount&&mq.encode({value:e.withAttachmentOpenedCount},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bq();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.adId=i.string();continue;case 2:if(18!==e)break;a.withAttachmentOpenedCount=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bZ.fromPartial(e??{}),fromPartial(e){let t=bq();return t.adId=e.adId??"",t.withAttachmentOpenedCount=e.withAttachmentOpenedCount??void 0,t}};function bj(){return{adType:0,typedTrackData:void 0,thirdPartyUrls:[],viewContext:void 0,adFlagData:void 0,screenWidth:void 0,screenHeight:void 0,creativeHeight:void 0,creativeWidth:void 0,isUnskippableAd:void 0,cognac:void 0,thirdPartyImpressionUrls:[],thirdPartyClickUrls:[],additionalFormatType:0,skAdNetworkVersion:void 0,thirdPartyEngagedViewUrls:[],openProfilePage:void 0,adHidingData:void 0,skAdNetworkClickThroughVersion:void 0,skAdNetworkViewThroughVersion:void 0,openTaggedProfilePage:void 0,adNotInterestedTapped:void 0,chatFeedCellImpression:void 0,openedProfileId:void 0,chatFeedBannerImpression:void 0,adUserSurveyImpression:void 0}}(a5=t0||(t0={}))[a5.UNKNOWN_POSITION=0]="UNKNOWN_POSITION",a5[a5.POST_ROLL=1]="POST_ROLL",a5[a5.MID_ROLL=2]="MID_ROLL",a5[a5.PRE_ROLL=3]="PRE_ROLL",a5[a5.UNRECOGNIZED=-1]="UNRECOGNIZED",(a9=t2||(t2={}))[a9.NONE=0]="NONE",a9[a9.SWIPE_UP=1]="SWIPE_UP",a9[a9.TAP=2]="TAP",a9[a9.SWIPE_LEFT=3]="SWIPE_LEFT",a9[a9.FOREGROUND=4]="FOREGROUND",a9[a9.UNRECOGNIZED=-1]="UNRECOGNIZED",(oe=t3||(t3={}))[oe.OPAQUE=0]="OPAQUE",oe[oe.TRANSLUCENT=1]="TRANSLUCENT",oe[oe.UNRECOGNIZED=-1]="UNRECOGNIZED",(ot=t1||(t
21={}))[ot.ORGANIC_ASSET_TYPE_UNKNOWN=0]="ORGANIC_ASSET_TYPE_UNKNOWN",ot[ot.ORGANIC_ASSET_TYPE_STORY=1]="ORGANIC_ASSET_TYPE_STORY",ot[ot.ORGANIC_ASSET_TYPE_GAME=2]="ORGANIC_ASSET_TYPE_GAME",ot[ot.UNRECOGNIZED=-1]="UNRECOGNIZED",(oi=t4||(t4={}))[oi.ORGANIC_CONTENT_ASSET_TYPE_UNKNOWN=0]="ORGANIC_CONTENT_ASSET_TYPE_UNKNOWN",oi[oi.ORGANIC_CONTENT_ASSET_TYPE_STORY=1]="ORGANIC_CONTENT_ASSET_TYPE_STORY",oi[oi.UNRECOGNIZED=-1]="UNRECOGNIZED",(on=t8||(t8={}))[on.UNSET_VOPERA_TYPE=0]="UNSET_VOPERA_TYPE",on[on.VOPERA_M2=1]="VOPERA_M2",on[on.VOPERA_M3=2]="VOPERA_M3",on[on.M3_ONLY=3]="M3_ONLY",on[on.VOPERA_DEFAULT_DESIGN=4]="VOPERA_DEFAULT_DESIGN",on[on.UNRECOGNIZED=-1]="UNRECOGNIZED";let bX={encode(e,t=rA.default.Writer.create()){switch(0!==e.adType&&t.uint32(8).int32(e.adType),e.typedTrackData?.$case){case"threeV":bD.encode(e.typedTrackData.threeV,t.uint32(18).fork()).ldelim();break;case"appInstall":Aq.encode(e.typedTrackData.appInstall,t.uint32(26).fork()).ldelim();break;case"longformVideo":k5.encode(e.typedTrackData.longformVideo,t.uint32(34).fork()).ldelim();break;case"remoteWebpage":ki.encode(e.typedTrackData.remoteWebpage,t.uint32(42).fork()).ldelim();break;case"localWebpage":k6.encode(e.typedTrackData.localWebpage,t.uint32(50).fork()).ldelim();break;case"story":bM.encode(e.typedTrackData.story,t.uint32(58).fork()).ldelim();break;case"lensCarousel":Ae.encode(e.typedTrackData.lensCarousel,t.uint32(66).fork()).ldelim();break;case"filterCarousel":kT.encode(e.typedTrackData.filterCarousel,t.uint32(74).fork()).ldelim();break;case"deepLink":ka.encode(e.typedTrackData.deepLink,t.uint32(82).fork()).ldelim();break;case"filter":kE.encode(e.typedTrackData.filter,t.uint32(90).fork()).ldelim();break;case"lens":Ai.encode(e.typedTrackData.lens,t.uint32(98).fork()).ldelim();break;case"subscribe":bh.encode(e.typedTrackData.subscribe,t.uint32(106).fork()).ldelim();break;case"adToLens":AS.encode(e.typedTrackData.adToLens,t.uint32(114).fork()).ldelim();break;case"collection":kc.encode(e.typedTrackData.collection,t.uint32(186).fork()).ldelim();break;case"unlockableView":bz.encode(e.typedTrackData.unlockableView,t.uint32(194).fork()).ldelim();break;case"lensExplorer":Ac.encode(e.typedTrackData.lensExplorer,t.uint32(226).fork()).ldelim();break;case"adToCall":vD.encode(e.typedTrackData.adToCall,t.uint32(234).fork()).ldelim();break;case"adToMessage":Av.encode(e.typedTrackData.adToMessage,t.uint32(242).fork()).ldelim();break;case"showcase":ks.encode(e.typedTrackData.showcase,t.uint32(250).fork()).ldelim();break;case"adToPlace":Ak.encode(e.typedTrackData.adToPlace,t.uint32(258).fork()).ldelim();break;case"leadGeneration":k4.encode(e.typedTrackData.leadGeneration,t.uint32(282).fork()).ldelim();break;case"payToPromote":be.encode(e.typedTrackData.payToPromote,t.uint32(314).fork()).ldelim();break;case"reminder":bC.encode(e.typedTrackData.reminder,t.uint32(338).fork()).ldelim();break;case"survey":bK.encode(e.typedTrackData.survey,t.uint32(346).fork()).ldelim();break;case"indexedStory":kS.encode(e.typedTrackData.indexedStory,t.uint32(370).fork()).ldelim();break;case"promotedPlace":bn.encode(e.typedTrackData.promotedPlace,t.uint32(394).fork()).ldelim()}for(let i of e.thirdPartyUrls)mJ.encode({value:i},t.uint32(122).fork()).ldelim();for(let i of(void 0!==e.viewContext&&bJ.encode(e.viewContext,t.uint32(130).fork()).ldelim(),void 0!==e.adFlagData&&SP.encode(e.adFlagData,t.uint32(138).fork()).ldelim(),void 0!==e.screenWidth&&mK.encode({value:e.screenWidth},t.uint32(146).fork()).ldelim(),void 0!==e.screenHeight&&mK.encode({value:e.screenHeight},t.uint32(154).fork()).ldelim(),void 0!==e.creativeHeight&&mK.encode({value:e.creativeHeight},t.uint32(162).fork()).ldelim(),void 0!==e.creativeWidth&&mK.encode({value:e.creativeWidth},t.uint32(170).fork()).ldelim(),void 0!==e.isUnskippableAd&&mX.encode({value:e.isUnskippableAd},t.uint32(178).fork()).ldelim(),void 0!==e.cognac&&A0.encode(e.cognac,t.uint32(202).fork()).ldelim(),e.thirdPartyImpressionUrls))mJ.encode({value:i},t.uint32(210).fork()).ldelim();for(let i of e.thirdPartyClickUrls)mJ.encode({value:i},t.uint32(218).fork()).ldelim();for(let i of(0!==e.additionalFormatType&&t.uint32(264).int32(e.additionalFormatType),void 0!==e.skAdNetworkVersion&&mH.encode({value:e.skAdNetworkVersion},t.uint32(274).fork()).ldelim(),e.thirdPartyEngagedViewUrls))mJ.encode({value:i},t.uint32(290).fork()).ldelim();return void 0!==e.openProfilePage&&mX.encode({value:e.openProfilePage},t.uint32(298).fork()).ldelim(),void 0!==e.adHidingData&&SC.encode(e.adHidingData,t.uint32(306).fork()).ldelim(),void 0!==e.skAdNetworkClickThroughVersion&&mJ.encode({value:e.skAdNetworkClickThroughVersion},t.uint32(322).fork()).ldelim(),void 0!==e.skAdNetworkViewThroughVersion&&mJ.encode({value:e.skAdNetworkViewThroughVersion},t.uint32(330).fork()).ldelim(),void 0!==e.openTaggedProfilePage&&mX.encode({value:e.openTaggedProfilePage},t.uint32(354).fork()).ldelim(),void 0!==e.adNotInterestedTapped&&mX.encode({value:e.adNotInterestedTapped},t.uint32(362).fork()).ldelim(),void 0!==e.chatFeedCellImpression&&AQ.encode(e.chatFeedCellImpression,t.uint32(378).fork()).ldelim(),void 0!==e.openedProfileId&&mJ.encode({value:e.openedProfileId},t.uint32(386).fork()).ldelim(),void 0!==e.chatFeedBannerImpression&&Aj.encode(e.chatFeedBannerImpression,t.uint32(402).fork()).ldelim(),void 0!==e.adUserSurveyImpression&&Ag.encode(e.adUserSurveyImpression,t.uint32(410).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bj();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.adType=i.int32();continue;case 2:if(18!==e)break;a.typedTrackData={$case:"threeV",threeV:bD.decode(i,i.uint32())};continue;case 3:if(26!==e)break;a.typedTrackData={$case:"appInstall",appInstall:Aq.decode(i,i.uint32())};continue;case 4:if(34!==e)break;a.typedTrackData={$case:"longformVideo",longformVideo:k5.decode(i,i.uint32())};continue;case 5:if(42!==e)break;a.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.decode(i,i.uint32())};continue;case 6:if(50!==e)break;a.typedTrackData={$case:"localWebpage",localWebpage:k6.decode(i,i.uint32())};continue;case 7:if(58!==e)break;a.typedTrackData={$case:"story",story:bM.decode(i,i.uint32())};continue;case 8:if(66!==e)break;a.typedTrackData={$case:"lensCarousel",lensCarousel:Ae.decode(i,i.uint32())};continue;case 9:if(74!==e)break;a.typedTrackData={$case:"filterCarousel",filterCarousel:kT.decode(i,i.uint32())};continue;case 10:if(82!==e)break;a.typedTrackData={$case:"deepLink",deepLink:ka.decode(i,i.uint32())};continue;case 11:if(90!==e)break;a.typedTrackData={$case:"filter",filter:kE.decode(i,i.uint32())};continue;case 12:if(98!==e)break;a.typedTrackData={$case:"lens",lens:Ai.decode(i,i.uint32())};continue;case 13:if(106!==e)break;a.typedTrackData={$case:"subscribe",subscribe:bh.decode(i,i.uint32())};continue;case 14:if(114!==e)break;a.typedTrackData={$case:"adToLens",adToLens:AS.decode(i,i.uint32())};continue;case 23:if(186!==e)break;a.typedTrackData={$case:"collection",collection:kc.decode(i,i.uint32())};continue;case 24:if(194!==e)break;a.typedTrackData={$case:"unlockableView",unlockableView:bz.decode(i,i.uint32())};continue;case 28:if(226!==e)break;a.typedTrackData={$case:"lensExplorer",lensExplorer:Ac.decode(i,i.uint32())};continue;case 29:if(234!==e)break;a.typedTrackData={$case:"adToCall",adToCall:vD.decode(i,i.uint32())};continue;case 30:if(242!==e)break;a.typedTrackData={$case:"adToMessage",adToMessage:Av.decode(i,i.uint32())};continue;case 31:if(250!==e)break;a.typedTrackData={$case:"showcase",showcase:ks.decode(i,i.uint32())};continue;case 32:if(258!==e)break;a.typedTrackData={$case:"adToPlace",adToPlace:Ak.decode(i,i.uint32())};continue;case 35:if(282!==e)break;a.typedTrackData={$case:"leadGeneration",leadGeneration:k4.decode(i,i.uint32())};continue;case 39:if(314!==e)break;a.typedTrackData={$case:"payToPromote",payToPromote:be.decode(i,i.uint32())};continue;case 42:if(338!==e)break;a.typedTrackData={$case:"reminder",reminder:bC.decode(i,i.uint32())};continue;case 43:if(346!==e)break;a.typedTrackData={$case:"survey",survey:bK.decode(i,i.uint32())};continue;case 46:if(370!==e)break;a.typedTrackData={$case:"indexedStory",indexedStory:kS.decode(i,i.uint32())};continue;case 49:if(394!==e)break;a.typedTrackData={$case:"promotedPlace",promotedPlace:bn.decode(i,i.uint32())};continue;case 15:if(122!==e)break;a.thirdPartyUrls.push(mJ.decode(i,i.uint32()).value);continue;case 16:if(130!==e)break;a.viewContext=bJ.decode(i,i.uint32());continue;case 17:if(138!==e)break;a.adFlagData=SP.decode(i,i.uint32());continue;case 18:if(146!==e)break;a.screenWidth=mK.decode(i,i.uint32()).value;continue;case 19:if(154!==e)break;
2a.screenHeight=mK.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.creativeHeight=mK.decode(i,i.uint32()).value;continue;case 21:if(170!==e)break;a.creativeWidth=mK.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.isUnskippableAd=mX.decode(i,i.uint32()).value;continue;case 25:if(202!==e)break;a.cognac=A0.decode(i,i.uint32());continue;case 26:if(210!==e)break;a.thirdPartyImpressionUrls.push(mJ.decode(i,i.uint32()).value);continue;case 27:if(218!==e)break;a.thirdPartyClickUrls.push(mJ.decode(i,i.uint32()).value);continue;case 33:if(264!==e)break;a.additionalFormatType=i.int32();continue;case 34:if(274!==e)break;a.skAdNetworkVersion=mH.decode(i,i.uint32()).value;continue;case 36:if(290!==e)break;a.thirdPartyEngagedViewUrls.push(mJ.decode(i,i.uint32()).value);continue;case 37:if(298!==e)break;a.openProfilePage=mX.decode(i,i.uint32()).value;continue;case 38:if(306!==e)break;a.adHidingData=SC.decode(i,i.uint32());continue;case 40:if(322!==e)break;a.skAdNetworkClickThroughVersion=mJ.decode(i,i.uint32()).value;continue;case 41:if(330!==e)break;a.skAdNetworkViewThroughVersion=mJ.decode(i,i.uint32()).value;continue;case 44:if(354!==e)break;a.openTaggedProfilePage=mX.decode(i,i.uint32()).value;continue;case 45:if(362!==e)break;a.adNotInterestedTapped=mX.decode(i,i.uint32()).value;continue;case 47:if(378!==e)break;a.chatFeedCellImpression=AQ.decode(i,i.uint32());continue;case 48:if(386!==e)break;a.openedProfileId=mJ.decode(i,i.uint32()).value;continue;case 50:if(402!==e)break;a.chatFeedBannerImpression=Aj.decode(i,i.uint32());continue;case 51:if(410!==e)break;a.adUserSurveyImpression=Ag.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bX.fromPartial(e??{}),fromPartial(e){let t=bj();return t.adType=e.adType??0,e.typedTrackData?.$case==="threeV"&&e.typedTrackData?.threeV!==void 0&&e.typedTrackData?.threeV!==null&&(t.typedTrackData={$case:"threeV",threeV:bD.fromPartial(e.typedTrackData.threeV)}),e.typedTrackData?.$case==="appInstall"&&e.typedTrackData?.appInstall!==void 0&&e.typedTrackData?.appInstall!==null&&(t.typedTrackData={$case:"appInstall",appInstall:Aq.fromPartial(e.typedTrackData.appInstall)}),e.typedTrackData?.$case==="longformVideo"&&e.typedTrackData?.longformVideo!==void 0&&e.typedTrackData?.longformVideo!==null&&(t.typedTrackData={$case:"longformVideo",longformVideo:k5.fromPartial(e.typedTrackData.longformVideo)}),e.typedTrackData?.$case==="remoteWebpage"&&e.typedTrackData?.remoteWebpage!==void 0&&e.typedTrackData?.remoteWebpage!==null&&(t.typedTrackData={$case:"remoteWebpage",remoteWebpage:ki.fromPartial(e.typedTrackData.remoteWebpage)}),e.typedTrackData?.$case==="localWebpage"&&e.typedTrackData?.localWebpage!==void 0&&e.typedTrackData?.localWebpage!==null&&(t.typedTrackData={$case:"localWebpage",localWebpage:k6.fromPartial(e.typedTrackData.localWebpage)}),e.typedTrackData?.$case==="story"&&e.typedTrackData?.story!==void 0&&e.typedTrackData?.story!==null&&(t.typedTrackData={$case:"story",story:bM.fromPartial(e.typedTrackData.story)}),e.typedTrackData?.$case==="lensCarousel"&&e.typedTrackData?.lensCarousel!==void 0&&e.typedTrackData?.lensCarousel!==null&&(t.typedTrackData={$case:"lensCarousel",lensCarousel:Ae.fromPartial(e.typedTrackData.lensCarousel)}),e.typedTrackData?.$case==="filterCarousel"&&e.typedTrackData?.filterCarousel!==void 0&&e.typedTrackData?.filterCarousel!==null&&(t.typedTrackData={$case:"filterCarousel",filterCarousel:kT.fromPartial(e.typedTrackData.filterCarousel)}),e.typedTrackData?.$case==="deepLink"&&e.typedTrackData?.deepLink!==void 0&&e.typedTrackData?.deepLink!==null&&(t.typedTrackData={$case:"deepLink",deepLink:ka.fromPartial(e.typedTrackData.deepLink)}),e.typedTrackData?.$case==="filter"&&e.typedTrackData?.filter!==void 0&&e.typedTrackData?.filter!==null&&(t.typedTrackData={$case:"filter",filter:kE.fromPartial(e.typedTrackData.filter)}),e.typedTrackData?.$case==="lens"&&e.typedTrackData?.lens!==void 0&&e.typedTrackData?.lens!==null&&(t.typedTrackData={$case:"lens",lens:Ai.fromPartial(e.typedTrackData.lens)}),e.typedTrackData?.$case==="subscribe"&&e.typedTrackData?.subscribe!==void 0&&e.typedTrackData?.subscribe!==null&&(t.typedTrackData={$case:"subscribe",subscribe:bh.fromPartial(e.typedTrackData.subscribe)}
2),e.typedTrackData?.$case==="adToLens"&&e.typedTrackData?.adToLens!==void 0&&e.typedTrackData?.adToLens!==null&&(t.typedTrackData={$case:"adToLens",adToLens:AS.fromPartial(e.typedTrackData.adToLens)}),e.typedTrackData?.$case==="collection"&&e.typedTrackData?.collection!==void 0&&e.typedTrackData?.collection!==null&&(t.typedTrackData={$case:"collection",collection:kc.fromPartial(e.typedTrackData.collection)}),e.typedTrackData?.$case==="unlockableView"&&e.typedTrackData?.unlockableView!==void 0&&e.typedTrackData?.unlockableView!==null&&(t.typedTrackData={$case:"unlockableView",unlockableView:bz.fromPartial(e.typedTrackData.unlockableView)}),e.typedTrackData?.$case==="lensExplorer"&&e.typedTrackData?.lensExplorer!==void 0&&e.typedTrackData?.lensExplorer!==null&&(t.typedTrackData={$case:"lensExplorer",lensExplorer:Ac.fromPartial(e.typedTrackData.lensExplorer)}),e.typedTrackData?.$case==="adToCall"&&e.typedTrackData?.adToCall!==void 0&&e.typedTrackData?.adToCall!==null&&(t.typedTrackData={$case:"adToCall",adToCall:vD.fromPartial(e.typedTrackData.adToCall)}),e.typedTrackData?.$case==="adToMessage"&&e.typedTrackData?.adToMessage!==void 0&&e.typedTrackData?.adToMessage!==null&&(t.typedTrackData={$case:"adToMessage",adToMessage:Av.fromPartial(e.typedTrackData.adToMessage)}),e.typedTrackData?.$case==="showcase"&&e.typedTrackData?.showcase!==void 0&&e.typedTrackData?.showcase!==null&&(t.typedTrackData={$case:"showcase",showcase:ks.fromPartial(e.typedTrackData.showcase)}),e.typedTrackData?.$case==="adToPlace"&&e.typedTrackData?.adToPlace!==void 0&&e.typedTrackData?.adToPlace!==null&&(t.typedTrackData={$case:"adToPlace",adToPlace:Ak.fromPartial(e.typedTrackData.adToPlace)}),e.typedTrackData?.$case==="leadGeneration"&&e.typedTrackData?.leadGeneration!==void 0&&e.typedTrackData?.leadGeneration!==null&&(t.typedTrackData={$case:"leadGeneration",leadGeneration:k4.fromPartial(e.typedTrackData.leadGeneration)}),e.typedTrackData?.$case==="payToPromote"&&e.typedTrackData?.payToPromote!==void 0&&e.typedTrackData?.payToPromote!==null&&(t.typedTrackData={$case:"payToPromote",payToPromote:be.fromPartial(e.typedTrackData.payToPromote)}),e.typedTrackData?.$case==="reminder"&&e.typedTrackData?.reminder!==void 0&&e.typedTrackData?.reminder!==null&&(t.typedTrackData={$case:"reminder",reminder:bC.fromPartial(e.typedTrackData.reminder)}),e.typedTrackData?.$case==="survey"&&e.typedTrackData?.survey!==void 0&&e.typedTrackData?.survey!==null&&(t.typedTrackData={$case:"survey",survey:bK.fromPartial(e.typedTrackData.survey)}),e.typedTrackData?.$case==="indexedStory"&&e.typedTrackData?.indexedStory!==void 0&&e.typedTrackData?.indexedStory!==null&&(t.typedTrackData={$case:"indexedStory",indexedStory:kS.fromPartial(e.typedTrackData.indexedStory)}),e.typedTrackData?.$case==="promotedPlace"&&e.typedTrackData?.promotedPlace!==void 0&&e.typedTrackData?.promotedPlace!==null&&(t.typedTrackData={$case:"promotedPlace",promotedPlace:bn.fromPartial(e.typedTrackData.promotedPlace)}),t.thirdPartyUrls=e.thirdPartyUrls?.map(e=>e)||[],t.viewContext=void 0!==e.viewContext&&null!==e.viewContext?bJ.fromPartial(e.viewContext):void 0,t.adFlagData=void 0!==e.adFlagData&&null!==e.adFlagData?SP.fromPartial(e.adFlagData):void 0,t.screenWidth=e.screenWidth??void 0,t.screenHeight=e.screenHeight??void 0,t.creativeHeight=e.creativeHeight??void 0,t.creativeWidth=e.creativeWidth??void 0,t.isUnskippableAd=e.isUnskippableAd??void 0,t.cognac=void 0!==e.cognac&&null!==e.cognac?A0.fromPartial(e.cognac):void 0,t.thirdPartyImpressionUrls=e.thirdPartyImpressionUrls?.map(e=>e)||[],t.thirdPartyClickUrls=e.thirdPartyClickUrls?.map(e=>e)||[],t.additionalFormatType=e.additionalFormatType??0,t.skAdNetworkVersion=e.skAdNetworkVersion??void 0,t.thirdPartyEngagedViewUrls=e.thirdPartyEngagedViewUrls?.map(e=>e)||[],t.openProfilePage=e.openProfilePage??void 0,t.adHidingData=void 0!==e.adHidingData&&null!==e.adHidingData?SC.fromPartial(e.adHidingData):void 0,t.skAdNetworkClickThroughVersion=e.skAdNetworkClickThroughVersion??void 0,t.skAdNetworkViewThroughVersion=e.skAdNetworkViewThroughVersion??void 0,t.openTaggedProfilePage=e.openTaggedProfilePage??void 0,t.adNotInterestedTapped=e.adNotInterestedTapped??void 0,t.chatFeedCellImpression=void 0!==e.chatFeedCellImpression&&null!==e.chatFeedCellImpression?AQ.fromPartial(e.chatFeedCellImpression):void 0,t.openedProfileId=e.openedProfileId??void 0,t.chatFeedBannerImpression=void 0!==e.chatFeedBannerImpression&&null!==e.chatFeedBannerImpression?Aj.fromPartial(e.chatFeedBannerImpression):void 0,t.adUserSurveyImpression=void 0!==e.adUserSurveyImpression&&null!==e.adUserSurveyImpression?Ag.fromPartial(e.adUserSurveyImpression):void 0,t}};function bQ(){return{exitEvent:0,viewSource:0,storiesLeft:void 0,renderedPosition:0,intendedPosition:0,adIndexPos:void 0,snapIndex:void 0,snapCount:void 0,editionId:void 0,publisherId:void 0,posterId:void 0,audioPlaybackVolume:void 0,autoAdvanceIndex:void 0,autoAdvanceCount:void 0,isArchivedEdition:void 0,useTrackAndGet:void 0,attachmentTriggerType:0,operaType:0,isOptionalAdBreak:void 0,operaActionBarType:0,placementInPod:void 0,adsPerPod:void 0,precedingStoryType:0,adInsertionDelayedReason:0,isWithinPayToPromoteContent:void 0,profileId:void 0,organicAssetId:void 0,organicAssetType:0,organicContextAssetId:void 0,organicContextAssetType:0,parentAdId:void 0,organicContextProfileId:void 0,subscriberStatus:void 0,gameBuildId:void 0,podId:void 0,podIndexPos:void 0,adsPerPodOriginal:void 0,publisherName:void 0,voperaType:0,swipeToAttachmentRestrictionDurationMs:void 0,cardCtaAnimationDelayMs:void 0,serverDrivenSsfEnabled:void 0,swipeSensitivityConfig:void 0,voperaSwipeLeftHintDisplayTimeMs:void 0,pillButtonAnimationDelayMs:void 0,decidingAdjacentOrganicGarmSafety:0,adInsertPos:void 0,segmentIndex:void 0}}let bJ={encode:(e,t=rA.default.Writer.create())=>(0!==e.exitEvent&&t.uint32(8).int32(e.exitEvent),0!==e.viewSource&&t.uint32(16).int32(e.viewSource),void 0!==e.storiesLeft&&mq.encode({value:e.storiesLeft},t.uint32(26).fork()).ldelim(),0!==e.renderedPosition&&t.uint32(32).int32(e.renderedPosition),0!==e.intendedPosition&&t.uint32(40).int32(e.intendedPosition),void 0!==e.adIndexPos&&mq.encode({value:e.adIndexPos},t.uint32(50).fork()).ldelim(),void 0!==e.snapIndex&&mq.encode({value:e.snapIndex},t.uint32(58).fork()).ldelim(),void 0!==e.snapCount&&mq.encode({value:e.snapCount},t.uint32(66).fork()).ldelim(),void 0!==e.editionId&&mJ.encode({value:e.editionId},t.uint32(74).fork()).ldelim(),void 0!==e.publisherId&&mJ.encode({value:e.publisherId},t.uint32(82).fork()).ldelim(),void 0!==e.posterId&&mJ.encode({value:e.posterId},t.uint32(90).fork()).ldelim(),void 0!==e.audioPlaybackVolume&&mH.encode({value:e.audioPlaybackVolume},t.uint32(98).fork()).ldelim(),void 0!==e.autoAdvanceIndex&&mq.encode({value:e.autoAdvanceIndex},t.uint32(106).fork()).ldelim(),void 0!==e.autoAdvanceCount&&mq.encode({value:e.autoAdvanceCount},t.uint32(114).fork()).ldelim(),void 0!==e.isArchivedEdition&&mX.encode({value:e.isArchivedEdition},t.uint32(122).fork()).ldelim(),void 0!==e.useTrackAndGet&&mX.encode({value:e.useTrackAndGet},t.uint32(130).fork()).ldelim(),0!==e.attachmentTriggerType&&t.uint32(136).int32(e.attachmentTriggerType),0!==e.operaType&&t.uint32(144).int32(e.operaType),void 0!==e.isOptionalAdBreak&&mX.encode({value:e.isOptionalAdBreak},t.uint32(154).fork()).ldelim(),0!==e.operaActionBarType&&t.uint32(160).int32(e.operaActionBarType),void 0!==e.placementInPod&&mq.encode({value:e.placementInPod},t.uint32(170).fork()).ldelim(),void 0!==e.adsPerPod&&mq.encode({value:e.adsPerPod},t.uint32(178).fork()).ldelim(),0!==e.precedingStoryType&&t.uint32(184).int32(e.precedingStoryType),0!==e.adInsertionDelayedReason&&t.uint32(192).int32(e.adInsertionDelayedReason),void 0!==e.isWithinPayToPromoteContent&&mX.encode({value:e.isWithinPayToPromoteContent},t.uint32(202).fork()).ldelim(),void 0!==e.profileId&&mJ.encode({value:e.profileId},t.uint32(210).fork()).ldelim(),void 0!==e.organicAssetId&&mJ.encode({value:e.organicAssetId},t.uint32(218).fork()).ldelim(),0!==e.organicAssetType&&t.uint32(224).int32(e.organicAssetType),void 0!==e.organicContextAssetId&&mJ.encode({value:e.organicContextAssetId},t.uint32(234).fork()).ldelim(),0!==e.organicContextAssetType&&t.uint32(240).int32(e.organicContextAssetType),void 0!==e.parentAdId&&mJ.encode({value:e.parentAdId},t.uint32(250).fork()).ldelim(),void 0!==e.organicContextProfileId&&mJ.encode({value:e.organicContextProfileId},t.uint32(258).fork()).ldelim(),void 0!==e.subscriberStatus&&mX.encode({value:e.subscriberStatus},t.uint32(266).fork()).ldelim(),void 0!==e.gameBuildId&&mJ.encode({value:e.gameBuildId},t.uint32(274).fork()).ldelim(),void 0!==e.podId&&mJ.encode({value:e.podId},t.uint32(282).fork()).ldelim(),void 0!==e.podIndexPos&&mq.encode({value:e.podIndexPos},t.uint32(290).fork()).ldelim(),void 0!==e.adsPerPodOriginal&&mq.encode({value:e.adsPerPodOriginal},t.uint32(298).fork()).ldelim(),void 0!==e.publisherName&&mJ.encode({value:e.publisherName},t.uint32(306).fork()).ldelim(),0!==e.voperaType&&t.uint32(312).int32(e.voperaType),void 0!==e.swipeToAttachmentRestrictionDurationMs&&mq.encode({value:e.swipeToAttachmentRestrictionDurationMs},t.uint32(322).fork()).ldelim(),void 0!==e.cardCtaAnimationDelayMs&&mq.encode({value:e.cardCtaAnimationDelayMs},t.uint32(330).fork()).ldelim(),void 0!==e.serverDrivenSsfEnabled&&mX.encode({value:e.serverDrivenSsfEnabled},t.uint32(338).fork()).ldelim(),void 0!==e.swipeSensitivityConfig&&SA.encode(e.swipeSensitivityConfig,t.uint32(346).fork()).ldelim(),void 0!==e.voperaSwipeLeftHintDisplayTimeMs&&mq.encode({value:e.voperaSwipeLeftHintDisplayTimeMs},t.uint32(354).fork()).ldelim(),void 0!==e.pillButtonAnimationDelayMs&&mq.encode({value:e.pillButtonAnimationDelayMs},t.uint32(362).fork()).ldelim(),0!==e.decidingAdjacentOrganicGarmSafety&&t.uint32(368).int32(e.decidingAdjacentOrganicGarmSafety),void 0!==e.adInsertPos&&mq.encode({value:e.adInsertPos},t.uint32(378).fork()).ldelim(),void 0!==e.segmentIndex&&mq.encode({value:e.segmentIndex},t.uint32(386).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=bQ();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.exitEvent=i.int32();continue;case 2:if(16!==e)break;a.viewSource=i.int32();continue;case 3:if(26!==e)break;a.storiesLeft=mq.decode(i,i.uint32()).value;continue;case 4:if(32!==e)break;a.renderedPosition=i.int32();continue;case 5:if(40!==e)break;a.intendedPosition=i.int32();continue;case 6:if(50!==e)break;a.adIndexPos=mq.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.snapIndex=mq.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.snapCount=mq.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.editionId=mJ.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.publisherId=mJ.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.posterId=mJ.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.audioPlaybackVolume=mH.decode(i,i.uint32()).value;continue;case 13:if(106!==e)break;a.autoAdvanceIndex=mq.decode(i,i.uint32()).value;continue;case 14:if(114!==e)break;a.autoAdvanceCount=mq.decode(i,i.uint32()).value;continue;case 15:if(122!==e)break;a.isArchivedEdition=mX.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.useTrackAndGet=mX.decode(i,i.uint32()).value;continue;case 17:if(136!==e)break;a.attachmentTriggerType=i.int32();continue;case 18:if(144!==e)break;a.operaType=i.int32();continue;case 19:if(154!==e)break;a.isOptionalAdBreak=mX.decode(i,i.uint32()).value;continue;case 20:if(160!==e)break;a.operaActionBarType=i.int32();continue;case 21:if(170!==e)break;a.placementInPod=mq.decode(i,i.uint32()).value;continue;case 22:if(178!==e)break;a.adsPerPod=mq.decode(i,i.uint32()).value;continue;case 23:if(184!==e)break;a.precedingStoryType=i.int32();continue;case 24:if(192!==e)break;a.adInsertionDelayedReason=i.int32();continue;case 25:if(202!==e)break;a.isWithinPayToPromoteContent=mX.decode(i,i.uint32()).value;continue;case 26:if(210!==e)break;a.profileId=mJ.decode(i,i.uint32()).value;continue;case 27:if(218!==e)break;a.organicAssetId=mJ.decode(i,i.uint32()).value;continue;case 28:if(224!==e)break;a.organicAssetType=i.int32();continue;case 29:if(234!==e)break;a.organicContextAssetId=mJ.decode(i,i.uint32()).value;continue;case 30:if(240!==e)break;a.organicContextAssetType=i.int32();continue;case 31:if(250!==e)break;a.parentAdId=mJ.decode(i,i.uint32()).value;continue;case 32:if(258!==e)break;a.organicContextProfileId=mJ.decode(i,i.uint32()).value;continue;case 33:if(266!==e)break;a.subscriberStatus=mX.decode(i,i.uint32()).value;continue;case 34:if(274!==e)break;a.gameBuildId=mJ.decode(i,i.uint32()).value;continue;case 35:if(282!==e)break;a.podId=mJ.decode(i,i.uint32()).value;continue;case 36:if(290!==e)break;a.podIndexPos=mq.decode(i,i.uint32()).value;continue;case 37:if(298!==e)break;a.adsPerPodOriginal=mq.decode(i,i.uint32()).value;continue;case 38:if(306!==e)break;a.publisherName=mJ.decode(i,i.uint32()).value;continue;case 39:if(312!==e)break;a.voperaType=i.int32();continue;case 40:if(322!==e)break;a.swipeToAttachmentRestrictionDurationMs=mq.decode(i,i.uint32()).value;continue;case 41:if(330!==e)break;a.cardCtaAnimationDelayMs=mq.decode(i,i.uint32()).value;continue;case 42:if(338!==e)break;a.serverDrivenSsfEnabled=mX.decode(i,i.uint32()).value;continue;case 43:if(346!==e)break;a.swipeSensitivityConfig=SA.decode(i,i.uint32());continue;case 44:if(354!==e)break;a.voperaSwipeLeftHintDisplayTimeMs=mq.decode(i,i.uint32()).value;continue;case 45:if(362!==e)break;a.pillButtonAnimationDelayMs=mq.decode(i,i.uint32()).value;continue;case 46:if(368!==e)break;a.decidingAdjacentOrganicGarmSafety=i.int32();continue;case 47:if(378!==e)break;a.adInsertPos=mq.decode(i,i.uint32()).value;continue;case 48:if(386!==e)break;a.segmentIndex=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>bJ.fromPartial(e??{}),fromPartial(e){let t=bQ();return t.exitEvent=e.exitEvent??0,t.viewSource=e.viewSource??0,t.storiesLeft=e.storiesLeft??void 0,t.renderedPosition=e.renderedPosition??0,t.intendedPosition=e.intendedPosition??0,t.adIndexPos=e.adIndexPos??void 0,t.snapIndex=e.snapIndex??void 0,t.snapCount=e.snapCount??void 0,t.editionId=e.editionId??void 0,t.publisherId=e.publisherId??void 0,t.posterId=e.posterId??void 0,t.audioPlaybackVolume=e.audioPlaybackVolume??void 0,t.autoAdvanceIndex=e.autoAdvanceIndex??void 0,t.autoAdvanceCount=e.autoAdvanceCount??void 0,t.isArchivedEdition=e.isArchivedEdition??void 0,t.useTrackAndGet=e.useTrackAndGet??void 0,t.attachmentTriggerType=e.attachmentTriggerType??0,t.operaType=e.operaType??0,t.isOptionalAdBreak=e.isOptionalAdBreak??void 0,t.operaActionBarType=e.operaActionBarType??0,t.placementInPod=e.placementInPod??void 0,t.adsPerPod=e.adsPerPod??void 0,t.precedingStoryType=e.precedingStoryType??0,t.adInsertionDelayedReason=e.adInsertionDelayedReason??0,t.isWithinPayToPromoteContent=e.isWithinPayToPromoteContent??void 0,t.profileId=e.profileId??void 0,t.organicAssetId=e.organicAssetId??void 0,t.organicAssetType=e.organicAssetType??0,t.organicContextAssetId=e.organicContextAssetId??void 0,t.organicContextAssetType=e.organicContextAssetType??0,t.parentAdId=e.parentAdId??void 0,t.organicContextProfileId=e.organicContextProfileId??void 0,t.subscriberStatus=e.subscriberStatus??void 0,t.gameBuildId=e.gameBuildId??void 0,t.podId=e.podId??void 0,t.podIndexPos=e.podIndexPos??void 0,t.adsPerPodOriginal=e.adsPerPodOriginal??void 0,t.publisherName=e.publisherName??void 0,t.voperaType=e.voperaType??0,t.swipeToAttachmentRestrictionDurationMs=e.swipeToAttachmentRestrictionDurationMs??void 0,t.cardCtaAnimationDelayMs=e.cardCtaAnimationDelayMs??void 0,t.serverDrivenSsfEnabled=e.serverDrivenSsfEnabled??void 0,t.swipeSensitivityConfig=void 0!==e.swipeSensitivityConfig&&null!==e.swipeSensitivityConfig?SA.fromPartial(e.swipeSensitivityConfig):void 0,t.voperaSwipeLeftHintDisplayTimeMs=e.voperaSwipeLeftHintDisplayTimeMs??void 0,t.pillButtonAnimationDelayMs=e.pillButtonAnimationDelayMs??void 0,t.decidingAdjacentOrganicGarmSafety=e.decidingAdjacentOrganicGarmSafety??0,t.adInsertPos=e.adInsertPos??void 0,t.segmentIndex=e.segmentIndex??void 0,t}};function b0(){return{RTBTrackType:0,RTBPricingData:void 0}}(oa=t6||(t6={}))[oa.UNKNOWN_TRACK_TYPE=0
2]="UNKNOWN_TRACK_TYPE",oa[oa.IMPRESSION=1]="IMPRESSION",oa[oa.CLICK=2]="CLICK",oa[oa.UNRECOGNIZED=-1]="UNRECOGNIZED";let b2={encode:(e,t=rA.default.Writer.create())=>(0!==e.RTBTrackType&&t.uint32(8).int32(e.RTBTrackType),void 0!==e.RTBPricingData&&b1.encode(e.RTBPricingData,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b0();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.RTBTrackType=i.int32();continue;case 2:if(18!==e)break;a.RTBPricingData=b1.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>b2.fromPartial(e??{}),fromPartial(e){let t=b0();return t.RTBTrackType=e.RTBTrackType??0,t.RTBPricingData=void 0!==e.RTBPricingData&&null!==e.RTBPricingData?b1.fromPartial(e.RTBPricingData):void 0,t}};function b3(){return{bidMicroDollars:"0",finalBid:0,runnerUpBid:0,paidPrice:0,internalFloor:0,bidRequestFloor:0,eventProb:0,lambda:0,gamma:0,phi:0,exchange:""}}let b1={encode:(e,t=rA.default.Writer.create())=>("0"!==e.bidMicroDollars&&t.uint32(8).int64(e.bidMicroDollars),0!==e.finalBid&&t.uint32(17).double(e.finalBid),0!==e.runnerUpBid&&t.uint32(25).double(e.runnerUpBid),0!==e.paidPrice&&t.uint32(33).double(e.paidPrice),0!==e.internalFloor&&t.uint32(41).double(e.internalFloor),0!==e.bidRequestFloor&&t.uint32(49).double(e.bidRequestFloor),0!==e.eventProb&&t.uint32(57).double(e.eventProb),0!==e.lambda&&t.uint32(65).double(e.lambda),0!==e.gamma&&t.uint32(73).double(e.gamma),0!==e.phi&&t.uint32(81).double(e.phi),""!==e.exchange&&t.uint32(90).string(e.exchange),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b3();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.bidMicroDollars=i.int64().toString();continue;case 2:if(17!==e)break;a.finalBid=i.double();continue;case 3:if(25!==e)break;a.runnerUpBid=i.double();continue;case 4:if(33!==e)break;a.paidPrice=i.double();continue;case 5:if(41!==e)break;a.internalFloor=i.double();continue;case 6:if(49!==e)break;a.bidRequestFloor=i.double();continue;case 7:if(57!==e)break;a.eventProb=i.double();continue;case 8:if(65!==e)break;a.lambda=i.double();continue;case 9:if(73!==e)break;a.gamma=i.double();continue;case 10:if(81!==e)break;a.phi=i.double();continue;case 11:if(90!==e)break;a.exchange=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>b1.fromPartial(e??{}),fromPartial(e){let t=b3();return t.bidMicroDollars=e.bidMicroDollars??"0",t.finalBid=e.finalBid??0,t.runnerUpBid=e.runnerUpBid??0,t.paidPrice=e.paidPrice??0,t.internalFloor=e.internalFloor??0,t.bidRequestFloor=e.bidRequestFloor??0,t.eventProb=e.eventProb??0,t.lambda=e.lambda??0,t.gamma=e.gamma??0,t.phi=e.phi??0,t.exchange=e.exchange??"",t}};rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());function b4(){return{encryptedUserTrackData:new Uint8Array(0),application:void 0,preferences:void 0,device:void 0,network:void 0,inventoryTrackRequests:[],isDebug:void 0,creationTimestampMs:void 0,numberOfAttempts:void 0,serializedV1Track:void 0,adkitFeatureFlags:void 0,encryptedUserData:new Uint8Array(0),clientRequestId:new Uint8Array(0),trackFiringMechanism:0,creativeIdLastViewedTimestamp:void 0,adAccountLastViewedTimestamp:void 0}}s7.default.grpc,(oo=t7||(t7={}))[oo.UNSET_AD_END=0]="UNSET_AD_END",oo[oo.TOP_SNAP_PLAYBACK_STARTED=1]="TOP_SNAP_PLAYBACK_STARTED",oo[oo.AD_ATTACHMENT_TRIGGERED=2]="AD_ATTACHMENT_TRIGGERED",oo[oo.AGGREGATION=3]="AGGREGATION",oo[oo.POST_CLICK_SESSION=4]="POST_CLICK_SESSION",oo[oo.AD_TRACKER_TRIGGERED=5]="AD_TRACKER_TRIGGERED",oo[oo.SPONSORED_AR_TRIGGERED=6]="SPONSORED_AR_TRIGGERED",oo[oo.PROMOTED_PLACES_INTERMEDIATE=7]="PROMOTED_PLACES_INTERMEDIATE",oo[oo.PROMOTED_PLACES_FINAL=8]="PROMOTED_PLACES_FINAL",oo[oo.PROMOTED_PLACES_FLUSH=9]="PROMOTED_PLACES_FLUSH",oo[oo.UNRECOGNIZED=-1]="UNRECOGNIZED",(or=t5||(t5={}))[or.UNSET_TRACK_FIRING_MECHANISM=0]="UNSET_TRACK_FIRING_MECHANISM",or[or.GREEDY_TRACK=1]="GREEDY_TRACK",or[or.DURABLE_JOB_TRACK=2]="DURABLE_JOB_TRACK",or[or.UNRECOGNIZED=-1]="UNRECOGNIZED",(od=t9||(t9={}))[od.UNKNOWN_REASON=0]="UNKNOWN_REASON",od[od.AD_METADATA_EXPIRED=1]="AD_METADATA_EXPIRED",od[od.AD_RENDER_DATA_IMCOMPLETE=2]="AD_RENDER_DATA_IMCOMPLETE",od[od.AD_MEDIA_FAIL_TO_FETCH=3]="AD_MEDIA_FAIL_TO_FETCH",od[od.UNRECOGNIZED=-1]="UNRECOGNIZED",(os=ie||(ie={}))[os.UNKNOWN_DEVICE_OS=0]="UNKNOWN_DEVICE_OS",os[os.IOS=1]="IOS",os[os.ANDROID=2]="ANDROID",os[os.UNRECOGNIZED=-1]="UNRECOGNIZED",(ol=it||(it={}))[ol.UNKNOWN_PLAYBACK_AUDIO=0]="UNKNOWN_PLAYBACK_AUDIO",ol[ol.ON=1]="ON",ol[ol.OFF=2]="OFF",ol[ol.HEADPHONE=3]="HEADPHONE",ol[ol.MUTE_OVERRIDDEN=4]="MUTE_OVERRIDDEN",ol[ol.UNRECOGNIZED=-1]="UNRECOGNIZED",(oc=ii||(ii={}))[oc.FRESH=0]="FRESH",oc[oc.STALE=1]="STALE",oc[oc.UNRECOGNIZED=-1]="UNRECOGNIZED";let b8={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.encryptedUserTrackData.length&&t.uint32(10).bytes(e.encryptedUserTrackData),void 0!==e.application&&_Y.encode(e.application,t.uint32(18).fork()).ldelim(),void 0!==e.preferences&&_q.encode(e.preferences,t.uint32(26).fork()).ldelim(),void 0!==e.device&&_j.encode(e.device,t.uint32(34).fork()).ldelim(),void 0!==e.network&&_Q.encode(e.network,t.uint32(42).fork()).ldelim(),e.inventoryTrackRequests))b7.encode(i,t.uint32(50).fork()).ldelim();return void 0!==e.isDebug&&mX.encode({value:e.isDebug},t.uint32(58).fork()).ldelim(),void 0!==e.creationTimestampMs&&mK.encode({value:e.creationTimestampMs},t.uint32(66).fork()).ldelim(),void 0!==e.numberOfAttempts&&mq.encode({value:e.numberOfAttempts},t.uint32(74).fork()).ldelim(),void 0!==e.serializedV1Track&&mJ.encode({value:e.serializedV1Track},t.uint32(82).fork()).ldelim(),void 0!==e.adkitFeatureFlags&&Su.encode(e.adkitFeatureFlags,t.uint32(90).fork()).ldelim(),0!==e.encryptedUserData.length&&t.uint32(98).bytes(e.encryptedUserData),0!==e.clientRequestId.length&&t.uint32(106).bytes(e.clientRequestId),0!==e.trackFiringMechanism&&t.uint32(112).int32(e.trackFiringMechanism),void 0!==e.creativeIdLastViewedTimestamp&&mK.encode({value:e.creativeIdLastViewedTimestamp},t.uint32(122).fork()).ldelim(),void 0!==e.adAccountLastViewedTimestamp&&mK.encode({value:e.adAccountLastViewedTimestamp},t.uint32(130).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b4();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.encryptedUserTrackData=i.bytes();continue;case 2:if(18!==e)break;a.application=_Y.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.preferences=_q.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.device=_j.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.network=_Q.decode(i,i.uint32());continue;case 6:if(50!==e)break;a.inventoryTrackRequests.push(b7.decode(i,i.uint32()));continue;case 7:if(58!==e)break;a.isDebug=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.creationTimestampMs=mK.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.numberOfAttempts=mq.decode(i,i.uint32()).value;continue;case 10:if(82!==e)break;a.serializedV1Track=mJ.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.adkitFeatureFlags=Su.decode(i,i.uint32());continue;case 12:if(98!==e)break;a.encryptedUserData=i.bytes();continue;case 13:if(106!==e)break;a.clientRequestId=i.bytes();continue;case 14:if(112!==e)break;a.trackFiringMechanism=i.int32();continue;case 15:if(122!==e)break;a.creativeIdLastViewedTimestamp=mK.decode(i,i.uint32()).value;continue;case 16:if(130!==e)break;a.adAccountLastViewedTimestamp=mK.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>b8.fromPartial(e??{}),fromPartial(e){let t=b4();return t.encryptedUserTrackData=e.encryptedUserTrackData??new Uint8Array(0),t.application=void 0!==e.application&&null!==e.application?_Y.fromPartial(e.application):void 0,t.preferences=void 0!==e.preferences&&null!==e.preferences?_q.fromPartial(e.preferences):void 0,t.device=void 0!==e.device&&null!==e.device?_j.fromPartial(e.device):void 0,t.network=void 0!==e.network&&null!==e.network?_Q.fromPartial(e.network):void 0,t.inventoryTrackRequests=e.inventoryTrackRequests?.map(e=>b7.fromPartial(e))||[],t.isDebug=e.isDebug??void 0,t.creationTimestampMs=e.creationTimestampMs??void 0,t.numberOfAttempts=e.numberOfAttempts??void 0,t.serializedV1Track=e.serializedV1Track??void 0,t.adkitFeatureFlags=void 0!==e.adkitFeatureFlags&&null!==e.adkitFeatureFlags?Su.fromPartial(e.adkitFeatureFlags):void 0,t.encryptedUserData=e.encryptedUserData??new Uint8Array(0),t.clientRequestId=e.clientRequestId??new Uint8Array(0),t.trackFiringMechanism=e.trackFiringMechanism??0,t.creativeIdLastViewedTimestamp=e.creativeIdLastViewedTimestamp??void 0,t.adAccountLastViewedTimestamp=e.adAccountLastViewedTimestamp??void 0,t}};function b6(){return{requestId:new Uint8Array(0),inventoryType:0,inventoryId:void 0,items:[],adRequestClientId:new Uint8Array(0),inventorySubType:0}}let b7={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.requestId.length&&t.uint32(10).bytes(e.requestId),0!==e.inventoryType&&t.uint32(16).int32(e.inventoryType),void 0!==e.inventoryId&&mJ.encode({value:e.inventoryId},t.uint32(26).fork()).ldelim(),e.items))b9.encode(i,t.uint32(34).fork()).ldelim();return 0!==e.adRequestClientId.length&&t.uint32(42).bytes(e.adRequestClientId),0!==e.inventorySubType&&t.uint32(48).int32(e.inventorySubType),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b6();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.requestId=i.bytes();continue;case 2:if(16!==e)break;a.inventoryType=i.int32();continue;case 3:if(26!==e)break;a.inventoryId=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.items.push(b9.decode(i,i.uint32()));continue;case 5:if(42!==e)break;a.adRequestClientId=i.bytes();continue;case 6:if(48!==e)break;a.inventorySubType=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>b7.fromPartial(e??{}),fromPartial(e){let t=b6();return t.requestId=e.requestId??new Uint8Array(0),t.inventoryType=e.inventoryType??0,t.inventoryId=e.inventoryId??void 0,t.items=e.items?.map(e=>b9.fromPartial(e))||[],t.adRequestClientId=e.adRequestClientId??new Uint8Array(0),t.inventorySubType=e.inventorySubType??0,t}};function b5(){return{encryptedAdTrackData:new Uint8Array(0),impressionData:void 0,sessionId:void 0,trackSeqNum:void 0,attemptSeqNum:void 0,clientRankingNoShow:void 0,clientRankingModelOutput:void 0,clientRankingFeatures:void 0,opportunityRequestId:new Uint8Array(0),RTBTrackData:void 0,failureToDeliverReason:void 0,adInsertionConfig:void 0,adFreshStatus:void 0,displayedPreRollAdInfo:void 0,serveItemId:new Uint8Array(0),clientAttemptedCrawls:[],isIntermediateTrack:void 0,adTrackTriggerType:0,adViewSeqNum:void 0,isSpectrumTrackEnabled:void 0,brandSafetyInventoryType:0,createEventSource:0}}let b9={encode(e,t=rA.default.Writer.create()){for(let i of(0!==e.encryptedAdTrackData.length&&t.uint32(10).bytes(e.encryptedAdTrackData),void 0!==e.impressionData&&bX.encode(e.impressionData,t.uint32(18).fork()).ldelim(),void 0!==e.sessionId&&mJ.encode({value:e.sessionId},t.uint32(26).fork()).ldelim(),void 0!==e.trackSeqNum&&mq.encode({value:e.trackSeqNum},t.uint32(34).fork()).ldelim(),void 0!==e.attemptSeqNum&&mq.encode({value:e.attemptSeqNum},t.uint32(42).fork()).ldelim(),void 0!==e.clientRankingNoShow&&mX.encode({value:e.clientRankingNoShow},t.uint32(50).fork()).ldelim(),void 0!==e.clientRankingModelOutput&&gn.encode(e.clientRankingModelOutput,t.uint32(58).fork()).ldelim(),void 0!==e.clientRankingFeatures&&go.encode(e.clientRankingFeatures,t.uint32(66).fork()).ldelim(),0!==e.opportunityRequestId.length&&t.uint32(74).bytes(e.opportunityRequestId),void 0!==e.RTBTrackData&&b2.encode(e.RTBTrackData,t.uint32(82).fork()).ldelim(),void 0!==e.failureToDeliverReason&&gt.encode(e.failureToDeliverReason,t.uint32(90).fork()).ldelim(),void 0!==e.adInsertionConfig&&Eg.encode(e.adInsertionConfig,t.uint32(98).fork()).ldelim(),void 0!==e.adFreshStatus&&gd.encode(e.adFreshStatus,t.uint32(106).fork()).ldelim(),void 0!==e.displayedPreRollAdInfo&&_b.encode(e.displayedPreRollAdInfo,t.uint32(114).fork()).ldelim(),0!==e.serveItemId.length&&t.uint32(122).bytes(e.serveItemId),e.clientAttemptedCrawls))SI.encode(i,t.uint32(130).fork()).ldelim();return void 0!==e.isIntermediateTrack&&mX.encode({value:e.isIntermediateTrack},t.uint32(138).fork()).ldelim(),0!==e.adTrackTriggerType&&t.uint32(144).int32(e.adTrackTriggerType),void 0!==e.adViewSeqNum&&mq.encode({value:e.adViewSeqNum},t.uint32(154).fork()).ldelim(),void 0!==e.isSpectrumTrackEnabled&&mX.encode({value:e.isSpectrumTrackEnabled},t.uint32(162).fork()).ldelim(),0!==e.brandSafetyInventoryType&&t.uint32(168).int32(e.brandSafetyInventoryType),0!==e.createEventSource&&t.uint32(176).int32(e.createEventSource),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=b5();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.encryptedAdTrackData=i.bytes();continue;case 2:if(18!==e)break;a.impressionData=bX.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.sessionId=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.trackSeqNum=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.attemptSeqNum=mq.decode(i,i.uint32()).value;continue;case 6:if(50!==e)break;a.clientRankingNoShow=mX.decode(i,i.uint32()).value;continue;case 7:if(58!==e)break;a.clientRankingModelOutput=gn.decode(i,i.uint32());continue;case 8:if(66!==e)break;a.clientRankingFeatures=go.decode(i,i.uint32());continue;case 9:if(74!==e)break;a.opportunityRequestId=i.bytes();continue;case 10:if(82!==e)break;a.RTBTrackData=b2.decode(i,i.uint32());continue;case 11:if(90!==e)break;a.failureToDeliverReason=gt.decode(i,i.uint32());continue;case 12:if(98!==e)break;a.adInsertionConfig=Eg.decode(i,i.uint32());continue;case 13:if(106!==e)break;a.adFreshStatus=gd.decode(i,i.uint32());continue;case 14:if(114!==e)break;a.displayedPreRollAdInfo=_b.decode(i,i.uint32());continue;case 15:if(122!==e)break;a.serveItemId=i.bytes();continue;case 16:if(130!==e)break;a.clientAttemptedCrawls.push(SI.decode(i,i.uint32()));continue;case 17:if(138!==e)break;a.isIntermediateTrack=mX.decode(i,i.uint32()).value;continue;case 18:if(144!==e)break;a.adTrackTriggerType=i.int32();continue;case 19:if(154!==e)break;a.adViewSeqNum=mq.decode(i,i.uint32()).value;continue;case 20:if(162!==e)break;a.isSpectrumTrackEnabled=mX.decode(i,i.uint32()).value;continue;case 21:if(168!==e)break;a.brandSafetyInventoryType=i.int32();continue;case 22:if(176!==e)break;a.createEventSource=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>b9.fromPartial(e??{}),fromPartial(e){let t=b5();return t.encryptedAdTrackData=e.encryptedAdTrackData??new Uint8Array(0),t.impressionData=void 0!==e.impressionData&&null!==e.impressionData?bX.fromPartial(e.impressionData):void 0,t.sessionId=e.sessionId??void 0,t.trackSeqNum=e.trackSeqNum??void 0,t.attemptSeqNum=e.attemptSeqNum??void 0,t.clientRankingNoShow=e.clientRankingNoShow??void 0,t.clientRankingModelOutput=void 0!==e.clientRankingModelOutput&&null!==e.clientRankingModelOutput?gn.fromPartial(e.clientRankingModelOutput):void 0,t.clientRankingFeatures=void 0!==e.clientRankingFeatures&&null!==e.clientRankingFeatures?go.fromPartial(e.clientRankingFeatures):void 0,t.opportunityRequestId=e.opportunityRequestId??new Uint8Array(0),t.RTBTrackData=void 0!==e.RTBTrackData&&null!==e.RTBTrackData?b2.fromPartial(e.RTBTrackData):void 0,t.failureToDeliverReason=void 0!==e.failureToDeliverReason&&null!==e.failureToDeliverReason?gt.fromPartial(e.failureToDeliverReason):void 0,t.adInsertionConfig=void 0!==e.adInsertionConfig&&null!==e.adInsertionConfig?Eg.fromPartial(e.adInsertionConfig):void 0,t.adFreshStatus=void 0!==e.adFreshStatus&&null!==e.adFreshStatus?gd.fromPartial(e.adFreshStatus):void 0,t.displayedPreRollAdInfo=void 0!==e.displayedPreRollAdInfo&&null!==e.displayedPreRollAdInfo?_b.fromPartial(e.displayedPreRollAdInfo):void 0,t.serveItemId=e.serveItemId??new Uint8Array(0),t.clientAttemptedCrawls=e.clientAttemptedCrawls?.map(e=>SI.fromPartial(e))||[],t.isIntermediateTrack=e.isIntermedi
2ateTrack??void 0,t.adTrackTriggerType=e.adTrackTriggerType??0,t.adViewSeqNum=e.adViewSeqNum??void 0,t.isSpectrumTrackEnabled=e.isSpectrumTrackEnabled??void 0,t.brandSafetyInventoryType=e.brandSafetyInventoryType??0,t.createEventSource=e.createEventSource??0,t}};function ge(){return{reason:0,additionalInfo:void 0}}let gt={encode:(e,t=rA.default.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),void 0!==e.additionalInfo&&mJ.encode({value:e.additionalInfo},t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ge();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.reason=i.int32();continue;case 2:if(18!==e)break;a.additionalInfo=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gt.fromPartial(e??{}),fromPartial(e){let t=ge();return t.reason=e.reason??0,t.additionalInfo=e.additionalInfo??void 0,t}};function gi(){return{modelId:void 0,score:void 0,inferenceLatency:void 0,loadingLatency:void 0,error:void 0}}let gn={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.modelId&&mJ.encode({value:e.modelId},t.uint32(10).fork()).ldelim(),void 0!==e.score&&mH.encode({value:e.score},t.uint32(18).fork()).ldelim(),void 0!==e.inferenceLatency&&mK.encode({value:e.inferenceLatency},t.uint32(26).fork()).ldelim(),void 0!==e.loadingLatency&&mK.encode({value:e.loadingLatency},t.uint32(34).fork()).ldelim(),void 0!==e.error&&mJ.encode({value:e.error},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gi();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.modelId=mJ.decode(i,i.uint32()).value;continue;case 2:if(18!==e)break;a.score=mH.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.inferenceLatency=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.loadingLatency=mK.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.error=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gn.fromPartial(e??{}),fromPartial(e){let t=gi();return t.modelId=e.modelId??void 0,t.score=e.score??void 0,t.inferenceLatency=e.inferenceLatency??void 0,t.loadingLatency=e.loadingLatency??void 0,t.error=e.error??void 0,t}};function ga(){return{appVersion:void 0,deviceOs:0,totalUniqueSnapsViewed:void 0,numOfTapBacks:void 0,playList:void 0,playbackAudio:0,postRoll:void 0,snapIndexPosition:void 0,timeViewedArray:[],totalUniqueSnaps:void 0,isLastSnapVideo:void 0,totalUniqueAdsViewed:void 0}}let go={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.appVersion&&mJ.encode({value:e.appVersion},t.uint32(10).fork()).ldelim(),0!==e.deviceOs&&t.uint32(16).int32(e.deviceOs),void 0!==e.totalUniqueSnapsViewed&&mq.encode({value:e.totalUniqueSnapsViewed},t.uint32(26).fork()).ldelim(),void 0!==e.numOfTapBacks&&mq.encode({value:e.numOfTapBacks},t.uint32(34).fork()).ldelim(),void 0!==e.playList&&mX.encode({value:e.playList},t.uint32(42).fork()).ldelim(),0!==e.playbackAudio&&t.uint32(48).int32(e.playbackAudio),void 0!==e.postRoll&&mX.encode({value:e.postRoll},t.uint32(58).fork()).ldelim(),void 0!==e.snapIndexPosition&&mq.encode({value:e.snapIndexPosition},t.uint32(66).fork()).ldelim(),e.timeViewedArray))mH.encode({value:i},t.uint32(74).fork()).ldelim();return void 0!==e.totalUniqueSnaps&&mq.encode({value:e.totalUniqueSnaps},t.uint32(82).fork()).ldelim(),void 0!==e.isLastSnapVideo&&mX.encode({value:e.isLastSnapVideo},t.uint32(90).fork()).ldelim(),void 0!==e.totalUniqueAdsViewed&&mq.encode({value:e.totalUniqueAdsViewed},t.uint32(98).fork()).ldelim(),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=ga();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.appVersion=mJ.decode(i,i.uint32()).value;continue;case 2:if(16!==e)break;a.deviceOs=i.int32();continue;case 3:if(26!==e)break;a.totalUniqueSnapsViewed=mq.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.numOfTapBacks=mq.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.playList=mX.decode(i,i.uint32()).value;continue;case 6:if(48!==e)break;a.playbackAudio=i.int32();continue;case 7:if(58!==e)break;a.postRoll=mX.decode(i,i.uint32()).value;continue;case 8:if(66!==e)break;a.snapIndexPosition=mq.decode(i,i.uint32()).value;continue;case 9:if(74!==e)break;a.timeViewedArray.push(mH.decode(i,i.uint32()).value);continue;case 10:if(82!==e)break;a.totalUniqueSnaps=mq.decode(i,i.uint32()).value;continue;case 11:if(90!==e)break;a.isLastSnapVideo=mX.decode(i,i.uint32()).value;continue;case 12:if(98!==e)break;a.totalUniqueAdsViewed=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>go.fromPartial(e??{}),fromPartial(e){let t=ga();return t.appVersion=e.appVersion??void 0,t.deviceOs=e.deviceOs??0,t.totalUniqueSnapsViewed=e.totalUniqueSnapsViewed??void 0,t.numOfTapBacks=e.numOfTapBacks??void 0,t.playList=e.playList??void 0,t.playbackAudio=e.playbackAudio??0,t.postRoll=e.postRoll??void 0,t.snapIndexPosition=e.snapIndexPosition??void 0,t.timeViewedArray=e.timeViewedArray?.map(e=>e)||[],t.totalUniqueSnaps=e.totalUniqueSnaps??void 0,t.isLastSnapVideo=e.isLastSnapVideo??void 0,t.totalUniqueAdsViewed=e.totalUniqueAdsViewed??void 0,t}};function gr(){return{freshStatus:0}}let gd={encode:(e,t=rA.default.Writer.create())=>(0!==e.freshStatus&&t.uint32(8).int32(e.freshStatus),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gr();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.freshStatus=i.int32();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gd.fromPartial(e??{}),fromPartial(e){let t=gr();return t.freshStatus=e.freshStatus??0,t}}
2;function gs(){return{application:void 0,preferences:void 0,device:void 0,network:void 0,isDebug:void 0}}let gl={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.application&&_Y.encode(e.application,t.uint32(10).fork()).ldelim(),void 0!==e.preferences&&_q.encode(e.preferences,t.uint32(18).fork()).ldelim(),void 0!==e.device&&_j.encode(e.device,t.uint32(26).fork()).ldelim(),void 0!==e.network&&_Q.encode(e.network,t.uint32(34).fork()).ldelim(),void 0!==e.isDebug&&mX.encode({value:e.isDebug},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gs();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.application=_Y.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.preferences=_q.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.device=_j.decode(i,i.uint32());continue;case 4:if(34!==e)break;a.network=_Q.decode(i,i.uint32());continue;case 5:if(42!==e)break;a.isDebug=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gl.fromPartial(e??{}),fromPartial(e){let t=gs();return t.application=void 0!==e.application&&null!==e.application?_Y.fromPartial(e.application):void 0,t.preferences=void 0!==e.preferences&&null!==e.preferences?_q.fromPartial(e.preferences):void 0,t.device=void 0!==e.device&&null!==e.device?_j.fromPartial(e.device):void 0,t.network=void 0!==e.network&&null!==e.network?_Q.fromPartial(e.network):void 0,t.isDebug=e.isDebug??void 0,t}};function gc(){return{encryptedUserTrackData:new Uint8Array(0),inventoryTrackRequest:void 0,creationTimestampMs:void 0,numberOfAttempts:void 0}}let gu={encode:(e,t=rA.default.Writer.create())=>(0!==e.encryptedUserTrackData.length&&t.uint32(10).bytes(e.encryptedUserTrackData),void 0!==e.inventoryTrackRequest&&b7.encode(e.inventoryTrackRequest,t.uint32(18).fork()).ldelim(),void 0!==e.creationTimestampMs&&mK.encode({value:e.creationTimestampMs},t.uint32(26).fork()).ldelim(),void 0!==e.numberOfAttempts&&mq.encode({value:e.numberOfAttempts},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gc();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.encryptedUserTrackData=i.bytes();continue;case 2:if(18!==e)break;a.inventoryTrackRequest=b7.decode(i,i.uint32());continue;case 3:if(26!==e)break;a.creationTimestampMs=mK.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.numberOfAttempts=mq.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gu.fromPartial(e??{}),fromPartial(e){let t=gc();return t.encryptedUserTrackData=e.encryptedUserTrackData??new Uint8Array(0),t.inventoryTrackRequest=void 0!==e.inventoryTrackRequest&&null!==e.inventoryTrackRequest?b7.fromPartial(e.inventoryTrackRequest):void 0,t.creationTimestampMs=e.creationTimestampMs??void 0,t.numberOfAttempts=e.numberOfAttempts??void 0,t}};function gp(){return{unlockableId:"0",isUco:!1}}(ou=ia||(ia={}))[ou.UNKNOWN=0]="UNKNOWN",ou[ou.CAMERA=1]="CAMERA",ou[ou.MEMORY=2]="MEMORY",ou[ou.UNRECOGNIZED=-1]="UNRECOGNIZED";let gf={encode:(e,t=rA.default.Writer.create())=>("0"!==e.unlockableId&&t.uint32(8).int64(e.unlockableId),!1!==e.isUco&&t.uint32(16).bool(e.isUco),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gp();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.unlockableId=gv(i.int64());continue;case 2:if(16!==e)break;a.isUco=i.bool();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gf.fromPartial(e??{}),fromPartial(e){let t=gp();return t.unlockableId=e.unlockableId??"0",t.isUco=e.isUco??!1,t}};function gT(){return{unlockableId:"0",optionId:"0",source:0,adId:""}}let gm={encode:(e,t=rA.default.Writer.create())=>("0"!==e.unlockableId&&t.uint32(8).int64(e.unlockableId),"0"!==e.optionId&&t.uint32(16).int64(e.optionId),0!==e.source&&t.uint32(24).int32(e.source),""!==e.adId&&t.uint32(34).string(e.adId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gT();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.unlockableId=gv(i.int64());continue;case 2:if(16!==e)break;a.optionId=gv(i.int64());continue;case 3:if(24!==e)break;a.source=i.int32();continue;case 4:if(34!==e)break;a.adId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gm.fromPartial(e??{}),fromPartial(e){let t=gT();return t.unlockableId=e.unlockableId??"0",t.optionId=e.optionId??"0",t.source=e.source??0,t.adId=e.adId??"",t}};function gE(){return{unlockableId:"0",stickerId:"0"}}let g_={encode:(e,t=rA.default.Writer.create())=>("0"!==e.unlockableId&&t.uint32(8).int64(e.unlockableId),"0"!==e.stickerId&&t.uint32(16).int64(e.stickerId),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gE();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(8!==e)break;a.unlockableId=gv(i.int64());continue;case 2:if(16!==e)break;a.stickerId=gv(i.int64());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>g_.fromPartial(e??{}),fromPartial(e){let t=gE();return t.unlockableId=e.unlockableId??"0",t.stickerId=e.stickerId??"0",t}};function gS(){return{snapSessionId:"",filters:[],lenses:[],stickers:[],snapSource:0,launchSourceAdId:""}}let gI={encode(e,t=rA.default.Writer.create()){for(let i of(""!==e.snapSessionId&&t.uint32(10).string(e.snapSessionId),e.filters))gf.encode(i,t.uint32(18).fork()).ldelim();for(let i of e.lenses)gm.encode(i,t.uint32(26).fork()).ldelim();for(let i of e.stickers)g_.encode(i,t.uint32(34).fork()).ldelim();return 0!==e.snapSource&&t.uint32(40).int32(e.snapSource),""!==e.launchSourceAdId&&t.uint32(50).string(e.launchSourceAdId),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gS();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapSessionId=i.string();continue;case 2:if(18!==e)break;a.filters.push(gf.decode(i,i.uint32()));continue;case 3:if(26!==e)break;a.lenses.push(gm.decode(i,i.uint32()));continue;case 4:if(34!==e)break;a.stickers.push(g_.decode(i,i.uint32()));continue;case 5:if(40!==e)break;a.snapSource=i.int32();continue;case 6:if(50!==e)break;
2a.launchSourceAdId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gI.fromPartial(e??{}),fromPartial(e){let t=gS();return t.snapSessionId=e.snapSessionId??"",t.filters=e.filters?.map(e=>gf.fromPartial(e))||[],t.lenses=e.lenses?.map(e=>gm.fromPartial(e))||[],t.stickers=e.stickers?.map(e=>g_.fromPartial(e))||[],t.snapSource=e.snapSource??0,t.launchSourceAdId=e.launchSourceAdId??"",t}};function gv(e){return e.toString()}function gA(){return{snapInfo:void 0,doNotForward:!1,encryptedUnlockablesDirectPayload:new Uint8Array(0),serializedV1Track:new Uint8Array(0),serializedV1TrackStr:"",commonRequestData:void 0,trackV2:[],snapadsId:""}}rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure()),s7.default.grpc;let gk={encode(e,t=rA.default.Writer.create()){for(let i of(void 0!==e.snapInfo&&gg.encode(e.snapInfo,t.uint32(10).fork()).ldelim(),!1!==e.doNotForward&&t.uint32(16).bool(e.doNotForward),0!==e.encryptedUnlockablesDirectPayload.length&&t.uint32(130).bytes(e.encryptedUnlockablesDirectPayload),0!==e.serializedV1Track.length&&t.uint32(138).bytes(e.serializedV1Track),""!==e.serializedV1TrackStr&&t.uint32(146).string(e.serializedV1TrackStr),void 0!==e.commonRequestData&&gl.encode(e.commonRequestData,t.uint32(154).fork()).ldelim(),e.trackV2))gR.encode(i,t.uint32(162).fork()).ldelim();return""!==e.snapadsId&&t.uint32(170).string(e.snapadsId),t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gA();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapInfo=gg.decode(i,i.uint32());continue;case 2:if(16!==e)break;a.doNotForward=i.bool();continue;case 16:if(130!==e)break;a.encryptedUnlockablesDirectPayload=i.bytes();continue;case 17:if(138!==e)break;a.serializedV1Track=i.bytes();continue;case 18:if(146!==e)break;a.serializedV1TrackStr=i.string();continue;case 19:if(154!==e)break;a.commonRequestData=gl.decode(i,i.uint32());continue;case 20:if(162!==e)break;a.trackV2.push(gR.decode(i,i.uint32()));continue;case 21:if(170!==e)break;a.snapadsId=i.string();continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gk.fromPartial(e??{}),fromPartial(e){let t=gA();return t.snapInfo=void 0!==e.snapInfo&&null!==e.snapInfo?gg.fromPartial(e.snapInfo):void 0,t.doNotForward=e.doNotForward??!1,t.encryptedUnlockablesDirectPayload=e.encryptedUnlockablesDirectPayload??new Uint8Array(0),t.serializedV1Track=e.serializedV1Track??new Uint8Array(0),t.serializedV1TrackStr=e.serializedV1TrackStr??"",t.commonRequestData=void 0!==e.commonRequestData&&null!==e.commonRequestData?gl.fromPartial(e.commonRequestData):void 0,t.trackV2=e.trackV2?.map(e=>gR.fromPartial(e))||[],t.snapadsId=e.snapadsId??"",t}};function gb(){return{data:void 0}}let gg={encode(e,t=rA.default.Writer.create()){switch(e.data?.$case){case"unlockablesSnapInfoBytes":t.uint32(10).bytes(e.data.unlockablesSnapInfoBytes);break;case"unlockablesSnapInfo":gI.encode(e.data.unlockablesSnapInfo,t.uint32(18).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gb();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.data={$case:"unlockablesSnapInfoBytes",unlockablesSnapInfoBytes:i.bytes()};continue;case 2:if(18!==e)break;a.data={$case:"unlockablesSnapInfo",unlockablesSnapInfo:gI.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gg.fromPartial(e??{}),fromPartial(e){let t=gb();return e.data?.$case==="unlockablesSnapInfoBytes"&&e.data?.unlockablesSnapInfoBytes!==void 0&&e.data?.unlockablesSnapInfoBytes!==null&&(t.data={$case:"unlockablesSnapInfoBytes",unlockablesSnapInfoBytes:e.data.unlockablesSnapInfoBytes}),e.data?.$case==="unlockablesSnapInfo"&&e.data?.unlockablesSnapInfo!==void 0&&e.data?.unlockablesSnapInfo!==null&&(t.data={$case:"unlockablesSnapInfo",unlockablesSnapInfo:gI.fromPartial(e.data.unlockablesSnapInfo)}),t}};function gN(){return{snapInfo:void 0,track:void 0}}let gR={encode:(e,t=rA.default.Writer.create())=>(void 0!==e.snapInfo&&gg.encode(e.snapInfo,t.uint32(10).fork()).ldelim(),void 0!==e.track&&gu.encode(e.track,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gN();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.snapInfo=gg.decode(i,i.uint32());continue;case 2:if(18!==e)break;a.track=gu.decode(i,i.uint32());continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gR.fromPartial(e??{}),fromPartial(e){let t=gN();return t.snapInfo=void 0!==e.snapInfo&&null!==e.snapInfo?gg.fromPartial(e.snapInfo):void 0,t.track=void 0!==e.track&&null!==e.track?gu.fromPartial(e.track):void 0,t}};function gP(){return{event:void 0,userAgentOverride:void 0,clientIpOverride:void 0}}let gO={encode:(e,t=rA.default.Writer.create())=>(e.event?.$case==="viewTrack"&&gk.encode(e.event.viewTrack,t.uint32(10).fork()).ldelim(),void 0!==e.userAgentOverride&&mJ.encode({value:e.userAgentOverride},t.uint32(18).fork()).ldelim(),void 0!==e.clientIpOverride&&mJ.encode({value:e.clientIpOverride},t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gP();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.event={$case:"viewTrack",viewTrack:gk.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.userAgentOverride=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.clientIpOverride=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gO.fromPartial(e??{}),fromPartial(e){let t=gP();return e.event?.$case==="viewTrack"&&e.event?.viewTrack!==void 0&&e.event?.viewTrack!==null&&(t.event={$case:"viewTrack",viewTrack:gk.fromPartial(e.event.viewTrack)}),t.userAgentOverride=e.userAgentOverride??void 0,t.clientIpOverride=e.clientIpOverride??void 0,t}};function gC(){return{event:void 0,userAgentOverride:void 0,clientIpOverride:void 0,isAggregatedSwipeUp:void 0}}let gy={encode:(e,t=rA.default.Writer.create())=>(e.event?.$case==="trackRequest"&&b8.encode(e.event.trackRequest,t.uint32(10).fork()).ldelim(),void 0!==e.userAgentOverride&&mJ.encode({value:e.userAgentOverride},t.uint32(18).fork()).ldelim(),void 0!==e.clientIpOverride&&mJ.encode({value:e.clientIpOverride},t.uint32(26).fork()).ldelim(),void 0!==e.isAggregatedSwipeUp&&mX.encode({value:e.isAggregatedSwipeUp},t.uint32(34).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gC();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.event={$case:"trackRequest",trackRequest:b8.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.userAgentOverride=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.clientIpOverride=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.isAggregatedSwipeUp=mX.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gy.fromPartial(e??{}),fromPartial(e){let t=gC();return e.event?.$case==="trackRequest"&&e.event?.trackRequest!==void 0&&e.event?.trackRequest!==null&&(t.event={$case:"trackRequest",trackRequest:b8.fromPartial(e.event.trackRequest)}),t.userAgentOverride=e.userAgentOverride??void 0,t.clientIpOverride=e.clientIpOverride??void 0,t.isAggregatedSwipeUp=e.isAggregatedSwipeUp??void 0,t}};function gh(){return{event:void 0,userAgentOverride:void 0,clientIpOverride:void 0,isAggregatedSwipeUp:void 0,targetConsumerGroupId:void 0}}let gL={encode:(e,t=rA.default.Writer.create())=>(e.event?.$case==="trackRequest"&&b8.encode(e.event.trackRequest,t.uint32(10).fork()).ldelim(),void 0!==e.userAgentOverride&&mJ.encode({value:e.userAgentOverride},t.uint32(18).fork()).ldelim(),void 0!==e.clientIpOverride&&mJ.encode({value:e.clientIpOverride},t.uint32(26).fork()).ldelim(),void 0!==e.isAggregatedSwipeUp&&mX.encode({value:e.isAggregatedSwipeUp},t.uint32(34).fork()).ldelim(),void 0!==e.targetConsumerGroupId&&mJ.encode({value:e.targetConsumerGroupId},t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gh();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:if(10!==e)break;a.event={$case:"trackRequest",trackRequest:b8.decode(i,i.uint32())};continue;case 2:if(18!==e)break;a.userAgentOverride=mJ.decode(i,i.uint32()).value;continue;case 3:if(26!==e)break;a.clientIpOverride=mJ.decode(i,i.uint32()).value;continue;case 4:if(34!==e)break;a.isAggregatedSwipeUp=mX.decode(i,i.uint32()).value;continue;case 5:if(42!==e)break;a.targetConsumerGroupId=mJ.decode(i,i.uint32()).value;continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gL.fromPartial(e??{}),fromPartial(e){let t=gh();return e.event?.$case==="trackRequest"&&e.event?.trackRequest!==void 0&&e.event?.trackRequest!==null&&(t.event={$case:"trackRequest",trackRequest:b8.fromPartial(e.event.trackRequest)}),t.userAgentOverride=e.userAgentOverride??void 0,t.clientIpOverride=e.clientIpOverride??void 0,t.isAggregatedSwipeUp=e.isAggregatedSwipeUp??void 0,t.targetConsumerGroupId=e.targetConsumerGroupId??void 0,t}};function gD(){return{eventCreationTimeMs:"0",eventUserSamplingRate:0,event:void 0}}let gw={encode(e,t=rA.default.Writer.create()){switch("0"!==e.eventCreationTimeMs&&t.uint32(64).int64(e.eventCreationTimeMs),0!==e.eventUserSamplingRate&&t.uint32(305).double(e.eventUserSamplingRate),e.event?.$case){case"adTrackEvent":gy.encode(e.event.adTrackEvent,t.uint32(146).fork()).ldelim();break;case"adTrackEventShadow":gL.encode(e.event.adTrackEventShadow,t.uint32(170).fork()).ldelim();break;case"asmParentEvent":mW.encode(e.event.asmParentEvent,t.uint32(234).fork()).ldelim();break;case"adEarnedImpressionEvent":gO.encode(e.event.adEarnedImpressionEvent,t.uint32(394).fork()).ldelim()}return t},decode(e,t){let i=e instanceof rA.default.Reader?e:rA.default.Reader.create(e),n=void 0===t?i.len:i.pos+t,a=gD();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 8:if(64!==e)break;a.eventCreationTimeMs=i.int64().toString();continue;case 38:if(305!==e)break;a.eventUserSamplingRate=i.double();continue;case 18:if(146!==e)break;a.event={$case:"adTrackEvent",adTrackEvent:gy.decode(i,i.uint32())};continue;case 21:if(170!==e)break;a.event={$case:"adTrackEventShadow",adTrackEventShadow:gL.decode(i,i.uint32())};continue;case 29:if(234!==e)break;a.event={$case:"asmParentEvent",asmParentEvent:mW.decode(i,i.uint32())};continue;case 49:if(394!==e)break;a.event={$case:"adEarnedImpressionEvent",adEarnedImpressionEvent:gO.decode(i,i.uint32())};continue}if((7&e)==4||0===e)break;i.skipType(7&e)}return a},create:e=>gw.fromPartial(e??{}),fromPartial(e){let t=gD();return t.eventCreationTimeMs=e.eventCreationTimeMs??"0",t.eventUserSamplingRate=e.eventUserSamplingRate??0,e.event?.$case==="adTrackEvent"&&e.event?.adTrackEvent!==void 0&&e.event?.adTrackEvent!==null&&(t.event={$case:"adTrackEvent",adTrackEvent:gy.fromPartial(e.event.adTrackEvent)}),e.event?.$case==="adTrackEventShadow"&&e.event?.adTrackEventShadow!==void 0&&e.event?.adTrackEventShadow!==null&&(t.event={$case:"adTrackEventShadow",adTrackEventShadow:gL.fromPartial(e.event.adTrackEventShadow)}),e.event?.$case==="asmParentEvent"&&e.event?.asmParentEvent!==void 0&&e.event?.asmParentEvent!==null&&(t.event={$case:"asmParentEvent",asmParentEvent:mW.fromPartial(e.event.asmParentEvent)}),e.event?.$case==="adEarnedImpressionEvent"&&e.event?.adEarnedImpressionEvent!==void 0&&e.event?.adEarnedImpressionEvent!==null&&(t.event={$case:"adEarnedImpressionEvent",adEarnedImpressionEvent:gO.fromPartial(e.event.adEarnedImpressionEvent)}),t}};rA.default.util.Long!==rv.default&&(rA.default.util.Long=rv.default,rA.default.configure());var gM=Object.defineProperty,gU=(e,t)=>gM(e,"name",{value:t,configurable:!0});function gV(e){io=e}gU(gV,"setAppEnvironment");var gB={application:"SNAPCHAT",appType:"UNKNOWN",appBuild:"UNKNOWN",appVersion:"-1",appVariant:"UNKNOWN"};function gF(){return io||gB}function gG(e){ir=e}function gW(){if(!ir)throw Error("collectionMode not set: was Blizzard initialized?");return ir}gU(gF,"getAppEnvironment"),gU(gG,"setCollectionMode"),gU(gW,"getCollectionMode");var gx=oW("session");function gH(){return void 0===id&&gY("COLD"),id}function gY(e){let t={sessionId:oY(),appStartupType:e};gx.debug("Started new Blizzard session:",t),id=t}gU(gH,"getSessionProperties"),gU(gY,"startNewSession");var gK=oW("reportWebPageOpen"),g$=Promise.resolve(void 0);function gz(e){g$=e}gU(gz,"setTivTransactionIdPromise");var gq=Promise.resolve(void 0);function gZ(e){gq=e}async function gj(e){let t=new URLSearchParams(self.location.search),i={event_name:"WEB_PAGE_OPEN",canonical_url:gX(),device_screen_width:BigInt(Math.round(screen.width)),device_screen_height:BigInt(Math.round(screen.height)),sc_referrer:t.get("sc_referrer")??void 0,utm_campaign:t.get("utm_campaign")??void 0,utm_c
2ontent:t.get("utm_content")??void 0,utm_medium:t.get("utm_medium")??void 0,utm_source:t.get("utm_source")??void 0,utm_term:t.get("utm_term")??void 0,tiv_transaction_id:await g$,web_app_format:e.appFormat,notification_id:e.notificationId,notification_type:e.notificationType,source:e.source,web_client_id:await gq,page_id:e.pageId,shortlink_id:e.shortlinkId??t.get("sc_clkid")??void 0};gK.info("Logging WEB_PAGE_OPEN",i),await RZ(i)}function gX(){let e=new URL(self.location.href);return`${e.hostname}${e.pathname}`}gU(gZ,"setWebClientIdPromise"),gU(gj,"reportWebPageOpen"),gU(gX,"getCanonicalUrl");var gQ="log_event_flush",gJ="upload_fail_from_bad_configs",g0="stream_event_flush",g2="startup_type",g3="spectrum",g1=new rH;function g4(e){let t=gF();g1.initialize({networkHandler:new rm(rZ({partitionName:rF.BLIZZARD,flavor:t.appBuild??"unknown",defaultDimensions:(0,rX.default)({app:t.application,appType:t.appType,appVersion:t.appVersion,metricsAppId:e},rj.default)}))})}function g8(e){return e.getTime()/1e3}function g6(e){return(0,di.default)(1e3*e)}gU(g4,"initGraphene"),gU(g8,"dateToBlizzardTimestamp"),gU(g6,"blizzardTimestampToMs");var g7=oW("eventMetadata");function g5(e,t){return{event_name:e,client_ts:g8(t),device_connectivity:g9(),connection_download_bandwidth_bps:Ne()?BigInt(Math.round(Ne())):void 0}}function g9(){switch(self.navigator?.connection?.type){case"bluetooth":return"BLUETOOTH";case"cellular":return"MOBILE";case"wifi":return"WIFI";case"ethernet":return"ETHERNET";case"none":return"UNREACHABLE";default:return}}function Ne(){if(self.navigator?.connection?.downlink)return 1024*self.navigator.connection.downlink*1024}function Nt(){let e;if(document.referrer)try{e=new URL(document.referrer).origin}catch(e){g7.warn("Failed to parse referrer: ",document.referrer,e)}return e}function Ni(){return"PROD"===gF().appBuild?"":gF()?.appBuild}gU(g5,"getEventMetadata"),gU(g9,"getConnectivityType"),gU(Ne,"getBandwidthBps"),gU(Nt,"getReferrer"),gU(Ni,"getAppBuild");var Nn=oW("userAgent");function Na(){return void 0===is?(Nn.error("user agent accessed before initialization has finished"),sL()):is}async function No(){is=await sL().withClientHints()}gU(Na,"getParsedUserAgent"),gU(No,"initUserAgentWithClientHints");var Nr=gU(e=>void 0!==e.user_agent,"isFrameStart");async function Nd(){let e=await Nc,t={...il??=Nl(),client_id:o7(),session_id:gH()?.sessionId,app_startup_type:gH()?.appStartupType,blizzard_web_session_id:o0(),user_guid:e??void 0};return(0,dt.default)(ic,t)?null:(ic=t,t)}gU(Nd,"getFrameStart");var Ns={"MAC OS":"OSX",MACOS:"OSX"};function Nl(){let e=Na(),t=e.os.name?.toUpperCase(),i=t?Ns[t]||t:void 0;return{user_agent:e.ua,locale:oV(),os_type:i,os_version:e.os.version,app_type:gF().appType,app_build:Ni(),app_version:gF().appVersion,app_variant:gF().appVariant,browser:e.browser.name,browser_version:e.browser.version,device_model:e.device.model,domain:self.location.hostname,referrer:Nt()}}gU(Nl,"getPartialFrameStart");var Nc=Promise.resolve(null);function Nu(){return Nc}function Np(e){Nc=e}function Nf(e){return"eventName"in e}function NT(e){return"toProto"in e}function Nm(e){if(void 0!==e)return iu||(iu=new TextEncoder),iu.encode(e)}gU(Nu,"getUserGuidPromise"),gU(Np,"setUserGuidPromise"),gU(Nf,"isEvent"),gU(NT,"isProtoEventData"),gU(Nm,"stringToBytes");var NE="application/x-protobuf",N_=[400,401,403],NS=gU(e=>new Promise(t=>setTimeout(t,e)),"sleep");async function NI(e,t){let i=performance.now();try{return await e()}finally{let e=Math.round(performance.now()-i);Nv.debug(`${t.metricsName}=${e}ms`),g1.addTimer({...t,milliSec:e})}}gU(NI,"timed");var Nv=oW("timed");async function NA(e,t={},i=!1,n){let a=1,o=!1;do{let r,d="function"==typeof t?t():t;if(o&&(d.keepalive=!1),!d.signal){let e=new AbortController;r=setTimeout(()=>e.abort(),NP),d.signal=e.signal}let s="";try{let t=await NI(()=>fetch(e,(0,sD.default)(d,["onStatus"])),{metricsName:"network_request_latency_ms"});if(s=t.status.toString(),await d?.onStatus?.(t.status),t.ok)return g1.addHistogram({metricsName:"network_request_attempts_count",dimensions:Ng(e),value:a}),t;Nk.warn("Request failed",t.status,t.statusText)}catch(e){Nk.warn("fetch error",e),s=`error_${e instanceof Error?e.name:typeof e}`,g1.increment({metricsName:"network_request_exception",dimensions:{[g3]:`${i}`}}),d.keepalive&&(Nk.debug("Received an error while keepalive was enabled, retrying without keepalive",e),o=!0)}finally{r&&clearTimeout(r),g1.increment({metricsName:"network_request",dimensions:{...Ng(e),status:s,routeTag:n??"none"}})}if(a<NN){let e=Nb(a);Nk.debug(`Retrying after ${e}ms...`),await NS(e)}}while(a++<NN)return null}gU(NA,"fetchRetry");var Nk=oW("fetchRetry"),Nb=gU(e=>1===e?0:(0,sw.default)(0,NR*2**(e-2)),"calculateBackoff");function Ng(e){try{let t=new URL(e);return{host:t.hostname.substring(0,64),path:t.pathname.replace(/^\//,"").substring(0,64)}}catch(e){if(e instanceof TypeError)return{host:"invalid",path:"invalid"};throw e}}gU(Ng,"urlToDimensions");var NN=10,NR=250,NP=15e4,NO=oW("authState"),NC=((op=NC||{})[op.AUTHENTICATED=0]="AUTHENTICATED",op[op.UNAUTHENTICATED=1]="UNAUTHENTICATED",op[op.UNKNOWN=2]="UNKNOWN",op),Ny=Object.freeze({authStatus:2}),Nh=Object.freeze({authStatus:1});function NL(e){if(null===e){NO.debug("Setting no-op unauthenticated clientAuthProvider"),iT=Promise.resolve(Nh),ip=null;return}ip=e.ssoClientId,iT=new Promise(t=>{e.authState.subscribe(e=>{NO.debug("Got new authState:",e),e!==Ny&&(t(e),iT=Promise.resolve(e))})})}function ND(){if(!iT)throw Error("getAuthState called before setClientAuthProvider, was initBlizzard called?");return iT}function Nw(){if(void 0===ip)throw Error("getSsoClientId called before setClientAuthProvider, was initBlizzard called?");return ip}gU(NL,"initializeAuthState"),gU(ND,"getAuthState"),gU(Nw,"getSsoClientId");var NM=/^(?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)$/,NU="x-snap-client-user-agent",NV={chromiumos:"chromeos"};function NB({userAgent:e,appName:t="SnapchatWeb",appVersion:i=gF().appVersion,appFlavor:n=gF().appBuild.toUpperCase()}={}){let{browser:a,os:o}=void 0===e?Na():sL(e);return`${t}/${NW(i?.split("-")[0])} ${n} (${NF(o)}; ${NF(a)})`}function NF({name:e,version:t}){return e=NG(e),t=NW(t),e in NV&&(e=NV[e]),`${e} ${t}`}function NG(e){return(e||"").replace(/\s/g,"").toLowerCase()}function NW(e){return NM.test(e??"")?e??"":"0.0.0"}gU(NB,"getUserAgent"),gU(NF,"getFormattedNameAndVersionForOsOrBrowser"),gU(NG,"toLowerAndTrim"),gU(NW,"getSemVer");var Nx="https://web.snapchat.com",NH=((of=NH||{}).STAGE="STAGE",of.PROD="PROD",of),NY=((oT=NY||{}).DESKTOP_WEB="web-calling-corp--prod",oT.SNAPCHAT_COM="snapchat-com-metrics",oT.LENS_STUDIO_WEB="web-ar-applier",oT),NK="/web-blizzard/web",N$={"web-calling-corp--prod":{stagingUrl:"https://staging-web-gcp.snap-dev.net"+NK,prodUrl:Nx+NK,spectrumUrl:"https://web.snapchat.com/streaming-collector-sso/collect"},"snapchat-com-metrics":{stagingUrl:`https://staging-gcp.api.snapchat.com${NK}`,prodUrl:`https://gcp.api.snapchat.com${NK}`,spectrumUrl:"https://gcp.api.snapchat.com/streaming-collector-sso/collect"},"web-ar-applier":{stagingUrl:`https://staging-gcp.api.snapchat.com${NK}`,prodUrl:`https://gcp.api.snapchat.com${NK}`,spectrumUrl:"https://gcp.api.snapchat.com/streaming-collector-sso/collect"}};function Nz(e){let t=N$[e];return"STAGE"===gW()?t.stagingUrl:t.prodUrl}function Nq(e){return N$[e].spectrumUrl}gU(Nz,"getAuthBaseUrl"),gU(Nq,"getSpectrumAuthBaseUrl");var NZ=["BLIZZARD_WEB_BATCHING_ENABLED","BLIZZARD_WEB_BATCHING_SIZE_LIMIT","BLIZZARD_WEB_BATCHING_UPLOAD_TIMEOUT"];function Nj(e){let t=gU(async()=>{NQ.debug("#initCofConfig");let e=(await ND()).ssoToken,t={...e?{Authorization:`Bearer ${e}`}:{}},i={"web-calling-corp--prod":{host:Nx,metadata:new s5.BrowserHeaders({...t})},"snapchat-com-metrics":{transport:s7.grpc.CrossBrowserHttpTransport({withCredentials:!0}),metadata:new s5.BrowserHeaders({[NU]:NB(),...t})},"web-ar-applier":{transport:s7.grpc.CrossBrowserHttpTransport({withCredentials:!0}),metadata:new s5.BrowserHeaders({[NU]:NB(),...t})}},n=Nw()in i?i[Nw()]:{metadata:new s5.BrowserHeaders({[NU]:NB(),...t})};return NQ.debug("#initCofConfig: using config",n),TB(n)},"createConfigsClient");return im=(async()=>{let i=e??await t();TD(i,ek.BUILD_FLAVOR,()=>gF().appBuild);let n="web-calling-corp--prod"===Nw()?(await TO(i,{configNames:[...NZ]},new s5.BrowserHeaders({[NU]:NB({appName:"SnapchatWeb"})}))).configResults:(await TO(i,{configNames:[...NZ]})).configResults;return NQ.debug("#initCofConfig: COF initialized",n),{client:i,results:n}})()}async function NX(e,t){let i;function n(t,i){g1.increment({metricsName:t,dimensions:{config_name:e,...i}})}if(NQ.debug(`#getCofValue(${e})`),gU(n,"logFailureThenUndefined"),!im)throw Error("getCofValue called before init
2CofConfig");try{i=await im}catch(e){return NQ.error("Failure resolving COF config",e),n("cof_failure")}let a=Tw(i.client,i.results,e);if(void 0===a)return n("cof_empty_config");if(void 0===a.value)return n("cof_empty_config_value");let o=t(a.value);return void 0===o?n("cof_unsupported_config_type",{type:typeof a.value}):o}gU(Nj,"initCofConfig"),gU(NX,"getCofValue");var NQ=oW("cofConfig"),NJ={isBatchingEnabled:!0,batchingSizeLimit:20,batchingUploadTimeout:5e3,customBaseUrl:null};N8("isBatchingEnabled",async()=>NX("BLIZZARD_WEB_BATCHING_ENABLED",e=>Ty(e)));var N0=N8("batchingSizeLimit",async()=>NX("BLIZZARD_WEB_BATCHING_SIZE_LIMIT",e=>Ty(e))),N2=N8("batchingUploadTimeout",async()=>NX("BLIZZARD_WEB_BATCHING_UPLOAD_TIMEOUT",e=>Ty(e))),N3=N8("customBaseUrl",async()=>void 0),N1={};function N4(e){N1=e}function N8(e,t){return(0,sM.default)(async()=>{let i=N1[e];if(void 0!==i)return N6.info(`[Config override] ${e}=`,i),i;let n=await t();if(void 0!==n)return N6.info(`[Config loaded] ${e}=`,n),n;let a=NJ[e];return N6.info(`[Config default] ${e}=`,a),a})}gU(N4,"setCustomConfig"),gU(N8,"config");var N6=oW("config");async function N7(e){if(iE&&!e)return iE;N9.debug("Retrieving new SCA token");let t=await N5(),i=await NA(t,{method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8"}});if(!i)throw Error("Failed to retrieve authentication token");let{token:n}=await i.json();if(!n)throw Error("Missing toklen in response");return N9.debug("Retrieved SCA token"),iE=n,n}async function N5(){let e=await N3();return`${e??Ri()}/init_client`}gU(N7,"getScaToken"),gU(N5,"getInitClientUrl");var N9=oW("getScaToken");async function Re(e){let t;try{t=await Rt(e)}catch(e){Rn.error("Failed to get upload config: ",e),t=void 0}return t}async function Rt(e){let t=performance.now(),i=await ND(),n=Nw(),a=n&&i.ssoToken&&0===i.authStatus;if(e&&a)return Rn.info("SSO tokens cannot be refreshed - if provider does not provide a new one asynchronously this may be an issue with the provider"),e;let o=a?`Bearer ${i.ssoToken}`:`SCA ${await N7(!!e)}`,r=await N3()??(a?`${Nz(n)}/send`:`${Ri()}\
3/events`),d=a?Nq(n):"https://gcp.api.snapchat.com/streaming-collector/collect",s=t-performance.now();return g1.addTimer({metricsName:"upload_config_duration_ms",milliSec:Math.round(s),dimensions:{authType:a?"sso":"sca"}}),{baseUrl:r,spectrumBaseUrl:d,credentials:a?"include":"same-origin",authorizationHeader:o}}function Ri(){return"STAGE"===gW()?"https://staging-us-central1-gcp.api.snapchat.com/web-analytics/web":"https://us-central1-gcp.api.snapchat.com/web-analytics/web"}gU(Re,"tryToGetUploadConfig"),gU(Rt,"getUploadConfig"),gU(Ri,"getUnauthenticatedBaseUrl");var Rn=oW("uploadConfig"),Ra=[];function Ro(e,t){let i={observer:e,types:t};return Ra.push(i),()=>{Ra.splice(Ra.indexOf(i),1)}}
3function Rr(e){Ra.forEach(({observer:t,types:i})=>{(i?.includes(e.type)??!0)&&t(e)})}gU(Ro,"registerDebugObserver"),gU(Rr,"logDebugAction");var Rd=oW("spectrumSerialization");function Rs(e,t){let i=Rl(e),n=Rp(t),a=mr.fromPartial({spectrumSequentialItems:[i,...n]});return mr.encode(a).finish()}function Rl(e){let t=Rc(e);return ma.fromPartial({item:{$case:"headerEnvelope",headerEnvelope:t}})}function Rc(e){let t=Ru(e),i=m_.encode(t).finish();return mi.fromPartial({clientHeaderBytes:i})}function Ru(e){return m_.fromPartial({header:{$case:"defaultClientHeader",defaultClientHeader:e}})}function Rp(e){return e.map(e=>(Rf(e),ma.fromPartial({item:{$case:"eventEnvelope",eventEnvelope:e}})))}function Rf(e){"0"===e.clientEpochMs&&(g1.increment({metricsName:"spectrum_client_ts_zero"}),Rd.error("Spectrum event envelope clientEpochMs is 0, which is unexpected.")),"0"===e.clientNodepEpochMs&&(g1.increment({metricsName:"spectrum_client_nodep_ts_zero"}),Rd.error("Spectrum event envelope clientNodepEpochMs is 0, which is unexpected.")),"0"===e.sequenceNumber&&(g1.increment({metricsName:"spectrum_sequence_number_zero"}),Rd.error("Spectrum event envelope sequenceNumber is 0, which is unexpected.")),0===e.eventBytes.length&&(g1.increment({metricsName:"spectrum_event_bytes_empty"}),Rd.error("Spectrum event envelope eventBytes length is 0, which is unexpected."))}async function RT(e,t){if(0===t.length)return;let i=t.map(e=>({item:{event:e.eventEnvelope,$case:"event"}})),n=rJ.encode({sequentialItems:[{item:{frameStart:e,$case:"frameStart"}},...i],events:[]}).finish();g1.addHistogram({metricsName:"upload_body_size",value:n.length}),await RE(n,NE,t.length),Rr({type:"EventsUploaded",events:t,frameStart:e})}async function Rm(e,t,i){if(0===t.length)return;let n=Rs(e,t);g1.addHistogram({metricsName:"upload_spectrum_body_size",value:n.length}),await R_(n,NE,t.length,Rv.get(i)??""),Rr({type:"SpectrumEventsUploaded",header:e,events:t})}async function RE(e,t,i){RI.debug(`Uploading ${i} event(s)... [${t}]`);let n=await Re();if(!n){g1.increment({metricsName:gJ}),RI.error("Failed to get upload config after several attempts. Discarding upload attempt.");return}RS(await NA(`${n.baseUrl}`,()=>({method:"POST",headers:{"Content-Type":t,Authorization:n.authorizationHeader,"X-Blizzard-Upload-Timestamp":`${Date.now()}`},body:e,credentials:n.credentials,keepalive:!0,onStatus:gU(async e=>{N_.includes(e)&&(RI.info("Auth failure, attempting to refresh authentication..."),n=await Re(n)??n)},"onStatus")})),i,!1)}async function R_(e,t,i,n){RI.debug(`Uploading ${i} event(s)... [${t}]`);let a=await Re();if(!a){g1.increment({metricsName:gJ}),RI.error("Failed to get upload config after several attempts. Discarding upload attempt.");return}RS(await NA(`${a.spectrumBaseUrl}`,()=>({method:"POST",headers:{"Content-Type":t,Authorization:a.authorizationHeader,"X-Spectrum-Upload-Timestamp":`${Date.now()}`,"X-Snap-Route-Tag":n},body:e,credentials:a.credentials,keepalive:!0,onStatus:gU(async e=>{N_.includes(e)&&(RI.info("Auth failure, attempting to refresh authentication..."),a=await Re(a)??a)},"onStatus")}),!0,n),i,!0)}function RS(e,t,i){e?RI.debug(`Uploaded ${t} event(s)`):(g1.increment({metricsName:"upload_failed_and_dropped_events",dimensions:{[g3]:`${i}`}}),g1.increment({metricsName:"upload_fail_total_events_dropped",value:t,dimensions:{[g3]:`${i}`}}),RI.error("Failed to upload events after retries, discarding upload attempt."))}gU(Rs,"getSpectrumProtoBytes"),gU(Rl,"getHeaderSequentialItem"),gU(Rc,"getHeaderEnvelopeFromHeader"),gU(Ru,"getClientHeaderFromDefaultClientHeader"),gU(Rp,"getListSequentialItemsFromEventEnvelopes"),gU(Rf,"checkEventEnvelopeFieldValues"),gU(RT,"transmitProtoEvents"),gU(Rm,"transmitSpectrumEvents"),gU(RE,"uploadBlizzardEvent"),gU(R_,"uploadSpectrumEvent"),gU(RS,"logUploadResult");var RI=oW("transmit"),Rv=new Map([[eP.REGION_EUROPE_WEST_1,"euw1"],[eP.REGION_ASIA_SOUTHEAST_1,"ase1"]]);function RA(e){return JSON.stringify(Rk(e))}function Rk(e){if("bigint"==typeof e)return e.toString();if(Array.isArray(e))return e.map(e=>Rk(e));if(null!==e&&"object"==typeof e){let t={};for(let[i,n]of Object.entries(e))null!==n&&("object"!=typeof n||Array.isArray(n)?t[
3i]=Rk(n):Object.assign(t,Rk(n)));return t}return e}gU(RA,"stringifyBlizzardJson"),gU(Rk,"transformForBlizzard");var Rb=new Set(["WEB_PAGE_OPEN"]),Rg=!0,RN=20,RR=5e3,RP=!0;function RO(e,t,i,n){Rg=e,RP=t,RN=i,RR=n}function RC(){return RP?N0():Promise.resolve(RN)}function Ry(){return RP?N2():Promise.resolve(RR)}gU(RO,"setBatchingConfigs"),gU(RC,"getBatchingSizeLimit"),gU(Ry,"getBatchingSizeTimeout");var Rh=class{constructor(e){this.sequenceId=1,this.eventBuffer=[],this.eventBufferNameList=[],this.timeoutId=void 0,this.clientReferenceTs=-1,this.flushEnabled=!1,this.logQueueName=e,this.log=oW(`protoQueue.${e}`)}static{gU(this,"FramesLogQueue")}append(e){return Rg?this.appendWithBatching(e):this.appendWithoutBatching(e)}async appendWithoutBatching(e){if(Nr(e))this.log.trace("Saw new FrameStart, converting/copying for this queue"),this.lastFrameStart=Rw(this.logQueueName,e);else if(Nf(e)){let t=this.lastFrameStart?r8.fromPartial(this.lastFrameStart):null;if(!t)throw Error("Event before FrameStart");let i=g6(e.metadata.client_ts),n=this.sequenceId++;t.sequenceIdStart=n,t.clientReferenceTs=i.toString();let a=RM(e,n,i);await RT(t,[a])}else throw Error(`Illegal item: ${e}`)}async appendWithBatching(e){try{if(this.flushEnabled=!0,Nr(e))this.log.debug("Saw new FrameStart, converting/copying for this queue"),this.lastFrameStart&&await this.flush("frame_start_changed"),this.lastFrameStart=Rw(this.logQueueName,e);else if(Nf(e)){if(!this.lastFrameStart)throw g1.increment({metricsName:"log_event_before_frame_start"}),Error("Event before FrameStart");0===this.eventBuffer.length&&(this.clientReferenceTs=g6(e.metadata.client_ts),this.lastFrameStart.sequenceIdStart=this.sequenceId,this.lastFrameStart.clientReferenceTs=this.clientReferenceTs.toString());let t=RM(e,this.sequenceId++,this.clientReferenceTs);this.eventBuffer.push(t),this.eventBufferNameList.push(e.eventName),await this.maybeFlushAfterAppend(Rb.has(e.eventName))}else throw g1.increment({metricsName:"log_event_ILLEGAL_items"}),Error(`Illegal item: ${e}`)}catch(e){g1.increment({metricsName:"log_event_append_error"}),this.log.error(e)}}async maybeFlushAfterAppend(e){e?await this.flush("tier0_event_present"):this.eventBuffer.length>=await RC()?await this.flush("batch_size_limit_reached"):await this.startFlushTimer()}async flush(e){try{if(!this.flushEnabled||(g1.increment({metricsName:gQ,dimensions:{reason:e,status:"attempt"}}),this.log.debug("Flush starts. Reason: ",e),!this.shouldFlush()))return;let t=this.lastFrameStart,i=[...this.eventBuffer];this.eventBuffer=[],this.clearFlushTimer(),await RT(t,i),this.logMetricsAfterFlush(i.length,Math.round(performance.now()-this.clientReferenceTs)),g1.increment({metricsName:gQ,dimensions:{reason:e,status:"success"}})}catch(e){g1.increment({metricsName:"log_event_flush_error"}),this.log.error(e)}}async startFlushTimer(){let e=await Ry();void 0===this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.flush("timeout").catch(e=>this.log.error(e))},e))}clearFlushTimer(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)}shouldFlush(){if(0===this.eventBuffer.length)return g1.increment({metricsName:"log_event_empty_batch_at_flush"}),this.log.debug("Flush receives empty eventBuffer. Do nothing and return."),!1;if(!this.lastFrameStart)throw g1.increment({metricsName:"log_event_no_frame_start_at_flush"}),Error("No frameStart when flushing");return!0}logMetricsAfterFlush(e,t){g1.addHistogram({metricsName:"log_event_batching_buffer_size",value:e});for(let e=0;e<this.eventBufferNameList.length;e++)this.log.debug(this.eventBufferNameList[e]," is uploaded."),g1.increment({metricsName:"events_flushed",dimensions:{name:this.eventBufferNameList[e],app:gF().application??""}});this.eventBufferNameList=[],g1.addTimer({metricsName:"log_event_batch_lifetime_till_flush_ms",milliSec:Math.round(t)})}},RL={OG:c.OG,MUSHROOM:c.MUSHROOM,SNAPSHOT:c.UNRECOGNIZED,SERVER:c.UNRECOGNIZED,HMS:c.HMS,LOCKSCREEN:c.LOCKSCREEN,CONSUMER_WEB:c.CONSUMER_WEB,DESKTOP_WEB:c.DESKTOP_WEB,UNKNOWN:c.UNRECOGNIZED},RD=new Rh("w");function Rw(e,t){return r8.fromPartial({logQueueName:Nm(e),userAgent:Nm(t.user_agent),localeFallback:t.locale,osType:t.os_type?RV[t.os_type]??l.OPERATING_SYSTEM_OTHER:l.UNRECOGNIZED,osVersionString:t.os_version,appType:(t.app_type?RF[t.app_type]:void 0)??T.APP_TYPE_UNKNOWN,appBuildFallback:Nm(t.app_build),appVariant:t.app_variant?RL[t.app_variant]??c.UNRECOGNIZED:c.UNRECOGNIZED,appVersionString:t.app_version,browser:t.browser,browserVersion:t.browser_version,deviceModelFallback:t.device_model,domain:t.domain,referrer:t.referrer,clientId:Nm(t.client_id),sessionId:Nm(`f.${t.session_id}`),appStartupTypeFallback:Nm(t.app_startup_type),userGuid:Nm(t.user_guid),blizzardWebSessionId:t.blizzard_web_session_id})}function RM(e,t,i){let n=r7.fromPartial({offsetTsStart:g6(e.metadata.client_ts
3)-i,sequenceNumber:t,...RU(e.data),deviceConnectivity:(e.metadata.device_connectivity&&RB[e.metadata.device_connectivity])??u.UNKNOWN_CONNECTIVITY_TYPE,connectionDownloadBandwidthBps:e.metadata.connection_download_bandwidth_bps?.toString()});return{eventName:e.eventName,eventEnvelope:n,fieldsDictionary:NT(e.data)?e.data.toDictionary():e.data}}function RU(e){return NT(e)?{payloadIdentifier:e.payloadIdentifier,payloadProto:e.toProto(),eventSamplingRate:Math.max(RG,e.perEventSamplingRate),userSamplingRate:Math.max(RG,e.perUserSamplingRate)}:{payloadJson:Nm(RA(e)),eventSamplingRate:RG,userSamplingRate:RG}}gU(Rw,"convertFrameStart"),gU(RM,"convertEvent"),gU(RU,"extractEventData");var RV={IOS:l.IOS,ANDROID:l.OPERATING_SYSTEM_ANDROID,WINDOWS:l.OPERATING_SYSTEM_WINDOWS,OSX:l.OPERATING_SYSTEM_OSX,"CHROME OS":l.OPERATING_SYSTEM_CHROMIUM_OS,"CHROMIUM OS":l.OPERATING_SYSTEM_CHROMIUM_OS,CHROMIUM_OS:l.OPERATING_SYSTEM_CHROMIUM_OS,CHROME_OS:l.OPERATING_SYSTEM_CHROMIUM_OS},RB={WIFI:u.WIFI,MOBILE:u.MOBILE,UNREACHABLE:u.UNREACHABLE,BLUETOOTH:u.BLUETOOTH,ETHERNET:u.CONNECTIVITY_TYPE_ETHERNET},RF={WEB_DESKTOP:T.APP_TYPE_WEB_DESKTOP,WEB_MOBILE:T.APP_TYPE_WEB_MOBILE},RG=1,RW=oW("lifecycle"),Rx=!0;async function RH(e){let t=e?.hasFocus??document.hasFocus();RW.info("Blizzard - #onOpen",Rx?"(cold start)":"(warm start)",t?"(foreground)":"(background)"),g1.increment({metricsName:"on_open",dimensions:{[g2]:Rx?"cold":"warm",focused:`${t}`}}),Rx?Rx=!1:gY("WARM"),RK.reportWebPageOpen&&t&&await gj(e||{})}async function RY(){RW.info("Blizzard - #onClose"),g1.increment({metricsName:"on_close",dimensions:{[g2]:gH()?.appStartupType??""}}),await RD.flush("on_page_close")}gU(RH,"onPageOpen"),gU(RY,"onPageClose");var RK={};function R$(e){RK=e}gU(R$,"setLifecycleConfig");var Rz=oW("logEvent"),Rq=0;async function RZ(e){if(!RJ)throw g1.increment({metricsName:"init_blizzard_not_called_error",dimensions:{name:Rj(e),app:gF().application??""}}),Error("initBlizzard must be called prior to calling logEvent");let t=Rj(e),i=[],n=new Date,a=Nd();i.push(a);let o=g5(t,n),r={eventName:t,metadata:o,data:e};i.push(r),Rr({type:"EventLogged",event:RX(r)}),Rq+=i.length,g1.addHistogram({metricsName:"log_event_buffer_size",value:Rq}),Rq>i.length&&Rz.debug(`#logEvent: Pending items: ${Rq}`),await RQ(i)}function Rj(e){return NT(e)?e.eventName:e.event_name}function RX(e){return NT(e.data)?{eventName:e.eventName,metadata:e.metadata,data:e.data.toDictionary()}:e}async function RQ(e){for(let t of(await Promise.all(e)))Rq--,null!==t&&(Nr(t)?(Rz.info("Enqueuing a new FrameStart",t),Rr({type:"FrameStartEnqueued",frameStart:t}),g1.increment({metricsName:"log_frame_start",dimensions:{app:gF().application??""}})):Nf(t)&&(Rz.info("Enqueuing an event",t,t.metadata),Rr({type:"EventEnqueued",event:RX(t)}),g1.increment({metricsName:"log_event",dimensions:{name:t.eventName,app:gF().application??""}})),await RD.append(t),Rz.debug(`#enqueueItems: ${Rq} remaining`))}gU(RZ,"logEvent"),gU(Rj,"getEventName"),gU(RX,"getDebugWrappedEventFromOrigWrappedEvent"),gU(RQ,"enqueueItems");var RJ=!1;function R0(){RJ=!0}gU(R0,"setInitCalled"),gU(async function(){await RD.flush("flush_on_command")},"flushEventsOnCommand");var R2=oW("initBlizzard");function R3(e){if(RJ)throw Error("initBlizzard should not be called multiple times");R2.info("Initializing Blizzard",e),R0(),ox(!!e.debugLoggingEnabled),oj(!e.cookiesDisabled),e.cookiesArgs?.customDomain&&oQ(e.cookiesArgs.customDomain),e.cookiesArgs?.expireDays&&rt(e.cookiesArgs.expireDays),RO(e.batchingEnabled??!1,e.batchingArgs?.fetchFromCof??!0,e.batchingArgs?.batchSize??20,e.batchingArgs?.flushTimeout??5e3),o4(),gV(e.appEnvironment),gG(e.mode??"PROD"),NL(e.clientAuthProvider??null),g4(e.metricsAppId),e.lifecycleConfig&&R$(e.lifecycleConfig),void 0!==e.userGuid&&Np(e.userGuid),void 0!==e.tivTransactionId&&gz(e.tivTransactionId),void 0!==e.webClientId&&gZ(e.webClientId),e.customConfig&&N4(e.customConfig);let t=No(),i=Nj(e.configsClient);NI(async()=>{await Promise.all([e.tivTransactionId,e.userGuid,t]),await Promise.all([Re(),i]),R2.info("Blizzard initialized")},{metricsName:"init_duration_millis"}).catch(e=>R2.error(e))}function R1(e){return e.event?.$case??""}gU(R3,"initBlizzard"),gU(R1,"getSpectrumEventName");var R4=gU(e=>void 0!==e.webMetadata,"isSpectrumHeader");function R8(e){return e.event?.$case!==void 0}function R6(e,t,i=R5){return t===eP.REGION_UNSET||i.has(R1(e))}function R7(e){return e===eP.REGION_UNSET?R9:e}gU(R8,"isSpectrumEvent"),gU(R6,"spectrumEventValidRegion"),gU(R7,"getActualDestinationRegion");var R5=new Set(["adTrackEvent","adTrackEventShadow"]),R9=eP.REGION_US_CENTRAL_1;async function Pe(){let e=gH(),t=await Nu(),i={...i_??=Pt(),sessionId:e?.sessionId,clientId:o7(),appStartupType:Pi(e?.appStartupType),userGuid:t??void 0};return(0,dt.default)(iS,i)?null:(iS=i,i)}function Pt(){let e=Na();return{locale:oV(),osType:eg.WEB,deviceModel:e.device.model,appVersion:gF().appVersion,appBuild:Ni(),webMetadata:ml.fromPartial({browser:e.browser.name,browserVersion:e.browser.version,domain:self.location.hostname,referrer:Nt()})}}function Pi(e){switch(e){case"COLD":return eR.COLD;case"WARM":return eR.WARM;default:return eR.UNRECOGNIZED}}gU(Pe,"getSpectrumHeader"),gU(Pt,"getPartialSpectrumHeader"),gU(Pi,"getSpectrumAppStartupTypeFromBlizzardType");var Pn=class{constructor(e,t){this.region=eP.REGION_US_CENTRAL_1,this.sequenceId=1,this.timeoutId=void 0,this.eventBuffer=[],this.eventBufferNameList=[],this.clientReferenceTs=-1,this.logQueueName=e,this.region=t,this.log=oW(`spectrumLogQueue.${e}-${t}`)}static{gU(this,"SpectrumLogQueue")}async append(e){try{if(R4(e))this.log.debug("Saw new SpectrumHeader, converting/copying for this queue"),this.lastSpectrumHeader&&await this.flush("header_changed"),this.lastSpectrumHeader=Pa(this.logQueueName,this.region,e);else if(R8(e)){if(!this.lastSpectrumHeader)throw g1.increment({metricsName:"stream_event_before_header"}),Error("Event before SpectrumHeader");0===this.eventBuffer.length&&(this.clientReferenceTs=performance.now());let t=Po(e,this.sequenceId++);this.eventBuffer.push(t),this.eventBufferNameList.push(e.event?.$case?e.event?.$case:"undefined"),await this.maybeFlushAfterAppend()}else throw g1.increment({metricsName:"stream_event_illegal_items"}),Error(`Illegal item: ${e}`)}catch(e){g1.increment({metricsName:"stream_event_append_error"}),this.log.error(e)}}async flush(e){try{if(g1.increment({metricsName:g0,dimensions:{reason:e,status:"attempt"}}),this.log.debug("Flush starts. Reason: ",e),!this.shouldFlush())return;let t=this.lastSpectrumHeader,i=[...this.eventBuffer];this.eventBuffer=[],await Rm(t,i,this.region),this.logMetricsAfterFlush(i.length,Math.round(performance.now()-this.clientReferenceTs)),this.clearFlushTimer(),g1.increment({metricsName:g0,dimensions:{reason:e,status:"success"}})}catch(e){g1.increment({metricsName:"stream_event_flush_error"}),this.log.error(e)}}async maybeFlushAfterAppend(){this.eventBuffer.length>=1&&await this.flush("batch_size_limit_reached"),this.startFlushTimer()}startFlushTimer(){void 0===this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.flush("timeout").catch(e=>this.log.error(e))},1e3))}clearFlushTimer(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)}shouldFlush(){if(0===this.eventBuffer.length)return g1.increment({metricsName:"stream_event_empty_batch_at_flush"}),this.log.debug("Flush receives empty eventBuffer. Do nothing and return."),!1;if(!this.lastSpectrumHeader)throw g1.increment({metricsName:"stream_event_no_frame_start_at_flush"}),Error("No frameStart when flushing");return!0}logMetricsAfterFlush(e,t){g1.addHistogram({metricsName:"stream_event_batching_buffer_size",value:e});for(let e=0;e<this.eventBufferNameList.length;e++)this.log.debug(this.eventBufferNameList[e]," is uploaded."),g1.increment({metricsName:"stream_events_flushed",dimensions:{name:this.eventBufferNameList[e],app:gF().application??""}});this.eventBufferNameList=[],g1.addTimer({metricsName:"stream_event_batch_lifetime_till_flush_ms",milliSec:Math.round(t)})}};function Pa(e,t,i){return mu.fromPartial({sessionId:i.sessionId,userGuid:i.userGuid,appBuild:i.appBuild,appVersion:i.appVersion,osVersion:i.osVersion,osType:i.osType,clientId:i.clientId,locale:i.locale,deviceModel:i.deviceModel,a
3ppStartupType:i.appStartupType,queueName:e,region:t})}function Po(e,t){let i=Date.now().toString();return T5.fromPartial({sequenceNumber:t.toString(),eventBytes:gw.encode(e).finish(),clientEpochMs:i,clientNodepEpochMs:i})}gU(Pa,"convertSpectrumHeader"),gU(Po,"convertEvent");var Pr=new Set(["adTrackEvent","adTrackEventShadow"]),Pd=oW("spectrumLogQueueAdapter"),Ps=new class{constructor(){this.spectrumLogQueuesMap=new Map,this.queueHasLatestHeaderSet=new Set}static{gU(this,"SpectrumLogQueueAdapter")}async enqueueItemsToQueues(e,t){for(let i of(Pd.info("Enqueueing",e.length,"Spectrum items to queue(s)..."),await Promise.all(e)))if(null!==i){if(R4(i))Pd.info("Enqueuing a new SpectrumHeader",i),Rr({type:"SpectrumHeaderEnqueued",header:i}),g1.increment({metricsName:"stream_spectrum_header",dimensions:{app:gF().application??"",region:eP[t]}}),this.queueHasLatestHeaderSet.clear(),this.lastHeader=i;else if(R8(i)){Pd.debug("Enqueuing an event",i),Rr({type:"SpectrumEventEnqueued",event:i}),g1.increment({metricsName:"stream_spectrum_event",dimensions:{name:i.event?.$case??"",app:gF().application??"",region:eP[t]}});let e=Pr.has(i.event?.$case??"")?"s0":"s1";this.isLogQueueCreated(t,e)||this.createQueuesAndSetInMap(t,e);let n=this.spectrumLogQueuesMap.get(t)?.get(e);this.sendHeaderToQueueOrNot(n,t,e),await n?.append(i)}}}createQueuesAndSetInMap(e,t){if(this.spectrumLogQueuesMap.has(e))this.spectrumLogQueuesMap.get(e)?.set(t,new Pn(t,e));else{let i=new Map([[t,new Pn(t,e)]]);this.spectrumLogQueuesMap.set(e,i)}}isLogQueueCreated(e,t){return this.spectrumLogQueuesMap.get(e)?.get(t)!==void 0}sendHeaderToQueueOrNot(e,t,i){let n=t.toString()+i;return!this.queueHasLatestHeaderSet.has(n)&&(this.lastHeader&&e?.append(this.lastHeader),this.queueHasLatestHeaderSet.add(n),!0)}},Pl=oW("streamEvent");function Pc(e,t){return void 0===e.event?(Pl.error("Spectrum event must be specified!"),!1):!!R6(e,t)||(Pu(e),!1)}function Pu(e){g1.increment({metricsName:"spectrum_invalid_region",dimensions:{name:R1(e),app:gF().application??""}}),Pl.error("Event",R1(e),"has specified an invalid region. Make sure it is allowlisted for Spectrum region forwarding if regionalization is actually required for this event.")}gU(async function(e,t=eP.REGION_UNSET){if(!Pc(e,t))return;let i=R1(e),n=R7(t);Rr({type:"SpectrumEventLogged",event:e}),Pl.info("Logging Spectrum event",i,"for region",n);let a=Pe();await Ps.enqueueItemsToQueues([a,e],n)},"streamEvent"),gU(Pc,"eventAndRegionValid"),gU(Pu,"logEventInvalidRegion"),e.s(["AuthStatus",0,NC,"CollectionMode",0,NH,"SsoClientId",0,NY,"UNAUTH_STATE",0,Nh,"initBlizzard",0,R3,"logEvent",0,RZ,"onPageClose",0,RY,"onPageOpen",0,RH,"registerDebugObserver",0,Ro],832267);var Pp=e.i(271645),Pf=e.i(250601);function PT(e){if(void 0!==e){if(e.authStatus===NC.AUTHENTICATED)return!0;if(e.authStatus===NC.UNAUTHENTICATED)return!1}}let Pm=()=>PT(Pf.useClientAppContextStore.getState().authState);e.s(["deriveIsLoggedIn",0,PT,"useIsLoggedIn",0,function(){return(0,Pp.useSyncExternalStore)(Pf.useClientAppContextStore.subscribe,Pm,()=>void 0)}],127447)},169068,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(768834);let a=Object.freeze({kind:"none"});function o(e,t){return e.kind===t.kind&&("topic"===e.kind&&"topic"===t.kind?e.pageGenerationId===t.pageGenerationId&&e.topicId===t.topicId&&e.topicTitle===t.topicTitle:"entertainment-funny"!==e.kind||"entertainment-funny"!==t.kind||e.pageGenerationId===t.pageGenerationId&&e.keyword===t.keyword&&e.keywordTitle===t.keywordTitle)}let r=(0,n.create)()(e=>({context:function(){if("u"<typeof globalThis)return a;let e=globalThis.__SC_COM_PAGE_CONTEXT__;return!function(e){if("object"!=typeof e||null===e)return!1;switch(e.kind){case"none":return!0;case"topic":return"string"==typeof e.pageGenerationId&&"string"==typeof e.topicId&&"string"==typeof e.topicTitle;case"entertainment-funny":return"string"==typeof e.pageGenerationId&&"string"==typeof e.keyword&&"string"==typeof e.keywordTitle;default:return!1}}(e)?a:e}(),setContext:t=>e(e=>o(e.context,t)?e:{context:t})})),d=(0,i.createContext)(a);function s(){return(0,i.useContext)(d)}function l(){return r.getState().context}e.s(["PageContextClientProvider",0,function({context:e,children:n}){let s=(0,i.useRef)(e);return(0,i.useEffect)(()=>{s.current=e,r.getState().setContext(e)},[e]),(0,i.useEffect)(()=>()=>{o(r.getState().context,s.current)&&r.getState().setContext(a)},[]),(0,t.jsx)(d.Provider,{value:e,children:n})},"getPageContextClient",0,l,"getPageGenerationId",0,function(){var e;return"pageGenerationId"in(e=l())?e.pageGenerationId:void 0},"resetPageContextStoreForTests",0,function(){r.getState().setContext(a)},"useKeywordPageIdentity",0,function(){var e=s();switch(e.kind){case"topic":return{id:e.topicId,displayName:e.topicTitle};case"entertainment-funny":return{id:e.keyword,displayName:e.keywordTitle}}},"usePageContext",0,s],169068)},618566,(e,t,i)=>{t.exports=e.r(976562)},147708,948170,943079,561945,539046,709761,e=>{"use strict";var t=e.i(471473),i=e.i(315721),n=e.i(130873);let a=new Map,o=new Map;function r(e,t,i,n,o){a.has(e)||a.set(e,{target:t,eventType:i,handler:n,options:o,refCount:0})}function d(e,t,i=[]){o.has(e)||o.set(e,new Set);let n=o.get(e);for(let e of(n.add(t),i)){let t=a.get(e);void 0!==t&&(t.refCount++,1===t.refCount&&t.target.addEventListener(t.eventType,t.handler,t.options))}let r=!1;return()=>{if(!r)for(let e of(r=!0,n.delete(t),i)){let t=a.get(e);void 0!==t&&(t.refCount--,0===t.refCount&&t.target.removeEventListener(t.eventType,t.handler,t.options))}}}function s(e,t){let a=o.get(e);if(void 0!==a)for(let o of[...a])try{o(t)}catch(t){(0,i.emitCounter)({metricsName:"FrontEndLifecycle.SubscriberError",dimensions:{event:e}}),"prod"!==(0,n.getRuntime)().stage&&console.log(`[FrontEndLifecycle] subscriber error for "${e}":`,t)}}function l(e,t,i){let n=null,a=0;return{acquire:()=>{0===a&&(n=d(e,t,i)),a++;let o=!1;return()=>{o||(o=!0,0==--a&&null!==n&&(n(),n=null))}},reset:()=>{n=null,a=0}}}e.s(["createSharedRawSink",0,l,"emit",0,s,"registerDomSource",0,r,"subscribe",0,d],948170);let c=["pointerdown","pointerenter","keydown","click","dblclick","touchstart","scroll","wheel"],u=c.map(e=>`dom:${e}`),p=["dom:visibilitychange","dom:focus","dom:blur"],f="dom:pagehide",T="dom:beforeunload",m="dom:pageshow",E="raw:activity-input",_="raw:visibility-input",S="raw:pagehide",I="raw:beforeunload",v="raw:pageshow";function A(){for(let e of c)r(`dom:${e}`,window,e,()=>s(E,{trigger:e}),{passive:!0});r("dom:visibilitychange",document,"visibilitychange",()=>s(_,{trigger:"visibilitychange"}
3)),r("dom:focus",window,"focus",()=>s(_,{trigger:"focus"})),r("dom:blur",window,"blur",()=>s(_,{trigger:"blur"})),r(f,window,"pagehide",()=>s(S,null)),r(T,window,"beforeunload",()=>s(I,null)),r(m,window,"pageshow",e=>{s(v,{persisted:e.persisted})})}e.s(["ACTIVITY_DOM_KEYS",0,u,"BEFOREUNLOAD_DOM_KEY",0,T,"PAGEHIDE_DOM_KEY",0,f,"PAGESHOW_DOM_KEY",0,m,"RAW_ACTIVITY_INPUT",0,E,"RAW_BEFOREUNLOAD",0,I,"RAW_PAGEHIDE",0,S,"RAW_PAGESHOW",0,v,"RAW_VISIBILITY_INPUT",0,_,"VISIBILITY_DOM_KEYS",0,p,"ensureDomInputsRegistered",0,A],943079),e.s(["closeBootstrapGate",()=>D,"getTrackedIsForeground",()=>U,"isBootstrapGateOpen",()=>w,"onPageGainedVisibility",()=>x,"onPageLostVisibility",()=>H,"openBootstrapGate",()=>L,"pageIsVisibleAndFocused",()=>P,"setOnFirstForeground",()=>h,"setTrackedForeground",()=>V],539046),e.s(["reconciliationSubscriberAdded",()=>N,"reconciliationSubscriberRemoved",()=>R],561945);let k=0,b=null;function g(){if(!O)return;let e=M,t=P();e&&!t?(M=!1,s("page-lost-visibility",{trigger:"reconciliation"})):!e&&t&&(M=!0,s("page-gained-visibility",{trigger:"reconciliation"}))}function N(){1==++k&&(b=setInterval(g,5e3))}function R(){k>0&&k--,0===k&&null!==b&&(clearInterval(b),b=null)}function P(){return"visible"===document.visibilityState&&document.hasFocus()}let O=!1,C=null,y=null;function h(e){C=e,null===y&&(y=W.acquire())}function L(){O=!0,C=null,null!==y&&(y(),y=null)}function D(){O=!1}function w(){return O}let M=!1;function U(){return M}function V(e){M=e}let B=null,F=null;function G(){null!==B&&(clearTimeout(B),B=null,F=null)}let W=l(_,function(e){O||null===C||"visible"!==document.visibilityState||C(window.location.pathname);let t=e.trigger;if(P()){if(M)return void G();if("blur"===t)return;F=t,null!==B&&clearTimeout(B),B=setTimeout(()=>{B=null;let e=F;F=null,null!==e&&P()&&!M&&(M=!0,O?s("page-gained-visibility",{trigger:e}):null!==C&&C(window.location.pathname))},200)}else{if(!M)return void G();if(G(),P())return;M=!1,O&&s("page-lost-visibility",{trigger:"blur"===t?"blur":"visibilitychange"})}},p);function x(e){A();let t=W.acquire();N();let i=d("page-gained-visibility",e,[]),n=!1;return()=>{n||(n=!0,i(),R(),t())}}function H(e){A();let t=W.acquire();N();let i=d("page-lost-visibility",e,[]),n=!1;return()=>{n||(n=!0,i(),R(),t())}}let Y=!1,K=!1,$=!1,z=l(S,function(){K||(K=!0,s("page-close",{reason:"unload",path:(0,t.normalizePath)(window.location.pathname),trigger:"pagehide"}))},[f]),q=l(I,function(){K||(K=!0,s("page-close",{reason:"unload",path:(0,t.normalizePath)(window.location.pathname),trigger:"beforeunload"}))},[T]),Z=l(v,function(e){e.persisted&&(Y=!0,K=!1,$=!1,s("page-open",{reason:"bfcache-restore",path:(0,t.normalizePath)(window.location.pathname)}))},[m]);function j(){let e=z.acquire(),t=q.acquire(),i=Z.acquire();return()=>{e(),t(),i()}}function X(e,i){Y||(Y=!0,s("page-open",{reason:e,path:(0,t.normalizePath)(i)}),L())}function Q(e,i){let n=(0,t.normalizePath)(i);(0,t.getPageNameFromPath)(e)!==(0,t.getPageNameFromPath)(n)&&(s("page-close",{reason:"navigation",path:e,trigger:"pathname-change"}),Y=!1,$=!1,K=!1,"visible"===document.visibilityState?(Y=!0,s("page-open",{reason:"navigation",path:n})):($=!0,s("page-background-open",{path:n}),D(),h(e=>X("navigation",e))))}e.s(["emitBootstrapPageEvent",0,function(){let e=(0,t.normalizePath)(window.location.pathname);"visible"===document.visibilityState?Y||(Y=!0,M=document.hasFocus(),s("page-open",{reason:"initial",path:e}),L()):$||($=!0,M=!1,s("page-background-open",{path:e}),h(e=>X("initial",e)))},"emitNavigationFromPathname",0,Q,"onPageBackgroundOpen",0,function(e){return d("page-background-open",e,[])},"onPageClose",0,function(e){A();let t=j(),i=d("page-close",e,[]),n=!1;return()=>{n||(n=!0,i(),t())}},"onPageOpen",0,function(e){A();let t=j(),i=d("page-open",e,[]),n=!1;return()=>{n||(n=!0,i(),t())}}],147708);var J=e.i(271645),ee=e.i(618566);function et(e,i){let n=(0,t.normalizePath)(i),a=e.current;if(null===a){e.current=n;return}a!==n&&(e.current=n,Q(a,i))}e.s(["PathnameBridge",0,function(){let e=(0,ee.usePathname)(),t=(0,J.useRef)(null);return(0,J.useEffect)(()=>{et(t,e)},[e]),null},"applyPathnameChange",0,et],709761)},981736,149501,966140,756812,972225,17763,697457,e=>{"use strict";let t,i,n;e.s(["initBlizzard",()=>eP,"logBlizzardEvent",()=>ey,"reportPageClose",()=>eC,"reportPageOpen",()=>eO,"resetBlizzardBrowserForTests",()=>eD],981736);var a=e.i(832267),o=e.i(439668),r=e.i(250601),d=e.i(315721),s=e.i(130873);let l=!1;async function c(e){try{if((0,d.emitCounter)({metricsName:"auth_sso_call"}),e&&("u"<typeof document||void 0===(0,o.readCookieValue)(document.cookie,"sc-a-nonce"))){(0,d.emitCounter)({metricsName:"auth_sso_nonce_missing"}),u(a.UNAUTH_STATE);return}let t=await fetch("https://accounts.snapchat.com/accounts/sso?client_id=snapchat-com-metrics",{method:"POST",credentials:"include",keepalive:!0,redirect:"manual"});200===t.status?(u({authStatus:a.AuthStatus.AUTHENTICATED,ssoToken:await t.text()}),(0,d.emitCounter)({metricsName:"auth_sso_success"})):(u(a.UNAUTH_STATE),(0,d.emitCounter)({metricsName:"auth_sso_failed",dimensions:{status:String(t.status)}}))}catch{u(a.UNAUTH_STATE),(0,d.emitCounter)({metricsName:"auth_sso_error"})}}function u(e){r.useClientAppContextStore.getState().setAuthState(e)}e.i(127447),e.s([],149501);var p=e.i(914299),f=e.i(471473);e.s(["bootstrapFrontEndLifecycle",()=>ep],17763);var T=e.i(662537),m=e.i(147708),E=e.i(539046);let _=!1,S=!1;
3function I(){S||(S=!0,eO().catch(()=>{}))}function v(){S&&(S=!1,eC().catch(()=>{}))}function A(e={}){return ey({event_name:"WEB_PAGE_VIEW_CLIENT",has_nonce_cookie_set:!("u"<typeof document)&&void 0!==(0,o.readCookieValue)(document.cookie,"sc-a-nonce"),source:e.source})}e.s(["reportWebPageView",()=>A],966140);let k=!1;e.s([],972225);var b=e.i(943079),g=e.i(948170);let N=0,R=new Set,P=(0,g.createSharedRawSink)(b.RAW_ACTIVITY_INPUT,function(e){for(let e of(N=Date.now(),R))try{e()}catch(e){"prod"!==(0,s.getRuntime)().stage&&console.log("[FrontEndLifecycle] onActive callback threw:",e)}},b.ACTIVITY_DOM_KEYS);function O(e){let{onInactive:t,onActive:i,thresholdMs:n}=e;(0,b.ensureDomInputsRegistered)();let a=P.acquire(),o=!1,r=()=>{o&&(o=!1,i())};R.add(r);let d=function(e){let{delayMs:t,onElapse:i,resetOnActivity:n=!1}=e,a=null,o=null,r=null;function d(){null!==a&&clearTimeout(a),a=setTimeout(()=>{a=null,i()},t)}let s={reset(){d()},cancel(){null!==a&&(clearTimeout(a),a=null),null!==o&&(o(),o=null),null!==r&&(r(),r=null)}};return n&&((0,b.ensureDomInputsRegistered)(),o=(0,g.subscribe)(b.RAW_ACTIVITY_INPUT,()=>s.reset(),b.ACTIVITY_DOM_KEYS),r=(0,g.subscribe)(b.RAW_VISIBILITY_INPUT,e=>{("focus"===e.trigger||"visibilitychange"===e.trigger&&"visible"===document.visibilityState)&&s.reset()},b.VISIBILITY_DOM_KEYS)),d(),s}({delayMs:n,resetOnActivity:!0,onElapse:()=>{o||(o=!0,t({lastActivityAt:N}))}}),s=!1;return()=>{s||(s=!0,d.cancel(),R.delete(r),a())}}let C="_sc-sid",y=new Set([".snapchat.com",".snap-dev.net"]);function h(e,t=new Date){let i,n,a,o,r,d;if("u"<typeof document)return;let s=window.location.hostname;document.cookie=(i=function(e){let t=e.includes(":")?e.substring(0,e.indexOf(":")):e;for(let e of y)if(t===e.substring(1)||t.endsWith(e))return e}(s),n="localhost"!==s,a=void 0!==i?`; Domain=${i}`:"",d=(o=new Date(t.getTime()+18e5),o<(r=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)-1))?o:r).toUTCString(),`${C}=${e}; Path=/; Expires=${d}; SameSite=Lax${n?"; Secure":""}${a}`)}let L=[];function D(e){for(let t of L)try{t(e)}catch{}h(t=crypto.randomUUID())}function w(){void 0!==t&&h(t)}var M=e.i(169068);let U=!1,V={TTFB:0,FCP:0,LCP:0,CLS:0,INP:0};function B(e,t=1){let i=Math.round(e.value*t),n=e.rating.replace("-","_"),a=function(e){if("LCP"===e.name){let t=e.entries.find(e=>"largest-contentful-paint"===e.entryType),i=t?.element,n=i?.nodeName??"";return t?.url&&!n&&(n="URL"),"string"==typeof i?.className&&i.className&&(n+=`_${i.className}`),F(n)}if("INP"===e.name){let t=e.entries.find(e=>"event"===e.entryType),i=t?.target,n=i?.nodeName??"";return"string"==typeof i?.className&&i.className&&(n+=`_${i.className}`),F(n)}if("CLS"===e.name){let t=e.entries.find(e=>"layout-shift"===e.entryType),i=t?.sources[0]?.node,n=i?.nodeName??"";return"string"==typeof i?.className&&i.className&&(n+=`_${i.className}`),F(n)}return"unknown"}(e);(0,d.emitTimer)({metricsName:`page_load_${e.name}`,milliSec:i}),(0,d.emitTimer)({metricsName:`page_load_${e.name}_rating`,milliSec:i,dimensions:{rating:n,element:a}}),(0,d.emitCounter)({metricsName:`page_load_${e.name}_rating`,dimensions:{rating:n,element:a}})}function F(e){return(e.replaceAll(" ","-")||"unknown").slice(0,100)}function G(e,t,i){return{...e,name:t,value:i,delta:i}}let W={pageOpenId:void 0,webPageViewId:void 0,pageGenerationId:void 0,pageOpenTimestamp:null,pageForegroundTimestamp:null,pageInBackgroundTimestamp:null,pageInactiveTimestamp:null,lastAction:null};function x(){return W}function H(e){W=e}function Y(e,t){let i={};return null!==e.pageOpenTimestamp&&(i.durationSincePageOpen=t-e.pageOpenTimestamp),null!==e.pageForegroundTimestamp?i.durationSincePageInForeground=t-e.pageForegroundTimestamp:null!==e.pageInBackgroundTimestamp&&(i.durationSincePageInBackground=t-e.pageInBackgroundTimestamp),null!==e.pageInactiveTimestamp&&(i.durationSincePageInactive=t-e.pageInactiveTimestamp),i}function K(e,t){return{...Y(e,t),durationSincePageOpen:0}}e.s(["getWebSessionIds",0,function(){return{pageOpenId:W.pageOpenId,webPageViewId:W.webPageViewId}},"getWebSessionMetricsState",0,x,"setWebSessionMetricsState",0,H],756812);let $=(e,t,i,n)=>({pageOpenId:i(),webPageViewId:i(),pageGenerationId:n,pageOpenTimestamp:t,pageForegroundTimestamp:t}),z=(e,t)=>
3({pageForegroundTimestamp:null,pageInBackgroundTimestamp:t,webPageViewId:void 0}),q=()=>({pageOpenId:void 0,webPageViewId:void 0,pageGenerationId:void 0,pageOpenTimestamp:null,pageForegroundTimestamp:null,pageInBackgroundTimestamp:null,pageInactiveTimestamp:null}),Z=(e,t)=>({pageOpenId:void 0,webPageViewId:void 0,pageGenerationId:void 0,pageOpenTimestamp:null,pageForegroundTimestamp:null,pageInBackgroundTimestamp:null,pageInactiveTimestamp:t}),j=(e,t,i,n)=>({pageOpenId:i(),webPageViewId:i(),pageGenerationId:n,pageOpenTimestamp:t,pageForegroundTimestamp:t,pageInactiveTimestamp:null,pageInBackgroundTimestamp:null}),X=(e,t)=>({pageForegroundTimestamp:t}),Q=[[null,"BACKGROUND_OPEN",(e,t,i,n)=>({pageOpenId:i(),webPageViewId:i(),pageGenerationId:n,pageInBackgroundTimestamp:t})],[null,"PAGE_OPEN",$,{getDurationInfo:K}],["BACKGROUND_OPEN","PAGE_OPEN",(e,t)=>({pageOpenTimestamp:t,pageForegroundTimestamp:t,pageInBackgroundTimestamp:null}),{getDurationInfo:K}],["PAGE_OPEN","HEART_BEAT",X],["PAGE_OPEN","PAGE_LOST_VISIBILITY",z],["PAGE_OPEN","PAGE_CLOSE",q],["PAGE_OPEN","INACTIVITY_CLOSE",Z],["PAGE_GAINED_VISIBILITY","HEART_BEAT",X],["PAGE_GAINED_VISIBILITY","PAGE_LOST_VISIBILITY",z],["PAGE_GAINED_VISIBILITY","PAGE_CLOSE",q],["PAGE_GAINED_VISIBILITY","INACTIVITY_CLOSE",Z],["HEART_BEAT","HEART_BEAT",X],["HEART_BEAT","PAGE_LOST_VISIBILITY",z],["HEART_BEAT","PAGE_CLOSE",q],["HEART_BEAT","INACTIVITY_CLOSE",Z],["PAGE_LOST_VISIBILITY","PAGE_GAINED_VISIBILITY",(e,t,i)=>({webPageViewId:i(),pageForegroundTimestamp:t,pageInBackgroundTimestamp:null})],["PAGE_LOST_VISIBILITY","INACTIVITY_CLOSE",Z,{shouldLogBlizzardEvent:!1}],["INACTIVITY_CLOSE","PAGE_GAINED_VISIBILITY",j,{getDurationInfo:K}],["PAGE_CLOSE","PAGE_OPEN",$,{getDurationInfo:K}],["PAGE_CLOSE","PAGE_GAINED_VISIBILITY",j,{getDurationInfo:K}]];function J(e){return void 0===e?void 0:BigInt(Math.max(0,Math.round(e)))}function ee(e){return BigInt(Math.max(0,Math.round(e)))}function et(e){let{nextState:t,event:i}=function(e,t,i,n,a){let o=Q.find(([i,n])=>i===e.lastAction&&n===t);if(void 0===o)return{nextState:e};let[,,r,d]=o,s=(d?.getDurationInfo??Y)(e,i),l={...e,...r(e,i,n,a),lastAction:t};if(d?.shouldLogBlizzardEvent===!1)return{nextState:l};let c="PAGE_OPEN"===t||"BACKGROUND_OPEN"===t||"PAGE_GAINED_VISIBILITY"===t?l:e;return{nextState:l,event:{event_name:"WEB_SESSION_CLIENT",action:t,page_open_id:c.pageOpenId,web_page_view_id:c.webPageViewId,page_generation_id:c.pageGenerationId,page_open_time_ms:J(s.durationSincePageOpen),page_foreground_time_ms:J(s.durationSincePageInForeground)}}}(x(),e,Date.now(),()=>crypto.randomUUID(),(0,M.getPageGenerationId)());if(H(t),void 0===i)return;let n={...V};ey({...i,page_load_ttfb:ee(n.TTFB),page_load_fcp:ee(n.FCP),page_load_lcp:ee(n.LCP),page_load_cls:BigInt(Math.round(100*n.CLS)),page_load_inp:ee(n.INP)})}let ei={thresholds:[2e3,5e3,1e4,2e4,3e4,4e4,5e4,6e4],repeatIntervalMs:3e4,maxDurationMs:3e5},en={},ea=!1;var eo=e.i(11010),er=e.i(66881);let ed=null,es=null;(0,g.createSharedRawSink)(b.RAW_ACTIVITY_INPUT,function(e){es=e.trigger,null===ed&&(ed=setTimeout(()=>{ed=null;let e=es;es=null,null!==e&&(0,g.emit)("activity",{trigger:e})},1e3))},b.ACTIVITY_DOM_KEYS),e.i(561945);let el="",ec=!1,eu=!1;function ep(){return void 0!==i?i:(el="",i=ef().catch(e=>{el=eE(e),console.log(`sc-com front-end lifecycle startup failed: ${el}`)}))}async function ef(){(0,m.onPageClose)(eT),(0,m.onPageOpen)(e=>{"bfcache-restore"===e.reason&&(eu=!1)}),er.metrics.isReady()||(0,eo.init)(),(0,d.emitCounter)({metricsName:"front_end_lifecycle_init"}),e_||(e_=!0,h(t=function(){if("u">typeof document){var e;return e=document.cookie,(0,o.readCookieValue)(e,C)}}()??crypto.randomUUID()),O({thresholdMs:18e5,onInactive:()=>D("inactivity"),onActive:w}),function e(){var t;setTimeout(()=>{D("day-boundary"),e()},Date.UTC((t=new Date).getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)-t.getTime())}()),U||(U=!0,e.A(199040).then(({onCLS:e,onFCP:t,onLCP:i,onTTFB:n})=>{n(e=>{V.TTFB=e.value,B(e)}),t(e=>{V.FCP=e.value,B(e)}),i(e=>{V.LCP=e.value,B(e)}),e(e=>{V.CLS=e.value,B(e,100)})}).catch(()=>{}),e.A(716087).then(({onINP:e})=>{e(e=>{V.INP=e.value,B(e),e.attribution?.inputDelay!==void 0&&B(G(e,"INP_INPUT_DELAY",e.attribution.inputDelay)),e.attribution?.processingDuration!==void 0&&B(G(e,"INP_PROCESSING_DURATION",e.attribution.processingDuration)),e.attribution?.presentationDelay!==void 0&&B(G(e,"INP_PRESENTATION_DELAY",e.attribution.presentationDelay))})}).catch(()=>{})),function(){if(ea)return;ea=!0;let e=function(e){let{getCadence:t,onTick:i}=e,n=null,a=null,o=0,r=0;function d(){null!==n&&(clearTimeout(n),n=null)}return{start(){d(),a=t(),o=0,r=Date.now(),function e(){if(null===a)return;let t=a(o);if(null===t){n=null;return}n=setTimeout(()=>{n=null,i(),o+=1,e()},Math.max(0,t-(Date.now()-r)))}()},stop(){d()}}}({getCadence:()=>(function(e){let{thresholds:t,repeatIntervalMs:i,maxDurationMs:n}=en[e]??ei;return e=>{let a;if(e<t.length)a=t[e];else{if(void 0===i)return null;a=t[t.length-1]+(e-t.length+1)*i}return void 0!==n&&a>n?null:a}})((0,r.getClientAppContext)().pageName),onTick:()=>et("HEART_BEAT")}
3);(0,m.onPageOpen)(()=>{et("PAGE_OPEN"),e.start()}),(0,m.onPageBackgroundOpen)(()=>et("BACKGROUND_OPEN")),(0,m.onPageClose)(()=>{et("PAGE_CLOSE"),e.stop()}),(0,E.onPageGainedVisibility)(()=>{et("PAGE_GAINED_VISIBILITY"),e.start()}),(0,E.onPageLostVisibility)(()=>{et("PAGE_LOST_VISIBILITY"),e.stop()}),L.push(t=>{"inactivity"===t&&(et("INACTIVITY_CLOSE"),e.stop())}),O({thresholdMs:18e5,onInactive:()=>{},onActive:()=>{et("PAGE_GAINED_VISIBILITY"),e.start()}})}(),_||(_=!0,(0,m.onPageOpen)(e=>{"bfcache-restore"!==e.reason&&I()}),(0,E.onPageGainedVisibility)(I),(0,m.onPageClose)(v),(0,E.onPageLostVisibility)(v)),k||(k=!0,(0,m.onPageOpen)(()=>{A().catch(()=>{})})),(0,m.emitBootstrapPageEvent)(),ec||(ec=!0,window.addEventListener("resize",em,{passive:!0})),function(){if(l)return;l=!0;let e="prod"===(0,s.getRuntime)().stage;queueMicrotask(()=>void c(e)),setInterval(()=>void c(e),12e4)}()}function eT(e){if("unload"!==e.reason||eu)return;eu=!0;let t=[T.flush(2e3)];er.metrics.isReady()&&t.push(er.metrics.flush()),Promise.all(t).catch(t=>{console.log(`sc-com front-end lifecycle teardown failed after ${e.trigger}: ${eE(t)}`)})}function em(){void 0===n&&(n=window.requestAnimationFrame(()=>{n=void 0,r.useClientAppContextStore.getState().setLayoutTypeForViewportWidth(window.innerWidth)}))}function eE(e){return e instanceof Error?e.message.length>0?e.message:e.name:String(e)}e.i(709761);let e_=!1;function eS(e){return Number.isFinite(e)?Math.trunc(e):0}let eI=new Set;function ev(e){for(let t of eI)try{t(e)}catch{}}e.s(["dispatchDebugAction",0,ev,"registerDebugListener",0,function(e){return eI.add(e),()=>{eI.delete(e)}}],697457);class eA extends Error{constructor(){super("Blizzard log event queue exceeded 1000 entries before init resolved"),this.name="BlizzardLogEventQueueOverflowError"}}let ek=null,eb=[];function eg(e){(0,d.emitCounter)({metricsName:"blizzard_log_event",dimensions:{stage:e}})}let eN=new Set(["WEB_SESSION_CLIENT","WEB_ACTION_CLIENT","WEB_PAGE_VIEW_CLIENT","WEB_PAGE_SHARE_CLIENT","WEB_TOPIC_PAGE_ACTION"]),eR=!1;function eP(e={}){if(eR)return void ew("skipped");eR=!0;try{let t=(0,r.getClientAppContext)();(0,a.initBlizzard)({appEnvironment:{appType:"desktop"===t.layoutType?"WEB_DESKTOP":"WEB_MOBILE",appBuild:function(){let{stage:e,hosting:t}=(0,s.getRuntime)();return"local"===t||"ci"===t?"DEBUG":"pd"===t||"staging"===e?"ALPHA":"prod"===e?"PROD":"DEBUG"}(),appVersion:p.BUILD_ID,appVariant:"CONSUMER_WEB"},clientAuthProvider:{authState:{subscribe(e){let t,i=i=>{if(i!==t){t=i;try{e(i)}catch(e){console.error("[auth] authState subscriber threw:",e)}}};return queueMicrotask(()=>{let e=r.useClientAppContextStore.getState().authState;void 0!==e&&i(e)}),r.useClientAppContextStore.subscribe((e,t)=>{e.authState!==t.authState&&void 0!==e.authState&&i(e.authState)})}},ssoClientId:a.SsoClientId.SNAPCHAT_COM},cookiesDisabled:e.cookiesDisabled,cookiesArgs:void 0!==e.cookieDomain?{customDomain:e.cookieDomain}:void 0,debugLoggingEnabled:"prod"!==(0,s.getRuntime)().stage,lifecycleConfig:{reportWebPageOpen:!0},metricsAppId:e.metricsAppId,mode:a.CollectionMode.PROD,batchingEnabled:e.batchingEnabled??!1,webClientId:Promise.resolve(t.webClientId)}),(0,a.registerDebugObserver)(t=>{void 0!==e.debugObserver&&e.debugObserver(t),ev(t)}),ek=async e=>{await (0,a.logEvent)(e)},function(){if(null===ek)return;let e=eb;for(let t of(eb=[],e))ek(t.event).then(t.resolve,t.reject);eg("queue_flushed"),(0,d.emitHistogram)({metricsName:"blizzard_log_event_queue_flush_size",value:e.length}),e.length}(),ew("succeeded")}catch(e){throw ew("failed"),e}}async function eO(){let e=(0,r.getClientAppContext)().pageName;if(e===f.UNKNOWN_PAGE_NAME)return void eL("page_open","skipped_unknown_page",e);eL("page_open","reported",e);try{await (0,a.onPageOpen)({pageId:e,appFormat:"BROWSER"}),eL("page_open","success",e)}catch(t){throw eL("page_open","failure",e),t}}async function eC(){let e=(0,r.getClientAppContext)().pageName;if(e===f.UNKNOWN_PAGE_NAME)return void eL("page_close","skipped_unknown_page",e);eL("page_close","reported",e);try{await (0,a.onPageClose)(),eL("page_close","success",e)}catch(t){throw eL("page_close","failure",e),t}}async function ey(e){if((0,r.getClientAppContext)().pageName===f.UNKNOWN_PAGE_
3NAME)return void eh("skipped_unknown_page",{eventName:e.event_name});if(!eN.has(e.event_name))throw eh("rejected",{eventName:e.event_name}),Error(`Blizzard event "${e.event_name}" is not in CLIENT_BLIZZARD_EVENT_NAMES`);let i={...function(){let{webClientId:e,pageName:i,device:n}=(0,r.getClientAppContext)(),{webSessionId:a}=function(){if(void 0===t)throw Error("getSessionSnapshot called before initSession");return{webSessionId:t}}();return{web_client_id:e,web_session_id:a,page_id:i,canonical_url:function(){if("u"<typeof location)return"";try{let e=new URL(location.href);return`${e.hostname}${e.pathname}`}catch{return""}}(),device_screen_width:BigInt(eS(n.screen.width)),device_screen_height:BigInt(eS(n.screen.height)),device_type:n.type.resolvedDeviceType,device_manufacturer:n.manufacturer}}(),...e};try{await (null!==ek?(eg("forwarded"),ek(i)):eb.length>=1e3?(eg("rejected_overflow"),Promise.reject(new eA)):(eg("queued"),new Promise((e,t)=>{eb.push({event:i,resolve:e,reject:t})})))}catch(t){throw console.log(`[Blizzard] logBlizzardEvent failed for "${e.event_name}":`,t),eh("failure",{eventName:e.event_name}),t}}function eh(e,t){(0,d.emitCounter)({metricsName:"blizzard_log_event_outcome",dimensions:{outcome:e,...t}})}function eL(e,t,i){(0,d.emitCounter)({metricsName:`blizzard_${e}`,dimensions:{outcome:t,pageId:i}})}function eD(){eR=!1}function ew(e){(0,d.emitCounter)({metricsName:"blizzard_init",dimensions:{result:e}})}}]);
4
5//# debugId=c6626c39-554e-0ca4-0a24-c813b3d994a2

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.