1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="71fff310-7fc6-405d-b582-6682ae1531cd",t._sentryDebugIdIdentifier="sentry-dbid-71fff310-7fc6-405d-b582-6682ae1531cd")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1246],{61246:(t,e,r)=>{let i,n,o,s;r.d(e,{l_:()=>Q,Oq:()=>H,J0:()=>L,H6:()=>tw,W2:()=>t_,Z0:()=>tt,CH:()=>J,P2:()=>tl,YU:()=>tu,sr:()=>Y,kq:()=>K});var a,p=r(19324),u=r(18170),l=r(34096),h=r(2893),d=r(76854),c=(0,h.Y)(()=>"/v3/trackings/fp",async(t,e,r,i)=>(0,d.bn)((await t.post(e,r,i)).data,{callerName:"fetchFp"})),f=(0,h.Y)(()=>"/v3/trackings/visit_id",async(t,e,r,i)=>(0,d.bn)((await t.post(e,r,i)).data,{callerName:"fetchVid"})),g=r(29666),y=r(67348),_=Object.create,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,m=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,S=t=>t.length>400?t.split(/[?#]/)[0]:t,F=t=>{let{userId:e,userKey:r,tid:i,pvUUID:n,previousPvUUID:o,previousPage:s,routeName:a}=t;return{user_id:e,user_key:r,uuid:n,prev_uuid:o,tid:(t=>{let{tid:e,isWebview:r,noteDeviceId:i}=t;return r&&i?i:e})({tid:i}),url:S(window.location.href),referrer:S(s),route_name:a,platform:"web"}},M=t=>e=>({...t,kind:"kind"in e?e.kind:void 0,contents:JSON.stringify(e.contents),event:e.event,target:e.target,section:e.section,route_name:t.route_name,acted_at:new Date().toUTCString()}),x=(t,e)=>t.reduce((t,r,i)=>i%e==0?[...t,[r]]:[...t.slice(0,-1),[...t.slice(-1)[0],r]],[]),A=(s=null==(o=(i=t=>{var e,r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},i=window===t?t:"u">typeof global&&null!=global?global:t;function n(){n=function(){},i.Symbol||=s}function o(t,e){this.a=t,r(this,"description",{configurable:!0,writable:!0,value:e})}o.prototype.toString=function(){return this.a};var s=(e=0,function t(r){if(this instanceof t)throw TypeError("Symbol is not a constructor");return new o("jscomp_symbol_"+(r||"")+"_"+e++,r)});function a(){n();var t=i.Symbol.iterator;t||=i.Symbol.iterator=i.Symbol("Symbol.iterator"),"function"!=typeof Array.prototype[t]&&r(Array.prototype,t,{configurable:!0,writable:!0,value:function(){var t,e,r;return t=this,e=0,r=function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}},a(),(r={next:r})[i.Symbol.iterator]=function(){return this},r}}),a=function(){}}!function(t,e){if(e){var n=i;t=t.split(".");for(var o=0;o<t.length-1;o++){var s=t[o];s in n||(n[s]={}),n=n[s]}(e=e(o=n[t=t[t.length-1]]))!=o&&null!=e&&r(n,t,{configurable:!0,writable:!0,value:e})}}("Array.prototype.entries",function(t){return t||function(){var t,e,r,i;return t=this,e=function(t,e){return[t,e]},a(),t instanceof String&&(t+=""),r=0,(i={next:function(){if(r<t.length){var n=r++;return{value:e(n,t[n]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}})[Symbol.iterator]=function(){return i},i}});var p=t||self;function u(t,e,r){t=t.split("."),r||=p,t[0]in r||void 0===r.execScript||r.execScript("var "+t[0]);for(var i;t.length&&(i=t.shift());)t.length||void 0===e?r=r[i]&&r[i]!==Object.prototype[i]?r[i]:r[i]={}:r[i]=e}function l(t){var e=typeof t;if("object"==e)if(!t)return"null";else{if(t instanceof Array)return"array";if(t instanceof Object)return e;var r=Object.prototype.toString.call(t);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" "),c=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e,void 0)}:function(t,e){for(var r=t.length,i="string"==typeof t?t.split(""):t,n=0;n<r;n++)n in i&&e.call(void 0,i[n],n,t)},f=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var r=t.length,i=Array(r),n="string"==typeof t?t.split(""):t,o=0;o<r;o++)o in n&&(i[o]=e.call(void 0,n[o],o,t));return i};function g(t,e,r,i){var n="Assertion failed";if(r){n+=": "+r;var o=i}else t&&(n+=": "+t,o=e);throw Error(n,o||[])}function y(t,e,r){var i=[...arguments].slice(2);return t||g("",null,e,i),t}function _(t,e){var r=[...arguments].slice(1);throw Error("Failure"+(t?": "+t:""),r)}function v(t,e,r,i){var n=[...arguments].slice(3);t instanceof e||g("Expected instanceof %s but got %s.",[b(e),b(t)],r,n)}function b(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):null===t?"null":typeof t}function w(t,e){if(this.c=t,this.b=e,this.a={},this.arrClean=!0,0<this.c.length){for(t=0;t<this.c.length;t++){var r=(e=this.c[t])[0];this.a[r.toString()]=new F(r,e[1])}this.arrClean=!0}}function m(t){this.a=0,this.b=t}function k(t,e){return t.b?(e.a||=new t.b(e.value),e.a):e.value}function S(t){t=t.a;var e,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}function F(t,e){this.key=t,this.value=e,this.a=void 0}function M(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var e="",r=0;r<t.length;r+=8192)e+=String.fromCharCode.apply(null,function(t,e,r){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,r)}(t,r,r+8192));return e}u("jspb.Map",w,void 0),w.prototype.g=function(){if(this.arrClean){if(this.b){var t,e=this.a;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t].a;r&&r.g()}}}else{for(this.c.length=0,(e=S(this)).sort(),t=0;t<e.length;t++){var i=this.a[e[t]];(r=i.a)&&r.g(),this.c.push([i.key,i.value])}this.arrClean=!0}return this.c},w.prototype.toArray=w.prototype.g,w.prototype.Mc=function(t,e){for(var r=this.g(),i=[],n=0;n<r.length;n++){var o=this.a[r[n][0].toString()];k(this,o);var s=o.a;s?(y(e),i.push([o.key,e(t,s)])):i.push([o.key,o.value])}return i},w.prototype.toObject=w.prototype.Mc,w.fromObject=function(t,e,r){e=new w([],e);for(var i=0;i<t.length;i++){var n=t[i][0],o=r(t[i][1]);e.set(n,o)}return e},m.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"u">typeof Symbol&&(m.prototype[Symbol.iterator]=function(){return this}),w.prototype.Jb=function(){return S(this).length},w.prototype.getLength=w.prototype.Jb,w.prototype.clear=function(){this.a={},this.arrClean=!1},w.prototype.clear=w.prototype.clear,w.prototype.Cb=function(t){t=t.toString();var e=this.a.hasOwnProperty(t);return delete this.a[t],this.arrClean=!1,e},w.prototype.del=w.prototype.Cb,w.prototype.Eb=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++){var i=this.a[e[r]];t.push([i.key,i.value])}return t},w.prototype.getEntryList=w.prototype.Eb,w.prototype.entries=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++){var i=this.a[e[r]];t.push([i.key,k(this,i)])}return new m(t)},w.prototype.entries=w.prototype.entries,w.prototype.keys=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++)t.push(this.a[e[r]].key);return new m(t)},w.prototype.keys=w.prototype.keys,w.prototype.values=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++)t.push(k(this,this.a[e[r]]));return new m(t)},w.prototype.values=w.prototype.values,w.prototype.forEach=function(t,e){var r=S(this);r.sort();for(var i=0;i<r.length;i++){var n=this.a[r[i]];t.call(e,k(this,n),n.key,this)}},w.prototype.forEach=w.prototype.forEach,w.prototype.set=function(t,e){var r=new F(t);return this.b?(r.a=e,r.value=e.g()):r.value=e,this.a[t.toString()]=r,this.arrClean=!1,this},w.prototype.set=w.prototype.set,w.prototype.get=function(t){if(t=this.a[t.toString()])return k(this,t)},w.prototype.get=w.prototype.get,w.prototype.has=function(t){return t.toString()in this.a}
vendor: 26,994 bytes, line 1
1,w.prototype.has=w.prototype.has,w.prototype.Jc=function(t,e,r,i,n){var o=S(this);o.sort();for(var s=0;s<o.length;s++){var a=this.a[o[s]];e.Va(t),r.call(e,1,a.key),this.b?i.call(e,2,k(this,a),n):i.call(e,2,a.value),e.Ya()}},w.prototype.serializeBinary=w.prototype.Jc,w.deserializeBinary=function(t,e,r,i,n,o,s){for(;e.oa()&&!e.bb();){var a=e.c;1==a?o=r.call(e):2==a&&(t.b?(y(n),s||=new t.b,i.call(e,s,n)):s=i.call(e))}y(null!=o),y(null!=s),t.set(o,s)};var x={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},A={"'":"\\'"},I={},j=null;function E(t,e){void 0===e&&(e=0),U(),e=I[e];for(var r=[],i=0;i<t.length;i+=3){var n=t[i],o=i+1<t.length,s=o?t[i+1]:0,a=i+2<t.length,p=a?t[i+2]:0,u=n>>2;n=(3&n)<<4|s>>4,s=(15&s)<<2|p>>6,p&=63,a||(p=64,o||(s=64)),r.push(e[u],e[n],e[s]||"",e[p]||"")}return r.join("")}function D(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1=="=.".indexOf(t[e-2])?r-1:r-2);var i=new Uint8Array(r),n=0;return function(t,e){function r(e){for(;i<t.length;){var r=t.charAt(i++),n=j[r];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return e}U();for(var i=0;;){var n=r(-1),o=r(0),s=r(64),a=r(64);if(64===a&&-1===n)break;e(n<<2|o>>4),64!=s&&(e(o<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,function(t){i[n++]=t}),i.subarray(0,n)}function U(){if(!j){j={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var i=t.concat(e[r].split(""));I[r]=i;for(var n=0;n<i.length;n++){var o=i[n];void 0===j[o]&&(j[o]=n)}}}}u("jspb.ConstBinaryMessage",function(){},void 0),u("jspb.BinaryMessage",function(){},void 0),u("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),u("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),u("jspb.BinaryConstants.FieldTypeToWireType",function(t){switch(t){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return -1}},void 0),u("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),u("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),u("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),u("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),u("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),u("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),u("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),u("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),u("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),u("jspb.BinaryConstants.TWO_TO_31",0x80000000,void 0),u("jspb.BinaryConstants.TWO_TO_32",0x100000000,void 0),u("jspb.BinaryConstants.TWO_TO_52",0x10000000000000,void 0),u("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),u("jspb.BinaryConstants.TWO_TO_64",0xffffffffffffffff,void 0),u("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var P=0,W=0;function C(t){var e=t>>>0;t=Math.floor((t-e)/0x100000000)>>>0,P=e,W=t}function O(t){var e=0>t,r=(t=Math.abs(t))>>>0;t=Math.floor((t-r)/0x100000000)>>>0,e&&(t=~t>>>0,0xffffffff<(r=(~r>>>0)+1)&&(r=0,0xffffffff<++t&&(t=0))),P=r,W=t}function R(t){var e=0>t;C(t=2*Math.abs(t)),t=P;var r=W;e&&(0==t?0==r?r=t=0xffffffff:(r--,t=0xffffffff):t--),P=t,W=r}function B(t){var e=+(0>t);if(0===(t=e?-t:t))0<1/t?P=W=0:(W=0,P=0x80000000);else if(isNaN(t))W=0,P=0x7fffffff;else if(34028234663852886e22<t)W=0,P=(e<<31|0x7f800000)>>>0;else if(11754943508222875e-54>t)W=0,P=(e<<31|(t=Math.round(t/1401298464324817e-60)))>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=2**-r,0x1000000<=(t=Math.round(8388608*t))&&++r,W=0,P=(e<<31|r+127<<23|8388607&t)>>>0}}function T(t){var e=+(0>t);if(0===(t=e?-t:t))W=0<1/t?0:0x80000000,P=0;else if(isNaN(t))W=0x7fffffff,P=0xffffffff;else if(17976931348623157e292<t)W=(e<<31|0x7ff00000)>>>0,P=0;else if(22250738585072014e-324>t)t/=5e-324,W=(e<<31|t/0x100000000)>>>0,P=t>>>0;else{var r=t,i=0;if(2<=r)for(;2<=r&&1023>i;)i++,r/=2;else for(;1>r&&-1022<i;)r*=2,i--;t*=2**-i,W=(e<<31|i+1023<<20|1048576*t&1048575)>>>0,P=0x10000000000000*t>>>0}}function z(t){var e=t.charCodeAt(4),r=t.charCodeAt(5),i=t.charCodeAt(6),n=t.charCodeAt(7);P=t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)>>>0,W=e+(r<<8)+(i<<16)+(n<<24)>>>0}function L(t,e){return 0x100000000*e+(t>>>0)}function N(t,e){var r=0x80000000&e;return r&&(e=~e>>>0,0==(t=~t+1>>>0)&&(e=e+1>>>0)),t=L(t,e),r?-t:t}function H(t,e,r){var i=e>>31;return r(t<<1^i,(e<<1|t>>>31)^i)}function V(t,e){return $(t,e,N)}function $(t,e,r){var i=-(1&t);return r((t>>>1|e<<31)^i,e>>>1^i)}function G(t){var e=2*(t>>31)+1,r=t>>>23&255;return t&=8388607,255==r?t?NaN:1/0*e:0==r?1401298464324817e-60*e*t:e*2**(r-150)*(t+8388608)}function Z(t,e){var r=2*(e>>31)+1,i=e>>>20&2047;return t=0x100000000*(1048575&e)+t,2047==i?t?NaN:1/0*r:0==i?5e-324*r*t:r*2**(i-1075)*(t+0x10000000000000)}function J(t,e){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)}function K(t,e){function r(t,e){return t=t?String(t):"",e?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+L(t,e);var i=(t>>>24|e<<8)>>>0&0xffffff;return t=(0xffffff&t)+6777216*i+6710656*(e=e>>16&65535),i+=8147497*e,e*=2,1e7<=t&&(i+=Math.floor(t/1e7),t%=1e7),1e7<=i&&(e+=Math.floor(i/1e7),i%=1e7),r(e,0)+r(i,e)+r(t,1)}function Y(t,e){var r=0x80000000&e;return r&&(e=~e+ +(0==(t=~t+1>>>0))>>>0),t=K(t,e),r?"-"+t:t}function q(t,e){z(t),t=P;var r=W;return e?Y(t,r):K(t,r)}function X(t){function e(t,e){for(var r=0;8>r&&(1!==t||0<e);r++)e=t*i[r]+e,i[r]=255&e,e>>>=8}y(0<t.length);var r=!1;"-"===t[0]&&(r=!0,t=t.slice(1));for(var i=[0,0,0,0,0,0,0,0],n=0;n<t.length;n++)e(10,t.charCodeAt(n)-48);return r&&(function(){for(var t=0;8>t;t++)i[t]=255&~i[t]}(),e(1,1)),M(i)}function Q(t){return String.fromCharCode(10>t?48+t:87+t)}function tt(t){return 97<=t?t-97+10:t-48}function te(t,e,r,i,n){var o=0;if(128>i)for(;e<r&&t[e++]==i;)o++,e+=n;else for(;e<r;){for(var s=i;128<s;){if(t[e++]!=(127&s|128))return o;s>>=7}if(t[e++]!=s)break;o++,e+=n}return o}function tr(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?D(t):t instanceof Uint8Array?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):(_("Type not convertible to Uint8Array."),new Uint8Array)}function ti(t,e,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,t&&this.H(t,e,r)}u("jspb.utils.getSplit64Low",function(){return P},void 0),u("jspb.utils.getSplit64High",function(){return W},void 0),u("jspb.utils.splitUint64",C,void 0),u("jspb.utils.splitInt64",O,void 0),u("jspb.utils.splitZigzag64",R,void 0),u("jspb.utils.splitFloat32",B,void 0),u("jspb.utils.splitFloat64",T,void 0),u("jspb.utils.splitHash64",z,void 0),u("jspb.utils.joinUint64",L,void 0),u("jspb.utils.joinInt64",N,void 0),u("jspb.utils.toZigzag64",H,void 0),u("jspb.utils.joinZigzag64",V,void 0),u("jspb.utils.fromZigzag64",$,void 0),u("jspb.utils.joinFloat32",G,void 0),u("jspb.utils.joinFloat64",Z,void 0),u("jspb.utils.joinHash64",J,void 0),u("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),u("jspb.utils.joinUnsignedDecimalString",K,void 0),u("jspb.utils.joinSignedDecimalString",Y,void 0),u("jspb.utils.hash64ToDecimalString",q,void 0),u("jspb.utils.hash64ArrayToDecimalStrings",function(t,e){for(var r=Array(t.length),i=0;i<t.length;i++)r[i]=q(t[i],e);return r},void 0),u("jspb.utils.decimalStringToHash64",X,void 0),u("jspb.utils.splitDecimalString",function(t){z(X(t))},void 0),u("jspb.utils.hash64ToHexString",function(t){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var i=t.charCodeAt(7-r);e[2*r+2]=Q(i>>4),e[2*r+3]=Q(15&i)}return e.join("")},void 0),u("jspb.utils.hexStringToHash64",function(t){y(18==(t=t.toLowerCase()).length),y("0"==t[0]),y("x"==t[1]);for(var e="",r=0;8>r;r++)e=String.fromCharCode(16*tt(t.charCodeAt(2*r+2))+tt(t.charCodeAt(2*r+3)))+e;return e},void 0),u("jspb.utils.hash64ToNumber",function(t,e){z(t),t=P;var r=W;return e?N(t,r):L(t,r)},void 0),u("jspb.utils.numberToHash64",function(t){return O(t),J(P,W)},void 0),u("jspb.utils.countVarints",function(t,e,r){for(var i=0,n=e;n<r;n++)i+=t[n]>>7;return r-e-i},void 0),u("jspb.utils.countVarintFields",function(t,e,r,i){var n=0;if(128>(i*=8))for(;e<r&&t[e++]==i;)for(n++;;){var o=t[e++];if(!(128&o))break}else for(;e<r;){for(o=i;128<o;){if(t[e]!=(127&o|128))return n;e++,o>>=7}if(t[e++]!=o)break;for(n++;128&(o=t[e++]););}return n},void 0),u("jspb.utils.countFixed32Fields",function(t,e,r,i){return te(t,e,r,8*i+5,4)},void 0),u("jspb.utils.countFixed64Fields",function(t,e,r,i){return te(t,e,r,8*i+1,8)},void 0),u("jspb.utils.countDelimitedFields",function(t,e,r,i){var n=0;for(i=8*i+2;e<r;){for(var o=i;128<o;){if(t[e++]!=(127&o|128))return n;o>>=7}if(t[e++]!=o)break;n++;for(var s=0,a=1;s+=(127&(o=t[e++]))*a,a*=128,128&o;);e+=s}return n},void 0),u("jspb.utils.debugBytesToTextFormat",function(t){var e='"';if(t){t=tr(t);for(var r=0;r<t.length;r++)e+="\\x",16>t[r]&&(e+="0"),e+=t[r].toString(16)}return e+'"'},void 0),u("jspb.utils.debugScalarToTextFormat",function(t){if("string"==typeof t){t=String(t);for(var e=['"'],r=0;r<t.length;r++){var i,n=t.charAt(r),o=n.charCodeAt(0),s=r+1;(i=x[n])||(31<o&&127>o||((o=n)in A?n=A[o]:o in x?n=A[o]=x[o]:(31<(i=o.charCodeAt(0))&&127>i?n=o:(256>i?(n="\\x",(16>i||256<i)&&(n+="0")):(n="\\u",4096>i&&(n+="0")),n+=i.toString(16).toUpperCase()),n=A[o]=n)),i=n),e[s]=i}e.push('"'),t=e.join("")}else t=t.toString();return t},void 0),u("jspb.utils.stringToByteArray",function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var i=t.charCodeAt(r);if(255<i)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=i}return e},void 0),u("jspb.utils.byteSourceToUint8Array",tr,void 0),u("jspb.BinaryDecoder",ti,void 0);var tn=[];function to(t,e,r){if(tn.length){var i=tn.pop();return t&&i.H(t,e,r),i}return new ti(t,e,r)}function ts(t,e,r){this.a=to(t,e,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}ti.getInstanceCacheLength=function(){return tn.length},ti.alloc=to,ti.prototype.Ca=function(){this.clear(),100>tn.length&&tn.push(this)},ti.prototype.free=ti.prototype.Ca,ti.prototype.clone=function(){return to(this.b,this.h,this.c-this.h)},ti.prototype.clone=ti.prototype.clone,ti.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ti.prototype.clear=ti.prototype.clear,ti.prototype.Y=function(){return this.b},ti.prototype.getBuffer=ti.prototype.Y,ti.prototype.H=function(t,e,r){this.b=tr(t),this.h=void 0===e?0:e,this.c=void 0===r?this.b.length:this.h+r,this.a=this.h},ti.prototype.setBlock=ti.prototype.H,ti.prototype.Db=function(){return this.c},ti.prototype.getEnd=ti.prototype.Db,ti.prototype.setEnd=function(t){this.c=t},ti.prototype.setEnd=ti.prototype.setEnd,ti.prototype.reset=function(){this.a=this.h},ti.prototype.reset=ti.prototype.reset,ti.prototype.B=function(){return this.a},ti.prototype.getCursor=ti.prototype.B,ti.prototype.Ma=function(t){this.a=t},ti.prototype.setCursor=ti.prototype.Ma,ti.prototype.advance=function(t){this.a+=t,y(this.a<=this.c)},ti.prototype.advance=ti.prototype.advance,ti.prototype.ya=function(){return this.a==this.c},ti.prototype.atEnd=ti.prototype.ya,ti.prototype.Qb=function(){return this.a>this.c},ti.prototype.pastEnd=ti.prototype.Qb,ti.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ti.prototype.getError=ti.prototype.getError,ti.prototype.w=function(t){for(var e=128,r=0,i=0,n=0;4>n&&128<=e;n++)r|=(127&(e=this.b[this.a++]))<<7*n;if(128<=e&&(r|=(127&(e=this.b[this.a++]))<<28,i|=(127&e)>>4),128<=e)for(n=0;5>n&&128<=e;n++)i|=(127&(e=this.b[this.a++]))<<7*n+3;if(128>e)return t(r>>>0,i>>>0);_("Failed to read varint, encoding is invalid."),this.v=!0},ti.prototype.readSplitVarint64=ti.prototype.w,ti.prototype.ea=function(t){return this.w(function(e,r){return $(e,r,t)})},ti.prototype.readSplitZigzagVarint64=ti.prototype.ea,ti.prototype.ta=function(t){var e=this.b,r=this.a;this.a+=8;for(var i=0,n=0,o=r+7;o>=r;o--)i=i<<8|e[o],n=n<<8|e[o+4];return t(i,n)},ti.prototype.readSplitFixed64=ti.prototype.ta,ti.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},ti.prototype.skipVarint=ti.prototype.kb,ti.prototype.mb=function(t){for(;128<t;)this.a--,t>>>=7;this.a--},ti.prototype.unskipVarint=ti.prototype.mb,ti.prototype.o=function(){var t=this.b,e=t[this.a],r=127&e;return 128>e?(this.a+=1,y(this.a<=this.c),r):(r|=(127&(e=t[this.a+1]))<<7,128>e?(this.a+=2,y(this.a<=this.c),r):(r|=(127&(e=t[this.a+2]))<<14,128>e?(this.a+=3,y(this.a<=this.c),r):(r|=(127&(e=t[this.a+3]))<<21,128>e?(this.a+=4,y(this.a<=this.c),r):(r|=(15&(e=t[this.a+4]))<<28,128>e?(this.a+=5,y(this.a<=this.c),r>>>0):(this.a+=5,128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&y(!1),y(this.a<=this.c),r)))))},ti.prototype.readUnsignedVarint32=ti.prototype.o,ti.prototype.da=function(){return~~this.o()},ti.prototype.readSignedVarint32=ti.prototype.da,ti.prototype.O=function(){return this.o().toString()},ti.prototype.Ea=function(){return this.da().toString()},ti.prototype.readSignedVarint32String=ti.prototype.Ea,ti.prototype.Ia=function(){var t=this.o();return t>>>1^-(1&t)},ti.prototype.readZigzagVarint32=ti.prototype.Ia,ti.prototype.Ga=function(){return this.w(L)},ti.prototype.readUnsignedVarint64=ti.prototype.Ga,ti.prototype.Ha=function(){return this.w(K)},ti.prototype.readUnsignedVarint64String=ti.prototype.Ha,ti.prototype.sa=function(){return this.w(N)},ti.prototype.readSignedVarint64=ti.prototype.sa,ti.prototype.Fa=function(){return this.w(Y)},ti.prototype.readSignedVarint64String=ti.prototype.Fa,ti.prototype.Ja=function(){return this.w(V)},ti.prototype.readZigzagVarint64=ti.prototype.Ja,ti.prototype.fb=function(){return this.ea(J)},ti.prototype.readZigzagVarintHash64=ti.prototype.fb,ti.prototype.Ka=function(){return this.ea(Y)},ti.prototype.readZigzagVarint64String=ti.prototype.Ka,ti.prototype.Gc=function(){var t=this.b[this.a];return this.a+=1,y(this.a<=this.c),t},ti.prototype.readUint8=ti.prototype.Gc,ti.prototype.Ec=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,y(this.a<=this.c),t|e<<8},ti.prototype.readUint16=ti.prototype.Ec,ti.prototype.m=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,y(this.a<=this.c),(t|e<<8|r<<16|i<<24)>>>0},ti.prototype.readUint32=ti.prototype.m,ti.prototype.ga=function(){return L(this.m(),this.m())},ti.prototype.readUint64=ti.prototype.ga,ti.prototype.ha=function(){return K(this.m(),this.m())},ti.prototype.readUint64String=ti.prototype.ha,ti.prototype.Xb=function(){var t=this.b[this.a];return this.a+=1,y(this.a<=this.c),t<<24>>24},ti.prototype.readInt8=ti.prototype.Xb,ti.prototype.Vb=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,y(this.a<=this.c),(t|e<<8)<<16>>16},ti.prototype.readInt16=ti.prototype.Vb,ti.prototype.P=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,y(this.a<=this.c),t|e<<8|r<<16|i<<24},ti.prototype.readInt32=ti.prototype.P,ti.prototype.ba=function(){return N(this.m(),this.m())},ti.prototype.readInt64=ti.prototype.ba,ti.prototype.ca=function(){return Y(this.m(),this.m())},ti.prototype.readInt64String=ti.prototype.ca,ti.prototype.aa=function(){return G(this.m())},ti.prototype.readFloat=ti.prototype.aa,ti.prototype.Z=function(){return Z(this.m(),this.m())},ti.prototype.readDouble=ti.prototype.Z,ti.prototype.pa=function(){return!!this.b[this.a++]},ti.prototype.readBool=ti.prototype.pa,ti.prototype.ra=function(){return this.da()},ti.prototype.readEnum=ti.prototype.ra,ti.prototype.fa=function(t){var e=this.b,r=this.a;t=r+t;for(var i=[],n="";r<t;){var o=e[r++];if(128>o)i.push(o);else if(192>o)continue;else if(224>o){var s=e[r++];i.push((31&o)<<6|63&s)}else if(240>o){s=e[r++];var a=e[r++];i.push((15&o)<<12|(63&s)<<6|63&a)}else 248>o&&(o=((7&o)<<18|(63&(s=e[r++]))<<12|(63&(a=e[r++]))<<6|63&e[r++])-65536,i.push((o>>10&1023)+55296,(1023&o)+56320));8192<=i.length&&(n+=String.fromCharCode.apply(null,i),i.length=0)}return n+=M(i),this.a=r,n},ti.prototype.readString=ti.prototype.fa,ti.prototype.Dc=function(){var t=this.o();return this.fa(t)},ti.prototype.readStringWithLength=ti.prototype.Dc,ti.prototype.qa=function(t){if(0>t||this.a+t>this.b.length)return this.v=!0,_("Invalid byte length!"),new Uint8Array;var e=this.b.subarray(this.a,this.a+t);return this.a+=t,y(this.a<=this.c),e},ti.prototype.readBytes=ti.prototype.qa,ti.prototype.ia=function(){return this.w(J)},ti.prototype.readVarintHash64=ti.prototype.ia,ti.prototype.$=function(){var t=this.b,e=this.a,r=t[e],i=t[e+1],n=t[e+2],o=t[e+3],s=t[e+4],a=t[e+5],p=t[e+6];return t=t[e+7],this.a+=8,String.fromCharCode(r,i,n,o,s,a,p,t)},ti.prototype.readFixedHash64=ti.prototype.$,u("jspb.BinaryReader",ts,void 0);var ta=[];function tp(t,e,r){if(ta.length){var i=ta.pop();return t&&i.a.H(t,e,r),i}return new ts(t,e,r)}function tu(t,e){y(2==t.b);var r=t.a.o();r=t.a.B()+r;for(var i=[];t.a.B()<r;)i.push(e.call(t.a));return i}function tl(t,e,r,i,n){this.ma=t,this.Ba=e,this.la=r,this.Na=i,this.na=n}function th(t,e,r,i,n,o){this.Za=t,this.za=e,this.Aa=r,this.Wa=i,this.Ab=n,this.Nb=o}function td(){}ts.clearInstanceCache=function(){ta=[]},ts.getInstanceCacheLength=function(){return ta.length},ts.alloc=tp,ts.prototype.zb=tp,ts.prototype.alloc=ts.prototype.zb,ts.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ta.length&&ta.push(this)},ts.prototype.free=ts.prototype.Ca,ts.prototype.Fb=function(){return this.O},ts.prototype.getFieldCursor=ts.prototype.Fb,ts.prototype.B=function(){return this.a.B()},ts.prototype.getCursor=ts.prototype.B,ts.prototype.Y=function(){return this.a.Y()},ts.prototype.getBuffer=ts.prototype.Y,ts.prototype.Hb=function(){return this.c},ts.prototype.getFieldNumber=ts.prototype.Hb,ts.prototype.Lb=function(){return this.b},ts.prototype.getWireType=ts.prototype.Lb,ts.prototype.Mb=function(){return 2==this.b},ts.prototype.isDelimited=ts.prototype.Mb,ts.prototype.bb=function(){return 4==this.b},ts.prototype.isEndGroup=ts.prototype.bb,ts.prototype.getError=function(){return this.h||this.a.getError()},ts.prototype.getError=ts.prototype.getError,ts.prototype.H=function(t,e,r){this.a.H(t,e,r),this.b=this.c=-1},ts.prototype.setBlock=ts.prototype.H,ts.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ts.prototype.reset=ts.prototype.reset,ts.prototype.advance=function(t){this.a.advance(t)},ts.prototype.advance=ts.prototype.advance,ts.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return _("Decoder hit an error"),!1;this.O=this.a.B();var t=this.a.o(),e=t>>>3;return 0!=(t&=7)&&5!=t&&1!=t&&2!=t&&3!=t&&4!=t?(_("Invalid wire type: %s (at position %s)",t,this.O),this.h=!0,!1):(this.c=e,this.b=t,!0)},ts.prototype.nextField=ts.prototype.oa,ts.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ts.prototype.unskipHeader=ts.prototype.Oa,ts.prototype.Lc=function(){var t=this.c;for(this.Oa();this.oa()&&this.c==t;)this.C();this.a.ya()||this.Oa()},ts.prototype.skipMatchingFields=ts.prototype.Lc,ts.prototype.lb=function(){0==this.b?this.a.kb():(_("Invalid wire type for skipVarintField"),this.C())},ts.prototype.skipVarintField=ts.prototype.lb,ts.prototype.gb=function(){if(2!=this.b)_("Invalid wire type for skipDelimitedField"),this.C();else{var t=this.a.o();this.a.advance(t)}},ts.prototype.skipDelimitedField=ts.prototype.gb,ts.prototype.hb=function(){5==this.b?this.a.advance(4):(_("Invalid wire type for skipFixed32Field"),this.C())},ts.prototype.skipFixed32Field=ts.prototype.hb,ts.prototype.ib=function(){1==this.b?this.a.advance(8):(_("Invalid wire type for skipFixed64Field"),this.C())},ts.prototype.skipFixed64Field=ts.prototype.ib,ts.prototype.jb=function(){for(var t=this.c;;){if(!this.oa()){_("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=t&&(_("Unmatched end-group tag"),this.h=!0);break}this.C()}},ts.prototype.skipGroup=ts.prototype.jb,ts.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:_("Invalid wire encoding for field.")}},ts.prototype.skipField=ts.prototype.C,ts.prototype.Hc=function(t,e){null===this.v&&(this.v={}),y(!this.v[t]),this.v[t]=e},ts.prototype.registerReadCallback=ts.prototype.Hc,ts.prototype.Ic=function(t){return y(null!==this.v),y(t=this.v[t]),t(this)},ts.prototype.runReadCallback=ts.prototype.Ic,ts.prototype.Yb=function(t,e){y(2==this.b);var r=this.a.c,i=this.a.o();i=this.a.B()+i,this.a.setEnd(i),e(t,this),this.a.Ma(i),this.a.setEnd(r)},ts.prototype.readMessage=ts.prototype.Yb,ts.prototype.Ub=function(t,e,r){y(3==this.b),y(this.c==t),r(e,this),this.h||4==this.b||(_("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ts.prototype.readGroup=ts.prototype.Ub,ts.prototype.Gb=function(){y(2==this.b);var t=this.a.o(),e=this.a.B(),r=e+t;return t=to(this.a.Y(),e,t),this.a.Ma(r),t},ts.prototype.getFieldDecoder=ts.prototype.Gb,ts.prototype.P=function(){return y(0==this.b),this.a.da()},ts.prototype.readInt32=ts.prototype.P,ts.prototype.Wb=function(){return y(0==this.b),this.a.Ea()},ts.prototype.readInt32String=ts.prototype.Wb,ts.prototype.ba=function(){return y(0==this.b),this.a.sa()},ts.prototype.readInt64=ts.prototype.ba,ts.prototype.ca=function(){return y(0==this.b),this.a.Fa()},ts.prototype.readInt64String=ts.prototype.ca,ts.prototype.m=function(){return y(0==this.b),this.a.o()},ts.prototype.readUint32=ts.prototype.m,ts.prototype.Fc=function(){return y(0==this.b),this.a.O()},ts.prototype.readUint32String=ts.prototype.Fc,ts.prototype.ga=function(){return y(0==this.b),this.a.Ga()},ts.prototype.readUint64=ts.prototype.ga,ts.prototype.ha=function(){return y(0==this.b),this.a.Ha()},ts.prototype.readUint64String=ts.prototype.ha,ts.prototype.zc=function(){return y(0==this.b),this.a.Ia()},ts.prototype.readSint32=ts.prototype.zc,ts.prototype.Ac=function(){return y(0==this.b),this.a.Ja()},ts.prototype.readSint64=ts.prototype.Ac,ts.prototype.Bc=function(){return y(0==this.b),this.a.Ka()},ts.prototype.readSint64String=ts.prototype.Bc,ts.prototype.Rb=function(){return y(5==this.b),this.a.m()},ts.prototype.readFixed32=ts.prototype.Rb,ts.prototype.Sb=function(){return y(1==this.b),this.a.ga()},ts.prototype.readFixed64=ts.prototype.Sb,ts.prototype.Tb=function(){return y(1==this.b),this.a.ha()},ts.prototype.readFixed64String=ts.prototype.Tb,ts.prototype.vc=function(){return y(5==this.b),this.a.P()},ts.prototype.readSfixed32=ts.prototype.vc,ts.prototype.wc=function(){return y(5==this.b),this.a.P().toString()},ts.prototype.readSfixed32String=ts.prototype.wc,ts.prototype.xc=function(){return y(1==this.b),this.a.ba()},ts.prototype.readSfixed64=ts.prototype.xc,ts.prototype.yc=function(){return y(1==this.b),this.a.ca()},ts.prototype.readSfixed64String=ts.prototype.yc,ts.prototype.aa=function(){return y(5==this.b),this.a.aa()},ts.prototype.readFloat=ts.prototype.aa,ts.prototype.Z=function(){return y(1==this.b),this.a.Z()},ts.prototype.readDouble=ts.prototype.Z,ts.prototype.pa=function(){return y(0==this.b),!!this.a.o()},ts.prototype.readBool=ts.prototype.pa,ts.prototype.ra=function(){return y(0==this.b),this.a.sa()},ts.prototype.readEnum=ts.prototype.ra,ts.prototype.fa=function(){y(2==this.b);var t=this.a.o();return this.a.fa(t)},ts.prototype.readString=ts.prototype.fa,ts.prototype.qa=function(){y(2==this.b);var t=this.a.o();return this.a.qa(t)},ts.prototype.readBytes=ts.prototype.qa,ts.prototype.ia=function(){return y(0==this.b),this.a.ia()},ts.prototype.readVarintHash64=ts.prototype.ia,ts.prototype.Cc=function(){return y(0==this.b),this.a.fb()},ts.prototype.readSintHash64=ts.prototype.Cc,ts.prototype.w=function(t){return y(0==this.b),this.a.w(t)},ts.prototype.readSplitVarint64=ts.prototype.w,ts.prototype.ea=function(t){return y(0==this.b),this.a.w(function(e,r){return $(e,r,t)})},ts.prototype.readSplitZigzagVarint64=ts.prototype.ea,ts.prototype.$=function(){return y(1==this.b),this.a.$()},ts.prototype.readFixedHash64=ts.prototype.$,ts.prototype.ta=function(t){return y(1==this.b),this.a.ta(t)},ts.prototype.readSplitFixed64=ts.prototype.ta,ts.prototype.gc=function(){return tu(this,this.a.da)},ts.prototype.readPackedInt32=ts.prototype.gc,ts.prototype.hc=function(){return tu(this,this.a.Ea)},ts.prototype.readPackedInt32String=ts.prototype.hc,ts.prototype.ic=function(){return tu(this,this.a.sa)},ts.prototype.readPackedInt64=ts.prototype.ic,ts.prototype.jc=function(){return tu(this,this.a.Fa)},ts.prototype.readPackedInt64String=ts.prototype.jc,ts.prototype.qc=function(){return tu(this,this.a.o)},ts.prototype.readPackedUint32=ts.prototype.qc,ts.prototype.rc=function(){return tu(this,this.a.O)},ts.prototype.readPackedUint32String=ts.prototype.rc,ts.prototype.sc=function(){return tu(this,this.a.Ga)},ts.prototype.readPackedUint64=ts.prototype.sc,ts.prototype.tc=function(){return tu(this,this.a.Ha)},ts.prototype.readPackedUint64String=ts.prototype.tc,ts.prototype.nc=function(){return tu(this,this.a.Ia)},ts.prototype.readPackedSint32=ts.prototype.nc,ts.prototype.oc=function(){return tu(this,this.a.Ja)},ts.prototype.readPackedSint64=ts.prototype.oc,ts.prototype.pc=function(){return tu(this,this.a.Ka)},ts.prototype.readPackedSint64String=ts.prototype.pc,ts.prototype.bc=function(){return tu(this,this.a.m)},ts.prototype.readPackedFixed32=ts.prototype.bc,ts.prototype.cc=function(){return tu(this,this.a.ga)},ts.prototype.readPackedFixed64=ts.prototype.cc,ts.prototype.dc=function(){return tu(this,this.a.ha)},ts.prototype.readPackedFixed64String=ts.prototype.dc,ts.prototype.kc=function(){return tu(this,this.a.P)},ts.prototype.readPackedSfixed32=ts.prototype.kc,ts.prototype.lc=function(){return tu(this,this.a.ba)},ts.prototype.readPackedSfixed64=ts.prototype.lc,ts.prototype.mc=function(){return tu(this,this.a.ca)},ts.prototype.readPackedSfixed64String=ts.prototype.mc,ts.prototype.fc=function(){return tu(this,this.a.aa)},ts.prototype.readPackedFloat=ts.prototype.fc,ts.prototype.$b=function(){return tu(this,this.a.Z)},ts.prototype.readPackedDouble=ts.prototype.$b,ts.prototype.Zb=function(){return tu(this,this.a.pa)},ts.prototype.readPackedBool=ts.prototype.Zb,ts.prototype.ac=function(){return tu(this,this.a.ra)},ts.prototype.readPackedEnum=ts.prototype.ac,ts.prototype.uc=function(){return tu(this,this.a.ia)},ts.prototype.readPackedVarintHash64=ts.prototype.uc,ts.prototype.ec=function(){return tu(this,this.a.$)},ts.prototype.readPackedFixedHash64=ts.prototype.ec,u("jspb.ExtensionFieldInfo",tl,void 0),u("jspb.ExtensionFieldBinaryInfo",th,void 0),tl.prototype.F=function(){return!!this.la},tl.prototype.isMessageType=tl.prototype.F,u("jspb.Message",td,void 0),td.GENERATE_TO_OBJ
1ECT=!0,td.GENERATE_FROM_OBJECT=!0;var tc="function"==typeof Uint8Array;td.prototype.Ib=function(){return this.b},td.prototype.getJsPbMessageId=td.prototype.Ib,td.initialize=function(t,e,r,i,n,o){t.f=null,e||=r?[r]:[],t.b=r?String(r):void 0,t.D=0===r?-1:0,t.u=e;t:{if(r=t.u.length,e=-1,r&&(e=r-1,!("object"!=typeof(r=t.u[e])||!r||Array.isArray(r)||tc&&r instanceof Uint8Array))){t.G=e-t.D,t.i=r;break t}-1<i?(t.G=Math.max(i,e+1-t.D),t.i=null):t.G=Number.MAX_VALUE}if(t.a={},n)for(i=0;i<n.length;i++)(e=n[i])<t.G?(e+=t.D,t.u[e]=t.u[e]||tf):(tg(t),t.i[e]=t.i[e]||tf);if(o&&o.length)for(i=0;i<o.length;i++)tA(t,o[i])};var tf=Object.freeze?Object.freeze([]):[];function tg(t){var e=t.G+t.D;t.u[e]||(t.i=t.u[e]={})}function ty(t,e,r){for(var i=[],n=0;n<t.length;n++)i[n]=e.call(t[n],r,t[n]);return i}function t_(t,e){if(e<t.G){e+=t.D;var r=t.u[e];return r===tf?t.u[e]=[]:r}if(t.i)return(r=t.i[e])===tf?t.i[e]=[]:r}function tv(t,e){return null==(t=t_(t,e))?t:+t}function tb(t,e){return null==(t=t_(t,e))?t:!!t}function tw(t){return null==t||"string"==typeof t?t:tc&&t instanceof Uint8Array?E(t):(_("Cannot coerce to b64 string: "+l(t)),null)}function tm(t){return null==t||t instanceof Uint8Array?t:"string"==typeof t?D(t):(_("Cannot coerce to Uint8Array: "+l(t)),null)}function tk(t){if(t&&1<t.length){var e=l(t[0]);c(t,function(t){l(t)!=e&&_("Inconsistent type in JSPB repeated field array. Got "+l(t)+" expected "+e)})}}function tS(t,e,r){return(t=t_(t,e))??r}function tF(t,e,r){return v(t,td),e<t.G?t.u[e+t.D]=r:(tg(t),t.i[e]=r),t}function tM(t,e,r,i){return v(t,td),r===i?e<t.G?t.u[e+t.D]=null:(tg(t),delete t.i[e]):tF(t,e,r),t}function tx(t,e,r,i){return v(t,td),(r=tA(t,r))&&r!==e&&void 0!==i&&(t.f&&r in t.f&&(t.f[r]=void 0),tF(t,r,void 0)),tF(t,e,i)}function tA(t,e){for(var r,i,n=0;n<e.length;n++){var o=e[n],s=t_(t,o);null!=s&&(r=o,i=s,tF(t,o,void 0))}return r?(tF(t,r,i),r):0}function tI(t,e,r){if(t.f||={},!t.f[r]){for(var i=t_(t,r),n=[],o=0;o<i.length;o++)n[o]=new e(i[o]);t.f[r]=n}}function tj(t){if(t.f)for(var e in t.f){var r=t.f[e];if(Array.isArray(r))for(var i=0;i<r.length;i++)r[i]&&r[i].g();else r&&r.g()}}function tE(t,e){t||={},e||={};var r,i={};for(r in t)i[r]=0;for(r in e)i[r]=0;for(r in i)if(!tD(t[r],e[r]))return!1;return!0}function tD(t,e){if(t==e)return!0;if(!h(t)||!h(e))return!!("number"==typeof t&&isNaN(t)||"number"==typeof e&&isNaN(e))&&String(t)==String(e);if(t.constructor!=e.constructor)return!1;if(tc&&t.constructor===Uint8Array){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}if(t.constructor===Array){var i=void 0,n=void 0,o=Math.max(t.length,e.length);for(r=0;r<o;r++){var s=t[r],a=e[r];if(s&&s.constructor==Object&&(y(void 0===i),y(r===t.length-1),i=s,s=void 0),a&&a.constructor==Object&&(y(void 0===n),y(r===e.length-1),n=a,a=void 0),!tD(s,a))return!1}return!i&&!n||tE(i||={},n||={})}if(t.constructor===Object)return tE(t,e);throw Error("Invalid type in JSPB array")}function tU(t){return new t.constructor(function t(e){if(Array.isArray(e)){for(var r=Array(e.length),i=0;i<e.length;i++){var n=e[i];null!=n&&(r[i]="object"==typeof n?t(y(n)):n)}return r}if(tc&&e instanceof Uint8Array)return new Uint8Array(e);for(i in r={},e)null!=(n=e[i])&&(r[i]="object"==typeof n?t(y(n)):n);return r}(t.g()))}td.toObjectList=ty,td.toObjectExtension=function(t,e,r,i,n){for(var o in r){var s=r[o],a=i.call(t,s);if(null!=a){for(var p in s.Ba)if(s.Ba.hasOwnProperty(p))break;e[p]=s.Na?s.na?ty(a,s.Na,n):s.Na(n,a):a}}},td.serializeBinaryExtensions=function(t,e,r,i){for(var n in r){var o=r[n],s=o.Za;if(!o.Aa)throw Error("Message extension present that was generated
1without binary serialization support");var a=i.call(t,s);if(null!=a)if(s.F())if(o.Wa)o.Aa.call(e,s.ma,a,o.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else o.Aa.call(e,s.ma,a)}},td.readBinaryExtension=function(t,e,r,i,n){var o=r[e.c];if(o){if(r=o.Za,!o.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var s=new r.la;o.za.call(e,s,o.Ab)}else s=o.za.call(e);r.na&&!o.Nb?(e=i.call(t,r))?e.push(s):n.call(t,r,[s]):n.call(t,r,s)}else e.C()},td.getField=t_,td.getRepeatedField=function(t,e){return t_(t,e)},td.getOptionalFloatingPointField=tv,td.getBooleanField=tb,td.getRepeatedFloatingPointField=function(t,e){var r=t_(t,e);if(t.a||={},!t.a[e]){for(var i=0;i<r.length;i++)r[i]=+r[i];t.a[e]=!0}return r},td.getRepeatedBooleanField=function(t,e){var r=t_(t,e);if(t.a||={},!t.a[e]){for(var i=0;i<r.length;i++)r[i]=!!r[i];t.a[e]=!0}return r},td.bytesAsB64=tw,td.bytesAsU8=tm,td.bytesListAsB64=function(t){return tk(t),t.length&&"string"!=typeof t[0]?f(t,tw):t},td.bytesListAsU8=function(t){return tk(t),!t.length||t[0]instanceof Uint8Array?t:f(t,tm)},td.getFieldWithDefault=tS,td.getBooleanFieldWithDefault=function(t,e,r){return(t=tb(t,e))??r},td.getFloatingPointFieldWithDefault=function(t,e,r){return(t=tv(t,e))??r},td.getFieldProto3=tS,td.getMapField=function(t,e,r,i){if(t.f||={},e in t.f)return t.f[e];var n=t_(t,e);if(!n){if(r)return;tF(t,e,n=[])}return t.f[e]=new w(n,i)},td.setField=tF,td.setProto3IntField=function(t,e,r){return tM(t,e,r,0)},td.setProto3FloatField=function(t,e,r){return tM(t,e,r,0)},td.setProto3BooleanField=function(t,e,r){return tM(t,e,r,!1)},td.setProto3StringField=function(t,e,r){return tM(t,e,r,"")},td.setProto3BytesField=function(t,e,r){return tM(t,e,r,"")},td.setProto3EnumField=function(t,e,r){return tM(t,e,r,0)},td.setProto3StringIntField=function(t,e,r){return tM(t,e,r,"0")},td.addToRepeatedField=function(t,e,r,i){return v(t,td),e=t_(t,e),null==i?e.push(r):e.splice(i,0,r),t},td.setOneofField=tx,td.computeOneofCase=tA,td.getWrapperField=function(t,e,r,i){if(t.f||={},!t.f[r]){var n=t_(t,r);(i||n)&&(t.f[r]=new e(n))}return t.f[r]},td.getRepeatedWrapperField=function(t,e,r){return tI(t,e,r),(e=t.f[r])==tf&&(e=t.f[r]=[]),e},td.setWrapperField=function(t,e,r){v(t,td),t.f||={};var i=r&&r.g();return t.f[e]=r,tF(t,e,i)},td.setOneofWrapperField=function(t,e,r,i){v(t,td),t.f||={};var n=i&&i.g();return t.f[e]=i,tx(t,e,r,n)},td.setRepeatedWrapperField=function(t,e,r){v(t,td),t.f||={},r||=[];for(var i=[],n=0;n<r.length;n++)i[n]=r[n].g();return t.f[e]=r,tF(t,e,i)},td.addToRepeatedWrapperField=function(t,e,r,i,n){tI(t,i,e);var o=t.f[e];return o||=t.f[e]=[],r||=new i,t=t_(t,e),null==n?(o.push(r),t.push(r.g())):(o.splice(n,0,r),t.splice(n,0,r.g())),r},td.toMap=function(t,e,r,i){for(var n={},o=0;o<t.length;o++)n[e.call(t[o])]=r?r.call(t[o],i,t[o]):t[o];return n},td.prototype.g=function(){return tj(this),this.u},td.prototype.toArray=td.prototype.g,td.prototype.toString=function(){return tj(this),this.u.toString()},td.prototype.getExtension=function(t){if(this.i){this.f||={};var e=t.ma;if(t.na){if(t.F())return this.f[e]||(this.f[e]=f(this.i[e]||[],function(e){return new t.la(e)})),this.f[e]}else if(t.F())return!this.f[e]&&this.i[e]&&(this.f[e]=new t.la(this.i[e])),this.f[e];return this.i[e]}},td.prototype.getExtension=td.prototype.getExtension,td.prototype.Kc=function(t,e){this.f||={},tg(this);var r=t.ma;return t.na?(e||=[],t.F()?(this.f[r]=e,this.i[r]=f(e,function(t){return t.g()})):this.i[r]=e):t.F()?(this.f[r]=e,this.i[r]=e&&e.g()):this.i[r]=e,this},td.prototype.setExtension=td.prototype.Kc,td.difference=function(t,e){if(!(t instanceof e.constructor))throw Error("Messages have different types.");var r=t.g();e=e.g();var i=[],n=0,o=r.length>e.length?r.length:e.length;for(t.b&&(i[0]=t.b,n=1);n<o;n++)tD(r[n],e[n])||(i[n]=e[n]);return new t.constructor(i)},td.equals=function(t,e){return t==e||!(!t||!e)&&t instanceof e.constructor&&tD(t.g(),e.g())},td.compareExtensions=tE,td.compareFields=tD,td.prototype.Bb=function(){return tU(this)},td.prototype.cloneMessage=td.prototype.Bb,td.prototype.clone=function(){return tU(this)},td.prototype.clone=td.prototype.clone,td.clone=function(t){return tU(t)},td.copyInto=function(t,e){v(t,td),v(e,td),y(t.constructor==e.constructor,"Copy source and target message should have the same type."),t=tU(t);for(var r=e.g(),i=t.g(),n=r.length=0;n<i.length;n++)r[n]=i[n];
1e.f=t.f,e.i=t.i},td.registerMessageType=function(t,e){e.we=t};var tP={dump:function(t){return v(t,td,"jspb.Message instance expected"),y(t.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),tP.X(t)}};function tW(){this.a=[]}function tC(t,e){this.lo=t,this.hi=e}function tO(t,e){var r=65535&t;t>>>=16;var i=65535&e,n=e>>>16;for(e=r*i+65536*(r*n&65535)+65536*(t*i&65535),r=t*n+(r*n>>>16)+(t*i>>>16);0x100000000<=e;)e-=0x100000000,r+=1;return new tC(e>>>0,r>>>0)}function tR(t){for(var e=new tC(0,0),r=new tC(0,0),i=0;i<t.length;i++){if("0">t[i]||"9"<t[i])return null;r.lo=parseInt(t[i],10),e=e.eb(10).add(r)}return e}function tB(t,e){this.lo=t,this.hi=e}function tT(t){var e=0<t.length&&"-"==t[0];return e&&(t=t.substring(1)),null===(t=tR(t))?null:(e&&(t=new tC(0,0).sub(t)),new tB(t.lo,t.hi))}function tz(){this.c=[],this.b=0,this.a=new tW,this.h=[]}function tL(t,e){var r=t.a.end();t.c.push(r),t.c.push(e),t.b+=r.length+e.length}function tN(t,e){return tV(t,e,2),e=t.a.end(),t.c.push(e),t.b+=e.length,e.push(t.b),e}function tH(t,e){var r=e.pop();for(y(0<=(r=t.b+t.a.length()-r));127<r;)e.push(127&r|128),r>>>=7,t.b++;e.push(r),t.b++}function tV(t,e,r){y(1<=e&&e==Math.floor(e)),t.a.j(8*e+r)}function t$(t,e,r){null!=r&&(tV(t,e,0),t.a.j(r))}function tG(t,e,r){null!=r&&(tV(t,e,0),t.a.M(r))}u("jspb.debug.dump",tP.dump,void 0),tP.X=function(t){var e=l(t);if("number"==e||"string"==e||"boolean"==e||"null"==e||"undefined"==e||"u">typeof Uint8Array&&t instanceof Uint8Array)return t;if("array"==e)return function(t,e,r){var i=[...arguments].slice(2);Array.isArray(t)||g("Expected array but got %s: %s.",[l(t),t],e,i)}(t),f(t,tP.X);if(t instanceof w){var r={};t=t.entries();for(var i=t.next();!i.done;i=t.next())r[i.value[0]]=tP.X(i.value[1]);return r}v(t,td,"Only messages expected: "+t);var n={$name:(e=t.constructor).name||e.displayName};for(a in e.prototype){var o=/^get([A-Z]\w*)/.exec(a);if(o&&"getExtension"!=a&&"getJsPbMessageId"!=a){var s="has"+o[1];(!t[s]||t[s]())&&(s=t[a](),n[tP.$a(o[1])]=tP.X(s))}}if(t.extensionObject_)return n.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",n;for(i in e.extensions)if(/^\d+$/.test(i)){s=e.extensions[i];var a=t.getExtension(s);o=void 0;var p=[],u=0;for(o in s=s.Ba)p[u++]=o;o=p[0],null!=a&&((r||=n.$extensions={})[tP.$a(o)]=tP.X(a))}return n},tP.$a=function(t){return t.replace(/^[A-Z]/,function(t){return t.toLowerCase()})},u("jspb.BinaryEncoder",tW,void 0),tW.prototype.length=function(){return this.a.length},tW.prototype.length=tW.prototype.length,tW.prototype.end=function(){var t=this.a;return this.a=[],t},tW.prototype.end=tW.prototype.end,tW.prototype.l=function(t,e){for(y(t==Math.floor(t)),y(e==Math.floor(e)),y(0<=t&&0x100000000>t),y(0<=e&&0x100000000>e);0<e||127<t;)this.a.push(127&t|128),t=(t>>>7|e<<25)>>>0,e>>>=7;this.a.push(t)},tW.prototype.writeSplitVarint64=tW.prototype.l,tW.prototype.A=function(t,e){y(t==Math.floor(t)),y(e==Math.floor(e)),y(0<=t&&0x100000000>t),y(0<=e&&0x100000000>e),this.s(t),this.s(e)},tW.prototype.writeSplitFixed64=tW.prototype.A,tW.prototype.j=function(t){for(y(t==Math.floor(t)),y(0<=t&&0x100000000>t);127<t;)this.a.push(127&t|128),t>>>=7;this.a.push(t)},tW.prototype.writeUnsignedVarint32=tW.prototype.j,tW.prototype.M=function(t){if(y(t==Math.floor(t)),y(-0x80000000<=t&&0x80000000>t),0<=t)this.j(t);else{for(var e=0;9>e;e++)this.a.push(127&t|128),t>>=7;this.a.push(1)}},tW.prototype.writeSignedVarint32=tW.prototype.M,tW.prototype.va=function(t){y(t==Math.floor(t)),y(0<=t&&0xffffffffffffffff>t),O(t),this.l(P,W)},tW.prototype.writeUnsignedVarint64=tW.prototype.va,tW.prototype.ua=function(t){y(t==Math.floor(t)),y(-0x8000000000000000<=t&&0x8000000000000000>t),O(t),this.l(P,W)},tW.prototype.writeSignedVarint64=tW.prototype.ua,tW.prototype.wa=function(t){y(t==Math.floor(t)),y(-0x80000000<=t&&0x80000000>t),this.j((t<<1^t>>31)>>>0)},tW.prototype.writeZigzagVarint32=tW.prototype.wa,tW.prototype.xa=function(t){y(t==Math.floor(t)),y(-0x8000000000000000<=t&&0x8000000000000000>t),R(t),this.l(P,W)},tW.prototype.writeZigzagVarint64=tW.prototype.xa,tW.prototype.Ta=function(t){this.W(X(t))},tW.prototype.writeZigzagVarint64String=tW.prototype.Ta,tW.prototype.W=function(t){var e=this;z(t),H(P,W,function(t,r){e.l(t>>>0,r>>>0)})},tW.prototype.writeZigzagVarintHash64=tW.prototype.W,tW.prototype.be=function(t){y(t==Math.floor(t)),y(0<=t&&256>t),this.a.push(t>>>0&255)},tW.prototype.writeUint8=tW.prototype.be,tW.prototype.ae=function(t){y(t==Math.floor(t)),y(0<=t&&65536>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},tW.prototype.writeUint16=tW.prototype.ae,tW.prototype.s=function(t){y(t==Math.floor(t)),y(0<=t&&0x100000000>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},tW.prototype.writeUint32=tW.prototype.s,tW.prototype.V=function(t){y(t==Math.floor(t)),y(0<=t&&0xffffffffffffffff>t),C(t),this.s(P),this.s(W)},tW.prototype.writeUint64=tW.prototype.V,tW.prototype.Qc=function(t){y(t==Math.floor(t)),y(-128<=t&&128>t),this.a.push(t>>>0&255)},tW.prototype.writeInt8=tW.prototype.Qc,tW.prototype.Pc=function(t){y(t==Math.floor(t)),y(-32768<=t&&32768>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},tW.prototype.writeInt16=tW.prototype.Pc,tW.prototype.S=function(t){y(t==Math.floor(t)),y(-0x80000000<=t&&0x80000000>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},tW.prototype.writeInt32=tW.prototype.S,tW.prototype.T=function(t){y(t==Math.floor(t)),y(-0x8000000000000000<=t&&0x8000000000000000>t),O(t),this.A(P,W)},tW.prototype.writeInt64=tW.prototype.T,tW.prototype.ka=function(t){y(t==Math.floor(t)),y(-0x8000000000000000<=+t&&0x8000000000000000>+t),z(X(t)),this.A(P,W)},tW.prototype.writeInt64String=tW.prototype.ka,tW.prototype.L=function(t){y(t===1/0||t===-1/0||isNaN(t)||-34028234663852886e22<=t&&34028234663852886e22>=t),B(t),this.s(P)},tW.prototype.writeFloat=tW.prototype.L,tW.prototype.J=function(t){y(t===1/0||t===-1/0||isNaN(t)||-17976931348623157e292<=t&&17976931348623157e292>=t),T(t),this.s(P),this.s(W)},tW.prototype.writeDouble=tW.prototype.J,tW.prototype.I=function(t){y("boolean"==typeof t||"number"==typeof t),this.a.push(+!!t)},tW.prototype.writeBool=tW.prototype.I,tW.prototype.R=function(t){y(t==Math.floor(t)),y(-0x80000000<=t&&0x80000000>t),this.M(t)},tW.prototype.writeEnum=tW.prototype.R,tW.prototype.ja=function(t){this.a.push.apply(this.a,t)},tW.prototype.writeBytes=tW.prototype.ja,tW.prototype.N=function(t){z(t),this.l(P,W)},tW.prototype.writeVarintHash64=tW.prototype.N,tW.prototype.K=function(t){z(t),this.s(P),this.s(W)},tW.prototype.writeFixedHash64=tW.prototype.K,tW.prototype.U=function(t){var e=this.a.length;!function(t,e,r){var i=[...arguments].slice(2);"string"!=typeof t&&g("Expected string but got %s: %s.",[l(t),t],e,i)}(t);for(var r=0;r<t.length;r++){var i=t.charCodeAt(r);if(128>i)this.a.push(i);else if(2048>i)this.a.push(i>>6|192),this.a.push(63&i|128);else if(65536>i)if(55296<=i&&56319>=i&&r+1<t.length){var n=t.charCodeAt(r+1);56320<=n&&57343>=n&&(i=1024*(i-55296)+n-56320+65536,this.a.push(i>>18|240),this.a.push(i>>12&63|128),this.a.push(i>>6&63|128),this.a.push(63&i|128),r++)}else this.a.push(i>>12|224),this.a.push(i>>6&63|128),this.a.push(63&i|128)}return this.a.length-e},tW.prototype.writeString=tW.prototype.U,u("jspb.arith.UInt64",tC,void 0),tC.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:+(this.hi!=t.hi||this.lo!=t.lo)},tC.prototype.cmp=tC.prototype.cmp,tC.prototype.La=function(){return new tC((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},tC.prototype.rightShift=tC.prototype.La,tC.prototype.Da=function(){return new tC(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},tC.prototype.leftShift=tC.prototype.Da,tC.prototype.cb=function(){return!!(0x80000000&this.hi)},tC.prototype.msb=tC.prototype.cb,tC.prototype.Ob=function(){return!!(1&this.lo)},tC.prototype.lsb=tC.prototype.Ob,tC.prototype.Ua=function(){return 0==this.lo&&0==this.hi},tC.prototype.zero=tC.prototype.Ua,tC.prototype.add=function(t){return new tC(this.lo+t.lo>>>0>>>0,(this.hi+t.hi>>>0)+ +(0x100000000<=this.lo+t.lo)>>>0)},tC.prototype.add=tC.prototype.add,tC.prototype.sub=function(t){return new tC(this.lo-t.lo>>>0>>>0,(this.hi-t.hi>>>0)-(0>this.lo-t.lo)>>>0)},tC.prototype.sub=tC.prototype.sub,tC.mul32x32=tO,tC.prototype.eb=function(t){var e=tO(this.lo,t);return(t=tO(this.hi,t)).hi=t.lo,t.lo=0,e.add(t)},tC.prototype.mul=tC.prototype.eb,tC.prototype.Xa=function(t){if(0==t)return[];var e=new tC(0,0),r=new tC(this.lo,this.hi);
vendor: 16,919 bytes, line 1
1t=new tC(t,0);for(var i=new tC(1,0);!t.cb();)t=t.Da(),i=i.Da();for(;!i.Ua();)0>=t.cmp(r)&&(e=e.add(i),r=r.sub(t)),t=t.La(),i=i.La();return[e,r]},tC.prototype.div=tC.prototype.Xa,tC.prototype.toString=function(){for(var t="",e=this;!e.Ua();){var r=(e=e.Xa(10))[0];t=e[1].lo+t,e=r}return""==t&&(t="0"),t},tC.prototype.toString=tC.prototype.toString,tC.fromString=tR,tC.prototype.clone=function(){return new tC(this.lo,this.hi)},tC.prototype.clone=tC.prototype.clone,u("jspb.arith.Int64",tB,void 0),tB.prototype.add=function(t){return new tB(this.lo+t.lo>>>0>>>0,(this.hi+t.hi>>>0)+ +(0x100000000<=this.lo+t.lo)>>>0)},tB.prototype.add=tB.prototype.add,tB.prototype.sub=function(t){return new tB(this.lo-t.lo>>>0>>>0,(this.hi-t.hi>>>0)-(0>this.lo-t.lo)>>>0)},tB.prototype.sub=tB.prototype.sub,tB.prototype.clone=function(){return new tB(this.lo,this.hi)},tB.prototype.clone=tB.prototype.clone,tB.prototype.toString=function(){var t=(0x80000000&this.hi)!=0,e=new tC(this.lo,this.hi);return t&&(e=new tC(0,0).sub(e)),(t?"-":"")+e.toString()},tB.prototype.toString=tB.prototype.toString,tB.fromString=tT,u("jspb.BinaryWriter",tz,void 0),tz.prototype.pb=function(t,e,r){tL(this,t.subarray(e,r))},tz.prototype.writeSerializedMessage=tz.prototype.pb,tz.prototype.Pb=function(t,e,r){null!=t&&null!=e&&null!=r&&this.pb(t,e,r)},tz.prototype.maybeWriteSerializedMessage=tz.prototype.Pb,tz.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},tz.prototype.reset=tz.prototype.reset,tz.prototype.ab=function(){y(0==this.h.length);for(var t=new Uint8Array(this.b+this.a.length()),e=this.c,r=e.length,i=0,n=0;n<r;n++){var o=e[n];t.set(o,i),i+=o.length}return e=this.a.end(),t.set(e,i),y((i+=e.length)==t.length),this.c=[t],t},tz.prototype.getResultBuffer=tz.prototype.ab,tz.prototype.Kb=function(t){return E(this.ab(),t)},tz.prototype.getResultBase64String=tz.prototype.Kb,tz.prototype.Va=function(t){this.h.push(tN(this,t))},tz.prototype.beginSubMessage=tz.prototype.Va,tz.prototype.Ya=function(){y(0<=this.h.length),tH(this,this.h.pop())},tz.prototype.endSubMessage=tz.prototype.Ya,tz.prototype.Nc=function(t,e,r){switch(t){case 1:this.J(e,r);break;case 2:this.L(e,r);break;case 3:this.T(e,r);break;case 4:this.V(e,r);break;case 5:this.S(e,r);break;case 6:this.Qa(e,r);break;case 7:this.Pa(e,r);break;case 8:this.I(e,r);break;case 9:this.U(e,r);break;case 10:_("Group field type not supported in writeAny()");break;case 11:_("Message field type not supported in writeAny()");break;case 12:this.ja(e,r);break;case 13:this.s(e,r);break;case 14:this.R(e,r);break;case 15:this.Ra(e,r);break;case 16:this.Sa(e,r);break;case 17:this.rb(e,r);break;case 18:this.sb(e,r);break;case 30:this.K(e,r);break;case 31:this.N(e,r);break;default:_("Invalid field type in writeAny()")}},tz.prototype.writeAny=tz.prototype.Nc,tz.prototype.S=function(t,e){null!=e&&(y(-0x80000000<=e&&0x80000000>e),tG(this,t,e))},tz.prototype.writeInt32=tz.prototype.S,tz.prototype.ob=function(t,e){null!=e&&(y(-0x80000000<=(e=parseInt(e,10))&&0x80000000>e),tG(this,t,e))},tz.prototype.writeInt32String=tz.prototype.ob,tz.prototype.T=function(t,e){null!=e&&(y(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(tV(this,t,0),this.a.ua(e)))},tz.prototype.writeInt64=tz.prototype.T,tz.prototype.ka=function(t,e){null!=e&&(e=tT(e),tV(this,t,0),this.a.l(e.lo,e.hi))},tz.prototype.writeInt64String=tz.prototype.ka,tz.prototype.s=function(t,e){null!=e&&(y(0<=e&&0x100000000>e),t$(this,t,e))},tz.prototype.writeUint32=tz.prototype.s,tz.prototype.ub=function(t,e){null!=e&&(y(0<=(e=parseInt(e,10))&&0x100000000>e),t$(this,t,e))},tz.prototype.writeUint32String=tz.prototype.ub,tz.prototype.V=function(t,e){null!=e&&(y(0<=e&&0xffffffffffffffff>e),null!=e&&(tV(this,t,0),this.a.va(e)))},tz.prototype.writeUint64=tz.prototype.V,tz.prototype.vb=function(t,e){null!=e&&(e=tR(e),tV(this,t,0),this.a.l(e.lo,e.hi))},tz.prototype.writeUint64String=tz.prototype.vb,tz.prototype.rb=function(t,e){null!=e&&(y(-0x80000000<=e&&0x80000000>e),null!=e&&(tV(this,t,0),this.a.wa(e)))},tz.prototype.writeSint32=tz.prototype.rb,tz.prototype.sb=function(t,e){null!=e&&(y(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(tV(this,t,0),this.a.xa(e)))},tz.prototype.writeSint64=tz.prototype.sb,tz.prototype.$d=function(t,e){null!=e&&null!=e&&(tV(this,t,0),this.a.W(e))},tz.prototype.writeSintHash64=tz.prototype.$d,tz.prototype.Zd=function(t,e){null!=e&&null!=e&&(tV(this,t,0),this.a.Ta(e))},tz.prototype.writeSint64String=tz.prototype.Zd,tz.prototype.Pa=function(t,e){null!=e&&(y(0<=e&&0x100000000>e),tV(this,t,5),this.a.s(e))},tz.prototype.writeFixed32=tz.prototype.Pa,tz.prototype.Qa=function(t,e){null!=e&&(y(0<=e&&0xffffffffffffffff>e),tV(this,t,1),this.a.V(e))},tz.prototype.writeFixed64=tz.prototype.Qa,tz.prototype.nb=function(t,e){null!=e&&(e=tR(e),tV(this,t,1),this.a.A(e.lo,e.hi))},tz.prototype.writeFixed64String=tz.prototype.nb,tz.prototype.Ra=function(t,e){null!=e&&(y(-0x80000000<=e&&0x80000000>e),tV(this,t,5),this.a.S(e))},tz.prototype.writeSfixed32=tz.prototype.Ra,tz.prototype.Sa=function(t,e){null!=e&&(y(-0x8000000000000000<=e&&0x8000000000000000>e),tV(this,t,1),this.a.T(e))},tz.prototype.writeSfixed64=tz.prototype.Sa,tz.prototype.qb=function(t,e){null!=e&&(e=tT(e),tV(this,t,1),this.a.A(e.lo,e.hi))},tz.prototype.writeSfixed64String=tz.prototype.qb,tz.prototype.L=function(t,e){null!=e&&(tV(this,t,5),this.a.L(e))},tz.prototype.writeFloat=tz.prototype.L,tz.prototype.J=function(t,e){null!=e&&(tV(this,t,1),this.a.J(e))},tz.prototype.writeDouble=tz.prototype.J,tz.prototype.I=function(t,e){null!=e&&(y("boolean"==typeof e||"number"==typeof e),tV(this,t,0),this.a.I(e))},tz.prototype.writeBool=tz.prototype.I,tz.prototype.R=function(t,e){null!=e&&(y(-0x80000000<=e&&0x80000000>e),tV(this,t,0),this.a.M(e))},tz.prototype.writeEnum=tz.prototype.R,tz.prototype.U=function(t,e){null!=e&&(t=tN(this,t),this.a.U(e),tH(this,t))},tz.prototype.writeString=tz.prototype.U,tz.prototype.ja=function(t,e){null!=e&&(e=tr(e),tV(this,t,2),this.a.j(e.length),tL(this,e))},tz.prototype.writeBytes=tz.prototype.ja,tz.prototype.Rc=function(t,e,r){null!=e&&(t=tN(this,t),r(e,this),tH(this,t))},tz.prototype.writeMessage=tz.prototype.Rc,tz.prototype.Sc=function(t,e,r){null!=e&&(tV(this,1,3),tV(this,2,0),this.a.M(t),t=tN(this,3),r(e,this),tH(this,t),tV(this,1,4))},tz.prototype.writeMessageSet=tz.prototype.Sc,tz.prototype.Oc=function(t,e,r){null!=e&&(tV(this,t,3),r(e,this),tV(this,t,4))},tz.prototype.writeGroup=tz.prototype.Oc,tz.prototype.K=function(t,e){null!=e&&(y(8==e.length),tV(this,t,1),this.a.K(e))},tz.prototype.writeFixedHash64=tz.prototype.K,tz.prototype.N=function(t,e){null!=e&&(y(8==e.length),tV(this,t,0),this.a.N(e))},tz.prototype.writeVarintHash64=tz.prototype.N,tz.prototype.A=function(t,e,r){tV(this,t,1),this.a.A(e,r)},tz.prototype.writeSplitFixed64=tz.prototype.A,tz.prototype.l=function(t,e,r){tV(this,t,0),this.a.l(e,r)},tz.prototype.writeSplitVarint64=tz.prototype.l,tz.prototype.tb=function(t,e,r){tV(this,t,0);var i=this.a;H(e,r,function(t,e){i.l(t>>>0,e>>>0)})},tz.prototype.writeSplitZigzagVarint64=tz.prototype.tb,tz.prototype.Ed=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)tG(this,t,e[r])},tz.prototype.writeRepeatedInt32=tz.prototype.Ed,tz.prototype.Fd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ob(t,e[r])},tz.prototype.writeRepeatedInt32String=tz.prototype.Fd,tz.prototype.Gd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(tV(this,t,0),this.a.ua(i))}},tz.prototype.writeRepeatedInt64=tz.prototype.Gd,tz.prototype.Qd=function(t,e,r,i){if(null!=e)for(var n=0;n<e.length;n++)this.A(t,r(e[n]),i(e[n]))},tz.prototype.writeRepeatedSplitFixed64=tz.prototype.Qd,tz.prototype.Rd=function(t,e,r,i){if(null!=e)for(var n=0;n<e.length;n++)this.l(t,r(e[n]),i(e[n]))},tz.prototype.writeRepeatedSplitVarint64=tz.prototype.Rd,tz.prototype.Sd=function(t,e,r,i){if(null!=e)for(var n=0;n<e.length;n++)this.tb(t,r(e[n]),i(e[n]))},tz.prototype.writeRepeatedSplitZigzagVarint64=tz.prototype.Sd,tz.prototype.Hd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ka(t,e[r])},tz.prototype.writeRepeatedInt64String=tz.prototype.Hd,tz.prototype.Ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)t$(this,t,e[r])},tz.prototype.writeRepeatedUint32=tz.prototype.Ud,tz.prototype.Vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ub(t,e[r])},tz.prototype.writeRepeatedUint32String=tz.prototype.Vd,tz.prototype.Wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(tV(this,t,0),this.a.va(i))}},tz.prototype.writeRepeatedUint64=tz.prototype.Wd,tz.prototype.Xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.vb(t,e[r])},tz.prototype.writeRepeatedUint64String=tz.prototype.Xd,tz.prototype.Md=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(tV(this,t,0),this.a.wa(i))}},tz.prototype.writeRepeatedSint32=tz.prototype.Md,tz.prototype.Nd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(tV(this,t,0),this.a.xa(i))}},tz.prototype.writeRepeatedSint64=tz.prototype.Nd,tz.prototype.Od=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(tV(this,t,0),this.a.Ta(i))}},tz.prototype.writeRepeatedSint64String=tz.prototype.Od,tz.prototype.Pd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(tV(this,t,0),this.a.W(i))}},tz.prototype.writeRepeatedSintHash64=tz.prototype.Pd,tz.prototype.yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Pa(t,e[r])},tz.prototype.writeRepeatedFixed32=tz.prototype.yd,tz.prototype.zd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Qa(t,e[r])},tz.prototype.writeRepeatedFixed64=tz.prototype.zd,tz.prototype.Ad=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.nb(t,e[r])},tz.prototype.writeRepeatedFixed64String=tz.prototype.Ad,tz.prototype.Jd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Ra(t,e[r])},tz.prototype.writeRepeatedSfixed32=tz.prototype.Jd,tz.prototype.Kd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Sa(t,e[r])},tz.prototype.writeRepeatedSfixed64=tz.prototype.Kd,tz.prototype.Ld=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.qb(t,e[r])},tz.prototype.writeRepeatedSfixed64String=tz.prototype.Ld,tz.prototype.Cd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.L(t,e[r])},tz.prototype.writeRepeatedFloat=tz.prototype.Cd,tz.prototype.wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.J(t,e[r])},tz.prototype.writeRepeatedDouble=tz.prototype.wd,tz.prototype.ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.I(t,e[r])},tz.prototype.writeRepeatedBool=tz.prototype.ud,tz.prototype.xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.R(t,e[r])},tz.prototype.writeRepeatedEnum=tz.prototype.xd,tz.prototype.Td=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.U(t,e[r])},tz.prototype.writeRepeatedString=tz.prototype.Td,tz.prototype.vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ja(t,e[r])},tz.prototype.writeRepeatedBytes=tz.prototype.vd,tz.prototype.Id=function(t,e,r){if(null!=e)for(var i=0;i<e.length;i++){var n=tN(this,t);r(e[i],this),tH(this,n)}},tz.prototype.writeRepeatedMessage=tz.prototype.Id,tz.prototype.Dd=function(t,e,r){if(null!=e)for(var i=0;i<e.length;i++)tV(this,t,3),r(e[i],this),tV(this,t,4)},tz.prototype.writeRepeatedGroup=tz.prototype.Dd,tz.prototype.Bd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.K(t,e[r])},tz.prototype.writeRepeatedFixedHash64=tz.prototype.Bd,tz.prototype.Yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.N(t,e[r])},tz.prototype.writeRepeatedVarintHash64=tz.prototype.Yd,tz.prototype.ad=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.M(e[r]);tH(this,t)}},tz.prototype.writePackedInt32=tz.prototype.ad,tz.prototype.bd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.M(parseInt(e[r],10));tH(this,t)}},tz.prototype.writePackedInt32String=tz.prototype.bd,tz.prototype.cd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.ua(e[r]);tH(this,t)}},tz.prototype.writePackedInt64=tz.prototype.cd,tz.prototype.md=function(t,e,r,i){if(null!=e){t=tN(this,t);for(var n=0;n<e.length;n++)this.a.A(r(e[n]),i(e[n]));tH(this,t)}},tz.prototype.writePackedSplitFixed64=tz.prototype.md,tz.prototype.nd=function(t,e,r,i){if(null!=e){t=tN(this,t);for(var n=0;n<e.length;n++)this.a.l(r(e[n]),i(e[n]));tH(this,t)}},tz.prototype.writePackedSplitVarint64=tz.prototype.nd,tz.prototype.od=function(t,e,r,i){if(null!=e){t=tN(this,t);for(var n=this.a,o=0;o<e.length;o++)H(r(e[o]),i(e[o]),function(t,e){n.l(t>>>0,e>>>0)});tH(this,t)}},tz.prototype.writePackedSplitZigzagVarint64=tz.prototype.od,tz.prototype.dd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++){var i=tT(e[r]);this.a.l(i.lo,i.hi)}tH(this,t)}},tz.prototype.writePackedInt64String=tz.prototype.dd,tz.prototype.pd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.j(e[r]);tH(this,t)}},tz.prototype.writePackedUint32=tz.prototype.pd,tz.prototype.qd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.j(parseInt(e[r],10));tH(this,t)}},tz.prototype.writePackedUint32String=tz.prototype.qd,tz.prototype.rd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.va(e[r]);tH(this,t)}},tz.prototype.writePackedUint64=tz.prototype.rd,tz.prototype.sd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++){var i=tR(e[r]);this.a.l(i.lo,i.hi)}tH(this,t)}},tz.prototype.writePackedUint64String=tz.prototype.sd,tz.prototype.hd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.wa(e[r]);tH(this,t)}},tz.prototype.writePackedSint32=tz.prototype.hd,tz.prototype.jd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.xa(e[r]);tH(this,t)}},tz.prototype.writePackedSint64=tz.prototype.jd,tz.prototype.kd=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.W(X(e[r]));tH(this,t)}},tz.prototype.writePackedSint64String=tz.prototype.kd,tz.prototype.ld=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.W(e[r]);tH(this,t)}},tz.prototype.writePackedSintHash64=tz.prototype.ld,tz.prototype.Wc=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.s(e[t])},tz.prototype.writePackedFixed32=tz.prototype.Wc,tz.prototype.Xc=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.V(e[t])},tz.prototype.writePackedFixed64=tz.prototype.Xc,tz.prototype.Yc=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++){var r=tR(e[t]);this.a.A(r.lo,r.hi)}},tz.prototype.writePackedFixed64String=tz.prototype.Yc,tz.prototype.ed=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.S(e[t])},tz.prototype.writePackedSfixed32=tz.prototype.ed,tz.prototype.fd=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.T(e[t])},tz.prototype.writePackedSfixed64=tz.prototype.fd,tz.prototype.gd=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.ka(e[t])},tz.prototype.writePackedSfixed64String=tz.prototype.gd,tz.prototype.$c=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.L(e[t])},tz.prototype.writePackedFloat=tz.prototype.$c,tz.prototype.Uc=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.J(e[t])},tz.prototype.writePackedDouble=tz.prototype.Uc,tz.prototype.Tc=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(e.length),t=0;t<e.length;t++)this.a.I(e[t])},tz.prototype.writePackedBool=tz.prototype.Tc,tz.prototype.Vc=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.R(e[r]);tH(this,t)}},tz.prototype.writePackedEnum=tz.prototype.Vc,tz.prototype.Zc=function(t,e){if(null!=e&&e.length)for(tV(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.K(e[t])},tz.prototype.writePackedFixedHash64=tz.prototype.Zc,tz.prototype.td=function(t,e){if(null!=e&&e.length){t=tN(this,t);for(var r=0;r<e.length;r++)this.a.N(e[r]);tH(this,t)}},tz.prototype.writePackedVarintHash64=tz.prototype.td,"object"==typeof t&&(t.debug=tP,t.Map=w,t.Message=td,t.BinaryReader=ts,t.BinaryWriter=tz,t.ExtensionFieldInfo=tl,t.ExtensionFieldBinaryInfo=th,t.exportSymbol=function(t,e,r){u(t,e,r)},t.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},t.object={extend:function(t,e){for(var r,i,n=1;n<arguments.length;n++){for(r in i=arguments[n])t[r]=i[r];for(var o=0;o<d.length;o++)r=d[o],Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}}},t.typeOf=l)},()=>(n||(i((n={exports:{}}
1).exports,n),i=null),n.exports))())?{}:_(m(o)),((t,e,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(var i,n=w(e),o=0,s=n.length;o<s;o++)i=n[o],k.call(t,i)||void 0===i||v(t,i,{get:(t=>e[t]).bind(null,i),enumerable:!(r=b(e,i))||r.enumerable});return t})(o&&o.__esModule?s:v(s,"default",{value:o,enumerable:!0}),o));!function(t){class e extends A.Message{#t;constructor(t){super(),this.#t=[],A.Message.initialize(this,Array.isArray(t)?t:[],0,-1,[1],this.#t),!Array.isArray(t)&&"object"==typeof t&&"records"in t&&null!=t.records&&(this.records=t.records)}get records(){return A.Message.getRepeatedWrapperField(this,e.Record,1)}set records(t){A.Message.setRepeatedWrapperField(this,1,t)}static fromObject(t){let r=new e({});return null!=t.records&&(r.records=t.records.map(t=>e.Record.fromObject(t))),r}toObject(){let t={};return null!=this.records&&(t.records=this.records.map(t=>t.toObject())),t}serialize(t){let e=t||new A.BinaryWriter;if(this.records.length&&e.writeRepeatedMessage(1,this.records,t=>t.serialize(e)),!t)return e.getResultBuffer()}static deserialize(t){let r=t instanceof A.BinaryReader?t:new A.BinaryReader(t),i=new e;for(;r.nextField()&&!r.isEndGroup();)1===r.getFieldNumber()?r.readMessage(i.records,()=>A.Message.addToRepeatedWrapperField(i,1,e.Record.deserialize(r),e.Record)):r.skipField();return i}serializeBinary(){return this.serialize()}static deserializeBinary(t){return e.deserialize(t)}}t.ActionLog=e,function(t){class e extends A.Message{#t;constructor(t){super(),this.#t=[],A.Message.initialize(this,Array.isArray(t)?t:[],0,-1,[],this.#t),!Array.isArray(t)&&"object"==typeof t&&("kind"in t&&null!=t.kind&&(this.kind=t.kind),"tid"in t&&null!=t.tid&&(this.tid=t.tid),"user_id"in t&&null!=t.user_id&&(this.user_id=t.user_id),"user_key"in t&&null!=t.user_key&&(this.user_key=t.user_key),"contents"in t&&null!=t.contents&&(this.contents=t.contents),"uuid"in t&&null!=t.uuid&&(this.uuid=t.uuid),"prev_uuid"in t&&null!=t.prev_uuid&&(this.prev_uuid=t.prev_uuid),"url"in t&&null!=t.url&&(this.url=t.url),"referrer"in t&&null!=t.referrer&&(this.referrer=t.referrer),"acted_at"in t&&null!=t.acted_at&&(this.acted_at=t.acted_at),"finger_print"in t&&null!=t.finger_print&&(this.finger_print=t.finger_print),"visit_id"in t&&null!=t.visit_id&&(this.visit_id=t.visit_id),"route_name"in t&&null!=t.route_name&&(this.route_name=t.route_name),"section"in t&&null!=t.section&&(this.section=t.section),"target"in t&&null!=t.target&&(this.target=t.target),"event"in t&&null!=t.event&&(this.event=t.event),"platform"in t&&null!=t.platform&&(this.platform=t.platform),"tales_tracking_id"in t&&null!=t.tales_tracking_id&&(this.tales_tracking_id=t.tales_tracking_id))}get kind(){return A.Message.getFieldWithDefault(this,1,"")}set kind(t){A.Message.setField(this,1,t)}get tid(){return A.Message.getFieldWithDefault(this,2,"")}set tid(t){A.Message.setField(this,2,t)}get user_id(){return A.Message.getFieldWithDefault(this,3,0)}set user_id(t){A.Message.setField(this,3,t)}get user_key(){return A.Message.getFieldWithDefault(this,4,"")}set user_key(t){A.Message.setField(this,4,t)}get contents(){return A.Message.getFieldWithDefault(this,5,"")}set contents(t){A.Message.setField(this,5,t)}get uuid(){return A.Message.getFieldWithDefault(this,6,"")}set uuid(t){A.Message.setField(this,6,t)}get prev_uuid(){return A.Message.getFieldWithDefault(this,7,"")}set prev_uuid(t){A.Message.setField(this,7,t)}get url(){return A.Message.getFieldWithDefault(this,8,"")}set url(t){A.Message.setField(this,8,t)}get referrer(){return A.Message.getFieldWithDefault(this,9,"")}set referrer(t){A.Message.setField(this,9,t)}get acted_at(){return A.Message.getFieldWithDefault(this,10,"")}set acted_at(t){A.Message.setField(this,10,t)}get finger_print(){return A.Message.getFieldWithDefault(this,11,"")}set finger_print(t){A.Message.setField(this,11,t)}get visit_id(){return A.Message.getFieldWithDefault(this,12,"")}set visit_id(t){A.Message.setField(this,12,t)}get route_name(){return A.Message.getFieldWithDefault(this,13,"")}set route_name(t){A.Message.setField(this,13,t)}get section(){return A.Message.getFieldWithDefault(this,14,"")}set section(t){A.Message.setField(this,14,t)}get target(){return A.Message.getFieldWithDefault(this,15,"")}set target(t){A.Message.setField(this,15,t)}get event(){return A.Message.getFieldWithDefault(this,16,"")}set event(t){A.Message.setField(this,16,t)}get platform(){return A.Message.getFieldWithDefault(this,17,"")}set platform(t){A.Message.setField(this,17,t)}get tales_tracking_id(){return A.Message.getFieldWithDefault(this,18,"")}set tales_tracking_id(t){A.Message.setField(this,18,t)}static fromObject(t){let r=new e({});return null!=t.kind&&(r.kind=t.kind),null!=t.tid&&(r.tid=t.tid),null!=t.user_id&&(r.user_id=t.user_id),null!=t.user_key&&(r.user_key=t.user_key),null!=t.contents&&(r.contents=t.contents),null!=t.uuid&&(r.uuid=t.uuid),null!=t.prev_uuid&&(r.prev_uuid=t.prev_uuid),null!=t.url&&(r.url=t.url),null!=t.referrer&&(r.referrer=t.referrer),null!=t.acted_at&&(r.acted_at=t.acted_at),null!=t.finger_print&&(r.finger_print=t.finger_print),null!=t.visit_id&&(r.visit_id=t.visit_id),null!=t.route_name&&(r.route_name=t.route_name),null!=t.section&&(r.section=t.section),null!=t.target&&(r.target=t.target),null!=t.event&&(r.event=t.event),null!=t.platform&&(r.platform=t.platform),null!=t.tales_tracking_id&&(r.tales_tracking_id=t.tales_tracking_id),r}toObject(){let t={};return null!=this.kind&&(t.kind=this.kind),null!=this.tid&&(t.tid=this.tid),null!=this.user_id&&(t.user_id=this.user_id
1),null!=this.user_key&&(t.user_key=this.user_key),null!=this.contents&&(t.contents=this.contents),null!=this.uuid&&(t.uuid=this.uuid),null!=this.prev_uuid&&(t.prev_uuid=this.prev_uuid),null!=this.url&&(t.url=this.url),null!=this.referrer&&(t.referrer=this.referrer),null!=this.acted_at&&(t.acted_at=this.acted_at),null!=this.finger_print&&(t.finger_print=this.finger_print),null!=this.visit_id&&(t.visit_id=this.visit_id),null!=this.route_name&&(t.route_name=this.route_name),null!=this.section&&(t.section=this.section),null!=this.target&&(t.target=this.target),null!=this.event&&(t.event=this.event),null!=this.platform&&(t.platform=this.platform),null!=this.tales_tracking_id&&(t.tales_tracking_id=this.tales_tracking_id),t}serialize(t){let e=t||new A.BinaryWriter;if(this.kind.length&&e.writeString(1,this.kind),this.tid.length&&e.writeString(2,this.tid),0!=this.user_id&&e.writeInt64(3,this.user_id),this.user_key.length&&e.writeString(4,this.user_key),this.contents.length&&e.writeString(5,this.contents),this.uuid.length&&e.writeString(6,this.uuid),this.prev_uuid.length&&e.writeString(7,this.prev_uuid),this.url.length&&e.writeString(8,this.url),this.referrer.length&&e.writeString(9,this.referrer),this.acted_at.length&&e.writeString(10,this.acted_at),this.finger_print.length&&e.writeString(11,this.finger_print),this.visit_id.length&&e.writeString(12,this.visit_id),this.route_name.length&&e.writeString(13,this.route_name),this.section.length&&e.writeString(14,this.section),this.target.length&&e.writeString(15,this.target),this.event.length&&e.writeString(16,this.event),this.platform.length&&e.writeString(17,this.platform),this.tales_tracking_id.length&&e.writeString(18,this.tales_tracking_id),!t)return e.getResultBuffer()}static deserialize(t){let r=t instanceof A.BinaryReader?t:new A.BinaryReader(t),i=new e;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.kind=r.readString();break;case 2:i.tid=r.readString();break;case 3:i.user_id=r.readInt64();break;case 4:i.user_key=r.readString();break;case 5:i.contents=r.readString();break;case 6:i.uuid=r.readString();break;case 7:i.prev_uuid=r.readString();break;case 8:i.url=r.readString();break;case 9:i.referrer=r.readString();break;case 10:i.acted_at=r.readString();break;case 11:i.finger_print=r.readString();break;case 12:i.visit_id=r.readString();break;case 13:i.route_name=r.readString();break;case 14:i.section=r.readString();break;case 15:i.target=r.readString();break;case 16:i.event=r.readString();break;case 17:i.platform=r.readString();break;case 18:i.tales_tracking_id=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(t){return e.deserialize(t)}}t.Record=e}(e||=t.ActionLog||={});class r extends A.Message{#t;constructor(t){super(),this.#t=[],A.Message.initialize(this,Array.isArray(t)?t:[],0,-1,[],this.#t),!Array.isArray(t)&&"object"==typeof t&&("tid"in t&&null!=t.tid&&(this.tid=t.tid),"user_id"in t&&null!=t.user_id&&(this.user_id=t.user_id),"user_key"in t&&null!=t.user_key&&(this.user_key=t.user_key),"uuid"in t&&null!=t.uuid&&(this.uuid=t.uuid),"prev_uuid"in t&&null!=t.prev_uuid&&(this.prev_uuid=t.prev_uuid),"url"in t&&null!=t.url&&(this.url=t.url),"referrer"in t&&null!=t.referrer&&(this.referrer=t.referrer),"acted_at"in t&&null!=t.acted_at&&(this.acted_at=t.acted_at),"finger_print"in t&&null!=t.finger_print&&(this.finger_print=t.finger_print),"visit_id"in t&&null!=t.visit_id&&(this.visit_id=t.visit_id),"creator_user_id"in t&&null!=t.creator_user_id&&(this.creator_user_id=t.creator_user_id),"note_id"in t&&null!=t.note_id&&(this.note_id=t.note_id),"note_type"in t&&null!=t.note_type&&(this.note_type=t.note_type),"read_rate"in t&&null!=t.read_rate&&(this.read_rate=t.read_rate),"read_time"in t&&null!=t.read_time&&(this.read_time=t.read_time),"custom_domain_id"in t&&null!=t.custom_domain_id&&(this.custom_domain_id=t.custom_domain_id),"pro_user_id"in t&&null!=t.pro_user_id&&(this.pro_user_id=t.pro_user_id),"contents"in t&&null!=t.contents&&(this.contents=t.contents),"platform"in t&&null!=t.platform&&(this.platform=t.platform),"tales_tracking_id"in t&&null!=t.tales_tracking_id&&(this.tales_tracking_id=t.tales_tracking_id))}get tid(){return A.Message.getFieldWithDefault(this,1,"")}set tid(t){A.Message.setField(this,1,t)}get user_id(){return A.Message.getFieldWithDefault(this,2,0)}set user_id(t){A.Message.setField(this,2,t)}get user_key(){return A.Message.getFieldWithDefault(this,3,"")}set user_key(t){A.Message.setField(this,3,t)}get uuid(){return A.Message.getFieldWithDefault(this,4,"")}set uuid(t){A.Message.setField(this,4,t)}get prev_uuid(){return A.Message.getFieldWithDefault(this,5,"")}set prev_uuid(t){A.Message.setField(this,5,t)}get url(){return A.Message.getFieldWithDefault(this,6,"")}set url(t){A.Message.setField(this,6,t)}get referrer(){return A.Message.getFieldWithDefault(this,7,"")}set referrer(t){A.Message.setField(this,7,t)}get acted_at(){return A.Message.getFieldWithDefault(this,8,"")}set acted_at(t){A.Message.setField(this,8,t)}get finger_print(){return A.Message.getFieldWithDefault(this,9,"")}set finger_print(t){A.Message.setField(this,9,t)}get visit_id(){return A.Message.getFieldWithDefault(this,10,"")}set visit_id(t){A.Message.setField(this,10,t)}get creator_user_id(){return A.Message.getFieldWithDefault(this,11,0)}set creator_user_id(t){A.Message.setField(this,11,t)}get note_id(){return A.Message.getFieldWithDefault(this,12,0)}set note_id(t){A.Message.setField(this,12,t)}get note_type(){return A.Message.getFieldWithDefault(this,13,"")}set note_type(t){A.Message.setField(this,13,t)}get read_rate(){return A.Message.getFieldWithDefault(this,14,0)}set read_rate(t){A.Message.setField(this,14,t)}
1get read_time(){return A.Message.getFieldWithDefault(this,15,0)}set read_time(t){A.Message.setField(this,15,t)}get custom_domain_id(){return A.Message.getFieldWithDefault(this,16,0)}set custom_domain_id(t){A.Message.setField(this,16,t)}get pro_user_id(){return A.Message.getFieldWithDefault(this,17,0)}set pro_user_id(t){A.Message.setField(this,17,t)}get contents(){return A.Message.getFieldWithDefault(this,18,"")}set contents(t){A.Message.setField(this,18,t)}get platform(){return A.Message.getFieldWithDefault(this,19,"")}set platform(t){A.Message.setField(this,19,t)}get tales_tracking_id(){return A.Message.getFieldWithDefault(this,20,"")}set tales_tracking_id(t){A.Message.setField(this,20,t)}static fromObject(t){let e=new r({});return null!=t.tid&&(e.tid=t.tid),null!=t.user_id&&(e.user_id=t.user_id),null!=t.user_key&&(e.user_key=t.user_key),null!=t.uuid&&(e.uuid=t.uuid),null!=t.prev_uuid&&(e.prev_uuid=t.prev_uuid),null!=t.url&&(e.url=t.url),null!=t.referrer&&(e.referrer=t.referrer),null!=t.acted_at&&(e.acted_at=t.acted_at),null!=t.finger_print&&(e.finger_print=t.finger_print),null!=t.visit_id&&(e.visit_id=t.visit_id),null!=t.creator_user_id&&(e.creator_user_id=t.creator_user_id),null!=t.note_id&&(e.note_id=t.note_id),null!=t.note_type&&(e.note_type=t.note_type),null!=t.read_rate&&(e.read_rate=t.read_rate),null!=t.read_time&&(e.read_time=t.read_time),null!=t.custom_domain_id&&(e.custom_domain_id=t.custom_domain_id),null!=t.pro_user_id&&(e.pro_user_id=t.pro_user_id),null!=t.contents&&(e.contents=t.contents),null!=t.platform&&(e.platform=t.platform),null!=t.tales_tracking_id&&(e.tales_tracking_id=t.tales_tracking_id),e}toObject(){let t={};return null!=this.tid&&(t.tid=this.tid),null!=this.user_id&&(t.user_id=this.user_id),null!=this.user_key&&(t.user_key=this.user_key),null!=this.uuid&&(t.uuid=this.uuid),null!=this.prev_uuid&&(t.prev_uuid=this.prev_uuid),null!=this.url&&(t.url=this.url),null!=this.referrer&&(t.referrer=this.referrer),null!=this.acted_at&&(t.acted_at=this.acted_at),null!=this.finger_print&&(t.finger_print=this.finger_print),null!=this.visit_id&&(t.visit_id=this.visit_id),null!=this.creator_user_id&&(t.creator_user_id=this.creator_user_id),null!=this.note_id&&(t.note_id=this.note_id),null!=this.note_type&&(t.note_type=this.note_type),null!=this.read_rate&&(t.read_rate=this.read_rate),null!=this.read_time&&(t.read_time=this.read_time),null!=this.custom_domain_id&&(t.custom_domain_id=this.custom_domain_id),null!=this.pro_user_id&&(t.pro_user_id=this.pro_user_id),null!=this.contents&&(t.contents=this.contents),null!=this.platform&&(t.platform=this.platform),null!=this.tales_tracking_id&&(t.tales_tracking_id=this.tales_tracking_id),t}serialize(t){let e=t||new A.BinaryWriter;if(this.tid.length&&e.writeString(1,this.tid),0!=this.user_id&&e.writeInt64(2,this.user_id),this.user_key.length&&e.writeString(3,this.user_key),this.uuid.length&&e.writeString(4,this.uuid),this.prev_uuid.length&&e.writeString(5,this.prev_uuid),this.url.length&&e.writeString(6,this.url),this.referrer.length&&e.writeString(7,this.referrer),this.acted_at.length&&e.writeString(8,this.acted_at),this.finger_print.length&&e.writeString(9,this.finger_print),this.visit_id.length&&e.writeString(10,this.visit_id),0!=this.creator_user_id&&e.writeInt64(11,this.creator_user_id),0!=this.note_id&&e.writeInt64(12,this.note_id),this.note_type.length&&e.writeString(13,this.note_type),0!=this.read_rate&&e.writeInt32(14,this.read_rate),0!=this.read_time&&e.writeDouble(15,this.read_time),0!=this.custom_domain_id&&e.writeInt64(16,this.custom_domain_id),0!=this.pro_user_id&&e.writeInt64(17,this.pro_user_id),this.contents.length&&e.writeString(18,this.contents),this.platform.length&&e.writeString(19,this.platform),this.tales_tracking_id.length&&e.writeString(20,this.tales_tracking_id),!t)return e.getResultBuffer()}static deserialize(t){let e=t instanceof A.BinaryReader?t:new A.BinaryReader(t),i=new r;for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:i.tid=e.readString();break;case 2:i.user_id=e.readInt64();break;case 3:i.user_key=e.readString();break;case 4:i.uuid=e.readString();break;case 5:i.prev_uuid=e.readString();break;case 6:i.url=e.readString();break;case 7:i.referrer=e.readString();break;case 8:i.acted_at=e.readString();break;case 9:i.finger_print=e.readString();break;case 10:i.visit_id=e.readString();break;case 11:i.creator_user_id=e.readInt64();break;case 12:i.note_id=e.readInt64();break;case 13:i.note_type=e.readString();break;case 14:i.read_rate=e.readInt32();break;case 15:i.read_time=e.readDouble();break;case 16:i.custom_domain_id=e.readInt64();break;case 17:i.pro_user_id=e.readInt64();break;case 18:i.contents=e.readString();break;case 19:i.platform=e.readString();break;case 20:i.tales_tracking_id=e.readString();break;default:e.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(t){return r.deserialize(t)}}t.ReadingRate=r;class i extends A.Message{#t;constructor(t){super(),this.#t=[],A.Message.initialize(this,Array.isArray(t)?t:[],0,-1,[],this.#t),!Array.isArray(t)&&"object"==typeof t&&("tid"in t&&null!=t.tid&&(this.tid=t.tid),"user_id"in t&&null!=t.user_id&&(this.user_id=t.user_id),"user_key"in t&&null!=t.user_key&&(this.user_key=t.user_key),"contents"in t&&null!=t.contents&&(this.contents=t.contents),"uuid"in t&&null!=t.uuid&&(this.uuid=t.uuid),"prev_uuid"in t&&null!=t.prev_uuid&&(this.prev_uuid=t.prev_uuid),"url"in t&&null!=t.url&&(this.url=t.url),"referrer"in t&&null!=t.referrer&&(this.referrer=t.referrer),"acted_at"in t&&null!=t.acted_at&&(this.acted_at=t.acted_at),"finger_print"in t&&null!=t.finger_print&&(this.finger_print=t.finger_print),"visit_id"in t&&null!=t.visit_id&&(this.visit_id=t.visit_id),"custom_domain_id"in t&&null!=t.custom_domain_id&&(this.custom_domain_id=t.custom_domain_id),"pro_user_id"in t&&null!=t.pro_user_id&&(this.pro_user_id=t.pro_user_id),"creator_user_id"in t&&null!=t.creator_user_id&&(this.creator_user_id=t.creator_user_id
1),"content_id"in t&&null!=t.content_id&&(this.content_id=t.content_id),"content_type"in t&&null!=t.content_type&&(this.content_type=t.content_type),"content_sub_type"in t&&null!=t.content_sub_type&&(this.content_sub_type=t.content_sub_type),"route_name"in t&&null!=t.route_name&&(this.route_name=t.route_name),"platform"in t&&null!=t.platform&&(this.platform=t.platform),"tales_tracking_id"in t&&null!=t.tales_tracking_id&&(this.tales_tracking_id=t.tales_tracking_id))}get tid(){return A.Message.getFieldWithDefault(this,1,"")}set tid(t){A.Message.setField(this,1,t)}get user_id(){return A.Message.getFieldWithDefault(this,2,0)}set user_id(t){A.Message.setField(this,2,t)}get user_key(){return A.Message.getFieldWithDefault(this,3,"")}set user_key(t){A.Message.setField(this,3,t)}get contents(){return A.Message.getFieldWithDefault(this,4,"")}set contents(t){A.Message.setField(this,4,t)}get uuid(){return A.Message.getFieldWithDefault(this,5,"")}set uuid(t){A.Message.setField(this,5,t)}get prev_uuid(){return A.Message.getFieldWithDefault(this,6,"")}set prev_uuid(t){A.Message.setField(this,6,t)}get url(){return A.Message.getFieldWithDefault(this,7,"")}set url(t){A.Message.setField(this,7,t)}get referrer(){return A.Message.getFieldWithDefault(this,8,"")}set referrer(t){A.Message.setField(this,8,t)}get acted_at(){return A.Message.getFieldWithDefault(this,9,"")}set acted_at(t){A.Message.setField(this,9,t)}get finger_print(){return A.Message.getFieldWithDefault(this,10,"")}set finger_print(t){A.Message.setField(this,10,t)}get visit_id(){return A.Message.getFieldWithDefault(this,11,"")}set visit_id(t){A.Message.setField(this,11,t)}get custom_domain_id(){return A.Message.getFieldWithDefault(this,12,0)}set custom_domain_id(t){A.Message.setField(this,12,t)}get pro_user_id(){return A.Message.getFieldWithDefault(this,13,0)}set pro_user_id(t){A.Message.setField(this,13,t)}get creator_user_id(){return A.Message.getFieldWithDefault(this,14,0)}set creator_user_id(t){A.Message.setField(this,14,t)}get content_id(){return A.Message.getFieldWithDefault(this,15,0)}set content_id(t){A.Message.setField(this,15,t)}get content_type(){return A.Message.getFieldWithDefault(this,16,"")}set content_type(t){A.Message.setField(this,16,t)}get content_sub_type(){return A.Message.getFieldWithDefault(this,17,"")}set content_sub_type(t){A.Message.setField(this,17,t)}get route_name(){return A.Message.getFieldWithDefault(this,18,"")}set route_name(t){A.Message.setField(this,18,t)}get platform(){return A.Message.getFieldWithDefault(this,19,"")}set platform(t){A.Message.setField(this,19,t)}get tales_tracking_id(){return A.Message.getFieldWithDefault(this,20,"")}set tales_tracking_id(t){A.Message.setField(this,20,t)}static fromObject(t){let e=new i({});return null!=t.tid&&(e.tid=t.tid),null!=t.user_id&&(e.user_id=t.user_id),null!=t.user_key&&(e.user_key=t.user_key),null!=t.contents&&(e.contents=t.contents),null!=t.uuid&&(e.uuid=t.uuid),null!=t.prev_uuid&&(e.prev_uuid=t.prev_uuid),null!=t.url&&(e.url=t.url),null!=t.referrer&&(e.referrer=t.referrer),null!=t.acted_at&&(e.acted_at=t.acted_at),null!=t.finger_print&&(e.finger_print=t.finger_print),null!=t.visit_id&&(e.visit_id=t.visit_id),null!=t.custom_domain_id&&(e.custom_domain_id=t.custom_domain_id),null!=t.pro_user_id&&(e.pro_user_id=t.pro_user_id),null!=t.creator_user_id&&(e.creator_user_id=t.creator_user_id),null!=t.content_id&&(e.content_id=t.content_id),null!=t.content_type&&(e.content_type=t.content_type),null!=t.content_sub_type&&(e.content_sub_type=t.content_sub_type),null!=t.route_name&&(e.route_name=t.route_name),null!=t.platform&&(e.platform=t.platform),null!=t.tales_tracking_id&&(e.tales_tracking_id=t.tales_tracking_id),e}toObject(){let t={};return null!=this.tid&&(t.tid=this.tid),null!=this.user_id&&(t.user_id=this.user_id),null!=this.user_key&&(t.user_key=this.user_key),null!=this.contents&&(t.contents=this.contents),null!=this.uuid&&(t.uuid=this.uuid),null!=this.prev_uuid&&(t.prev_uuid=this.prev_uuid),null!=this.url&&(t.url=this.url),null!=this.referrer&&(t.referrer=this.referrer),null!=this.acted_at&&(t.acted_at=this.acted_at),null!=this.finger_print&&(t.finger_print=this.finger_print),null!=this.visit_id&&(t.visit_id=this.visit_id),null!=this.custom_domain_id&&(t.custom_domain_id=this.custom_domain_id),null!=this.pro_user_id&&(t.pro_user_id=this.pro_user_id),null!=this.creator_user_id&&(t.creator_user_id=this.creator_user_id
1),null!=this.content_id&&(t.content_id=this.content_id),null!=this.content_type&&(t.content_type=this.content_type),null!=this.content_sub_type&&(t.content_sub_type=this.content_sub_type),null!=this.route_name&&(t.route_name=this.route_name),null!=this.platform&&(t.platform=this.platform),null!=this.tales_tracking_id&&(t.tales_tracking_id=this.tales_tracking_id),t}serialize(t){let e=t||new A.BinaryWriter;if(this.tid.length&&e.writeString(1,this.tid),0!=this.user_id&&e.writeInt64(2,this.user_id),this.user_key.length&&e.writeString(3,this.user_key),this.contents.length&&e.writeString(4,this.contents),this.uuid.length&&e.writeString(5,this.uuid),this.prev_uuid.length&&e.writeString(6,this.prev_uuid),this.url.length&&e.writeString(7,this.url),this.referrer.length&&e.writeString(8,this.referrer),this.acted_at.length&&e.writeString(9,this.acted_at),this.finger_print.length&&e.writeString(10,this.finger_print),this.visit_id.length&&e.writeString(11,this.visit_id),0!=this.custom_domain_id&&e.writeInt64(12,this.custom_domain_id),0!=this.pro_user_id&&e.writeInt64(13,this.pro_user_id),0!=this.creator_user_id&&e.writeInt64(14,this.creator_user_id),0!=this.content_id&&e.writeInt64(15,this.content_id),this.content_type.length&&e.writeString(16,this.content_type),this.content_sub_type.length&&e.writeString(17,this.content_sub_type),this.route_name.length&&e.writeString(18,this.route_name),this.platform.length&&e.writeString(19,this.platform),this.tales_tracking_id.length&&e.writeString(20,this.tales_tracking_id),!t)return e.getResultBuffer()}static deserialize(t){let e=t instanceof A.BinaryReader?t:new A.BinaryReader(t),r=new i;for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:r.tid=e.readString();break;case 2:r.user_id=e.readInt64();break;case 3:r.user_key=e.readString();break;case 4:r.contents=e.readString();break;case 5:r.uuid=e.readString();break;case 6:r.prev_uuid=e.readString();break;case 7:r.url=e.readString();break;case 8:r.referrer=e.readString();break;case 9:r.acted_at=e.readString();break;case 10:r.finger_print=e.readString();break;case 11:r.visit_id=e.readString();break;case 12:r.custom_domain_id=e.readInt64();break;case 13:r.pro_user_id=e.readInt64();break;case 14:r.creator_user_id=e.readInt64();break;case 15:r.content_id=e.readInt64();break;case 16:r.content_type=e.readString();break;case 17:r.content_sub_type=e.readString();break;case 18:r.route_name=e.readString();break;case 19:r.platform=e.readString();break;case 20:r.tales_tracking_id=e.readString();break;default:e.skipField()}return r}serializeBinary(){return this.serialize()}static deserializeBinary(t){return i.deserialize(t)}}t.ReadHistory=i;class n extends A.Message{#t;constructor(t){super(),this.#t=[],A.Message.initialize(this,Array.isArray(t)?t:[],0,-1,[],this.#t),!Array.isArray(t)&&"object"==typeof t&&("tid"in t&&null!=t.tid&&(this.tid=t.tid),"user_id"in t&&null!=t.user_id&&(this.user_id=t.user_id),"user_key"in t&&null!=t.user_key&&(this.user_key=t.user_key),"contents"in t&&null!=t.contents&&(this.contents=t.contents),"uuid"in t&&null!=t.uuid&&(this.uuid=t.uuid),"prev_uuid"in t&&null!=t.prev_uuid&&(this.prev_uuid=t.prev_uuid),"url"in t&&null!=t.url&&(this.url=t.url),"referrer"in t&&null!=t.referrer&&(this.referrer=t.referrer),"acted_at"in t&&null!=t.acted_at&&(this.acted_at=t.acted_at),"finger_print"in t&&null!=t.finger_print&&(this.finger_print=t.finger_print),"visit_id"in t&&null!=t.visit_id&&(this.visit_id=t.visit_id),"platform"in t&&null!=t.platform&&(this.platform=t.platform),"tales_tracking_id"in t&&null!=t.tales_tracking_id&&(this.tales_tracking_id=t.tales_tracking_id))}get tid(){return A.Message.getFieldWithDefault(this,1,"")}set tid(t){A.Message.setField(this,1,t)}get user_id(){return A.Message.getFieldWithDefault(this,2,0)}set user_id(t){A.Message.setField(this,2,t)}get user_key(){return A.Message.getFieldWithDefault(this,3,"")}set user_key(t){A.Message.setField(this,3,t)}get contents(){return A.Message.getFieldWithDefault(this,4,"")}set contents(t){A.Message.setField(this,4,t)}get uuid(){return A.Message.getFieldWithDefault(this,5,"")}set uuid(t){A.Message.setField(this,5,t)}get prev_uuid(){return A.Message.getFieldWithDefault(this,6,"")}set prev_uuid(t){A.Message.setField(this,6,t)}get url(){return A.Message.getFieldWithDefault(this,7,"")}set url(t){A.Message.setField(this,7,t)}get referrer(){return A.Message.getFieldWithDefault(this,8,"")}set referrer(t){A.Message.setField(this,8,t)}get acted_at(){return A.Message.getFieldWithDefault(this,9,"")}set acted_at(t){A.Message.setField(this,9,t)}get finger_print(){return A.Message.getFieldWithDefault(this,10,"")}set finger_print(t){A.Message.setField(this,10,t)}get visit_id(){return A.Message.getFieldWithDefault(this,11,"")}set visit_id(t){A.Message.setField(this,11,t)}get platform(){return A.Message.getFieldWithDefault(this,12,"")}set platform(t){A.Message.setField(this,12,t)}get tales_tracking_id(){return A.Message.getFieldWithDefault(this,13,"")}set tales_tracking_id(t){A.Message.setField(this,13,t)}static fromObject(t){let e=new n({});return null!=t.tid&&(e.tid=t.tid),null!=t.user_id&&(e.user_id=t.user_id),null!=t.user_key&&(e.user_key=t.user_key),null!=t.contents&&(e.contents=t.contents),null!=t.uuid&&(e.uuid=t.uuid),null!=t.prev_uuid&&(e.prev_uuid=t.prev_uuid),null!=t.url&&(e.url=t.url),null!=t.referrer&&(e.referrer=t.referrer),null!=t.acted_at&&(e.acted_at=t.acted_at),null!=t.finger_print&&(e.finger_print=t.finger_print),null!=t.visit_id&&(e.visit_id=t.visit_id),null!=t.platform&&(e.platform=t.platform),null!=t.tales_tracking_id&&(e.tales_tracking_id=t.tales_tracking_id),e}toObject(){let t={};return null!=this.tid&&(t.tid=this.tid),null!=this.user_id&&(t.user_id=this.user_id
1),null!=this.user_key&&(t.user_key=this.user_key),null!=this.contents&&(t.contents=this.contents),null!=this.uuid&&(t.uuid=this.uuid),null!=this.prev_uuid&&(t.prev_uuid=this.prev_uuid),null!=this.url&&(t.url=this.url),null!=this.referrer&&(t.referrer=this.referrer),null!=this.acted_at&&(t.acted_at=this.acted_at),null!=this.finger_print&&(t.finger_print=this.finger_print),null!=this.visit_id&&(t.visit_id=this.visit_id),null!=this.platform&&(t.platform=this.platform),null!=this.tales_tracking_id&&(t.tales_tracking_id=this.tales_tracking_id),t}serialize(t){let e=t||new A.BinaryWriter;if(this.tid.length&&e.writeString(1,this.tid),0!=this.user_id&&e.writeInt64(2,this.user_id),this.user_key.length&&e.writeString(3,this.user_key),this.contents.length&&e.writeString(4,this.contents),this.uuid.length&&e.writeString(5,this.uuid),this.prev_uuid.length&&e.writeString(6,this.prev_uuid),this.url.length&&e.writeString(7,this.url),this.referrer.length&&e.writeString(8,this.referrer),this.acted_at.length&&e.writeString(9,this.acted_at),this.finger_print.length&&e.writeString(10,this.finger_print),this.visit_id.length&&e.writeString(11,this.visit_id),this.platform.length&&e.writeString(12,this.platform),this.tales_tracking_id.length&&e.writeString(13,this.tales_tracking_id),!t)return e.getResultBuffer()}static deserialize(t){let e=t instanceof A.BinaryReader?t:new A.BinaryReader(t),r=new n;for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:r.tid=e.readString();break;case 2:r.user_id=e.readInt64();break;case 3:r.user_key=e.readString();break;case 4:r.contents=e.readString();break;case 5:r.uuid=e.readString();break;case 6:r.prev_uuid=e.readString();break;case 7:r.url=e.readString();break;case 8:r.referrer=e.readString();break;case 9:r.acted_at=e.readString();break;case 10:r.finger_print=e.readString();break;case 11:r.visit_id=e.readString();break;case 12:r.platform=e.readString();break;case 13:r.tales_tracking_id=e.readString();break;default:e.skipField()}return r}serializeBinary(){return this.serialize()}static deserializeBinary(t){return n.deserialize(t)}}t.Pv=n;class o extends A.Message{#t;constructor(t){super(),this.#t=[[1,2,3,4]],A.Message.initialize(this,Array.isArray(t)?t:[],0,-1,[],this.#t),!Array.isArray(t)&&"object"==typeof t&&("action_log"in t&&null!=t.action_log&&(this.action_log=t.action_log),"reading_rate"in t&&null!=t.reading_rate&&(this.reading_rate=t.reading_rate),"read_history"in t&&null!=t.read_history&&(this.read_history=t.read_history),"pv"in t&&null!=t.pv&&(this.pv=t.pv),"ip"in t&&null!=t.ip&&(this.ip=t.ip),"user_agent"in t&&null!=t.user_agent&&(this.user_agent=t.user_agent))}get action_log(){return A.Message.getWrapperField(this,e,1)}set action_log(t){A.Message.setOneofWrapperField(this,1,this.#t[0],t)}get has_action_log(){return null!=A.Message.getField(this,1)}get reading_rate(){return A.Message.getWrapperField(this,r,2)}set reading_rate(t){A.Message.setOneofWrapperField(this,2,this.#t[0],t)}get has_reading_rate(){return null!=A.Message.getField(this,2)}get read_history(){return A.Message.getWrapperField(this,i,3)}set read_history(t){A.Message.setOneofWrapperField(this,3,this.#t[0],t)}get has_read_history(){return null!=A.Message.getField(this,3)}get pv(){return A.Message.getWrapperField(this,n,4)}set pv(t){A.Message.setOneofWrapperField(this,4,this.#t[0],t)}get has_pv(){return null!=A.Message.getField(this,4)}get ip(){return A.Message.getFieldWithDefault(this,9,"")}set ip(t){A.Message.setField(this,9,t)}get user_agent(){return A.Message.getFieldWithDefault(this,10,"")}set user_agent(t){A.Message.setField(this,10,t)}get params(){return({0:"none",1:"action_log",2:"reading_rate",3:"read_history",4:"pv"})[A.Message.computeOneofCase(this,[1,2,3,4])]}static fromObject(t){let s=new o({});return null!=t.action_log&&(s.action_log=e.fromObject(t.action_log)),null!=t.reading_rate&&(s.reading_rate=r.fromObject(t.reading_rate)),null!=t.read_history&&(s.read_history=i.fromObject(t.read_history)),null!=t.pv&&(s.pv=n.fromObject(t.pv)),null!=t.ip&&(s.ip=t.ip),null!=t.user_agent&&(s.user_agent=t.user_agent),s}toObject(){let t={};return null!=this.action_log&&(t.action_log=this.action_log.toObject()),null!=this.reading_rate&&(t.reading_rate=this.reading_rate.toObject()),null!=this.read_history&&(t.read_history=this.read_history.toObject()),null!=this.pv&&(t.pv=this.pv.toObject()),null!=this.ip&&(t.ip=this.ip),null!=this.user_agent&&(t.user_agent=this.user_agent),t}serialize(t){let e=t||new A.BinaryWriter;if(this.has_action_log&&e.writeMessage(1,this.action_log,()=>this.action_log.serialize(e)),this.has_reading_rate&&e.writeMessage(2,this.reading_rate,()=>this.reading_rate.serialize(e)),this.has_read_history&&e.writeMessage(3,this.read_history,()=>this.read_history.serialize(e)),this.has_pv&&e.writeMessage(4,this.pv,()=>this.pv.serialize(e)),this.ip.length&&e.writeString(9,this.ip),this.user_agent.length&&e.writeString(10,this.user_agent),!t)return e.getResultBuffer()}static deserialize(t){let s=t instanceof A.BinaryReader?t:new A.BinaryReader(t),a=new o;for(;s.nextField()&&!s.isEndGroup();)switch(s.getFieldNumber()){case 1:s.readMessage(a.action_log,()=>a.action_log=e.deserialize(s));break;case 2:s.readMessage(a.reading_rate,()=>a.reading_rate=r.deserialize(s));break;case 3:s.readMessage(a.read_history,()=>a.read_history=i.deserialize(s));break;case 4:s.readMessage(a.pv,()=>a.pv=n.deserialize(s));break;case 9:a.ip=s.readString();break;case 10:a.user_agent=s.readString();break;default:s.skipField()}return a}serializeBinary(){return this.serialize()}static deserializeBinary(t){return o.deserialize(t)}}t.Log=o}(a||={});var I=(t,e,r,i)=>{let n={credentials:"omit",method:"POST",...i?.keepalive?{keepalive:!0}:{}};if("protobuf"===t){let t=((t,e)=>{switch(t){case"read_history":return new a.Log({read_history:new a.ReadHistory(e)});case"action_log":if("action_log"===t&&"object"==typeof e&&e&&"records"in e&&e?.records&&Array.isArray(e.records)){let t=e.records.map(t=>new a.ActionLog.Record(t));return new a.Log({action_log:new a.ActionLog({records:t})})}
1throw Error("Params type mismatch for action_log kind");case"pv":return new a.Log({pv:new a.Pv(e)});case"reading_rate":return new a.Log({reading_rate:new a.ReadingRate(e)});default:return null}})(e,r);return t?{...n,body:t.serialize(),headers:{"Content-Type":"application/octet-stream"}}:void 0}return{...n,body:JSON.stringify({data:{kind:e,params:r}}),headers:{"Content-Type":"application/json"}}},j=async(t,e)=>{let r=E();return void 0===r?await D(t,e):r},E=()=>{let t=g.A.get("fp");return void 0!==t&&"undefined"!==t?t:void 0},D=async(t,e)=>{let r={...(await (await l.Ay.load()).get()).components};try{let{fp:i}=await c.call(y.A,void 0,{fp:l.Ay.hashComponents(r)},{baseURL:t,...void 0===e?{}:{withCredentials:e}});return i&&g.A.set("fp",i,{domain:`.${window.location.host}`}),i}catch{return console.error("failed get fingerprint"),""}},U=t=>(e,r)=>{let{trackingEndpointFluentd:i,trackingEndpoint:n,trackingEndpointProtobuf:o}=t;return"protobuf"===e?o?`${o}/log_tracking_pb.firehose`:void 0:"fluentd"===e?i?"action_log"===r?`${i}/action_log_tracking.firehose`:`${i}/log_tracking.firehose`:void 0:n||void 0},P=(t,e)=>{let r=document.getElementById("track_contents")??document.createElement("div");r.hidden=!0,r.style.display="none",r.setAttribute("id","track_contents");let i=document.createElement("p"),n=document.createElement("p");i.setAttribute("class","kind"),n.setAttribute("class","params"),i.appendChild(document.createTextNode(t)),n.appendChild(document.createTextNode(JSON.stringify(e)));let o=document.createElement("div");o.appendChild(i),o.appendChild(n),r.appendChild(o),document.body.appendChild(r)},W=async t=>{let{trackingEndpoint:e,options:r,errorCallback:i}=t;return fetch(e,r).then(t=>{!1===t.ok&&i?.(Error(t.statusText))}).catch(t=>{i?.(Error(t))})},C="_vid_v2",O=async(t,e)=>{let r=await j(t,e),i=g.A.get(C);if(i)return i;let{visitId:n,expireAt:o}=await f.call(y.A,void 0,{fp:r},{baseURL:t,...void 0===e?{}:{withCredentials:e}});return R({visitId:n,expireAt:o}),n},R=t=>{let{visitId:e,expireAt:r}=t;g.A.set(C,e,{expires:new Date(Date.parse(r)),domain:`.${window.location.host}`})},B=(t,e)=>{let{fp:r,vid:i,talesTrackingId:n}=e;Array.isArray(t.records)?t.records.map(t=>{t.visit_id=i,t.finger_print=r,n&&(t.tales_tracking_id=n)}):(t.visit_id=i,t.finger_print=r,n&&(t.tales_tracking_id=n))},T=async(t,e,r,i)=>{let n,o,s="protobuf";if(""===r.apiBaseURL)return;if(r.env.development||r.env.rc)return void console.log(t,e);r.env.trackingTest&&P(t,e);try{n=await j(r.apiBaseURL,r.withCredentials),o=await O(r.apiBaseURL,r.withCredentials)}catch(t){console.error("failed to prepare tracking identifiers",t);return}B(e,{fp:n,vid:o,talesTrackingId:g.A.get("tales_tracking_id")}),r.env.trackingTest&&console.log(t,e);let a=U(r)(s,t);if(void 0===a)return void console.warn("skip tracking.");let p=I(s,t,e,i);if(void 0===p)return;let l=(0,u.operation)({retries:4,factor:2,minTimeout:1e3});await new Promise(t=>{l.attempt(()=>{let e=!1,r=r=>{e||(e=!0,l.retry(r)||(r&&console.error(r),t()))};Promise.resolve(W({trackingEndpoint:a,options:p,errorCallback:t=>r(t)})).then(()=>{e||t()},t=>{r(t instanceof Error?t:Error(String(t)))})})})},z=(0,p.createContext)(void 0),L=({children:t})=>{let{trackingSelectors:e,trackingActions:r}=(()=>{let[t,e]=(0,p.useState)({routeName:null,userId:null,userKey:null,tid:"",previousPage:"",currentPage:"",pvUUID:"",previousPvUUID:"",pvDetermined:!1,option:{env:{development:!1,beta:!1,rc:!1,production:!1,test:!1},apiBaseURL:"",trackingEndpointFluentd:"",trackingEndpoint:"",trackingEndpointProtobuf:""}}),r=t=>{e(e=>({...e,...t}))},i=t=>{e(e=>({...e,userId:t.userId??null,userKey:t.userKey??null,tid:t.tid??""}))},n=t=>{e(e=>({...e,previousPage:t.previousPage||e.previousPage,currentPage:t.currentPage||e.currentPage}))},o=t=>{e(e=>({...e,pvUUID:t.pvUUID||e.pvUUID,previousPvUUID:t.previousPvUUID||e.previousPvUUID}))},s=t=>{e(e=>({...e,option:{...e.option,env:{...e.option.env,...t.env}}}))},a=t=>{e(e=>({...e,option:{...e.option,...t.option}}))},u=(0,p.useMemo)(()=>t,[t]),l=(0,p.useMemo)(()=>{let{env:e}=t.option;return{...e,staging:e.beta||e.rc,trackingTest:e.development||e.beta}},[t.option]),h=(0,p.useMemo)(()=>{let{option:e}=t;return{...e,env:l}},[t.option]);return{trackingSelectors:{useTrackingState:()=>u,useTrackingEnv:()=>l,useTrackingOption:()=>h},trackingActions:{useSetTrackState:()=>r,useSetId:()=>i,useSetPage:()=>n,useSetPvUUID:()=>o,useSetTrackingEnv:()=>s,useSetTrackingOption:()=>a}}})();return p.createElement(z.Provider,{value:{trackingSelectors:e,trackingActions:r}},t)},N=()=>{let t=(0,p.useContext)(z);if(void 0===t)throw Error("useTracking must be used within a TrackingProvider");return t},H=["gs","cdr"],V=[...H,"puid"],$=t=>{let e="string"==typeof t?new URLSearchParams(t):t;return H.some(t=>e.has(t))},G=()=>{if("u">typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint8Array(16));t[6]=15&t[6]|64,t[8]=63&t[8]|128;let e="";for(let r=0;r<16;r++)(4===r||6===r||8===r||10===r)&&(e+="-"),e+=t[r].toString(16).padStart(2,"0");return e},Z=(t,e)=>(r,i)=>{$(window.location.search)||T("pv",{...t,referrer:S(t.referrer),platform:"web",contents:JSON.stringify({routeName:r}),visit_id:"",acted_at:new Date().toUTCString(),genre:i},e)},J=({currentUser:t,genre:e,isNotLoggedIn:r,option:i,pathname:n,searchParams:o})=>{let s=t?.id,a=t?.key??null,u=t?.tid??"",{trackingActions:l,trackingSelectors:h}=N(),{useSetTrackState:d,useSetId:c}=l,{useTrackingState:g,useTrackingOption:_}=h,v=_(),b=g(),w=d(),m=c(),[k,S]=(0,p.useState)(!1),[M,x]=(0,p.useState)(!1),A=(0,p.useRef)(null),I=(0,p.useRef)(null),j=$(
1o),E=((t,e)=>{let r=new URLSearchParams(e);for(let t of V)r.delete(t);return`${t}?${r.toString()}`})(n,o),U=(0,p.useRef)(E),P=(0,p.useCallback)(()=>{Z(F(b),v)(n,e),S(!0),w({pvDetermined:!0})},[b,n]);(0,p.useEffect)(()=>{if(!(k||M)&&(t?b.userId&&b.currentPage&&b.pvUUID:r&&b.currentPage&&b.pvUUID)){if(j||$(window.location.search)){A.current=E,I.current=null,x(!0),w({pvDetermined:!0});return}P()}},[k,M,t,r,b,n,E,j,P]),(0,p.useEffect)(()=>{if(!M)return;if(A.current!==E){x(!1),S(!0);return}if(j)return;null===I.current&&(I.current=Date.now()+2e3);let t=I.current,e=!1,r,i=()=>{if(!e){if($(window.location.search)){if(Date.now()>=t){x(!1),S(!0);return}r=setTimeout(i,50);return}w({currentPage:window.location.href}),P(),x(!1)}};return i(),()=>{e=!0,void 0!==r&&clearTimeout(r)}},[M,j,E,P,w]);let W=(0,p.useCallback)(async(t,r)=>{if(r.shallow)return;let i={...b,previousPage:b.currentPage||document.referrer,currentPage:window.location.origin+t,pvUUID:G(),previousPvUUID:b.pvUUID};w(i);try{let t=await D(b.option.apiBaseURL,b.option.withCredentials),{visitId:r,expireAt:o}=await f.call(y.A,void 0,{fp:t},{baseURL:b.option.apiBaseURL,...void 0===b.option.withCredentials?{}:{withCredentials:b.option.withCredentials}});R({visitId:r,expireAt:o}),Z(F(i),v)(n,e)}catch{console.error("failed to send pv")}},[b,w,n]);(0,p.useEffect)(()=>(m({userId:s,userKey:a,tid:u}),()=>{m({userId:null,userKey:null,tid:""})}),[s,a,u]),(0,p.useEffect)(()=>{let t=new URLSearchParams(window.location.search).get("puid");return t&&window.history.replaceState(null,"",window.location.pathname),w({routeName:n,currentPage:window.location.href,pvUUID:G(),previousPvUUID:t??"",previousPage:b.previousPage||document.referrer,option:i}),()=>{w({routeName:null,currentPage:"",pvUUID:"",previousPvUUID:""})}},[]),(0,p.useEffect)(()=>{w({routeName:n})},[n]),(0,p.useEffect)(()=>{U.current!==E&&(W(`${n}?${o.toString()}`,{shallow:!1}),U.current=E)},[n,o,E,W])},K=()=>{let{trackingSelectors:t}=N(),e=t.useTrackingState();return{currentPage:e.currentPage,previousPage:e.previousPage}},Y=()=>{var t;let e,r,i,{trackingSelectors:n}=N(),o=n.useTrackingState(),s=n.useTrackingOption(),a=n.useTrackingEnv(),u=a.staging||a.trackingTest,l=(0,p.useCallback)(t=>{let e=new URL(t);return o.pvUUID&&e.searchParams.set("puid",o.pvUUID),e.href},[o.pvUUID]);return{pvUUID:o.pvUUID,pvDetermined:o.pvDetermined,setPvUuidToURL:l,trackingOption:s,trackActionLogs:(0,p.useCallback)(((t,e,r=!1)=>{let i=M(t);return(t,n)=>{let o=[t].flat().map(t=>(r&&(null==t.event||null==t.target)&&console.warn("missing event or target param."),i(t)));e.env.trackingTest&&o.forEach(t=>{"kind"in t&&void 0!==t.kind?(console.warn(`skip tracking. kind: ${t.kind}`),console.warn(`[${t.kind}]: ${JSON.stringify(t,void 0," ")}`)):(console.warn(`skip tracking. target: ${t.target}`),console.warn(`[${t.target}]: ${JSON.stringify(t,void 0," ")}`))}),x(o,15).forEach(t=>{T("action_log",{records:t},e,n)})}})(F(o),s,u),[o]),trackActionLogsAsync:(0,p.useCallback)(((t,e,r=!1)=>{let i=M(t);return async t=>{let n=[t].flat().map(t=>(r&&(null==t.event||null==t.target)&&console.warn("missing event or target param."),i(t)));e.env.trackingTest&&n.forEach(t=>{"kind"in t&&void 0!==t.kind?(console.warn(`skip tracking. kind: ${t.kind}`),console.warn(`[${t.kind}]: ${JSON.stringify(t,void 0," ")}`)):(console.warn(`skip tracking. target: ${t.target}`),console.warn(`[${t.target}]: ${JSON.stringify(t,void 0," ")}`))}),await Promise.all(x(n,15).map(t=>T("action_log",{records:t},e)))}})(F(o),s,u),[o]),trackActionLogsOnExit:(0,p.useCallback)((t=F(o),e=M(t),t=>x([t].flat().map(e),15).map(t=>((t,e,r)=>{let i="protobuf";if(""===r.apiBaseURL)return!1;if(r.env.development||r.env.rc)return console.log(t,e),!0;r.env.trackingTest&&P(t,e);let n=E(),o=g.A.get(C);if(void 0===n||void 0===o)return!1;B(e,{fp:n,vid:o,talesTrackingId:g.A.get("tales_tracking_id")}),r.env.trackingTest&&console.log(t,e);let s=U(r)(i,t);if(void 0===s)return console.warn("skip tracking."),!1;let a=I(i,t,e,{keepalive:!0});return void 0!==a&&(W({trackingEndpoint:s,options:a}),!0)})("action_log",{records:t},s)).every(Boolean)),[o]),trackReadHistory:(0,p.useCallback)((r=F(o),t=>{let{test:e}=s.env;T("read_history",{...r,url:e?"":r.url,referrer:e?"":r.referrer,creator_user_id:t.creatorUserId,content_id:t.contentId,content_type:t.contentType,content_sub_type:t.contentSubType,custom_domain_id:t.customDomainId,pro_user_id:t.proUserId,contents:JSON.stringify({...t.contents}),acted_at:new Date().toUTCString(),route_name:r.route_name},s)}),[o]),trackReadingRate:(0,p.useCallback)((i=F(o),t=>{T("reading_rate",{...i,creator_user_id:t.creatorUserId,note_id:t.noteId,note_type:t.noteType,read_rate:t.readRate,read_time:t.readTime,scroll_amount:t.
1scrollAmount,custom_domain_id:t.customDomainId??null,pro_user_id:t.proUserId??null,contents:JSON.stringify(t.contents),acted_at:new Date().toUTCString()},s)}),[o]),warmTrackingIdentifiers:(0,p.useCallback)(()=>{s.env.development||s.env.rc||O(s.apiBaseURL,s.withCredentials).catch(()=>{})},[s])}},q=class{#t;#e;#r;#i;#n;#o;constructor(t,e,r){this.#t=new IntersectionObserver(this.#s.bind(this),t),this.#e=new Map,this.#r=[],this.#i=null,this.#n=e,this.#o=r}#s(t){t.forEach(t=>{if(!1===t.isIntersecting)return;let e=this.#e.get(t.target);void 0!==e&&(this.#r.push(e),this.#a(t.target))}),null!==this.#i&&clearTimeout(this.#i),this.#i=setTimeout(()=>{this.#p()},1e3)}#p(){if(this.#r.length>0){let t=this.#r.splice(0,this.#r.length);this.#n(t,{keepalive:!0})}}flush(){0!==this.#r.length&&(this.#o?.([...this.#r])??!1)!==!1&&(null!==this.#i&&(clearTimeout(this.#i),this.#i=null),this.#r=[])}#a(t){!1!==this.#e.has(t)&&this.#t?.unobserve(t)}addElement(t,e){!0!==this.#e.has(t)&&(this.#e.set(t,e),this.#t?.observe(t))}removeElement(t){!1!==this.#e.has(t)&&(this.#e.delete(t),this.#t?.unobserve(t))}destroy(){null!==this.#i&&(clearTimeout(this.#i),this.#i=null),this.#p(),this.#e.clear(),this.#t?.disconnect(),this.#t=null}},X=(0,p.createContext)(void 0),Q=({children:t,trackActionLogs:e,trackActionLogsOnExit:r})=>{let{isInitialized:i,addElement:n,removeElement:o}=((t,e)=>{let r=(0,p.useRef)(null),[i,n]=(0,p.useState)(!1),o=(0,p.useRef)(t),s=(0,p.useRef)(e);(0,p.useEffect)(()=>{o.current=t,s.current=e},[t,e]);let a=void 0!==t;return(0,p.useEffect)(()=>{if(!1===a)return;r.current=new q({threshold:0},(t,e)=>{o.current?.(t,e)},t=>s.current?.(t)??!1),n(!0);let t=()=>{"hidden"===document.visibilityState&&r.current?.flush()},e=()=>{r.current?.flush()};return"u">typeof document&&(document.addEventListener("visibilitychange",t),window.addEventListener("pagehide",e)),()=>{"u">typeof document&&(document.removeEventListener("visibilitychange",t),window.removeEventListener("pagehide",e)),r.current?.destroy(),r.current=null,n(!1)}},[a]),{isInitialized:i,addElement:(0,p.useCallback)((t,e)=>{r.current?.addElement(t,e)},[]),removeElement:(0,p.useCallback)(t=>{r.current?.removeElement(t)},[])}})(e,r);return p.createElement(X.Provider,{value:{isInitialized:i,addElement:n,removeElement:o}},t)},tt=()=>{let t=(0,p.useContext)(X);if(void 0===t)throw Error("useImpTrackContext must be used within a ImpTrackProvider");return t},te=/iPhone note.*\/(\d+)\.(\d+)\.?(\d+)?/,tr=/note-android.*\/(\d+)\.(\d+)\.?(\d+)?/,ti=/iPhone tales(?:-(?:rc|dev))?\/\d+\.\d+/,tn=/tales-android(?:-(?:rc|dev))?\/\d+\.\d+/,to=(0,p.createContext)({webviewState:{device:"",accessToken:"",guestAccessToken:"",deviceId:"",deviceInfo:""},isWebview:!1,isBrowserView:!0,isIosWebview:!1,isAndroidWebview:!1,isIpadWebview:!1,urlScheme:"note",isGuestUser:!1,isNativeReady:!1,detectScreenName:void 0}),ts=(0,p.createContext)(()=>{}),ta=(0,p.createContext)(null),tp=function(t,{signal:e,edges:r=["leading","trailing"]}={}){let i=null,n=function(t,{signal:e,edges:r}={}){let i,n=null,o=null!=r&&r.includes("leading"),s=null==r||r.includes("trailing"),a=()=>{null!==n&&(t.apply(i,n),i=void 0,n=null)},p=null,u=()=>{null!=p&&clearTimeout(p),p=setTimeout(()=>{p=null,s&&a(),l()},50)},l=()=>{null!==p&&(clearTimeout(p),p=null),i=void 0,n=null},h=function(...t){if(e?.aborted)return;i=this,n=t;let r=null==p;u(),o&&r&&a()};return h.schedule=u,h.cancel=l,h.flush=()=>{a()},e?.addEventListener("abort",l,{once:!0}),h}(t,{signal:e,edges:r}),o=function(...t){null==i?i=Date.now():Date.now()-i>=50&&(i=Date.now(),n.cancel()),n(...t)};return o.cancel=n.cancel,o.flush=n.flush,o}((t,e,r,i)=>{let{scrollTop:n,scrollHeight:o,clientHeight:s}=t instanceof HTMLElement?{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight}:{scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,clientHeight:document.documentElement.clientHeight};if(o!==r.current){r.current=o;return}if(n<=16){i("up"),e.current=n;return}let a=n-e.current,p=n+s>=o-16;if(2>Math.abs(a)){e.current=n;return}a>0?i("down"):!p&&Math.abs(a)>24&&i("up"),e.current=n}),tu=t=>{let e=(0,p.useRef)(0),r=(0,p.useRef)(0),[i,n]=(0,p.useState)("up");return(0,p.useEffect)(()=>{let i=t?.current??window;if(!i)return;let o=()=>{tp(i,e,r,n)};return i.addEventListener("scroll",o,{passive:!0}),()=>{i.removeEventListener("scroll",o)}},[t]),{direction:i}},tl=()=>{let t=(0,p.useRef)(null),[e,r]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{let e=t.current;if(null===e||typeof IntersectionObserver>"u")return;let i=new IntersectionObserver(([t])=>{t.isIntersecting&&r(!0)},{root:null,rootMargin:"0px",threshold:0});return i.observe(e),()=>i.disconnect()},[]),{lazyContentRef:t,isFetching:e}},th="height",td="scroll_top",tc="click",tf="height",tg=[th,td,tc].map(t=>`${t}::`),ty=(t,e)=>{if("string"!=typeof t)return null;let r=t.split("::");if(2!==r.length)return null;let[i,n]=r;return i===e&&n?n:null},t_=t=>{let{isWebview:e}=(()=>{var t;let e,r,i=(e=t=window.navigator.userAgent,te.test(e)||tr.test(t)||(r=window.navigator.userAgent,t
1i.test(r)||tn.test(r))),{webviewState:n,isWebview:o,isIosWebview:s,isAndroidWebview:a,isIpadWebview:u,urlScheme:l,isGuestUser:h,isNativeReady:d,detectScreenName:c}=(()=>{let t=(0,p.useContext)(to);if(null===t)throw Error("useWebview must be used within a WebviewProvider");return t})(),f=(()=>{let t=(0,p.useContext)(ts);if(null===t)throw Error("useSetWebview must be used within a WebviewProvider");return t})(),g=(0,p.useContext)(ta),y=i||o;(0,p.useEffect)(()=>{if(!y)return;if(!c)return void console.error("detectScreenName is not provided in WebviewContext");let t=g?.current??{users:0,lastReadyPath:null,handshakeDone:!1};t.users+=1,window.initWebview=f;let{pathname:e}=window.location;if(t.lastReadyPath!==e||1===t.users&&!t.handshakeDone){t.lastReadyPath=e;let r=c(e);void 0===r&&console.warn("Webview screen name could not be detected for path:",e),window.location.href=r?`${l}://v2/webview/ready?screen=${r}`:`${l}://v2/webview/ready`}return()=>{--t.users,0===t.users&&(window.initWebview=void 0)}},[y,f,l,c,g]),(0,p.useEffect)(()=>{s?document.documentElement.classList.add("ios-webview"):document.documentElement.classList.remove("ios-webview"),a?document.documentElement.classList.add("android-webview"):document.documentElement.classList.remove("android-webview")},[s,a]);let _=(0,p.useCallback)(()=>{l?window.location.href=`${l}://v2/reload-web`:console.warn("urlScheme is not defined. Cannot reload webview.")},[l]);return{isWebview:y,waitingForInit:y&&!d,webviewState:n,isBrowserView:!y,isIosWebview:s,isAndroidWebview:a,isIpadWebview:u,urlScheme:l,isGuestUser:h,reloadWebview:_}})(),{isPreview:r,onIframeClick:i}=t,n=(0,p.useRef)(i);n.current=i,(0,p.useEffect)(()=>{let t=t=>{var i,o,s;let a,p,u=(t=>{let e;if("string"!=typeof t.data||(e=t.data,!tg.some(t=>e.startsWith(t))))return null;let r=t.source?Array.from(document.querySelectorAll("iframe")).find(e=>e.contentWindow===t.source)??null:null;return r&&((t,e)=>{let r=e.getAttribute("src");if(!r)return!1;try{return new URL(r,window.location.href).origin===t.origin}catch{return!1}})(t,r)?r:null})(t);u&&(null!==(a=(t=>{if("string"!=typeof t)return null;let e=t.split("::");if(3!==e.length)return null;let[r,i,n]=e;return r!==th||!i||!n||!1===/^\d+$/.test(n)||0>=Number(n)?null:n})(t.data))&&((t,e)=>{let r=t.closest(".fude-iframe-oembed-widget > .fude-iframe-oembed-widget__wrap");if(r){r.style.height&&(r.style.height=`${e}px`);return}if("u">typeof navigator&&/iPhone/i.test(navigator.userAgent)){let r=t.parentElement;r instanceof HTMLElement&&(r.style.height=`${e}px`),t.removeAttribute(tf),t.style.height=`${e}px`;return}t.setAttribute(tf,e)})(u,a),i=t.data,null!==ty(i,td)&&window.scrollTo({top:u.getBoundingClientRect().top+window.pageYOffset-64*!e-16,behavior:"smooth"}),r||(o=t.data,s=n.current,null!==(p=ty(o,tc))&&s(p)))};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[e,r])},tv=(t,e)=>`${t}${t.includes("?")?"&":"?"}theme=${e}`,tb=t=>t.includes("/embed/notes/"),tw=t=>{(0,p.useEffect)(()=>{let t;((t,e=document)=>{for(let r of e.querySelectorAll("iframe[data-src]")){let e=r.dataset.src;e&&tb(e)&&(r.src=tv(e,t),r.style.visibility="visible")}})((t=document.documentElement).classList.contains("theme-dark")?"dark":t.classList.contains("theme-auto")?"auto":"light")},[t])}}}]);
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.