tsviewer 0.1.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +9 -0
  2. package/dist/tsviewer.css +1 -0
  3. package/dist/tsviewer.es.js +21456 -0
  4. package/dist/tsviewer.umd.js +26 -33259
  5. package/package.json +35 -32
  6. package/babel.config.js +0 -5
  7. package/dist/demo.html +0 -1
  8. package/dist/tsviewer.common.js +0 -33247
  9. package/dist/tsviewer.common.js.map +0 -1
  10. package/dist/tsviewer.umd.js.map +0 -1
  11. package/dist/tsviewer.umd.min.js +0 -4
  12. package/dist/tsviewer.umd.min.js.map +0 -1
  13. package/jsconfig.json +0 -19
  14. package/public/favicon.ico +0 -0
  15. package/public/index.html +0 -17
  16. package/src/App.vue +0 -41
  17. package/src/assets/icons/blackfynn-amplitude-zoom.js +0 -11
  18. package/src/assets/icons/blackfynn-timescale.js +0 -11
  19. package/src/assets/icons/icon-controller-pause.js +0 -11
  20. package/src/assets/icons/icon-controller-play.js +0 -11
  21. package/src/assets/icons/icon-next-page.js +0 -11
  22. package/src/assets/icons/icon-previous-page.js +0 -11
  23. package/src/assets/icons/icon-stopwatch.js +0 -11
  24. package/src/assets/icons/index.js +0 -7
  25. package/src/components/TSPlotCanvas.vue +0 -1868
  26. package/src/components/TSScrubber.vue +0 -420
  27. package/src/components/TSViewer.vue +0 -595
  28. package/src/components/TSViewerCanvas.vue +0 -793
  29. package/src/components/TSViewerToolbar.vue +0 -356
  30. package/src/components/index.js +0 -13
  31. package/src/main.js +0 -23
  32. package/src/mixins/request/index.js +0 -100
  33. package/src/mixins/ts-annotation/index.js +0 -202
  34. package/src/mixins/viewer-active-tool/index.js +0 -36
  35. package/src/store/index.js +0 -184
  36. package/src/utils/constants.js +0 -15
  37. package/vue.config.js +0 -12
@@ -1,4 +0,0 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["tsviewer"]=e():t["tsviewer"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var __webpack_modules__={4537:function(t){"use strict";function e(t,e){var n=new Array(arguments.length-1),r=0,i=2,o=!0;while(i<arguments.length)n[r++]=arguments[i++];return new Promise((function(i,s){n[r]=function(t){if(o)if(o=!1,t)s(t);else{var e=new Array(arguments.length-1),n=0;while(n<e.length)e[n++]=arguments[n];i.apply(null,e)}};try{t.apply(e||null,n)}catch(a){o&&(o=!1,s(a))}}))}t.exports=e},7419:function(t,e){"use strict";var n=e;n.length=function(t){var e=t.length;if(!e)return 0;var n=0;while(--e%4>1&&"="===t.charAt(e))++n;return Math.ceil(3*t.length)/4-n};for(var r=new Array(64),i=new Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(t,e,n){var i,o=null,s=[],a=0,u=0;while(e<n){var c=t[e++];switch(u){case 0:s[a++]=r[c>>2],i=(3&c)<<4,u=1;break;case 1:s[a++]=r[i|c>>4],i=(15&c)<<2,u=2;break;case 2:s[a++]=r[i|c>>6],s[a++]=r[63&c],u=0;break}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=r[i],s[a++]=61,1===u&&(s[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";n.decode=function(t,e,n){for(var r,o=n,a=0,u=0;u<t.length;){var c=t.charCodeAt(u++);if(61===c&&a>1)break;if(void 0===(c=i[c]))throw Error(s);switch(a){case 0:r=c,a=1;break;case 1:e[n++]=r<<2|(48&c)>>4,r=c,a=2;break;case 2:e[n++]=(15&r)<<4|(60&c)>>2,r=c,a=3;break;case 3:e[n++]=(3&r)<<6|c,a=0;break}}if(1===a)throw Error(s);return n-o},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},5124:function(t){"use strict";function e(t,n){"string"===typeof t&&(n=t,t=void 0);var r=[];function i(t){if("string"!==typeof t){var n=o();if(e.verbose&&console.log("codegen: "+n),n="return "+n,t){var s=Object.keys(t),a=new Array(s.length+1),u=new Array(s.length),c=0;while(c<s.length)a[c]=s[c],u[c]=t[s[c++]];return a[c]=n,Function.apply(null,a).apply(null,u)}return Function(n)()}var l=new Array(arguments.length-1),f=0;while(f<l.length)l[f]=arguments[++f];if(f=0,t=t.replace(/%([%dfijs])/g,(function(t,e){var n=l[f++];switch(e){case"d":case"f":return String(Number(n));case"i":return String(Math.floor(n));case"j":return JSON.stringify(n);case"s":return String(n)}return"%"})),f!==l.length)throw Error("parameter count mismatch");return r.push(t),i}function o(e){return"function "+(e||n||"")+"("+(t&&t.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}return i.toString=o,i}t.exports=e,e.verbose=!1},9211:function(t){"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],r=0;r<n.length;)n[r].fn===e?n.splice(r,1):++r;return this},e.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<e.length;)e[r].fn.apply(e[r++].ctx,n)}return this}},9054:function(t,e,n){"use strict";t.exports=s;var r=n(4537),i=n(7199),o=i("fs");function s(t,e,n){return"function"===typeof e?(n=e,e={}):e||(e={}),n?!e.xhr&&o&&o.readFile?o.readFile(t,(function(r,i){return r&&"undefined"!==typeof XMLHttpRequest?s.xhr(t,e,n):r?n(r):n(null,e.binary?i:i.toString("utf8"))})):s.xhr(t,e,n):r(s,this,t,e)}s.xhr=function(t,e,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState){if(0!==r.status&&200!==r.status)return n(Error("status "+r.status));if(e.binary){var t=r.response;if(!t){t=[];for(var i=0;i<r.responseText.length;++i)t.push(255&r.responseText.charCodeAt(i))}return n(null,"undefined"!==typeof Uint8Array?new Uint8Array(t):t)}return n(null,r.responseText)}},e.binary&&("overrideMimeType"in r&&r.overrideMimeType("text/plain; charset=x-user-defined"),r.responseType="arraybuffer"),r.open("GET",t),r.send()}},945:function(t){"use strict";function e(t){return"undefined"!==typeof Float32Array?function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),r=128===n[3];function i(t,r,i){e[0]=t,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function o(t,r,i){e[0]=t,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}function s(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],e[0]}function a(t,r){return n[3]=t[r],n[2]=t[r+1],n[1]=t[r+2],n[0]=t[r+3],e[0]}t.writeFloatLE=r?i:o,t.writeFloatBE=r?o:i,t.readFloatLE=r?s:a,t.readFloatBE=r?a:s}():function(){function e(t,e,n,r){var i=e<0?1:0;if(i&&(e=-e),0===e)t(1/e>0?0:2147483648,n,r);else if(isNaN(e))t(2143289344,n,r);else if(e>34028234663852886e22)t((i<<31|2139095040)>>>0,n,r);else if(e<11754943508222875e-54)t((i<<31|Math.round(e/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,n,r)}}function s(t,e,n){var r=t(e,n),i=2*(r>>31)+1,o=r>>>23&255,s=8388607&r;return 255===o?s?NaN:i*(1/0):0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,r),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!==typeof Float64Array?function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),r=128===n[7];function i(t,r,i){e[0]=t,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(t,r,i){e[0]=t,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function s(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],n[4]=t[r+4],n[5]=t[r+5],n[6]=t[r+6],n[7]=t[r+7],e[0]}function a(t,r){return n[7]=t[r],n[6]=t[r+1],n[5]=t[r+2],n[4]=t[r+3],n[3]=t[r+4],n[2]=t[r+5],n[1]=t[r+6],n[0]=t[r+7],e[0]}t.writeDoubleLE=r?i:o,t.writeDoubleBE=r?o:i,t.readDoubleLE=r?s:a,t.readDoubleBE=r?a:s}():function(){function e(t,e,n,r,i,o){var s=r<0?1:0;if(s&&(r=-r),0===r)t(0,i,o+e),t(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))t(0,i,o+e),t(2146959360,i,o+n);else if(r>17976931348623157e292)t(0,i,o+e),t((s<<31|2146435072)>>>0,i,o+n);else{var a;if(r<22250738585072014e-324)a=r/5e-324,t(a>>>0,i,o+e),t((s<<31|a/4294967296)>>>0,i,o+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),a=r*Math.pow(2,-u),t(4503599627370496*a>>>0,i,o+e),t((s<<31|u+1023<<20|1048576*a&1048575)>>>0,i,o+n)}}}function s(t,e,n,r,i){var o=t(r,i+e),s=t(r,i+n),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+o;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,r,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function r(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function i(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function o(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},7199:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},8626:function(t,e){"use strict";var n=e,r=n.isAbsolute=function(t){return/^(?:\/|\w+:)/.test(t)},i=n.normalize=function(t){t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var e=t.split("/"),n=r(t),i="";n&&(i=e.shift()+"/");for(var o=0;o<e.length;)".."===e[o]?o>0&&".."!==e[o-1]?e.splice(--o,2):n?e.splice(o,1):++o:"."===e[o]?e.splice(o,1):++o;return i+e.join("/")};n.resolve=function(t,e,n){return n||(e=i(e)),r(e)?e:(n||(t=i(t)),(t=t.replace(/(?:\/|^)[^/]+$/,"")).length?i(t+"/"+e):e)}},6662:function(t){"use strict";function e(t,e,n){var r=n||8192,i=r>>>1,o=null,s=r;return function(n){if(n<1||n>i)return t(n);s+n>r&&(o=t(r),s=0);var a=e.call(o,s,s+=n);return 7&s&&(s=1+(7|s)),a}}t.exports=e},4997:function(t,e){"use strict";var n=e;n.length=function(t){for(var e=0,n=0,r=0;r<t.length;++r)n=t.charCodeAt(r),n<128?e+=1:n<2048?e+=2:55296===(64512&n)&&56320===(64512&t.charCodeAt(r+1))?(++r,e+=4):e+=3;return e},n.read=function(t,e,n){var r=n-e;if(r<1)return"";var i,o=null,s=[],a=0;while(e<n)i=t[e++],i<128?s[a++]=i:i>191&&i<224?s[a++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,s[a++]=55296+(i>>10),s[a++]=56320+(1023&i)):s[a++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))},n.write=function(t,e,n){for(var r,i,o=n,s=0;s<t.length;++s)r=t.charCodeAt(s),r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):55296===(64512&r)&&56320===(64512&(i=t.charCodeAt(s+1)))?(r=65536+((1023&r)<<10)+(1023&i),++s,e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128);return n-o}},7679:function(t,e){var n,r,i;(function(o,s){r=[],n=s,i="function"===typeof n?n.apply(e,r):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,a=o.exec(p.stack)||s.exec(p.stack),u=a&&a[1]||!1,c=a&&a[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<f.length;h++){if("interactive"===f[h].readyState)return f[h];if(f[h].src===u)return f[h];if(u===l&&f[h].innerHTML&&f[h].innerHTML.trim()===i)return f[h]}return null}}return t}))},9662:function(t,e,n){var r=n(7854),i=n(614),o=n(6330),s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(7854),i=n(4411),o=n(6330),s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(7854),i=n(614),o=r.String,s=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),i=n(30),o=n(3070).f,s=r("unscopables"),a=Array.prototype;void 0==a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7854),i=n(7976),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(7854),i=n(111),o=r.String,s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not an object")}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},260:function(t,e,n){"use strict";var r,i,o,s=n(4019),a=n(9781),u=n(7854),c=n(614),l=n(111),f=n(2597),h=n(648),p=n(6330),d=n(8880),v=n(8052),y=n(3070).f,g=n(7976),m=n(9518),b=n(7674),w=n(5112),_=n(9711),x=u.Int8Array,S=x&&x.prototype,A=u.Uint8ClampedArray,T=A&&A.prototype,k=x&&m(x),O=S&&m(S),E=Object.prototype,C=u.TypeError,P=w("toStringTag"),R=_("TYPED_ARRAY_TAG"),N=_("TYPED_ARRAY_CONSTRUCTOR"),I=s&&!!b&&"Opera"!==h(u.opera),j=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},D=function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(M,e)||f(L,e)},F=function(t){if(!l(t))return!1;var e=h(t);return f(M,e)||f(L,e)},$=function(t){if(F(t))return t;throw C("Target is not a typed array")},q=function(t){if(c(t)&&(!b||g(k,t)))return t;throw C(p(t)+" is not a typed array constructor")},B=function(t,e,n,r){if(a){if(n)for(var i in M){var o=u[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(s){try{o.prototype[t]=e}catch(c){}}}O[t]&&!n||v(O,t,n?e:I&&S[t]||e,r)}},W=function(t,e,n){var r,i;if(a){if(b){if(n)for(r in M)if(i=u[r],i&&f(i,t))try{delete i[t]}catch(o){}if(k[t]&&!n)return;try{return v(k,t,n?e:I&&k[t]||e)}catch(o){}}for(r in M)i=u[r],!i||i[t]&&!n||v(i,t,e)}};for(r in M)i=u[r],o=i&&i.prototype,o?d(o,N,i):I=!1;for(r in L)i=u[r],o=i&&i.prototype,o&&d(o,N,i);if((!I||!c(k)||k===Function.prototype)&&(k=function(){throw C("Incorrect invocation")},I))for(r in M)u[r]&&b(u[r],k);if((!I||!O||O===E)&&(O=k.prototype,I))for(r in M)u[r]&&b(u[r].prototype,O);if(I&&m(T)!==O&&b(T,O),a&&!f(O,P))for(r in j=!0,y(O,P,{get:function(){return l(this)?this[R]:void 0}}),M)u[r]&&d(u[r],R,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_CONSTRUCTOR:N,TYPED_ARRAY_TAG:j&&R,aTypedArray:$,aTypedArrayConstructor:q,exportTypedArrayMethod:B,exportTypedArrayStaticMethod:W,isView:D,isTypedArray:F,TypedArray:k,TypedArrayPrototype:O}},3331:function(t,e,n){"use strict";var r=n(7854),i=n(1702),o=n(9781),s=n(4019),a=n(6530),u=n(8880),c=n(9190),l=n(7293),f=n(5787),h=n(9303),p=n(7466),d=n(7067),v=n(1179),y=n(9518),g=n(7674),m=n(8006).f,b=n(3070).f,w=n(1285),_=n(1589),x=n(8003),S=n(9909),A=a.PROPER,T=a.CONFIGURABLE,k=S.get,O=S.set,E="ArrayBuffer",C="DataView",P="prototype",R="Wrong length",N="Wrong index",I=r[E],j=I,M=j&&j[P],L=r[C],D=L&&L[P],F=Object.prototype,$=r.Array,q=r.RangeError,B=i(w),W=i([].reverse),U=v.pack,V=v.unpack,z=function(t){return[255&t]},H=function(t){return[255&t,t>>8&255]},Z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return U(t,23,4)},X=function(t){return U(t,52,8)},Y=function(t,e){b(t[P],e,{get:function(){return k(this)[e]}})},K=function(t,e,n,r){var i=d(n),o=k(t);if(i+e>o.byteLength)throw q(N);var s=k(o.buffer).bytes,a=i+o.byteOffset,u=_(s,a,a+e);return r?u:W(u)},Q=function(t,e,n,r,i,o){var s=d(n),a=k(t);if(s+e>a.byteLength)throw q(N);for(var u=k(a.buffer).bytes,c=s+a.byteOffset,l=r(+i),f=0;f<e;f++)u[c+f]=l[o?f:e-f-1]};if(s){var tt=A&&I.name!==E;if(l((function(){I(1)}))&&l((function(){new I(-1)}))&&!l((function(){return new I,new I(1.5),new I(NaN),tt&&!T})))tt&&T&&u(I,"name",E);else{j=function(t){return f(this,M),new I(d(t))},j[P]=M;for(var et,nt=m(I),rt=0;nt.length>rt;)(et=nt[rt++])in j||u(j,et,I[et]);M.constructor=j}g&&y(D)!==F&&g(D,F);var it=new L(new j(2)),ot=i(D.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||c(D,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else j=function(t){f(this,M);var e=d(t);O(this,{bytes:B($(e),0),byteLength:e}),o||(this.byteLength=e)},M=j[P],L=function(t,e,n){f(this,D),f(t,M);var r=k(t).byteLength,i=h(e);if(i<0||i>r)throw q("Wrong offset");if(n=void 0===n?r-i:p(n),i+n>r)throw q(R);O(this,{buffer:t,byteLength:n,byteOffset:i}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=i)},D=L[P],o&&(Y(j,"byteLength"),Y(L,"buffer"),Y(L,"byteLength"),Y(L,"byteOffset")),c(D,{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return G(K(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return G(K(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return V(K(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return V(K(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Q(this,1,t,z,e)},setUint8:function(t,e){Q(this,1,t,z,e)},setInt16:function(t,e){Q(this,2,t,H,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Q(this,2,t,H,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Q(this,4,t,Z,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Q(this,4,t,Z,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Q(this,4,t,J,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Q(this,8,t,X,e,arguments.length>2?arguments[2]:void 0)}});x(j,E),x(L,C),t.exports={ArrayBuffer:j,DataView:L}},1048:function(t,e,n){"use strict";var r=n(7908),i=n(1400),o=n(6244),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n),u=i(t,a),c=i(e,a),l=arguments.length>2?arguments[2]:void 0,f=s((void 0===l?a:i(l,a))-c,a-u),h=1;c<u&&u<c+f&&(h=-1,c+=f-1,u+=f-1);while(f-- >0)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},1285:function(t,e,n){"use strict";var r=n(7908),i=n(1400),o=n(6244);t.exports=function(t){var e=r(this),n=o(e),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);while(c>a)e[a++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(2133),o=i("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},7745:function(t,e,n){var r=n(6244);t.exports=function(t,e){var n=0,i=r(e),o=new t(i);while(i>n)o[n]=e[n++];return o}},8457:function(t,e,n){"use strict";var r=n(7854),i=n(9974),o=n(6916),s=n(7908),a=n(3411),u=n(7659),c=n(4411),l=n(6244),f=n(6135),h=n(8554),p=n(1246),d=r.Array;t.exports=function(t){var e=s(t),n=c(this),r=arguments.length,v=r>1?arguments[1]:void 0,y=void 0!==v;y&&(v=i(v,r>2?arguments[2]:void 0));var g,m,b,w,_,x,S=p(e),A=0;if(!S||this==d&&u(S))for(g=l(e),m=n?new this(g):d(g);g>A;A++)x=y?v(e[A],A):e[A],f(m,A,x);else for(w=h(e,S),_=w.next,m=n?new this:[];!(b=o(_,w)).done;A++)x=y?a(w,v,[b.value,A],!0):b.value,f(m,A,x);return m.length=A,m}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),s=function(t){return function(e,n,s){var a,u=r(e),c=o(u),l=i(s,c);if(t&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,n){var r=n(9974),i=n(1702),o=n(8361),s=n(7908),a=n(6244),u=n(5417),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,p=5==t||f;return function(d,v,y,g){for(var m,b,w=s(d),_=o(w),x=r(v,y),S=a(_),A=0,T=g||u,k=e?T(d,S):n||h?T(d,0):void 0;S>A;A++)if((p||A in _)&&(m=_[A],b=x(m,A,w),t))if(e)k[A]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return A;case 2:c(k,m)}else switch(t){case 4:return!1;case 7:c(k,m)}return f?-1:i||l?l:k}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},6583:function(t,e,n){"use strict";var r=n(2104),i=n(5656),o=n(9303),s=n(6244),a=n(2133),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=s(e),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},1194:function(t,e,n){var r=n(7293),i=n(5112),o=n(7392),s=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2133:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},3671:function(t,e,n){var r=n(7854),i=n(9662),o=n(7908),s=n(8361),a=n(6244),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=o(e),f=s(l),h=a(l),p=t?h-1:0,d=t?-1:1;if(r<2)while(1){if(p in f){c=f[p],p+=d;break}if(p+=d,t?p<0:h<=p)throw u("Reduce of empty array with no initial value")}for(;t?p>=0:h>p;p+=d)p in f&&(c=n(c,f[p],p,l));return c}};t.exports={left:c(!1),right:c(!0)}},1589:function(t,e,n){var r=n(7854),i=n(1400),o=n(6244),s=n(6135),a=r.Array,u=Math.max;t.exports=function(t,e,n){for(var r=o(t),c=i(e,r),l=i(void 0===n?r:n,r),f=a(u(l-c,0)),h=0;c<l;c++,h++)s(f,h,t[c]);return f.length=h,f}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(1589),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?s(t,e):a(t,o(r(t,0,u),e),o(r(t,u),e),e)},s=function(t,e){var n,r,i=t.length,o=1;while(o<i){r=o,n=t[o];while(r&&e(t[r-1],n)>0)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},a=function(t,e,n,r){var i=e.length,o=n.length,s=0,a=0;while(s<i||a<o)t[s+a]=s<i&&a<o?r(e[s],n[a])<=0?e[s++]:n[a++]:s<i?e[s++]:n[a++];return t};t.exports=o},7475:function(t,e,n){var r=n(7854),i=n(3157),o=n(4411),s=n(111),a=n(5112),u=a("species"),c=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,o(e)&&(e===c||i(e.prototype))?e=void 0:s(e)&&(e=e[u],null===e&&(e=void 0))),void 0===e?c:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(s){i(t,"throw",s)}}},7072:function(t,e,n){var r=n(5112),i=r("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(7854),i=n(1694),o=n(614),s=n(4326),a=n(5112),u=a("toStringTag"),c=r.Object,l="Arguments"==s(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(n){}};t.exports=i?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=f(e=c(t),u))?n:l?s(e):"Object"==(r=s(e))&&o(e.callee)?"Arguments":r}},7741:function(t,e,n){var r=n(1702),i=Error,o=r("".replace),s=function(t){return String(i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,a,"");return t}},5631:function(t,e,n){"use strict";var r=n(3070).f,i=n(30),o=n(9190),s=n(9974),a=n(5787),u=n(612),c=n(654),l=n(6340),f=n(9781),h=n(2423).fastKey,p=n(9909),d=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){a(t,p),d(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),void 0!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),p=l.prototype,y=v(e),g=function(t,e,n){var r,i,o=y(t),s=m(t,e);return s?s.value=n:(o.last=s={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),f?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},m=function(t,e){var n,r=y(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(p,{clear:function(){var t=this,e=y(t),n=e.index,r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:t.size=0},delete:function(t){var e=this,n=y(e),r=m(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:e.size--}return!!r},forEach:function(t){var e,n=y(this),r=s(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!m(this,t)}}),o(p,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(p,"size",{get:function(){return y(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);c(t,e,(function(t,e){d(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},7710:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(1702),s=n(4705),a=n(8052),u=n(2423),c=n(612),l=n(5787),f=n(614),h=n(111),p=n(7293),d=n(7072),v=n(8003),y=n(9587);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),b=g?"set":"add",w=i[t],_=w&&w.prototype,x=w,S={},A=function(t){var e=o(_[t]);a(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return m&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},T=s(t,!f(w)||!(m||_.forEach&&!p((function(){(new w).entries().next()}))));if(T)x=n.getConstructor(e,t,g,b),u.enable();else if(s(t,!0)){var k=new x,O=k[b](m?{}:-0,1)!=k,E=p((function(){k.has(1)})),C=d((function(t){new w(t)})),P=!m&&p((function(){var t=new w,e=5;while(e--)t[b](e,e);return!t.has(-0)}));C||(x=e((function(t,e){l(t,_);var n=y(new w,t,x);return void 0!=e&&c(e,n[b],{that:n,AS_ENTRIES:g}),n})),x.prototype=_,_.constructor=x),(E||P)&&(A("delete"),A("has"),g&&A("get")),(P||O)&&A(b),m&&_.clear&&delete _.clear}return S[t]=x,r({global:!0,constructor:!0,forced:x!=w},S),v(x,t),m||n.setStrong(x,t,g),x}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=i(e),u=s.f,c=o.f,l=0;l<a.length;l++){var f=a[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),s=n(8003),a=n(7497),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),s(t,l,!1,!0),a[l]=u,t}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},8052:function(t,e,n){var r=n(614),i=n(8880),o=n(6339),s=n(3072);t.exports=function(t,e,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;return r(n)&&o(n,c,a),a.global?u?t[e]=n:s(e,n):(a.unsafe?t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)),t}},9190:function(t,e,n){var r=n(8052);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},3072:function(t,e,n){var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},654:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(1913),s=n(6530),a=n(614),u=n(4994),c=n(9518),l=n(7674),f=n(8003),h=n(8880),p=n(8052),d=n(5112),v=n(7497),y=n(3383),g=s.PROPER,m=s.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,_=d("iterator"),x="keys",S="values",A="entries",T=function(){return this};t.exports=function(t,e,n,s,d,y,k){u(n,e,s);var O,E,C,P=function(t){if(t===d&&M)return M;if(!w&&t in I)return I[t];switch(t){case x:return function(){return new n(this,t)};case S:return function(){return new n(this,t)};case A:return function(){return new n(this,t)}}return function(){return new n(this)}},R=e+" Iterator",N=!1,I=t.prototype,j=I[_]||I["@@iterator"]||d&&I[d],M=!w&&j||P(d),L="Array"==e&&I.entries||j;if(L&&(O=c(L.call(new t)),O!==Object.prototype&&O.next&&(o||c(O)===b||(l?l(O,b):a(O[_])||p(O,_,T)),f(O,R,!0,!0),o&&(v[R]=T))),g&&d==S&&j&&j.name!==S&&(!o&&m?h(I,"name",S):(N=!0,M=function(){return i(j,this)})),d)if(E={values:P(S),keys:y?M:P(x),entries:P(A)},k)for(C in E)(w||N||!(C in I))&&p(I,C,E[C]);else r({target:e,proto:!0,forced:w||N},E);return o&&!k||I[_]===M||p(I,_,M,{name:d}),v[e]=M,E}},7235:function(t,e,n){var r=n(857),i=n(2597),o=n(6061),s=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||s(e,t,{value:o.f(t)})}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,n){var r=n(317),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8886:function(t,e,n){var r=n(8113),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},7871:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},256:function(t,e,n){var r=n(8113);t.exports=/MSIE|Trident/.test(r)},1528:function(t,e,n){var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},6833:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,i,o=n(7854),s=n(8113),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},8008:function(t,e,n){var r=n(8113),i=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,n){var r=n(7293),i=n(9114);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),s=n(8052),a=n(3072),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,h,p,d,v=t.target,y=t.global,g=t.stat;if(l=y?r:g?r[v]||a(v,{}):(r[v]||{}).prototype,l)for(f in e){if(p=e[f],t.dontCallGetSet?(d=i(l,f),h=d&&d.value):h=l[f],n=c(y?f:v+(g?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;u(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),s(l,f,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),i=n(8052),o=n(2261),s=n(7293),a=n(5112),u=n(8880),c=a("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=a(t),p=!s((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p&&!s((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!p||!d||n){var v=r(/./[h]),y=e(h,""[t],(function(t,e,n,i,s){var a=r(t),u=e.exec;return u===o||u===l.exec?p&&!s?{done:!0,value:v(e,n,i)}:{done:!0,value:a(n,e,i)}:{done:!1}}));i(String.prototype,t,y[0]),i(l,h,y[1])}f&&u(l[h],"sham",!0)}},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},9974:function(t,e,n){var r=n(1702),i=n(9662),o=n(4374),s=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},1702:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.bind,s=i.call,a=r&&o.bind(s,s);t.exports=r?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),i=n(8173),o=n(7497),s=n(5112),a=s("iterator");t.exports=function(t){if(void 0!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:function(t,e,n){var r=n(7854),i=n(6916),o=n(9662),s=n(9670),a=n(6330),u=n(1246),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return s(i(n,t));throw c(a(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},842:function(t,e,n){var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1179:function(t,e,n){var r=n(7854),i=r.Array,o=Math.abs,s=Math.pow,a=Math.floor,u=Math.log,c=Math.LN2,l=function(t,e,n){var r,l,f,h=i(n),p=8*n-e-1,d=(1<<p)-1,v=d>>1,y=23===e?s(2,-24)-s(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;t=o(t),t!=t||t===1/0?(l=t!=t?1:0,r=d):(r=a(u(t)/c),f=s(2,-r),t*f<1&&(r--,f*=2),t+=r+v>=1?y/f:y*s(2,1-v),t*f>=2&&(r++,f/=2),r+v>=d?(l=0,r=d):r+v>=1?(l=(t*f-1)*s(2,e),r+=v):(l=t*s(2,v-1)*s(2,e),r=0));while(e>=8)h[m++]=255&l,l/=256,e-=8;r=r<<e|l,p+=e;while(p>0)h[m++]=255&r,r/=256,p-=8;return h[--m]|=128*g,h},f=function(t,e){var n,r=t.length,i=8*r-e-1,o=(1<<i)-1,a=o>>1,u=i-7,c=r-1,l=t[c--],f=127&l;l>>=7;while(u>0)f=256*f+t[c--],u-=8;n=f&(1<<-u)-1,f>>=-u,u+=e;while(u>0)n=256*n+t[c--],u-=8;if(0===f)f=1-a;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=s(2,e),f-=a}return(l?-1:1)*n*s(2,f-e)};t.exports={pack:l,unpack:f}},8361:function(t,e,n){var r=n(7854),i=n(1702),o=n(7293),s=n(4326),a=r.Object,u=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):a(t)}:a},9587:function(t,e,n){var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},8340:function(t,e,n){var r=n(111),i=n(8880);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},2423:function(t,e,n){var r=n(2109),i=n(1702),o=n(3501),s=n(111),a=n(2597),u=n(3070).f,c=n(8006),l=n(1156),f=n(2050),h=n(9711),p=n(6677),d=!1,v=h("meta"),y=0,g=function(t){u(t,v,{value:{objectID:"O"+y++,weakData:{}}})},m=function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,v)){if(!f(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},b=function(t,e){if(!a(t,v)){if(!f(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},w=function(t){return p&&d&&f(t)&&!a(t,v)&&g(t),t},_=function(){x.enable=function(){},d=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},x=t.exports={enable:_,fastKey:m,getWeakData:b,onFreeze:w};o[v]=!0},9909:function(t,e,n){var r,i,o,s=n(8536),a=n(7854),u=n(1702),c=n(111),l=n(8880),f=n(2597),h=n(5465),p=n(6200),d=n(3501),v="Object already initialized",y=a.TypeError,g=a.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}};if(s||h.state){var w=h.state||(h.state=new g),_=u(w.get),x=u(w.has),S=u(w.set);r=function(t,e){if(x(w,t))throw new y(v);return e.facade=t,S(w,t,e),e},i=function(t){return _(w,t)||{}},o=function(t){return x(w,t)}}else{var A=p("state");d[A]=!0,r=function(t,e){if(f(t,A))throw new y(v);return e.facade=t,l(t,A,e),e},i=function(t){return f(t,A)?t[A]:{}},o=function(t){return f(t,A)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:b}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),s=n(648),a=n(5005),u=n(2788),c=function(){},l=[],f=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=r(h.exec),d=!h.exec(c),v=function(t){if(!o(t))return!1;try{return f(c,l,t),!0}catch(e){return!1}},y=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(h,u(t))}catch(e){return!0}};y.sham=!0,t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?y:v},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,s=function(t,e){var n=u[a(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},5988:function(t,e,n){var r=n(111),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),i=n(4326),o=n(5112),s=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==i(t))}},2190:function(t,e,n){var r=n(7854),i=n(5005),o=n(614),s=n(7976),a=n(3307),u=r.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&s(e.prototype,u(t))}},612:function(t,e,n){var r=n(7854),i=n(9974),o=n(6916),s=n(9670),a=n(6330),u=n(7659),c=n(6244),l=n(7976),f=n(8554),h=n(1246),p=n(9212),d=r.TypeError,v=function(t,e){this.stopped=t,this.result=e},y=v.prototype;t.exports=function(t,e,n){var r,g,m,b,w,_,x,S=n&&n.that,A=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),O=i(e,S),E=function(t){return r&&p(r,"normal",t),new v(!0,t)},C=function(t){return A?(s(t),k?O(t[0],t[1],E):O(t[0],t[1])):k?O(t,E):O(t)};if(T)r=t;else{if(g=h(t),!g)throw d(a(t)+" is not iterable");if(u(g)){for(m=0,b=c(t);b>m;m++)if(w=C(t[m]),w&&l(y,w))return w;return new v(!1)}r=f(t,g)}_=r.next;while(!(x=o(_,r)).done){try{w=C(x.value)}catch(P){p(r,"throw",P)}if("object"==typeof w&&w&&l(y,w))return w}return new v(!1)}},9212:function(t,e,n){var r=n(6916),i=n(9670),o=n(8173);t.exports=function(t,e,n){var s,a;i(t);try{if(s=o(t,"return"),!s){if("throw"===e)throw n;return n}s=r(s,t)}catch(u){a=!0,s=u}if("throw"===e)throw n;if(a)throw s;return i(s),n}},3383:function(t,e,n){"use strict";var r,i,o,s=n(7293),a=n(614),u=n(30),c=n(9518),l=n(8052),f=n(5112),h=n(1913),p=f("iterator"),d=!1;[].keys&&(o=[].keys(),"next"in o?(i=c(c(o)),i!==Object.prototype&&(r=i)):d=!0);var v=void 0==r||s((function(){var t={};return r[p].call(t)!==t}));v?r={}:h&&(r=u(r)),a(r[p])||l(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(7293),i=n(614),o=n(2597),s=n(9781),a=n(6530).CONFIGURABLE,u=n(2788),c=n(9909),l=c.enforce,f=c.get,h=Object.defineProperty,p=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),d=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&h(t,"name",{value:e,configurable:!0}),p&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&f(this).source||u(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},5948:function(t,e,n){var r,i,o,s,a,u,c,l,f=n(7854),h=n(9974),p=n(1236).f,d=n(261).set,v=n(6833),y=n(1528),g=n(1036),m=n(5268),b=f.MutationObserver||f.WebKitMutationObserver,w=f.document,_=f.process,x=f.Promise,S=p(f,"queueMicrotask"),A=S&&S.value;A||(r=function(){var t,e;m&&(t=_.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?s():o=void 0,n}}o=void 0,t&&t.enter()},v||m||g||!b||!w?!y&&x&&x.resolve?(c=x.resolve(void 0),c.constructor=x,l=h(c.then,c),s=function(){l(r)}):m?s=function(){_.nextTick(r)}:(d=h(d,f),s=function(){d(r)}):(a=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),t.exports=A||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,s()),o=e}},735:function(t,e,n){var r=n(133);t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},133:function(t,e,n){var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),i=n(614),o=n(2788),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},8523:function(t,e,n){"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},6277:function(t,e,n){var r=n(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},30:function(t,e,n){var r,i=n(9670),o=n(6048),s=n(748),a=n(3501),u=n(490),c=n(317),l=n(6200),f=">",h="<",p="prototype",d="script",v=l("IE_PROTO"),y=function(){},g=function(t){return h+d+f+t+h+"/"+d+f},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}w="undefined"!=typeof document?document.domain&&r?m(r):b():m(r);var t=s.length;while(t--)delete w[p][s[t]];return w()};a[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(y[p]=i(t),n=new y,y[p]=null,n[v]=t):n=w(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),s=n(9670),a=n(5656),u=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){s(t);var n,r=a(e),i=u(e),c=i.length,l=0;while(c>l)o.f(t,n=i[l++],r[n]);return t}},3070:function(t,e,n){var r=n(7854),i=n(9781),o=n(4664),s=n(3353),a=n(9670),u=n(4948),c=r.TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";e.f=i?s?function(t,e,n){if(a(t),e=u(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=f(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:h in n?n[h]:r[h],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=u(e),a(n),o)try{return l(t,e,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),i=n(6916),o=n(5296),s=n(9114),a=n(5656),u=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return s(!i(o.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),i=n(5656),o=n(8006).f,s=n(1589),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return s(a)}};t.exports.f=function(t){return a&&"Window"==r(t)?u(t):o(i(t))}},8006:function(t,e,n){var r=n(6324),i=n(748),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(7854),i=n(2597),o=n(614),s=n(7908),a=n(6200),u=n(8544),c=a("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=s(t);if(i(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},2050:function(t,e,n){var r=n(7293),i=n(111),o=n(4326),s=n(7556),a=Object.isExtensible,u=r((function(){a(1)}));t.exports=u||s?function(t){return!!i(t)&&((!s||"ArrayBuffer"!=o(t))&&(!a||a(t)))}:a},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),i=n(2597),o=n(5656),s=n(1318).indexOf,a=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&u(l,n);while(e.length>c)i(r,n=e[c++])&&(~s(l,n)||u(l,n));return l}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(t,e,n){var r=n(7854),i=n(6916),o=n(614),s=n(111),a=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!s(r=i(n,t)))return r;if(o(n=t.valueOf)&&!s(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!s(r=i(n,t)))return r;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),s=n(5181),a=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?u(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},3702:function(t,e,n){var r=n(7854),i=n(2492),o=n(614),s=n(4705),a=n(2788),u=n(5112),c=n(7871),l=n(1913),f=n(7392),h=i&&i.prototype,p=u("species"),d=!1,v=o(r.PromiseRejectionEvent),y=s("Promise",(function(){var t=a(i),e=t!==String(i);if(!e&&66===f)return!0;if(l&&(!h["catch"]||!h["finally"]))return!0;if(f>=51&&/native code/.test(t))return!1;var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},o=n.constructor={};return o[p]=r,d=n.then((function(){}))instanceof r,!d||!e&&c&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:d}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),s=n.resolve;return s(e),n.promise}},8368:function(t,e,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},7651:function(t,e,n){var r=n(7854),i=n(6916),o=n(9670),s=n(614),a=n(4326),u=n(2261),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(s(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===a(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r=n(6916),i=n(1702),o=n(1340),s=n(7066),a=n(2999),u=n(2309),c=n(30),l=n(9909).get,f=n(9441),h=n(7168),p=u("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,y=i("".charAt),g=i("".indexOf),m=i("".replace),b=i("".slice),w=function(){var t=/a/,e=/b*/g;return r(d,t,"a"),r(d,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_=a.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],S=w||x||_||f||h;S&&(v=function(t){var e,n,i,a,u,f,h,S=this,A=l(S),T=o(t),k=A.raw;if(k)return k.lastIndex=S.lastIndex,e=r(v,k,T),S.lastIndex=k.lastIndex,e;var O=A.groups,E=_&&S.sticky,C=r(s,S),P=S.source,R=0,N=T;if(E&&(C=m(C,"y",""),-1===g(C,"g")&&(C+="g"),N=b(T,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==y(T,S.lastIndex-1))&&(P="(?: "+P+")",N=" "+N,R++),n=new RegExp("^(?:"+P+")",C)),x&&(n=new RegExp("^"+P+"$(?!\\s)",C)),w&&(i=S.lastIndex),a=r(d,E?n:S,N),E?a?(a.input=b(a.input,R),a[0]=b(a[0],R),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:w&&a&&(S.lastIndex=S.global?a.index+a[0].length:i),x&&a&&a.length>1&&r(p,a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&O)for(a.groups=f=c(null),u=0;u<O.length;u++)h=O[u],f[h[0]]=a[h[1]];return a}),t.exports=v},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:function(t,e,n){var r=n(7293),i=n(7854),o=i.RegExp,s=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=s||r((function(){return!o("a","y").sticky})),u=s||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:s}},9441:function(t,e,n){var r=n(7293),i=n(7854),o=i.RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),i=n(7854),o=i.RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(7854),i=r.TypeError;t.exports=function(t){if(void 0==t)throw i("Can't call method on "+t);return t}},6340:function(t,e,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),s=n(9781),a=o("species");t.exports=function(t){var e=r(t),n=i.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,i=n(2597),o=n(5112),s=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,s)&&r(t,s,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3072),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.7",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.7/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,n){var r=n(9670),i=n(9483),o=n(5112),s=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[s])?e:i(n)}},8710:function(t,e,n){var r=n(1702),i=n(9303),o=n(1340),s=n(4488),a=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(s(e)),h=i(n),p=f.length;return h<0||h>=p?t?"":void 0:(r=u(f,h),r<55296||r>56319||h+1===p||(l=u(f,h+1))<56320||l>57343?t?a(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},8415:function(t,e,n){"use strict";var r=n(7854),i=n(9303),o=n(1340),s=n(4488),a=r.RangeError;t.exports=function(t){var e=o(s(this)),n="",r=i(t);if(r<0||r==1/0)throw a("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},6091:function(t,e,n){var r=n(6530).PROPER,i=n(7293),o=n(1361),s="​…᠎";t.exports=function(t){return i((function(){return!!o[t]()||s[t]()!==s||r&&o[t].name!==t}))}},3111:function(t,e,n){var r=n(1702),i=n(4488),o=n(1340),s=n(1361),a=r("".replace),u="["+s+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=o(i(e));return 1&t&&(n=a(n,c,"")),2&t&&(n=a(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},6532:function(t,e,n){var r=n(6916),i=n(5005),o=n(5112),s=n(8052);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&s(e,a,(function(t){return r(n,this)}),{arity:1})}},261:function(t,e,n){var r,i,o,s,a=n(7854),u=n(2104),c=n(9974),l=n(614),f=n(2597),h=n(7293),p=n(490),d=n(206),v=n(317),y=n(8053),g=n(6833),m=n(5268),b=a.setImmediate,w=a.clearImmediate,_=a.process,x=a.Dispatch,S=a.Function,A=a.MessageChannel,T=a.String,k=0,O={},E="onreadystatechange";try{r=a.location}catch(I){}var C=function(t){if(f(O,t)){var e=O[t];delete O[t],e()}},P=function(t){return function(){C(t)}},R=function(t){C(t.data)},N=function(t){a.postMessage(T(t),r.protocol+"//"+r.host)};b&&w||(b=function(t){y(arguments.length,1);var e=l(t)?t:S(t),n=d(arguments,1);return O[++k]=function(){u(e,void 0,n)},i(k),k},w=function(t){delete O[t]},m?i=function(t){_.nextTick(P(t))}:x&&x.now?i=function(t){x.now(P(t))}:A&&!g?(o=new A,s=o.port2,o.port1.onmessage=R,i=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!h(N)?(i=N,a.addEventListener("message",R,!1)):i=E in v("script")?function(t){p.appendChild(v("script"))[E]=function(){p.removeChild(this),C(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:w}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},7067:function(t,e,n){var r=n(7854),i=n(9303),o=n(7466),s=r.RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=o(e);if(e!==n)throw s("Wrong length or index");return n}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),i=n(4488),o=r.Object;t.exports=function(t){return o(i(t))}},4590:function(t,e,n){var r=n(7854),i=n(3002),o=r.RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw o("Wrong offset");return n}},3002:function(t,e,n){var r=n(7854),i=n(9303),o=r.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw o("The argument can't be less than 0");return e}},7593:function(t,e,n){var r=n(7854),i=n(6916),o=n(111),s=n(2190),a=n(8173),u=n(2140),c=n(5112),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var n,r=a(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||s(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,n){var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:function(t,e,n){var r=n(5112),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},1340:function(t,e,n){var r=n(7854),i=n(648),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,n){var r=n(7854),i=r.String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},9843:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),s=n(9781),a=n(3832),u=n(260),c=n(3331),l=n(5787),f=n(9114),h=n(8880),p=n(5988),d=n(7466),v=n(7067),y=n(4590),g=n(4948),m=n(2597),b=n(648),w=n(111),_=n(2190),x=n(30),S=n(7976),A=n(7674),T=n(8006).f,k=n(7321),O=n(2092).forEach,E=n(6340),C=n(3070),P=n(1236),R=n(9909),N=n(9587),I=R.get,j=R.set,M=C.f,L=P.f,D=Math.round,F=i.RangeError,$=c.ArrayBuffer,q=$.prototype,B=c.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,U=u.TYPED_ARRAY_CONSTRUCTOR,V=u.TYPED_ARRAY_TAG,z=u.TypedArray,H=u.TypedArrayPrototype,Z=u.aTypedArrayConstructor,G=u.isTypedArray,J="BYTES_PER_ELEMENT",X="Wrong length",Y=function(t,e){Z(t);var n=0,r=e.length,i=new t(r);while(r>n)i[n]=e[n++];return i},K=function(t,e){M(t,e,{get:function(){return I(this)[e]}})},Q=function(t){var e;return S(q,t)||"ArrayBuffer"==(e=b(t))||"SharedArrayBuffer"==e},tt=function(t,e){return G(t)&&!_(e)&&e in t&&p(+e)&&e>=0},et=function(t,e){return e=g(e),tt(t,e)?f(2,t[e]):L(t,e)},nt=function(t,e,n){return e=g(e),!(tt(t,e)&&w(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?M(t,e,n):(t[e]=n.value,t)};s?(W||(P.f=et,C.f=nt,K(H,"buffer"),K(H,"byteOffset"),K(H,"byteLength"),K(H,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var s=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,p=i[u],g=p,m=g&&g.prototype,b={},_=function(t,e){var n=I(t);return n.view[c](e*s+n.byteOffset,!0)},S=function(t,e,r){var i=I(t);n&&(r=(r=D(r))<0?0:r>255?255:255&r),i.view[f](e*s+i.byteOffset,r,!0)},C=function(t,e){M(t,e,{get:function(){return _(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};W?a&&(g=e((function(t,e,n,r){return l(t,m),N(function(){return w(e)?Q(e)?void 0!==r?new p(e,y(n,s),r):void 0!==n?new p(e,y(n,s)):new p(e):G(e)?Y(g,e):o(k,g,e):new p(v(e))}(),t,g)})),A&&A(g,z),O(T(p),(function(t){t in g||h(g,t,p[t])})),g.prototype=m):(g=e((function(t,e,n,r){l(t,m);var i,a,u,c=0,f=0;if(w(e)){if(!Q(e))return G(e)?Y(g,e):o(k,g,e);i=e,f=y(n,s);var h=e.byteLength;if(void 0===r){if(h%s)throw F(X);if(a=h-f,a<0)throw F(X)}else if(a=d(r)*s,a+f>h)throw F(X);u=a/s}else u=v(e),a=u*s,i=new $(a);j(t,{buffer:i,byteOffset:f,byteLength:a,length:u,view:new B(i)});while(c<u)C(t,c++)})),A&&A(g,z),m=g.prototype=x(H)),m.constructor!==g&&h(m,"constructor",g),h(m,U,g),V&&h(m,V,u);var P=g!=p;b[u]=g,r({global:!0,constructor:!0,forced:P,sham:!W},b),J in g||h(g,J,s),J in m||h(m,J,s),E(u)}):t.exports=function(){}},3832:function(t,e,n){var r=n(7854),i=n(7293),o=n(7072),s=n(260).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,u=r.Int8Array;t.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},3074:function(t,e,n){var r=n(7745),i=n(6304);t.exports=function(t,e){return r(i(t),e)}},7321:function(t,e,n){var r=n(9974),i=n(6916),o=n(9483),s=n(7908),a=n(6244),u=n(8554),c=n(1246),l=n(7659),f=n(260).aTypedArrayConstructor;t.exports=function(t){var e,n,h,p,d,v,y=o(this),g=s(t),m=arguments.length,b=m>1?arguments[1]:void 0,w=void 0!==b,_=c(g);if(_&&!l(_)){d=u(g,_),v=d.next,g=[];while(!(p=i(v,d)).done)g.push(p.value)}for(w&&m>2&&(b=r(b,arguments[2])),n=a(g),h=new(f(y))(n),e=0;n>e;e++)h[e]=w?b(g[e],e):g[e];return h}},6304:function(t,e,n){var r=n(260),i=n(6707),o=r.TYPED_ARRAY_CONSTRUCTOR,s=r.aTypedArrayConstructor;t.exports=function(t){return s(i(t,t[o]))}},9711:function(t,e,n){var r=n(1702),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,n){var r=n(7854),i=r.TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),s=n(9711),a=n(133),u=n(3307),c=i("wks"),l=r.Symbol,f=l&&l["for"],h=u?l:l&&l.withoutSetter||s;t.exports=function(t){if(!o(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&o(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):h(e)}return c[t]}},1361:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9191:function(t,e,n){"use strict";var r=n(5005),i=n(2597),o=n(8880),s=n(7976),a=n(7674),u=n(9920),c=n(2626),l=n(9587),f=n(6277),h=n(8340),p=n(7741),d=n(2914),v=n(9781),y=n(1913);t.exports=function(t,e,n,g){var m="stackTraceLimit",b=g?2:1,w=t.split("."),_=w[w.length-1],x=r.apply(null,w);if(x){var S=x.prototype;if(!y&&i(S,"cause")&&delete S.cause,!n)return x;var A=r("Error"),T=e((function(t,e){var n=f(g?e:t,void 0),r=g?new x(t):new x;return void 0!==n&&o(r,"message",n),d&&o(r,"stack",p(r.stack,2)),this&&s(S,this)&&l(r,this,T),arguments.length>b&&h(r,arguments[b]),r}));if(T.prototype=S,"Error"!==_?a?a(T,A):u(T,A,{name:!0}):v&&m in x&&(c(T,x,m),c(T,x,"prepareStackTrace")),u(T,x),!y)try{S.name!==_&&o(S,"name",_),S.constructor=T}catch(k){}return T}}},2222:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(7293),s=n(3157),a=n(111),u=n(7908),c=n(6244),l=n(6135),f=n(5417),h=n(1194),p=n(5112),d=n(7392),v=p("isConcatSpreadable"),y=9007199254740991,g="Maximum allowed index exceeded",m=i.TypeError,b=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),w=h("concat"),_=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:s(t)},x=!b||!w;r({target:"Array",proto:!0,arity:1,forced:x},{concat:function(t){var e,n,r,i,o,s=u(this),a=f(s,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?s:arguments[e],_(o)){if(i=c(o),h+i>y)throw m(g);for(n=0;n<i;n++,h++)n in o&&l(a,h,o[n])}else{if(h>=y)throw m(g);l(a,h++,o)}return a.length=h,a}})},3290:function(t,e,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(t,e,n){"use strict";var r=n(2109),i=n(2092).filter,o=n(1194),s=o("filter");r({target:"Array",proto:!0,forced:!s},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9826:function(t,e,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},1038:function(t,e,n){var r=n(2109),i=n(8457),o=n(7072),s=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:s},{from:i})},6699:function(t,e,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(7293),s=n(1223),a=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:a},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},6992:function(t,e,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),s=n(9909),a=n(3070).f,u=n(654),c=n(1913),l=n(9781),f="Array Iterator",h=s.set,p=s.getterFor(f);t.exports=u(Array,"Array",(function(t,e){h(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var d=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(v){}},1249:function(t,e,n){"use strict";var r=n(2109),i=n(2092).map,o=n(1194),s=o("map");r({target:"Array",proto:!0,forced:!s},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(3157),s=n(4411),a=n(111),u=n(1400),c=n(6244),l=n(5656),f=n(6135),h=n(5112),p=n(1194),d=n(206),v=p("slice"),y=h("species"),g=i.Array,m=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var n,r,i,h=l(this),p=c(h),v=u(t,p),b=u(void 0===e?p:e,p);if(o(h)&&(n=h.constructor,s(n)&&(n===g||o(n.prototype))?n=void 0:a(n)&&(n=n[y],null===n&&(n=void 0)),n===g||void 0===n))return d(h,v,b);for(r=new(void 0===n?g:n)(m(b-v,0)),i=0;v<b;v++,i++)v in h&&f(r,i,h[v]);return r.length=i,r}})},2707:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),s=n(7908),a=n(6244),u=n(1340),c=n(7293),l=n(4362),f=n(2133),h=n(8886),p=n(256),d=n(7392),v=n(8008),y=[],g=i(y.sort),m=i(y.push),b=c((function(){y.sort(void 0)})),w=c((function(){y.sort(null)})),_=f("sort"),x=!c((function(){if(d)return d<70;if(!(h&&h>3)){if(p)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;r<y.length;r++)e=y[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}})),S=b||!w||!_||!x,A=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}};r({target:"Array",proto:!0,forced:S},{sort:function(t){void 0!==t&&o(t);var e=s(this);if(x)return void 0===t?g(e):g(e,t);var n,r,i=[],u=a(e);for(r=0;r<u;r++)r in e&&m(i,e[r]);l(i,A(t)),n=i.length,r=0;while(r<n)e[r]=i[r++];while(r<u)delete e[r++];return e}})},561:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(1400),s=n(9303),a=n(6244),u=n(7908),c=n(5417),l=n(6135),f=n(1194),h=f("splice"),p=i.TypeError,d=Math.max,v=Math.min,y=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!h},{splice:function(t,e){var n,r,i,f,h,m,b=u(this),w=a(b),_=o(t,w),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=w-_):(n=x-2,r=v(d(s(e),0),w-_)),w+n-r>y)throw p(g);for(i=c(b,r),f=0;f<r;f++)h=_+f,h in b&&l(i,f,b[h]);if(i.length=r,n<r){for(f=_;f<w-r;f++)h=f+r,m=f+n,h in b?b[m]=b[h]:delete b[m];for(f=w;f>w-r+n;f--)delete b[f-1]}else if(n>r)for(f=w-r;f>_;f--)h=f+r-1,m=f+n-1,h in b?b[m]=b[h]:delete b[m];for(f=0;f<n;f++)b[f+_]=arguments[f+2];return b.length=w-r+n,i}})},1703:function(t,e,n){var r=n(2109),i=n(7854),o=n(2104),s=n(9191),a="WebAssembly",u=i[a],c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=s(a+"."+t,e,c),r({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},8309:function(t,e,n){var r=n(9781),i=n(6530).EXISTS,o=n(1702),s=n(3070).f,a=Function.prototype,u=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec),f="name";r&&!i&&s(a,f,{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},8862:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),s=n(6916),a=n(1702),u=n(7293),c=n(3157),l=n(614),f=n(111),h=n(2190),p=n(206),d=n(133),v=i("JSON","stringify"),y=a(/./.exec),g=a("".charAt),m=a("".charCodeAt),b=a("".replace),w=a(1..toString),_=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,A=!d||u((function(){var t=i("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),T=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),k=function(t,e){var n=p(arguments),r=e;if((f(e)||void 0!==t)&&!h(t))return c(e)||(e=function(t,e){if(l(r)&&(e=s(r,this,t,e)),!h(e))return e}),n[1]=e,o(v,null,n)},O=function(t,e,n){var r=g(n,e-1),i=g(n,e+1);return y(x,t)&&!y(S,i)||y(S,t)&&!y(x,r)?"\\u"+w(m(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:A||T},{stringify:function(t,e,n){var r=p(arguments),i=o(A?k:v,null,r);return T&&"string"==typeof i?b(i,_,O):i}})},3706:function(t,e,n){var r=n(7854),i=n(8003);i(r.JSON,"JSON",!0)},9098:function(t,e,n){"use strict";var r=n(7710),i=n(5631);r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},1532:function(t,e,n){n(9098)},408:function(t,e,n){var r=n(8003);r(Math,"Math",!0)},9653:function(t,e,n){"use strict";var r=n(9781),i=n(7854),o=n(1702),s=n(4705),a=n(8052),u=n(2597),c=n(9587),l=n(7976),f=n(2190),h=n(7593),p=n(7293),d=n(8006).f,v=n(1236).f,y=n(3070).f,g=n(863),m=n(3111).trim,b="Number",w=i[b],_=w.prototype,x=i.TypeError,S=o("".slice),A=o("".charCodeAt),T=function(t){var e=h(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,i,o,s,a,u,c=h(t,"number");if(f(c))throw x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),e=A(c,0),43===e||45===e){if(n=A(c,2),88===n||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=S(c,2),s=o.length,a=0;a<s;a++)if(u=A(o,a),u<48||u>i)return NaN;return parseInt(o,r)}return+c};if(s(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var O,E=function(t){var e=arguments.length<1?0:w(T(t)),n=this;return l(_,n)&&p((function(){g(n)}))?c(Object(e),n,E):e},C=r?d(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;C.length>P;P++)u(w,O=C[P])&&!u(E,O)&&y(E,O,v(w,O));E.prototype=_,_.constructor=E,a(i,b,E,{constructor:!0})}},6977:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(1702),s=n(9303),a=n(863),u=n(8415),c=n(7293),l=i.RangeError,f=i.String,h=Math.floor,p=o(u),d=o("".slice),v=o(1..toFixed),y=function(t,e,n){return 0===e?n:e%2===1?y(t,e-1,n*t):y(t*t,e/2,n)},g=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},m=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=h(i/1e7)},b=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=h(r/e),r=r%e*1e7},w=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=f(t[e]);n=""===n?r:n+p("0",7-r.length)+r}return n},_=c((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!c((function(){v({})}));r({target:"Number",proto:!0,forced:_},{toFixed:function(t){var e,n,r,i,o=a(this),u=s(t),c=[0,0,0,0,0,0],h="",v="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return f(o);if(o<0&&(h="-",o=-o),o>1e-21)if(e=g(o*y(2,69,1))-69,n=e<0?o*y(2,-e,1):o/y(2,e,1),n*=4503599627370496,e=52-e,e>0){m(c,0,n),r=u;while(r>=7)m(c,1e7,0),r-=7;m(c,y(10,r,1),0),r=e-1;while(r>=23)b(c,1<<23),r-=23;b(c,1<<r),m(c,1,1),b(c,2),v=w(c)}else m(c,0,n),m(c,1<<-e,0),v=w(c)+p("0",u);return u>0?(i=v.length,v=h+(i<=u?"0."+p("0",u-i)+v:d(v,0,i-u)+"."+d(v,i-u))):v=h+v,v}})},3371:function(t,e,n){var r=n(2109),i=n(6677),o=n(7293),s=n(111),a=n(2423).onFreeze,u=Object.freeze,c=o((function(){u(1)}));r({target:"Object",stat:!0,forced:c,sham:!i},{freeze:function(t){return u&&s(t)?u(a(t)):t}})},9660:function(t,e,n){var r=n(2109),i=n(133),o=n(7293),s=n(5181),a=n(7908),u=!i||o((function(){s.f(1)}));r({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},489:function(t,e,n){var r=n(2109),i=n(7293),o=n(7908),s=n(9518),a=n(8544),u=i((function(){s(1)}));r({target:"Object",stat:!0,forced:u,sham:!a},{getPrototypeOf:function(t){return s(o(t))}})},7941:function(t,e,n){var r=n(2109),i=n(7908),o=n(1956),s=n(7293),a=s((function(){o(1)}));r({target:"Object",stat:!0,forced:a},{keys:function(t){return o(i(t))}})},1539:function(t,e,n){var r=n(1694),i=n(8052),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},821:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(9662),s=n(8523),a=n(2534),u=n(612),c=n(8368);r({target:"Promise",stat:!0,forced:c},{all:function(t){var e=this,n=s.f(e),r=n.resolve,c=n.reject,l=a((function(){var n=o(e.resolve),s=[],a=0,l=1;u(t,(function(t){var o=a++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,s[o]=t,--l||r(s))}),c)})),--l||r(s)}));return l.error&&c(l.value),n.promise}})},4164:function(t,e,n){"use strict";var r=n(2109),i=n(1913),o=n(3702).CONSTRUCTOR,s=n(2492),a=n(5005),u=n(614),c=n(8052),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(s)){var f=a("Promise").prototype["catch"];l["catch"]!==f&&c(l,"catch",f,{unsafe:!0})}},3401:function(t,e,n){"use strict";var r,i,o,s,a=n(2109),u=n(1913),c=n(5268),l=n(7854),f=n(6916),h=n(8052),p=n(7674),d=n(8003),v=n(6340),y=n(9662),g=n(614),m=n(111),b=n(5787),w=n(6707),_=n(261).set,x=n(5948),S=n(842),A=n(2534),T=n(8572),k=n(9909),O=n(2492),E=n(3702),C=n(8523),P="Promise",R=E.CONSTRUCTOR,N=E.REJECTION_EVENT,I=E.SUBCLASSING,j=k.getterFor(P),M=k.set,L=O&&O.prototype,D=O,F=L,$=l.TypeError,q=l.document,B=l.process,W=C.f,U=W,V=!!(q&&q.createEvent&&l.dispatchEvent),z="unhandledrejection",H="rejectionhandled",Z=0,G=1,J=2,X=1,Y=2,K=function(t){var e;return!(!m(t)||!g(e=t.then))&&e},Q=function(t,e){var n,r,i,o=e.value,s=e.state==G,a=s?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{a?(s||(e.rejection===Y&&it(e),e.rejection=X),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),i=!0)),n===t.promise?c($("Promise-chain cycle")):(r=K(n))?f(r,n,u,c):u(n)):c(o)}catch(h){l&&!i&&l.exit(),c(h)}},tt=function(t,e){t.notified||(t.notified=!0,x((function(){var n,r=t.reactions;while(n=r.get())Q(n,t);t.notified=!1,e&&!t.rejection&&nt(t)})))},et=function(t,e,n){var r,i;V?(r=q.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!N&&(i=l["on"+t])?i(r):t===z&&S("Unhandled promise rejection",n)},nt=function(t){f(_,l,(function(){var e,n=t.facade,r=t.value,i=rt(t);if(i&&(e=A((function(){c?B.emit("unhandledRejection",r,n):et(z,n,r)})),t.rejection=c||rt(t)?Y:X,e.error))throw e.value}))},rt=function(t){return t.rejection!==X&&!t.parent},it=function(t){f(_,l,(function(){var e=t.facade;c?B.emit("rejectionHandled",e):et(H,e,t.value)}))},ot=function(t,e,n){return function(r){t(e,r,n)}},st=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=J,tt(t,!0))},at=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw $("Promise can't be resolved itself");var r=K(e);r?x((function(){var n={done:!1};try{f(r,e,ot(at,n,t),ot(st,n,t))}catch(i){st(n,i,t)}})):(t.value=e,t.state=G,tt(t,!1))}catch(i){st({done:!1},i,t)}}};if(R&&(D=function(t){b(this,F),y(t),f(r,this);var e=j(this);try{t(ot(at,e),ot(st,e))}catch(n){st(e,n)}},F=D.prototype,r=function(t){M(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:Z,value:void 0})},r.prototype=h(F,"then",(function(t,e){var n=j(this),r=W(w(this,D));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=c?B.domain:void 0,n.state==Z?n.reactions.add(r):x((function(){Q(r,n)})),r.promise})),i=function(){var t=new r,e=j(t);this.promise=t,this.resolve=ot(at,e),this.reject=ot(st,e)},C.f=W=function(t){return t===D||t===o?new i(t):U(t)},!u&&g(O)&&L!==Object.prototype)){s=L.then,I||h(L,"then",(function(t,e){var n=this;return new D((function(t,e){f(s,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete L.constructor}catch(ut){}p&&p(L,F)}a({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:D}),d(D,P,!1,!0),v(P)},8674:function(t,e,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(9662),s=n(8523),a=n(2534),u=n(612),c=n(8368);r({target:"Promise",stat:!0,forced:c},{race:function(t){var e=this,n=s.f(e),r=n.reject,c=a((function(){var s=o(e.resolve);u(t,(function(t){i(s,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},683:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(8523),s=n(3702).CONSTRUCTOR;r({target:"Promise",stat:!0,forced:s},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),i=n(5005),o=n(1913),s=n(2492),a=n(3702).CONSTRUCTOR,u=n(9478),c=i("Promise"),l=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(t){return u(l&&this===c?s:this,t)}})},4916:function(t,e,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},7601:function(t,e,n){"use strict";n(4916);var r=n(2109),i=n(7854),o=n(6916),s=n(1702),a=n(614),u=n(111),c=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),l=i.Error,f=s(/./.test);r({target:"RegExp",proto:!0,forced:!c},{test:function(t){var e=this.exec;if(!a(e))return f(this,t);var n=o(e,this,t);if(null!==n&&!u(n))throw new l("RegExp exec method returned something other than an Object or null");return!!n}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),s=n(654),a="String Iterator",u=o.set,c=o.getterFor(a);s(String,"String",(function(t){u(this,{type:a,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},3123:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),s=n(7007),a=n(7850),u=n(9670),c=n(4488),l=n(6707),f=n(1530),h=n(7466),p=n(1340),d=n(8173),v=n(1589),y=n(7651),g=n(2261),m=n(2999),b=n(7293),w=m.UNSUPPORTED_Y,_=4294967295,x=Math.min,S=[].push,A=o(/./.exec),T=o(S),k=o("".slice),O=!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));s("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=p(c(this)),s=void 0===n?_:n>>>0;if(0===s)return[];if(void 0===t)return[o];if(!a(t))return i(e,o,t,s);var u,l,f,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,m=new RegExp(t.source,d+"g");while(u=i(g,m,o)){if(l=m.lastIndex,l>y&&(T(h,k(o,y,u.index)),u.length>1&&u.index<o.length&&r(S,h,v(u,1)),f=u[0].length,y=l,h.length>=s))break;m.lastIndex===u.index&&m.lastIndex++}return y===o.length?!f&&A(m,"")||T(h,""):T(h,k(o,y)),h.length>s?v(h,0,s):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),s=void 0==e?void 0:d(e,t);return s?i(s,e,r,n):i(o,p(r),e,n)},function(t,r){var i=u(this),s=p(t),a=n(o,i,s,r,o!==e);if(a.done)return a.value;var c=l(i,RegExp),d=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),g=new c(w?"^(?:"+i.source+")":i,v),m=void 0===r?_:r>>>0;if(0===m)return[];if(0===s.length)return null===y(g,s)?[s]:[];var b=0,S=0,A=[];while(S<s.length){g.lastIndex=w?0:S;var O,E=y(g,w?k(s,S):s);if(null===E||(O=x(h(g.lastIndex+(w?S:0)),s.length))===b)S=f(s,S,d);else{if(T(A,k(s,b,S)),A.length===m)return A;for(var C=1;C<=E.length-1;C++)if(T(A,E[C]),A.length===m)return A;S=b=O}}return T(A,k(s,b)),A}]}),!O,w)},3210:function(t,e,n){"use strict";var r=n(2109),i=n(3111).trim,o=n(6091);r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},2443:function(t,e,n){var r=n(7235);r("asyncIterator")},4032:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),s=n(1702),a=n(1913),u=n(9781),c=n(133),l=n(7293),f=n(2597),h=n(7976),p=n(9670),d=n(5656),v=n(4948),y=n(1340),g=n(9114),m=n(30),b=n(1956),w=n(8006),_=n(1156),x=n(5181),S=n(1236),A=n(3070),T=n(6048),k=n(5296),O=n(8052),E=n(2309),C=n(6200),P=n(3501),R=n(9711),N=n(5112),I=n(6061),j=n(7235),M=n(6532),L=n(8003),D=n(9909),F=n(2092).forEach,$=C("hidden"),q="Symbol",B="prototype",W=D.set,U=D.getterFor(q),V=Object[B],z=i.Symbol,H=z&&z[B],Z=i.TypeError,G=i.QObject,J=S.f,X=A.f,Y=_.f,K=k.f,Q=s([].push),tt=E("symbols"),et=E("op-symbols"),nt=E("wks"),rt=!G||!G[B]||!G[B].findChild,it=u&&l((function(){return 7!=m(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=J(V,e);r&&delete V[e],X(t,e,n),r&&t!==V&&X(V,e,r)}:X,ot=function(t,e){var n=tt[t]=m(H);return W(n,{type:q,tag:t,description:e}),u||(n.description=e),n},st=function(t,e,n){t===V&&st(et,e,n),p(t);var r=v(e);return p(n),f(tt,r)?(n.enumerable?(f(t,$)&&t[$][r]&&(t[$][r]=!1),n=m(n,{enumerable:g(0,!1)})):(f(t,$)||X(t,$,g(1,{})),t[$][r]=!0),it(t,r,n)):X(t,r,n)},at=function(t,e){p(t);var n=d(e),r=b(n).concat(ht(n));return F(r,(function(e){u&&!o(ct,n,e)||st(t,e,n[e])})),t},ut=function(t,e){return void 0===e?m(t):at(m(t),e)},ct=function(t){var e=v(t),n=o(K,this,e);return!(this===V&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,$)&&this[$][e])||n)},lt=function(t,e){var n=d(t),r=v(e);if(n!==V||!f(tt,r)||f(et,r)){var i=J(n,r);return!i||!f(tt,r)||f(n,$)&&n[$][r]||(i.enumerable=!0),i}},ft=function(t){var e=Y(d(t)),n=[];return F(e,(function(t){f(tt,t)||f(P,t)||Q(n,t)})),n},ht=function(t){var e=t===V,n=Y(e?et:d(t)),r=[];return F(n,(function(t){!f(tt,t)||e&&!f(V,t)||Q(r,tt[t])})),r};c||(z=function(){if(h(H,this))throw Z("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=R(t),n=function(t){this===V&&o(n,et,t),f(this,$)&&f(this[$],e)&&(this[$][e]=!1),it(this,e,g(1,t))};return u&&rt&&it(V,e,{configurable:!0,set:n}),ot(e,t)},H=z[B],O(H,"toString",(function(){return U(this).tag})),O(z,"withoutSetter",(function(t){return ot(R(t),t)})),k.f=ct,A.f=st,T.f=at,S.f=lt,w.f=_.f=ft,x.f=ht,I.f=function(t){return ot(N(t),t)},u&&(X(H,"description",{configurable:!0,get:function(){return U(this).description}}),a||O(V,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),F(b(nt),(function(t){j(t)})),r({target:q,stat:!0,forced:!c},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:ut,defineProperty:st,defineProperties:at,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),M(),L(z,q),P[$]=!0},1817:function(t,e,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),s=n(1702),a=n(2597),u=n(614),c=n(7976),l=n(1340),f=n(3070).f,h=n(9920),p=o.Symbol,d=p&&p.prototype;if(i&&u(p)&&(!("description"in d)||void 0!==p().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(d,this)?new p(t):void 0===t?p():p(t);return""===t&&(v[e]=!0),e};h(y,p),y.prototype=d,d.constructor=y;var g="Symbol(test)"==String(p("test")),m=s(d.toString),b=s(d.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),x=s("".slice);f(d,"description",{configurable:!0,get:function(){var t=b(this),e=m(t);if(a(v,t))return"";var n=g?x(e,7,-1):_(e,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:y})}},763:function(t,e,n){var r=n(2109),i=n(5005),o=n(2597),s=n(1340),a=n(2309),u=n(735),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=s(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},2165:function(t,e,n){var r=n(7235);r("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var r=n(2109),i=n(2597),o=n(2190),s=n(6330),a=n(2309),u=n(735),c=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw TypeError(s(t)+" is not a symbol");if(i(c,t))return c[t]}})},9341:function(t,e,n){var r=n(5005),i=n(7235),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},8675:function(t,e,n){"use strict";var r=n(260),i=n(6244),o=n(9303),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("at",(function(t){var e=s(this),n=i(e),r=o(t),a=r>=0?r:n+r;return a<0||a>=n?void 0:e[a]}))},2990:function(t,e,n){"use strict";var r=n(1702),i=n(260),o=n(1048),s=r(o),a=i.aTypedArray,u=i.exportTypedArrayMethod;u("copyWithin",(function(t,e){return s(a(this),t,e,arguments.length>2?arguments[2]:void 0)}))},8927:function(t,e,n){"use strict";var r=n(260),i=n(2092).every,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},3105:function(t,e,n){"use strict";var r=n(260),i=n(6916),o=n(1285),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("fill",(function(t){var e=arguments.length;return i(o,s(this),t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}))},5035:function(t,e,n){"use strict";var r=n(260),i=n(2092).filter,o=n(3074),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("filter",(function(t){var e=i(s(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},7174:function(t,e,n){"use strict";var r=n(260),i=n(2092).findIndex,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},4345:function(t,e,n){"use strict";var r=n(260),i=n(2092).find,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},4197:function(t,e,n){var r=n(9843);r("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},6495:function(t,e,n){var r=n(9843);r("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},2846:function(t,e,n){"use strict";var r=n(260),i=n(2092).forEach,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},4731:function(t,e,n){"use strict";var r=n(260),i=n(1318).includes,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},7209:function(t,e,n){"use strict";var r=n(260),i=n(1318).indexOf,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},6319:function(t,e,n){"use strict";var r=n(7854),i=n(7293),o=n(1702),s=n(260),a=n(6992),u=n(5112),c=u("iterator"),l=r.Uint8Array,f=o(a.values),h=o(a.keys),p=o(a.entries),d=s.aTypedArray,v=s.exportTypedArrayMethod,y=l&&l.prototype,g=!i((function(){y[c].call([1])})),m=!!y&&y.values&&y[c]===y.values&&"values"===y.values.name,b=function(){return f(d(this))};v("entries",(function(){return p(d(this))}),g),v("keys",(function(){return h(d(this))}),g),v("values",b,g||!m,{name:"values"}),v(c,b,g||!m,{name:"values"})},8867:function(t,e,n){"use strict";var r=n(260),i=n(1702),o=r.aTypedArray,s=r.exportTypedArrayMethod,a=i([].join);s("join",(function(t){return a(o(this),t)}))},7789:function(t,e,n){"use strict";var r=n(260),i=n(2104),o=n(6583),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("lastIndexOf",(function(t){var e=arguments.length;return i(o,s(this),e>1?[t,arguments[1]]:[t])}))},3739:function(t,e,n){"use strict";var r=n(260),i=n(2092).map,o=n(6304),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("map",(function(t){return i(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},4483:function(t,e,n){"use strict";var r=n(260),i=n(3671).right,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},9368:function(t,e,n){"use strict";var r=n(260),i=n(3671).left,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("reduce",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},2056:function(t,e,n){"use strict";var r=n(260),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){var t,e=this,n=i(e).length,r=s(n/2),o=0;while(o<r)t=e[o],e[o++]=e[--n],e[n]=t;return e}))},3462:function(t,e,n){"use strict";var r=n(7854),i=n(6916),o=n(260),s=n(6244),a=n(4590),u=n(7908),c=n(7293),l=r.RangeError,f=r.Int8Array,h=f&&f.prototype,p=h&&h.set,d=o.aTypedArray,v=o.exportTypedArrayMethod,y=!c((function(){var t=new Uint8ClampedArray(2);return i(p,t,{length:1,0:3},1),3!==t[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));v("set",(function(t){d(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(y)return i(p,this,n,e);var r=this.length,o=s(n),c=0;if(o+e>r)throw l("Wrong length");while(c<o)this[e+c]=n[c++]}),!y||g)},678:function(t,e,n){"use strict";var r=n(260),i=n(6304),o=n(7293),s=n(206),a=r.aTypedArray,u=r.exportTypedArrayMethod,c=o((function(){new Int8Array(1).slice()}));u("slice",(function(t,e){var n=s(a(this),t,e),r=i(this),o=0,u=n.length,c=new r(u);while(u>o)c[o]=n[o++];return c}),c)},7462:function(t,e,n){"use strict";var r=n(260),i=n(2092).some,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},3824:function(t,e,n){"use strict";var r=n(7854),i=n(1702),o=n(7293),s=n(9662),a=n(4362),u=n(260),c=n(8886),l=n(256),f=n(7392),h=n(8008),p=u.aTypedArray,d=u.exportTypedArrayMethod,v=r.Uint16Array,y=v&&i(v.prototype.sort),g=!!y&&!(o((function(){y(new v(2),null)}))&&o((function(){y(new v(2),{})}))),m=!!y&&!o((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new v(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(y(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0})),b=function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}};d("sort",(function(t){return void 0!==t&&s(t),m?y(this,t):a(p(this),b(t))}),!m||g)},5021:function(t,e,n){"use strict";var r=n(260),i=n(7466),o=n(1400),s=n(6304),a=r.aTypedArray,u=r.exportTypedArrayMethod;u("subarray",(function(t,e){var n=a(this),r=n.length,u=o(t,r),c=s(n);return new c(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:o(e,r))-u))}))},2974:function(t,e,n){"use strict";var r=n(7854),i=n(2104),o=n(260),s=n(7293),a=n(206),u=r.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&s((function(){f.call(new u(1))})),p=s((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(f,h?a(c(this)):c(this),a(arguments))}),p)},5016:function(t,e,n){"use strict";var r=n(260).exportTypedArrayMethod,i=n(7293),o=n(7854),s=n(1702),a=o.Uint8Array,u=a&&a.prototype||{},c=[].toString,l=s([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;r("toString",c,f)},2472:function(t,e,n){var r=n(9843);r("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},4747:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),s=n(8533),a=n(8880),u=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),s=n(6992),a=n(8880),u=n(5112),c=u("iterator"),l=u("toStringTag"),f=s.values,h=function(t,e){if(t){if(t[c]!==f)try{a(t,c,f)}catch(r){t[c]=f}if(t[l]||a(t,l,e),i[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(r){t[n]=s[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")},851:function(t,e,n){"use strict";n.r(e);var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o),a=s()(i());a.push([t.id,".canvas[data-v-0a32917c]{position:absolute;top:0;left:0;margin-left:5px;cursor:ew-resize;outline:none}",""]),e["default"]=a},3144:function(t,e,n){"use strict";n.r(e);var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o),a=s()(i());a.push([t.id,".timeseries-scrubber[data-v-989235a2]{padding:0 8px 8px 8px}.dateWrap[data-v-989235a2]{padding:8px 0;font-size:12px;text-transform:uppercase;color:#71747c;display:flex;flex-direction:row;justify-content:space-between}#scrubber[data-v-989235a2]{background:#fff;box-shadow:inset 0 0 0 1px #c5c5c5;box-sizing:border-box;position:relative;display:flex}#canvasWrap[data-v-989235a2]{height:30px;position:relative}.noselect[data-v-989235a2]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.canvas[data-v-989235a2]{position:absolute;top:0;left:0;cursor:pointer}.canvas[dragme][data-v-989235a2]{cursor:move}.canvas[resizeme][data-v-989235a2]{cursor:ew-resize}#annotationCanvas[data-v-989235a2]{margin-top:1px}#iCanvas[data-v-989235a2]{margin-left:0}",""]),e["default"]=a},6639:function(t,e,n){"use strict";n.r(e);var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o),a=s()(i());a.push([t.id,".timeseries-viewer[data-v-1d6b8d00]{display:flex;flex-direction:column}#channelCanvas[data-v-1d6b8d00]{display:flex;height:100%;background-color:#fff}#channelLabels[data-v-1d6b8d00]{justify-content:space-around;line-height:normal;margin-bottom:40px;min-width:75px}#channelLabels[data-v-1d6b8d00],.chLabelWrap[data-v-1d6b8d00]{display:flex;flex-direction:column}.chLabelWrap[data-v-1d6b8d00]{align-items:center;cursor:pointer}.chLabelIndWrap[data-v-1d6b8d00]{position:relative;display:flex;flex-direction:row;justify-content:space-around;width:100%;color:#3c54a4}.chLabelInd[data-v-1d6b8d00]{font-size:.6em;min-width:70px;color:#969696;text-align:right;white-space:nowrap}.chLabelIndWrap[selected][data-v-1d6b8d00],.labelDiv[selected][data-v-1d6b8d00]{color:#295eff}.labelDiv[data-v-1d6b8d00]{align-self:flex-end;white-space:nowrap;color:var(--neuron)}",""]),e["default"]=a},8336:function(t,e,n){"use strict";n.r(e);var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o),a=s()(i());a.push([t.id,".timeseries-viewer-canvas[data-v-0f680526]{display:flex;background-color:#fff;flex:1}#canvasWrapper[data-v-0f680526]{position:relative}#channelCanvas[data-v-0f680526]{display:flex}.canvas[data-v-0f680526]{position:absolute;top:0;left:0;margin-left:5px;cursor:ew-resize;outline:none}.canvas[active][data-v-0f680526]{cursor:pointer}.canvas[col_resize][data-v-0f680526]{cursor:col-resize}.canvas[point][data-v-0f680526]{cursor:default}.canvas[cursor_hover][data-v-0f680526]{cursor:col-resize}#cursorArea[data-v-0f680526]{margin-left:0}#annotationPopover[data-v-0f680526]{position:absolute;opacity:0;display:none;top:75px;z-index:1000;left:400px}",""]),e["default"]=a},4904:function(t,e,n){"use strict";n.r(e);var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o),a=s()(i());a.push([t.id,".timeseries-viewer-toolbar[data-v-09a81dc6]{border-top:1px solid #dadada;background:#f7f7f7;display:flex;padding:8px 0;width:100%;justify-content:space-between;align-items:center}.icon[data-v-09a81dc6]{vertical-align:middle;padding-bottom:1px}.btn-icon[data-v-09a81dc6]{color:#928d85;margin-left:8px;margin-right:2px}.btn-icon[data-v-09a81dc6]:last-child{margin-right:8px}.btn-icon.selected[data-v-09a81dc6],.btn-icon[data-v-09a81dc6]:hover,.btn-icon[focused][data-v-09a81dc6]{color:#5039f7}.btn-icon[disabled][data-v-09a81dc6]{color:#e7e5e1}.playSelect[data-v-09a81dc6]{width:75px;margin-right:8px}",""]),e["default"]=a},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"===typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);r&&s[l[0]]||("undefined"!==typeof o&&("undefined"===typeof l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},3281:function(t,e,n){"use strict";t.exports=n(9050)},2967:function(t){"use strict";t.exports=r;var e,n=/\/|\./;function r(t,e){n.test(t)||(t="google/protobuf/"+t+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),r[t]=e}r("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),r("duration",{Duration:e={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),r("timestamp",{Timestamp:e}),r("empty",{Empty:{fields:{}}}),r("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),r("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),r("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),r.get=function(t){return r[t]||null}},3996:function(t,e,n){"use strict";var r=e,i=n(7025),o=n(9935);function s(t,e,n,r){if(e.resolvedType)if(e.resolvedType instanceof i){t("switch(d%s){",r);for(var o=e.resolvedType.values,s=Object.keys(o),a=0;a<s.length;++a)e.repeated&&o[s[a]]===e.typeDefault&&t("default:"),t("case%j:",s[a])("case %i:",o[s[a]])("m%s=%j",r,o[s[a]])("break");t("}")}else t('if(typeof d%s!=="object")',r)("throw TypeError(%j)",e.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",r,n,r);else{var u=!1;switch(e.type){case"double":case"float":t("m%s=Number(d%s)",r,r);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",r,r);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",r,r);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",r,r,u)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,u?"true":"");break;case"bytes":t('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length)",r)("m%s=d%s",r,r);break;case"string":t("m%s=String(d%s)",r,r);break;case"bool":t("m%s=Boolean(d%s)",r,r);break}}return t}function a(t,e,n,r){if(e.resolvedType)e.resolvedType instanceof i?t("d%s=o.enums===String?types[%i].values[m%s]:m%s",r,n,r,r):t("d%s=types[%i].toObject(m%s,o)",r,n,r);else{var o=!1;switch(e.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,r,r,r);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',r)("d%s=o.longs===String?String(m%s):m%s",r,r,r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",r,r,r,r,o?"true":"",r);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",r,r,r,r,r);break;default:t("d%s=m%s",r,r);break}}return t}r.fromObject=function(t){var e=t.fieldsArray,n=o.codegen(["d"],t.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!e.length)return n("return new this.ctor");n("var m=new this.ctor");for(var r=0;r<e.length;++r){var a=e[r].resolve(),u=o.safeProp(a.name);a.map?(n("if(d%s){",u)('if(typeof d%s!=="object")',u)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",u),s(n,a,r,u+"[ks[i]]")("}")("}")):a.repeated?(n("if(d%s){",u)("if(!Array.isArray(d%s))",u)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",u)("for(var i=0;i<d%s.length;++i){",u),s(n,a,r,u+"[i]")("}")("}")):(a.resolvedType instanceof i||n("if(d%s!=null){",u),s(n,a,r,u),a.resolvedType instanceof i||n("}"))}return n("return m")},r.toObject=function(t){var e=t.fieldsArray.slice().sort(o.compareFieldsById);if(!e.length)return o.codegen()("return {}");for(var n=o.codegen(["m","o"],t.name+"$toObject")("if(!o)")("o={}")("var d={}"),r=[],s=[],u=[],c=0;c<e.length;++c)e[c].partOf||(e[c].resolve().repeated?r:e[c].map?s:u).push(e[c]);if(r.length){for(n("if(o.arrays||o.defaults){"),c=0;c<r.length;++c)n("d%s=[]",o.safeProp(r[c].name));n("}")}if(s.length){for(n("if(o.objects||o.defaults){"),c=0;c<s.length;++c)n("d%s={}",o.safeProp(s[c].name));n("}")}if(u.length){for(n("if(o.defaults){"),c=0;c<u.length;++c){var l=u[c],f=o.safeProp(l.name);if(l.resolvedType instanceof i)n("d%s=o.enums===String?%j:%j",f,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)n("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",f)("}else")("d%s=o.longs===String?%j:%i",f,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var h="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";n("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",f,h)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")}else n("d%s=%j",f,l.typeDefault)}n("}")}var p=!1;for(c=0;c<e.length;++c){l=e[c];var d=t._fieldsArray.indexOf(l);f=o.safeProp(l.name);l.map?(p||(p=!0,n("var ks2")),n("if(m%s&&(ks2=Object.keys(m%s)).length){",f,f)("d%s={}",f)("for(var j=0;j<ks2.length;++j){"),a(n,l,d,f+"[ks2[j]]")("}")):l.repeated?(n("if(m%s&&m%s.length){",f,f)("d%s=[]",f)("for(var j=0;j<m%s.length;++j){",f),a(n,l,d,f+"[j]")("}")):(n("if(m%s!=null&&m.hasOwnProperty(%j)){",f,l.name),a(n,l,d,f),l.partOf&&n("if(o.oneofs)")("d%s=%j",o.safeProp(l.partOf.name),l.name)),n("}")}return n("return d")}},5305:function(t,e,n){"use strict";t.exports=a;var r=n(7025),i=n(7063),o=n(9935);function s(t){return"missing required '"+t.name+"'"}function a(t){var e=o.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter((function(t){return t.map})).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break"),e("switch(t>>>3){");for(var n=0;n<t.fieldsArray.length;++n){var a=t._fieldsArray[n].resolve(),u=a.resolvedType instanceof r?"int32":a.type,c="m"+o.safeProp(a.name);e("case %i:",a.id),a.map?(e("if(%s===util.emptyObject)",c)("%s={}",c)("var c2 = r.uint32()+r.pos"),void 0!==i.defaults[a.keyType]?e("k=%j",i.defaults[a.keyType]):e("k=null"),void 0!==i.defaults[u]?e("value=%j",i.defaults[u]):e("value=null"),e("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===i.basic[u]?e("value=types[%i].decode(r,r.uint32())",n):e("value=r.%s()",u),e("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==i.long[a.keyType]?e('%s[typeof k==="object"?util.longToHash(k):k]=value',c):e("%s[k]=value",c)):a.repeated?(e("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==i.packed[u]&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",c,u)("}else"),void 0===i.basic[u]?e(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",c,n):e("%s.push(r.%s())",c,u)):void 0===i.basic[u]?e(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",c,n):e("%s=r.%s()",c,u),e("break")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),n=0;n<t._fieldsArray.length;++n){var l=t._fieldsArray[n];l.required&&e("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",s(l))}return e("return m")}},4928:function(t,e,n){"use strict";t.exports=a;var r=n(7025),i=n(7063),o=n(9935);function s(t,e,n,r){return e.resolvedType.group?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",n,r,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",n,r,(e.id<<3|2)>>>0)}function a(t){for(var e,n=o.codegen(["m","w"],t.name+"$encode")("if(!w)")("w=Writer.create()"),a=t.fieldsArray.slice().sort(o.compareFieldsById),u=0;u<a.length;++u){var c=a[u].resolve(),l=t._fieldsArray.indexOf(c),f=c.resolvedType instanceof r?"int32":c.type,h=i.basic[f];e="m"+o.safeProp(c.name),c.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",e,c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",e)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(c.id<<3|2)>>>0,8|i.mapKey[c.keyType],c.keyType),void 0===h?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,e):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,f,e),n("}")("}")):c.repeated?(n("if(%s!=null&&%s.length){",e,e),c.packed&&void 0!==i.packed[f]?n("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",e)("w.%s(%s[i])",f,e)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",e),void 0===h?s(n,c,l,e+"[i]"):n("w.uint32(%i).%s(%s[i])",(c.id<<3|h)>>>0,f,e)),n("}")):(c.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",e,c.name),void 0===h?s(n,c,l,e):n("w.uint32(%i).%s(%s)",(c.id<<3|h)>>>0,f,e))}return n("return w")}},7025:function(t,e,n){"use strict";t.exports=s;var r=n(3243);((s.prototype=Object.create(r.prototype)).constructor=s).className="Enum";var i=n(9313),o=n(9935);function s(t,e,n,i,o){if(r.call(this,t,n),e&&"object"!==typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.reserved=void 0,e)for(var s=Object.keys(e),a=0;a<s.length;++a)"number"===typeof e[s[a]]&&(this.valuesById[this.values[s[a]]=e[s[a]]]=s[a])}s.fromJSON=function(t,e){var n=new s(t,e.values,e.options,e.comment,e.comments);return n.reserved=e.reserved,n},s.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return o.toObject(["options",this.options,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",e?this.comment:void 0,"comments",e?this.comments:void 0])},s.prototype.add=function(t,e,n){if(!o.isString(t))throw TypeError("name must be a string");if(!o.isInteger(e))throw TypeError("id must be an integer");if(void 0!==this.values[t])throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(e))throw Error("id "+e+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(void 0!==this.valuesById[e]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+e+" in "+this);this.values[t]=e}else this.valuesById[this.values[t]=e]=t;return this.comments[t]=n||null,this},s.prototype.remove=function(t){if(!o.isString(t))throw TypeError("name must be a string");var e=this.values[t];if(null==e)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[e],delete this.values[t],delete this.comments[t],this},s.prototype.isReservedId=function(t){return i.isReservedId(this.reserved,t)},s.prototype.isReservedName=function(t){return i.isReservedName(this.reserved,t)}},3548:function(t,e,n){"use strict";t.exports=c;var r=n(3243);((c.prototype=Object.create(r.prototype)).constructor=c).className="Field";var i,o=n(7025),s=n(7063),a=n(9935),u=/^required|optional|repeated$/;function c(t,e,n,i,o,c,l){if(a.isObject(i)?(l=o,c=i,i=o=void 0):a.isObject(o)&&(l=c,c=o,o=void 0),r.call(this,t,c),!a.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!a.isString(n))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=n,this.id=e,this.extend=o||void 0,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[n],this.bytes="bytes"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}c.fromJSON=function(t,e){return new c(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},Object.defineProperty(c.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),c.prototype.setOption=function(t,e,n){return"packed"===t&&(this._packed=null),r.prototype.setOption.call(this,t,e,n)},c.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return a.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options["default"]&&(this.typeDefault=this.options["default"],this.resolvedType instanceof o&&"string"===typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"===typeof this.typeDefault){var t;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,t=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,t=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},c.d=function(t,e,n,r){return"function"===typeof e?e=a.decorateType(e).name:e&&"object"===typeof e&&(e=a.decorateEnum(e).name),function(i,o){a.decorateType(i.constructor).add(new c(o,t,e,n,{default:r}))}},c._configure=function(t){i=t}},8836:function(t,e,n){"use strict";var r=t.exports=n(9482);function i(t,e,n){return"function"===typeof e?(n=e,e=new r.Root):e||(e=new r.Root),e.load(t,n)}function o(t,e){return e||(e=new r.Root),e.loadSync(t)}r.build="light",r.load=i,r.loadSync=o,r.encoder=n(4928),r.decoder=n(5305),r.verifier=n(4497),r.converter=n(3996),r.ReflectionObject=n(3243),r.Namespace=n(9313),r.Root=n(9424),r.Enum=n(7025),r.Type=n(7645),r.Field=n(3548),r.OneOf=n(7598),r.MapField=n(6039),r.Service=n(7513),r.Method=n(4429),r.Message=n(4212),r.wrappers=n(1667),r.types=n(7063),r.util=n(9935),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},9482:function(t,e,n){"use strict";var r=e;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(1173),r.BufferWriter=n(3155),r.Reader=n(1408),r.BufferReader=n(593),r.util=n(9693),r.rpc=n(5994),r.roots=n(5054),r.configure=i,i()},9050:function(t,e,n){"use strict";var r=t.exports=n(8836);r.build="full",r.tokenize=n(626),r.parse=n(2228),r.common=n(2967),r.Root._configure(r.Type,r.parse,r.common)},6039:function(t,e,n){"use strict";t.exports=s;var r=n(3548);((s.prototype=Object.create(r.prototype)).constructor=s).className="MapField";var i=n(7063),o=n(9935);function s(t,e,n,i,s,a){if(r.call(this,t,e,i,void 0,void 0,s,a),!o.isString(n))throw TypeError("keyType must be a string");this.keyType=n,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(t,e){return new s(t,e.id,e.keyType,e.type,e.options,e.comment)},s.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===i.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return r.prototype.resolve.call(this)},s.d=function(t,e,n){return"function"===typeof n?n=o.decorateType(n).name:n&&"object"===typeof n&&(n=o.decorateEnum(n).name),function(r,i){o.decorateType(r.constructor).add(new s(i,t,e,n))}}},4212:function(t,e,n){"use strict";t.exports=i;var r=n(9693);function i(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)this[e[n]]=t[e[n]]}i.create=function(t){return this.$type.create(t)},i.encode=function(t,e){return this.$type.encode(t,e)},i.encodeDelimited=function(t,e){return this.$type.encodeDelimited(t,e)},i.decode=function(t){return this.$type.decode(t)},i.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},i.verify=function(t){return this.$type.verify(t)},i.fromObject=function(t){return this.$type.fromObject(t)},i.toObject=function(t,e){return this.$type.toObject(t,e)},i.prototype.toJSON=function(){return this.$type.toObject(this,r.toJSONOptions)}},4429:function(t,e,n){"use strict";t.exports=o;var r=n(3243);((o.prototype=Object.create(r.prototype)).constructor=o).className="Method";var i=n(9935);function o(t,e,n,o,s,a,u,c,l){if(i.isObject(s)?(u=s,s=a=void 0):i.isObject(a)&&(u=a,a=void 0),void 0!==e&&!i.isString(e))throw TypeError("type must be a string");if(!i.isString(n))throw TypeError("requestType must be a string");if(!i.isString(o))throw TypeError("responseType must be a string");r.call(this,t,u),this.type=e||"rpc",this.requestType=n,this.requestStream=!!s||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=c,this.parsedOptions=l}o.fromJSON=function(t,e){return new o(t,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options,e.comment,e.parsedOptions)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return i.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",e?this.comment:void 0,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},9313:function(t,e,n){"use strict";t.exports=f;var r=n(3243);((f.prototype=Object.create(r.prototype)).constructor=f).className="Namespace";var i,o,s,a=n(3548),u=n(7598),c=n(9935);function l(t,e){if(t&&t.length){for(var n={},r=0;r<t.length;++r)n[t[r].name]=t[r].toJSON(e);return n}}function f(t,e){r.call(this,t,e),this.nested=void 0,this._nestedArray=null}function h(t){return t._nestedArray=null,t}f.fromJSON=function(t,e){return new f(t,e.options).addJSON(e.nested)},f.arrayToJSON=l,f.isReservedId=function(t,e){if(t)for(var n=0;n<t.length;++n)if("string"!==typeof t[n]&&t[n][0]<=e&&t[n][1]>e)return!0;return!1},f.isReservedName=function(t,e){if(t)for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1},Object.defineProperty(f.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=c.toArray(this.nested))}}),f.prototype.toJSON=function(t){return c.toObject(["options",this.options,"nested",l(this.nestedArray,t)])},f.prototype.addJSON=function(t){var e=this;if(t)for(var n,r=Object.keys(t),u=0;u<r.length;++u)n=t[r[u]],e.add((void 0!==n.fields?i.fromJSON:void 0!==n.values?s.fromJSON:void 0!==n.methods?o.fromJSON:void 0!==n.id?a.fromJSON:f.fromJSON)(r[u],n));return this},f.prototype.get=function(t){return this.nested&&this.nested[t]||null},f.prototype.getEnum=function(t){if(this.nested&&this.nested[t]instanceof s)return this.nested[t].values;throw Error("no such enum: "+t)},f.prototype.add=function(t){if(!(t instanceof a&&void 0!==t.extend||t instanceof i||t instanceof s||t instanceof o||t instanceof f||t instanceof u))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof f&&t instanceof f)||e instanceof i||e instanceof o)throw Error("duplicate name '"+t.name+"' in "+this);for(var n=e.nestedArray,r=0;r<n.length;++r)t.add(n[r]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),h(this)},f.prototype.remove=function(t){if(!(t instanceof r))throw TypeError("object must be a ReflectionObject");if(t.parent!==this)throw Error(t+" is not a member of "+this);return delete this.nested[t.name],Object.keys(this.nested).length||(this.nested=void 0),t.onRemove(this),h(this)},f.prototype.define=function(t,e){if(c.isString(t))t=t.split(".");else if(!Array.isArray(t))throw TypeError("illegal path");if(t&&t.length&&""===t[0])throw Error("path must be relative");var n=this;while(t.length>0){var r=t.shift();if(n.nested&&n.nested[r]){if(n=n.nested[r],!(n instanceof f))throw Error("path conflicts with non-namespace objects")}else n.add(n=new f(r))}return e&&n.addJSON(e),n},f.prototype.resolveAll=function(){var t=this.nestedArray,e=0;while(e<t.length)t[e]instanceof f?t[e++].resolveAll():t[e++].resolve();return this.resolve()},f.prototype.lookup=function(t,e,n){if("boolean"===typeof e?(n=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),c.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var r=this.get(t[0]);if(r){if(1===t.length){if(!e||e.indexOf(r.constructor)>-1)return r}else if(r instanceof f&&(r=r.lookup(t.slice(1),e,!0)))return r}else for(var i=0;i<this.nestedArray.length;++i)if(this._nestedArray[i]instanceof f&&(r=this._nestedArray[i].lookup(t,e,!0)))return r;return null===this.parent||n?null:this.parent.lookup(t,e)},f.prototype.lookupType=function(t){var e=this.lookup(t,[i]);if(!e)throw Error("no such type: "+t);return e},f.prototype.lookupEnum=function(t){var e=this.lookup(t,[s]);if(!e)throw Error("no such Enum '"+t+"' in "+this);return e},f.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[i,s]);if(!e)throw Error("no such Type or Enum '"+t+"' in "+this);return e},f.prototype.lookupService=function(t){var e=this.lookup(t,[o]);if(!e)throw Error("no such Service '"+t+"' in "+this);return e},f._configure=function(t,e,n){i=t,o=e,s=n}},3243:function(t,e,n){"use strict";t.exports=o,o.className="ReflectionObject";var r,i=n(9935);function o(t,e){if(!i.isString(t))throw TypeError("name must be a string");if(e&&!i.isObject(e))throw TypeError("options must be an object");this.options=e,this.parsedOptions=null,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(o.prototype,{root:{get:function(){var t=this;while(null!==t.parent)t=t.parent;return t}},fullName:{get:function(){var t=[this.name],e=this.parent;while(e)t.unshift(e.name),e=e.parent;return t.join(".")}}}),o.prototype.toJSON=function(){throw Error()},o.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof r&&e._handleAdd(this)},o.prototype.onRemove=function(t){var e=t.root;e instanceof r&&e._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved||this.root instanceof r&&(this.resolved=!0),this},o.prototype.getOption=function(t){if(this.options)return this.options[t]},o.prototype.setOption=function(t,e,n){return n&&this.options&&void 0!==this.options[t]||((this.options||(this.options={}))[t]=e),this},o.prototype.setParsedOption=function(t,e,n){this.parsedOptions||(this.parsedOptions=[]);var r=this.parsedOptions;if(n){var o=r.find((function(e){return Object.prototype.hasOwnProperty.call(e,t)}));if(o){var s=o[t];i.setProperty(s,n,e)}else o={},o[t]=i.setProperty({},n,e),r.push(o)}else{var a={};a[t]=e,r.push(a)}return this},o.prototype.setOptions=function(t,e){if(t)for(var n=Object.keys(t),r=0;r<n.length;++r)this.setOption(n[r],t[n[r]],e);return this},o.prototype.toString=function(){var t=this.constructor.className,e=this.fullName;return e.length?t+" "+e:t},o._configure=function(t){r=t}},7598:function(t,e,n){"use strict";t.exports=s;var r=n(3243);((s.prototype=Object.create(r.prototype)).constructor=s).className="OneOf";var i=n(3548),o=n(9935);function s(t,e,n,i){if(Array.isArray(e)||(n=e,e=void 0),r.call(this,t,n),void 0!==e&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=i}function a(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}s.fromJSON=function(t,e){return new s(t,e.oneof,e.options,e.comment)},s.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return o.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},s.prototype.add=function(t){if(!(t instanceof i))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,a(this),this},s.prototype.remove=function(t){if(!(t instanceof i))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),e=this.oneof.indexOf(t.name),e>-1&&this.oneof.splice(e,1),t.partOf=null,this},s.prototype.onAdd=function(t){r.prototype.onAdd.call(this,t);for(var e=this,n=0;n<this.oneof.length;++n){var i=t.get(this.oneof[n]);i&&!i.partOf&&(i.partOf=e,e.fieldsArray.push(i))}a(this)},s.prototype.onRemove=function(t){for(var e,n=0;n<this.fieldsArray.length;++n)(e=this.fieldsArray[n]).parent&&e.parent.remove(e);r.prototype.onRemove.call(this,t)},s.d=function(){var t=new Array(arguments.length),e=0;while(e<arguments.length)t[e]=arguments[e++];return function(e,n){o.decorateType(e.constructor).add(new s(n,t)),Object.defineProperty(e,n,{get:o.oneOfGetter(t),set:o.oneOfSetter(t)})}}},2228:function(t,e,n){"use strict";t.exports=A,A.filename=null,A.defaults={keepCase:!1};var r=n(626),i=n(9424),o=n(7645),s=n(3548),a=n(6039),u=n(7598),c=n(7025),l=n(7513),f=n(4429),h=n(7063),p=n(9935),d=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,y=/^0[x][0-9a-fA-F]+$/,g=/^-?0[x][0-9a-fA-F]+$/,m=/^0[0-7]+$/,b=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,x=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,S=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function A(t,e,n){e instanceof i||(n=e,e=new i),n||(n=A.defaults);var T,k,O,E,C,P=n.preferTrailingComment||!1,R=r(t,n.alternateCommentMode||!1),N=R.next,I=R.push,j=R.peek,M=R.skip,L=R.cmnt,D=!0,F=!1,$=e,q=n.keepCase?function(t){return t}:p.camelCase;function B(t,e,n){var r=A.filename;return n||(A.filename=null),Error("illegal "+(e||"token")+" '"+t+"' ("+(r?r+", ":"")+"line "+R.line+")")}function W(){var t,e=[];do{if('"'!==(t=N())&&"'"!==t)throw B(t);e.push(N()),M(t),t=j()}while('"'===t||"'"===t);return e.join("")}function U(t){var e=N();switch(e){case"'":case'"':return I(e),W();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return z(e,!0)}catch(n){if(t&&x.test(e))return e;throw B(e,"value")}}function V(t,e){var n,r;do{!e||'"'!==(n=j())&&"'"!==n?t.push([r=H(N()),M("to",!0)?H(N()):r]):t.push(W())}while(M(",",!0));M(";")}function z(t,e){var n=1;switch("-"===t.charAt(0)&&(n=-1,t=t.substring(1)),t){case"inf":case"INF":case"Inf":return n*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(d.test(t))return n*parseInt(t,10);if(y.test(t))return n*parseInt(t,16);if(m.test(t))return n*parseInt(t,8);if(w.test(t))return n*parseFloat(t);throw B(t,"number",e)}function H(t,e){switch(t){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!e&&"-"===t.charAt(0))throw B(t,"id");if(v.test(t))return parseInt(t,10);if(g.test(t))return parseInt(t,16);if(b.test(t))return parseInt(t,8);throw B(t,"id")}function Z(){if(void 0!==T)throw B("package");if(T=N(),!x.test(T))throw B(T,"name");$=$.define(T),M(";")}function G(){var t,e=j();switch(e){case"weak":t=O||(O=[]),N();break;case"public":N();default:t=k||(k=[]);break}e=W(),M(";"),t.push(e)}function J(){if(M("="),E=W(),F="proto3"===E,!F&&"proto2"!==E)throw B(E,"syntax");M(";")}function X(t,e){switch(e){case"option":return ot(t,e),M(";"),!0;case"message":return K(t,e),!0;case"enum":return rt(t,e),!0;case"service":return lt(t,e),!0;case"extend":return ht(t,e),!0}return!1}function Y(t,e,n){var r=R.line;if(t&&("string"!==typeof t.comment&&(t.comment=L()),t.filename=A.filename),M("{",!0)){var i;while("}"!==(i=N()))e(i);M(";",!0)}else n&&n(),M(";"),t&&("string"!==typeof t.comment||P)&&(t.comment=L(r)||t.comment)}function K(t,e){if(!_.test(e=N()))throw B(e,"type name");var n=new o(e);Y(n,(function(t){if(!X(n,t))switch(t){case"map":et(n,t);break;case"required":case"repeated":Q(n,t);break;case"optional":Q(n,F?"proto3_optional":"optional");break;case"oneof":nt(n,t);break;case"extensions":V(n.extensions||(n.extensions=[]));break;case"reserved":V(n.reserved||(n.reserved=[]),!0);break;default:if(!F||!x.test(t))throw B(t);I(t),Q(n,"optional");break}})),t.add(n)}function Q(t,e,n){var r=N();if("group"!==r){if(!x.test(r))throw B(r,"type");var i=N();if(!_.test(i))throw B(i,"name");i=q(i),M("=");var o=new s(i,H(N()),r,e,n);if(Y(o,(function(t){if("option"!==t)throw B(t);ot(o,t),M(";")}),(function(){ct(o)})),"proto3_optional"===e){var a=new u("_"+i);o.setOption("proto3_optional",!0),a.add(o),t.add(a)}else t.add(o);F||!o.repeated||void 0===h.packed[r]&&void 0!==h.basic[r]||o.setOption("packed",!1,!0)}else tt(t,e)}function tt(t,e){var n=N();if(!_.test(n))throw B(n,"name");var r=p.lcFirst(n);n===r&&(n=p.ucFirst(n)),M("=");var i=H(N()),a=new o(n);a.group=!0;var u=new s(r,i,n,e);u.filename=A.filename,Y(a,(function(t){switch(t){case"option":ot(a,t),M(";");break;case"required":case"repeated":Q(a,t);break;case"optional":Q(a,F?"proto3_optional":"optional");break;default:throw B(t)}})),t.add(a).add(u)}function et(t){M("<");var e=N();if(void 0===h.mapKey[e])throw B(e,"type");M(",");var n=N();if(!x.test(n))throw B(n,"type");M(">");var r=N();if(!_.test(r))throw B(r,"name");M("=");var i=new a(q(r),H(N()),e,n);Y(i,(function(t){if("option"!==t)throw B(t);ot(i,t),M(";")}),(function(){ct(i)})),t.add(i)}function nt(t,e){if(!_.test(e=N()))throw B(e,"name");var n=new u(q(e));Y(n,(function(t){"option"===t?(ot(n,t),M(";")):(I(t),Q(n,"optional"))})),t.add(n)}function rt(t,e){if(!_.test(e=N()))throw B(e,"name");var n=new c(e);Y(n,(function(t){switch(t){case"option":ot(n,t),M(";");break;case"reserved":V(n.reserved||(n.reserved=[]),!0);break;default:it(n,t)}})),t.add(n)}function it(t,e){if(!_.test(e))throw B(e,"name");M("=");var n=H(N(),!0),r={};Y(r,(function(t){if("option"!==t)throw B(t);ot(r,t),M(";")}),(function(){ct(r)})),t.add(e,n,r.comment)}function ot(t,e){var n=M("(",!0);if(!x.test(e=N()))throw B(e,"name");var r,i=e,o=i;n&&(M(")"),i="("+i+")",o=i,e=j(),S.test(e)&&(r=e.substr(1),i+=e,N())),M("=");var s=st(t,i);ut(t,o,s,r)}function st(t,e){if(M("{",!0)){var n={};while(!M("}",!0)){if(!_.test(C=N()))throw B(C,"name");var r,i=C;"{"===j()?r=st(t,e+"."+C):(M(":"),"{"===j()?r=st(t,e+"."+C):(r=U(!0),at(t,e+"."+C,r)));var o=n[i];o&&(r=[].concat(o).concat(r)),n[i]=r,M(",",!0)}return n}var s=U(!0);return at(t,e,s),s}function at(t,e,n){t.setOption&&t.setOption(e,n)}function ut(t,e,n,r){t.setParsedOption&&t.setParsedOption(e,n,r)}function ct(t){if(M("[",!0)){do{ot(t,"option")}while(M(",",!0));M("]")}return t}function lt(t,e){if(!_.test(e=N()))throw B(e,"service name");var n=new l(e);Y(n,(function(t){if(!X(n,t)){if("rpc"!==t)throw B(t);ft(n,t)}})),t.add(n)}function ft(t,e){var n=L(),r=e;if(!_.test(e=N()))throw B(e,"name");var i,o,s,a,u=e;if(M("("),M("stream",!0)&&(o=!0),!x.test(e=N()))throw B(e);if(i=e,M(")"),M("returns"),M("("),M("stream",!0)&&(a=!0),!x.test(e=N()))throw B(e);s=e,M(")");var c=new f(u,r,i,s,o,a);c.comment=n,Y(c,(function(t){if("option"!==t)throw B(t);ot(c,t),M(";")})),t.add(c)}function ht(t,e){if(!x.test(e=N()))throw B(e,"reference");var n=e;Y(null,(function(e){switch(e){case"required":case"repeated":Q(t,e,n);break;case"optional":Q(t,F?"proto3_optional":"optional",n);break;default:if(!F||!x.test(e))throw B(e);I(e),Q(t,"optional",n);break}}))}while(null!==(C=N()))switch(C){case"package":if(!D)throw B(C);Z();break;case"import":if(!D)throw B(C);G();break;case"syntax":if(!D)throw B(C);J();break;case"option":ot($,C),M(";");break;default:if(X($,C)){D=!1;continue}throw B(C)}return A.filename=null,{package:T,imports:k,weakImports:O,syntax:E,root:e}}},1408:function(t,e,n){"use strict";t.exports=u;var r,i=n(9693),o=i.LongBits,s=i.utf8;function a(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var c="undefined"!==typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(u.create=function(t){return i.Buffer.isBuffer(t)?new r(t):c(t)})(t)}:c};function f(){var t=new o(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw a(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw a(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function h(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=function(){var t=4294967295;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return t;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return t}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw a(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,n):e===n?new this.buf.constructor(0):this._slice.call(this.buf,e,n)},u.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},u.prototype.skip=function(t){if("number"===typeof t){if(this.pos+t>this.len)throw a(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:while(4!==(t=7&this.uint32()))this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){r=t,u.create=l(),r._configure();var e=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return f.call(this)[e](!1)},uint64:function(){return f.call(this)[e](!0)},sint64:function(){return f.call(this).zzDecode()[e](!1)},fixed64:function(){return p.call(this)[e](!0)},sfixed64:function(){return p.call(this)[e](!1)}})}},593:function(t,e,n){"use strict";t.exports=o;var r=n(1408);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(9693);function o(t){r.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},9424:function(t,e,n){"use strict";t.exports=f;var r=n(9313);((f.prototype=Object.create(r.prototype)).constructor=f).className="Root";var i,o,s,a=n(3548),u=n(7025),c=n(7598),l=n(9935);function f(t){r.call(this,"",t),this.deferred=[],this.files=[]}function h(){}f.fromJSON=function(t,e){return e||(e=new f),t.options&&e.setOptions(t.options),e.addJSON(t.nested)},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function t(e,n,r){"function"===typeof n&&(r=n,n=void 0);var i=this;if(!r)return l.asPromise(t,i,e,n);var a=r===h;function u(t,e){if(r){var n=r;if(r=null,a)throw t;n(t,e)}}function c(t){var e=t.lastIndexOf("google/protobuf/");if(e>-1){var n=t.substring(e);if(n in s)return n}return null}function f(t,e){try{if(l.isString(e)&&"{"===e.charAt(0)&&(e=JSON.parse(e)),l.isString(e)){o.filename=t;var r,s=o(e,i,n),f=0;if(s.imports)for(;f<s.imports.length;++f)(r=c(s.imports[f])||i.resolvePath(t,s.imports[f]))&&p(r);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(r=c(s.weakImports[f])||i.resolvePath(t,s.weakImports[f]))&&p(r,!0)}else i.setOptions(e.options).addJSON(e.nested)}catch(h){u(h)}a||d||u(null,i)}function p(t,e){if(!(i.files.indexOf(t)>-1))if(i.files.push(t),t in s)a?f(t,s[t]):(++d,setTimeout((function(){--d,f(t,s[t])})));else if(a){var n;try{n=l.fs.readFileSync(t).toString("utf8")}catch(o){return void(e||u(o))}f(t,n)}else++d,i.fetch(t,(function(n,o){--d,r&&(n?e?d||u(null,i):u(n):f(t,o))}))}var d=0;l.isString(e)&&(e=[e]);for(var v,y=0;y<e.length;++y)(v=i.resolvePath("",e[y]))&&p(v);if(a)return i;d||u(null,i)},f.prototype.loadSync=function(t,e){if(!l.isNode)throw Error("not supported");return this.load(t,e,h)},f.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map((function(t){return"'extend "+t.extend+"' in "+t.parent.fullName})).join(", "));return r.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function d(t,e){var n=e.parent.lookup(e.extend);if(n){var r=new a(e.fullName,e.id,e.type,e.rule,void 0,e.options);return r.declaringField=e,e.extensionField=r,n.add(r),!0}return!1}f.prototype._handleAdd=function(t){if(t instanceof a)void 0===t.extend||t.extensionField||d(this,t)||this.deferred.push(t);else if(t instanceof u)p.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof c)){if(t instanceof i)for(var e=0;e<this.deferred.length;)d(this,this.deferred[e])?this.deferred.splice(e,1):++e;for(var n=0;n<t.nestedArray.length;++n)this._handleAdd(t._nestedArray[n]);p.test(t.name)&&(t.parent[t.name]=t)}},f.prototype._handleRemove=function(t){if(t instanceof a){if(void 0!==t.extend)if(t.extensionField)t.extensionField.parent.remove(t.extensionField),t.extensionField=null;else{var e=this.deferred.indexOf(t);e>-1&&this.deferred.splice(e,1)}}else if(t instanceof u)p.test(t.name)&&delete t.parent[t.name];else if(t instanceof r){for(var n=0;n<t.nestedArray.length;++n)this._handleRemove(t._nestedArray[n]);p.test(t.name)&&delete t.parent[t.name]}},f._configure=function(t,e,n){i=t,o=e,s=n}},5054:function(t){"use strict";t.exports={}},5994:function(t,e,n){"use strict";var r=e;r.Service=n(7948)},7948:function(t,e,n){"use strict";t.exports=i;var r=n(9693);function i(t,e,n){if("function"!==typeof t)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(e,n,i,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return r.asPromise(t,a,e,n,i,o);if(a.rpcImpl)try{return a.rpcImpl(e,n[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(t,n){if(t)return a.emit("error",t,e),s(t);if(null!==n){if(!(n instanceof i))try{n=i[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return a.emit("error",t,e),s(t)}return a.emit("data",n,e),s(null,n)}a.end(!0)}))}catch(u){return a.emit("error",u,e),void setTimeout((function(){s(u)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},7513:function(t,e,n){"use strict";t.exports=a;var r=n(9313);((a.prototype=Object.create(r.prototype)).constructor=a).className="Service";var i=n(4429),o=n(9935),s=n(5994);function a(t,e){r.call(this,t,e),this.methods={},this._methodsArray=null}function u(t){return t._methodsArray=null,t}a.fromJSON=function(t,e){var n=new a(t,e.options);if(e.methods)for(var r=Object.keys(e.methods),o=0;o<r.length;++o)n.add(i.fromJSON(r[o],e.methods[r[o]]));return e.nested&&n.addJSON(e.nested),n.comment=e.comment,n},a.prototype.toJSON=function(t){var e=r.prototype.toJSON.call(this,t),n=!!t&&Boolean(t.keepComments);return o.toObject(["options",e&&e.options||void 0,"methods",r.arrayToJSON(this.methodsArray,t)||{},"nested",e&&e.nested||void 0,"comment",n?this.comment:void 0])},Object.defineProperty(a.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=o.toArray(this.methods))}}),a.prototype.get=function(t){return this.methods[t]||r.prototype.get.call(this,t)},a.prototype.resolveAll=function(){for(var t=this.methodsArray,e=0;e<t.length;++e)t[e].resolve();return r.prototype.resolve.call(this)},a.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof i?(this.methods[t.name]=t,t.parent=this,u(this)):r.prototype.add.call(this,t)},a.prototype.remove=function(t){if(t instanceof i){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,u(this)}return r.prototype.remove.call(this,t)},a.prototype.create=function(t,e,n){for(var r,i=new s.Service(t,e,n),a=0;a<this.methodsArray.length;++a){var u=o.lcFirst((r=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");i[u]=o.codegen(["r","c"],o.isReserved(u)?u+"_":u)("return this.rpcCall(m,q,s,r,c)")({m:r,q:r.resolvedRequestType.ctor,s:r.resolvedResponseType.ctor})}return i}},626:function(t){"use strict";t.exports=f;var e=/[\s{}=;:[\],'"()<>]/g,n=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,r=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,i=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(t){return t.replace(u,(function(t,e){switch(e){case"\\":case"":return e;default:return c[e]||""}}))}function f(t,u){t=t.toString();var c=0,f=t.length,h=1,p=null,d=null,v=0,y=!1,g=!1,m=[],b=null;function w(t){return Error("illegal "+t+" (line "+h+")")}function _(){var e="'"===b?r:n;e.lastIndex=c-1;var i=e.exec(t);if(!i)throw w("string");return c=e.lastIndex,O(b),b=null,l(i[1])}function x(e){return t.charAt(e)}function S(e,n,r){var a;p=t.charAt(e++),v=h,y=!1,g=r,a=u?2:3;var c,l=e-a;do{if(--l<0||"\n"===(c=t.charAt(l))){y=!0;break}}while(" "===c||"\t"===c);for(var f=t.substring(e,n).split(s),m=0;m<f.length;++m)f[m]=f[m].replace(u?o:i,"").trim();d=f.join("\n").trim()}function A(e){var n=T(e),r=t.substring(e,n),i=/^\s*\/{1,2}/.test(r);return i}function T(t){var e=t;while(e<f&&"\n"!==x(e))e++;return e}function k(){if(m.length>0)return m.shift();if(b)return _();var n,r,i,o,s,l=0===c;do{if(c===f)return null;n=!1;while(a.test(i=x(c)))if("\n"===i&&(l=!0,++h),++c===f)return null;if("/"===x(c)){if(++c===f)throw w("comment");if("/"===x(c))if(u){if(o=c,s=!1,A(c)){s=!0;do{if(c=T(c),c===f)break;c++}while(A(c))}else c=Math.min(f,T(c)+1);s&&S(o,c,l),h++,n=!0}else{s="/"===x(o=c+1);while("\n"!==x(++c))if(c===f)return null;++c,s&&S(o,c-1,l),++h,n=!0}else{if("*"!==(i=x(c)))return"/";o=c+1,s=u||"*"===x(o);do{if("\n"===i&&++h,++c===f)throw w("comment");r=i,i=x(c)}while("*"!==r||"/"!==i);++c,s&&S(o,c-2,l),n=!0}}}while(n);var p=c;e.lastIndex=0;var d=e.test(x(p++));if(!d)while(p<f&&!e.test(x(p)))++p;var v=t.substring(c,c=p);return'"'!==v&&"'"!==v||(b=v),v}function O(t){m.push(t)}function E(){if(!m.length){var t=k();if(null===t)return null;O(t)}return m[0]}function C(t,e){var n=E(),r=n===t;if(r)return k(),!0;if(!e)throw w("token '"+n+"', '"+t+"' expected");return!1}function P(t){var e=null;return void 0===t?v===h-1&&(u||"*"===p||y)&&(e=g?d:null):(v<t&&E(),v!==t||y||!u&&"/"!==p||(e=g?null:d)),e}return Object.defineProperty({next:k,peek:E,push:O,skip:C,cmnt:P},"line",{get:function(){return h}})}f.unescape=l},7645:function(t,e,n){"use strict";t.exports=m;var r=n(9313);((m.prototype=Object.create(r.prototype)).constructor=m).className="Type";var i=n(7025),o=n(7598),s=n(3548),a=n(6039),u=n(7513),c=n(4212),l=n(1408),f=n(1173),h=n(9935),p=n(4928),d=n(5305),v=n(4497),y=n(3996),g=n(1667);function m(t,e){r.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function b(t){return t._fieldsById=t._fieldsArray=t._oneofsArray=null,delete t.encode,delete t.decode,delete t.verify,t}Object.defineProperties(m.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var n=this.fields[t[e]],r=n.id;if(this._fieldsById[r])throw Error("duplicate id "+r+" in "+this);this._fieldsById[r]=n}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=h.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=h.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=m.generateConstructor(this)())},set:function(t){var e=t.prototype;e instanceof c||((t.prototype=new c).constructor=t,h.merge(t.prototype,e)),t.$type=t.prototype.$type=this,h.merge(t,c,!0),this._ctor=t;for(var n=0;n<this.fieldsArray.length;++n)this._fieldsArray[n].resolve();var r={};for(n=0;n<this.oneofsArray.length;++n)r[this._oneofsArray[n].resolve().name]={get:h.oneOfGetter(this._oneofsArray[n].oneof),set:h.oneOfSetter(this._oneofsArray[n].oneof)};n&&Object.defineProperties(t.prototype,r)}}}),m.generateConstructor=function(t){for(var e,n=h.codegen(["p"],t.name),r=0;r<t.fieldsArray.length;++r)(e=t._fieldsArray[r]).map?n("this%s={}",h.safeProp(e.name)):e.repeated&&n("this%s=[]",h.safeProp(e.name));return n("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},m.fromJSON=function(t,e){var n=new m(t,e.options);n.extensions=e.extensions,n.reserved=e.reserved;for(var c=Object.keys(e.fields),l=0;l<c.length;++l)n.add(("undefined"!==typeof e.fields[c[l]].keyType?a.fromJSON:s.fromJSON)(c[l],e.fields[c[l]]));if(e.oneofs)for(c=Object.keys(e.oneofs),l=0;l<c.length;++l)n.add(o.fromJSON(c[l],e.oneofs[c[l]]));if(e.nested)for(c=Object.keys(e.nested),l=0;l<c.length;++l){var f=e.nested[c[l]];n.add((void 0!==f.id?s.fromJSON:void 0!==f.fields?m.fromJSON:void 0!==f.values?i.fromJSON:void 0!==f.methods?u.fromJSON:r.fromJSON)(c[l],f))}return e.extensions&&e.extensions.length&&(n.extensions=e.extensions),e.reserved&&e.reserved.length&&(n.reserved=e.reserved),e.group&&(n.group=!0),e.comment&&(n.comment=e.comment),n},m.prototype.toJSON=function(t){var e=r.prototype.toJSON.call(this,t),n=!!t&&Boolean(t.keepComments);return h.toObject(["options",e&&e.options||void 0,"oneofs",r.arrayToJSON(this.oneofsArray,t),"fields",r.arrayToJSON(this.fieldsArray.filter((function(t){return!t.declaringField})),t)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",e&&e.nested||void 0,"comment",n?this.comment:void 0])},m.prototype.resolveAll=function(){var t=this.fieldsArray,e=0;while(e<t.length)t[e++].resolve();var n=this.oneofsArray;e=0;while(e<n.length)n[e++].resolve();return r.prototype.resolveAll.call(this)},m.prototype.get=function(t){return this.fields[t]||this.oneofs&&this.oneofs[t]||this.nested&&this.nested[t]||null},m.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof s&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),b(this)}return t instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[t.name]=t,t.onAdd(this),b(this)):r.prototype.add.call(this,t)},m.prototype.remove=function(t){if(t instanceof s&&void 0===t.extend){if(!this.fields||this.fields[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.fields[t.name],t.parent=null,t.onRemove(this),b(this)}if(t instanceof o){if(!this.oneofs||this.oneofs[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.oneofs[t.name],t.parent=null,t.onRemove(this),b(this)}return r.prototype.remove.call(this,t)},m.prototype.isReservedId=function(t){return r.isReservedId(this.reserved,t)},m.prototype.isReservedName=function(t){return r.isReservedName(this.reserved,t)},m.prototype.create=function(t){return new this.ctor(t)},m.prototype.setup=function(){for(var t=this.fullName,e=[],n=0;n<this.fieldsArray.length;++n)e.push(this._fieldsArray[n].resolve().resolvedType);this.encode=p(this)({Writer:f,types:e,util:h}),this.decode=d(this)({Reader:l,types:e,util:h}),this.verify=v(this)({types:e,util:h}),this.fromObject=y.fromObject(this)({types:e,util:h}),this.toObject=y.toObject(this)({types:e,util:h});var r=g[t];if(r){var i=Object.create(this);i.fromObject=this.fromObject,this.fromObject=r.fromObject.bind(i),i.toObject=this.toObject,this.toObject=r.toObject.bind(i)}return this},m.prototype.encode=function(t,e){return this.setup().encode(t,e)},m.prototype.encodeDelimited=function(t,e){return this.encode(t,e&&e.len?e.fork():e).ldelim()},m.prototype.decode=function(t,e){return this.setup().decode(t,e)},m.prototype.decodeDelimited=function(t){return t instanceof l||(t=l.create(t)),this.decode(t,t.uint32())},m.prototype.verify=function(t){return this.setup().verify(t)},m.prototype.fromObject=function(t){return this.setup().fromObject(t)},m.prototype.toObject=function(t,e){return this.setup().toObject(t,e)},m.d=function(t){return function(e){h.decorateType(e,t)}}},7063:function(t,e,n){"use strict";var r=e,i=n(9935),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(t,e){var n=0,r={};e|=0;while(n<t.length)r[o[n+e]]=t[n++];return r}r.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),r.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),r.long=s([0,0,0,1,1],7),r.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),r.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])},9935:function(t,e,n){"use strict";var r,i,o=t.exports=n(9693),s=n(5054);o.codegen=n(5124),o.fetch=n(9054),o.path=n(8626),o.fs=o.inquire("fs"),o.toArray=function(t){if(t){var e=Object.keys(t),n=new Array(e.length),r=0;while(r<e.length)n[r]=t[e[r++]];return n}return[]},o.toObject=function(t){var e={},n=0;while(n<t.length){var r=t[n++],i=t[n++];void 0!==i&&(e[r]=i)}return e};var a=/\\/g,u=/"/g;o.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},o.safeProp=function(t){return!/^[$\w_]+$/.test(t)||o.isReserved(t)?'["'+t.replace(a,"\\\\").replace(u,'\\"')+'"]':"."+t},o.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)};var c=/_([a-z])/g;o.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(c,(function(t,e){return e.toUpperCase()}))},o.compareFieldsById=function(t,e){return t.id-e.id},o.decorateType=function(t,e){if(t.$type)return e&&t.$type.name!==e&&(o.decorateRoot.remove(t.$type),t.$type.name=e,o.decorateRoot.add(t.$type)),t.$type;r||(r=n(7645));var i=new r(e||t.name);return o.decorateRoot.add(i),i.ctor=t,Object.defineProperty(t,"$type",{value:i,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:i,enumerable:!1}),i};var l=0;o.decorateEnum=function(t){if(t.$type)return t.$type;i||(i=n(7025));var e=new i("Enum"+l++,t);return o.decorateRoot.add(e),Object.defineProperty(t,"$type",{value:e,enumerable:!1}),e},o.setProperty=function(t,e,n){function r(t,e,n){var i=e.shift();if("__proto__"===i)return t;if(e.length>0)t[i]=r(t[i]||{},e,n);else{var o=t[i];o&&(n=[].concat(o).concat(n)),t[i]=n}return t}if("object"!==typeof t)throw TypeError("dst must be an object");if(!e)throw TypeError("path must be specified");return e=e.split("."),r(t,e,n)},Object.defineProperty(o,"decorateRoot",{get:function(){return s["decorated"]||(s["decorated"]=new(n(9424)))}})},1945:function(t,e,n){"use strict";t.exports=i;var r=n(9693);function i(t,e){this.lo=t>>>0,this.hi=e>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var e=t<0;e&&(t=-t);var n=t>>>0,r=(t-n)/4294967296>>>0;return e&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(t){if("number"===typeof t)return i.fromNumber(t);if(r.isString(t)){if(!r.Long)return i.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var a=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},9693:function(t,e,n){"use strict";var r=e;function i(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;++i)void 0!==t[r[i]]&&n||(t[r[i]]=e[r[i]]);return t}function o(t){function e(t,n){if(!(this instanceof e))return new e(t,n);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&i(this,n)}return(e.prototype=Object.create(Error.prototype)).constructor=e,Object.defineProperty(e.prototype,"name",{get:function(){return t}}),e.prototype.toString=function(){return this.name+": "+this.message},e}r.asPromise=n(4537),r.base64=n(7419),r.EventEmitter=n(9211),r.float=n(945),r.inquire=n(7199),r.utf8=n(4997),r.pool=n(6662),r.LongBits=n(1945),r.isNode=Boolean("undefined"!==typeof n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),r.global=r.isNode&&n.g||"undefined"!==typeof window&&window||"undefined"!==typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t},r.isString=function(t){return"string"===typeof t||t instanceof String},r.isObject=function(t){return t&&"object"===typeof t},r.isset=r.isSet=function(t,e){var n=t[e];return!(null==n||!t.hasOwnProperty(e))&&("object"!==typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"===typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"===typeof Uint8Array?t:new Uint8Array(t)},r.Array="undefined"!==typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,e){var n=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},r.merge=i,r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var t=Object.keys(this),n=t.length-1;n>-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},r.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var t=r.Buffer;t?(r._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,n){return new t(e,n)},r._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):r._Buffer_from=r._Buffer_allocUnsafe=null}},4497:function(t,e,n){"use strict";t.exports=u;var r=n(7025),i=n(9935);function o(t,e){return t.name+": "+e+(t.repeated&&"array"!==e?"[]":t.map&&"object"!==e?"{k:"+t.keyType+"}":"")+" expected"}function s(t,e,n,i){if(e.resolvedType)if(e.resolvedType instanceof r){t("switch(%s){",i)("default:")("return%j",o(e,"enum value"));for(var s=Object.keys(e.resolvedType.values),a=0;a<s.length;++a)t("case %i:",e.resolvedType.values[s[a]]);t("break")("}")}else t("{")("var e=types[%i].verify(%s);",n,i)("if(e)")("return%j+e",e.name+".")("}");else switch(e.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",i)("return%j",o(e,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",i,i,i,i)("return%j",o(e,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',i)("return%j",o(e,"number"));break;case"bool":t('if(typeof %s!=="boolean")',i)("return%j",o(e,"boolean"));break;case"string":t("if(!util.isString(%s))",i)("return%j",o(e,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",o(e,"buffer"));break}return t}function a(t,e,n){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",n)("return%j",o(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",n)("return%j",o(e,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",n)("return%j",o(e,"boolean key"));break}return t}function u(t){var e=i.codegen(["m"],t.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),n=t.oneofsArray,r={};n.length&&e("var p={}");for(var u=0;u<t.fieldsArray.length;++u){var c=t._fieldsArray[u].resolve(),l="m"+i.safeProp(c.name);if(c.optional&&e("if(%s!=null&&m.hasOwnProperty(%j)){",l,c.name),c.map)e("if(!util.isObject(%s))",l)("return%j",o(c,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),a(e,c,"k[i]"),s(e,c,u,l+"[k[i]]")("}");else if(c.repeated)e("if(!Array.isArray(%s))",l)("return%j",o(c,"array"))("for(var i=0;i<%s.length;++i){",l),s(e,c,u,l+"[i]")("}");else{if(c.partOf){var f=i.safeProp(c.partOf.name);1===r[c.partOf.name]&&e("if(p%s===1)",f)("return%j",c.partOf.name+": multiple values"),r[c.partOf.name]=1,e("p%s=1",f)}s(e,c,u,l)}c.optional&&e("}")}return e("return null")}},1667:function(t,e,n){"use strict";var r=e,i=n(4212);r[".google.protobuf.Any"]={fromObject:function(t){if(t&&t["@type"]){var e=t["@type"].substring(t["@type"].lastIndexOf("/")+1),n=this.lookup(e);if(n){var r="."===t["@type"].charAt(0)?t["@type"].substr(1):t["@type"];return-1===r.indexOf("/")&&(r="/"+r),this.create({type_url:r,value:n.encode(n.fromObject(t)).finish()})}}return this.fromObject(t)},toObject:function(t,e){var n="type.googleapis.com/",r="",o="";if(e&&e.json&&t.type_url&&t.value){o=t.type_url.substring(t.type_url.lastIndexOf("/")+1),r=t.type_url.substring(0,t.type_url.lastIndexOf("/")+1);var s=this.lookup(o);s&&(t=s.decode(t.value))}if(!(t instanceof this.ctor)&&t instanceof i){var a=t.$type.toObject(t,e),u="."===t.$type.fullName[0]?t.$type.fullName.substr(1):t.$type.fullName;return""===r&&(r=n),o=r+u,a["@type"]=o,a}return this.toObject(t,e)}}},1173:function(t,e,n){"use strict";t.exports=f;var r,i=n(9693),o=i.LongBits,s=i.base64,a=i.utf8;function u(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function c(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var h=function(){return i.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f}};function p(t,e,n){e[n]=255&t}function d(t,e,n){while(t>127)e[n++]=127&t|128,t>>>=7;e[n]=t}function v(t,e){this.len=t,this.next=void 0,this.val=e}function y(t,e,n){while(t.hi)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;while(t.lo>127)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function g(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}f.create=h(),f.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(t,e,n){return this.tail=this.tail.next=new u(t,e,n),this.len+=e,this},v.prototype=Object.create(u.prototype),v.prototype.fn=d,f.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new v((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},f.prototype.int32=function(t){return t<0?this._push(y,10,o.fromNumber(t)):this.uint32(t)},f.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},f.prototype.uint64=function(t){var e=o.from(t);return this._push(y,e.length(),e)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(y,e.length(),e)},f.prototype.bool=function(t){return this._push(p,1,t?1:0)},f.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(t){var e=o.from(t);return this._push(g,4,e.lo)._push(g,4,e.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},f.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var m=i.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r<t.length;++r)e[n+r]=t[r]};f.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(p,1,0);if(i.isString(t)){var n=f.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(m,e,t)},f.prototype.string=function(t){var e=a.length(t);return e?this.uint32(e)._push(a.write,e,t):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},f.prototype.finish=function(){var t=this.head.next,e=this.constructor.alloc(this.len),n=0;while(t)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},f._configure=function(t){r=t,f.create=h(),r._configure()}},3155:function(t,e,n){"use strict";t.exports=o;var r=n(1173);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(9693);function o(){r.call(this)}function s(t,e,n){t.length<40?i.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var r=0;r<t.length;)e[n++]=t[r++]}},o.prototype.bytes=function(t){i.isString(t)&&(t=i._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(o.writeBytesBuffer,e,t),this},o.prototype.string=function(t){var e=i.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},o._configure()},1096:function(t,e,n){var r=n(851);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4402).Z;i("6921f018",r,!0,{sourceMap:!1,shadowMode:!1})},1387:function(t,e,n){var r=n(3144);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4402).Z;i("3e465ccb",r,!0,{sourceMap:!1,shadowMode:!1})},6592:function(t,e,n){var r=n(6639);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4402).Z;i("b85c46e2",r,!0,{sourceMap:!1,shadowMode:!1})},6454:function(t,e,n){var r=n(8336);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4402).Z;i("40798c69",r,!0,{sourceMap:!1,shadowMode:!1})},7409:function(t,e,n){var r=n(4904);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4402).Z;i("9daca154",r,!0,{sourceMap:!1,shadowMode:!1})},4402:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a=o[1],u=o[2],c=o[3],l={id:t+":"+i,css:a,media:u,sourceMap:c};r[s]?r[s].parts.push(l):n.push(r[s]={id:s,parts:[l]})}return n}n.d(e,{Z:function(){return d}});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,c=!1,l=function(){},f=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function d(t,e,n,i){c=n,f=i||{};var s=r(t,e);return v(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i],u=o[a.id];u.refs--,n.push(u)}e?(s=r(t,e),v(s)):s=[];for(i=0;i<n.length;i++){u=n[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete o[u.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(g(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function y(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function g(t){var e,n,r=document.querySelector("style["+h+'~="'+t.id+'"]');if(r){if(c)return l;r.parentNode.removeChild(r)}if(p){var i=u++;r=a||(a=y()),e=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=y(),e=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function w(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),f.ssrId&&t.setAttribute(h,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}!function(){__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return __webpack_require__.d(e,{a:e}),e}}(),function(){__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){__webpack_require__.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){__webpack_require__.p=""}();var __webpack_exports__={};return function(){"use strict";if(__webpack_require__.d(__webpack_exports__,{default:function(){return un}}),"undefined"!==typeof window){var t=window.document.currentScript,e=__webpack_require__(7679);t=e(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:e});var n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(__webpack_require__.p=n[1])}__webpack_require__(1703);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"ts_viewer",staticClass:"timeseries-viewer"},[n("timeseries-scrubber",{ref:"scrubber",attrs:{ts_start:t.ts_start,ts_end:t.ts_end,"c-width":t.cWidth,"label-width":t.labelWidth,"cursor-loc":t.cursorLoc,start:t.start,duration:t.duration,constants:t.constants},on:{setStart:t.updateStart}}),n("div",{attrs:{id:"channelCanvas"}},[n("div",{ref:"channelLabels",style:t.channelStyle,attrs:{id:"channelLabels"}},t._l(t.viewerChannels,(function(e){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"item.visible"}],key:e.label},[n("div",{staticClass:"chLabelWrap",attrs:{"data-id":e.id},on:{tap:t.onLabelTap}},[n("div",{staticClass:"labelDiv",style:t._cpStyleLabels},[t._v(" "+t._s(e.label)+" ")]),t.hideLabelInfo?t._e():n("div",{staticClass:"chLabelIndWrap",attrs:{selected:e.selected}},[n("div",{staticClass:"chLabelInd"},[t._v(" "+t._s(t._computeLabelInfo(e,t.globalZoomMult,e.rowScale))+" ")])])])])})),0),n("timeseries-viewer-canvas",{ref:"viewerCanvas",attrs:{window_height:t.window_height,window_width:t.window_width,duration:t.duration,start:t.start,"c-width":t.cWidth,"c-height":t.cHeight,constants:t.constants,"ts-start":t.ts_start,"ts-end":t.ts_end,"cursor-loc":t.cursorLoc,"global-zoom-mult":t.globalZoomMult},on:{setStart:t.updateStart,setCursor:t.setCursor,setGlobalZoom:t.setGlobalZoom,setDuration:t.setDuration,channelsInitialized:t.onChannelsInitialized,annLayersInitialized:t.onAnnLayersInitialized,closeAnnotationLayerWindow:t.onCloseAnnotationLayerWindow,addAnnotation:t.onOpenAnnotationWindow,updateAnnotation:t.onUpdateAnnotation}})],1),n("timeseries-viewer-toolbar",{attrs:{constants:t.constants,duration:t.duration,start:t.start},on:{pageBack:t.onPageBack,pageForward:t.onPageForward,incrementZoom:t.onIncrementZoom,decrementZoom:t.onDecrementZoom,updateDuration:t.onUpdateDuration,nextAnnotation:t.onNextAnnotation,previousAnnotation:t.onPreviousAnnotation,setStart:t.updateStart}})],1)},i=[];__webpack_require__(2526),__webpack_require__(1817),__webpack_require__(1539),__webpack_require__(2165),__webpack_require__(6992),__webpack_require__(8783),__webpack_require__(3948),__webpack_require__(2443),__webpack_require__(9341),__webpack_require__(3706),__webpack_require__(408),__webpack_require__(489),__webpack_require__(4747),__webpack_require__(8309),__webpack_require__(8674),__webpack_require__(7042);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(){
2
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
- s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),s=new T(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,s),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var h={};function p(){}function d(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==e&&n.call(m,i)&&(y=m);var b=v.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,s,a,u){var c=f(t[i],t,s);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==o(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,c(b,"constructor",v),c(v,"constructor",d),d.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(_.prototype),c(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new _(l(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},w(b),c(b,u,"Generator"),c(b,i,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function a(t,e,n,r,i,o,s){try{var a=t[o](s),u=a.value}catch(c){return void n(c)}a.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,u,"next",t)}function u(t){a(o,r,i,s,u,"throw",t)}s(void 0)}))}}__webpack_require__(1249),__webpack_require__(4916),__webpack_require__(3123),__webpack_require__(6977);function c(t){return null!=t&&"object"===typeof t&&!0===t["@@functional/placeholder"]}function l(t){return function e(n){return 0===arguments.length||c(n)?e:t.apply(this,arguments)}}function f(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return c(n)?e:l((function(e){return t(n,e)}));default:return c(n)&&c(r)?e:c(n)?l((function(e){return t(e,r)})):c(r)?l((function(e){return t(n,e)})):t(n,r)}}}var h=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function p(t){return null!=t&&"function"===typeof t["@@transducer/step"]}function d(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!h(r)){var i=0;while(i<t.length){if("function"===typeof r[t[i]])return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(p(r)){var o=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(r)}}return n.apply(this,arguments)}}function v(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var y={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function g(t,e){var n=0,r=e.length,i=Array(r);while(n<r)i[n]=t(e[n]),n+=1;return i}function m(t){return"[object String]"===Object.prototype.toString.call(t)}var b=l((function(t){return!!h(t)||!!t&&("object"===typeof t&&(!m(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))})),w=b,_=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function x(t){return new _(t)}function S(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,o){return e.apply(this,arguments)};case 6:return function(t,n,r,i,o,s){return e.apply(this,arguments)};case 7:return function(t,n,r,i,o,s,a){return e.apply(this,arguments)};case 8:return function(t,n,r,i,o,s,a,u){return e.apply(this,arguments)};case 9:return function(t,n,r,i,o,s,a,u,c){return e.apply(this,arguments)};case 10:return function(t,n,r,i,o,s,a,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var A=f((function(t,e){return S(t.length,(function(){return t.apply(e,arguments)}))})),T=A;function k(t,e,n){var r=0,i=n.length;while(r<i){if(e=t["@@transducer/step"](e,n[r]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}function O(t,e,n){var r=n.next();while(!r.done){if(e=t["@@transducer/step"](e,r.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function E(t,e,n,r){return t["@@transducer/result"](n[r](T(t["@@transducer/step"],t),e))}var C="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function P(t,e,n){if("function"===typeof t&&(t=x(t)),w(n))return k(t,e,n);if("function"===typeof n["fantasy-land/reduce"])return E(t,e,n,"fantasy-land/reduce");if(null!=n[C])return O(t,e,n[C]());if("function"===typeof n.next)return O(t,e,n);if("function"===typeof n.reduce)return E(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var R=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=y.init,t.prototype["@@transducer/result"]=y.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),N=f((function(t,e){return new R(t,e)})),I=N;function j(t,e,n){return function(){var r=[],i=0,o=t,s=0;while(s<e.length||i<arguments.length){var a;s<e.length&&(!c(e[s])||i>=arguments.length)?a=e[s]:(a=arguments[i],i+=1),r[s]=a,c(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):S(o,j(t,r,n))}}var M=f((function(t,e){return 1===t?l(e):S(t,j(t,[],e))})),L=M;function D(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var F=Object.prototype.toString,$=function(){return"[object Arguments]"===F.call(arguments)?function(t){return"[object Arguments]"===F.call(t)}:function(t){return D("callee",t)}}(),q=$,B=!{toString:null}.propertyIsEnumerable("toString"),W=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(){return arguments.propertyIsEnumerable("length")}(),V=function(t,e){var n=0;while(n<t.length){if(t[n]===e)return!0;n+=1}return!1},z="function"!==typeof Object.keys||U?l((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=U&&q(t);for(e in t)!D(e,t)||i&&"length"===e||(r[r.length]=e);if(B){n=W.length-1;while(n>=0)e=W[n],D(e,t)&&!V(r,e)&&(r[r.length]=e),n-=1}return r})):l((function(t){return Object(t)!==t?[]:Object.keys(t)})),H=z,Z=f(d(["fantasy-land/map","map"],I,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return L(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return P((function(n,r){return n[r]=t(e[r]),n}),{},H(e));default:return g(t,e)}}))),G=Z,J=Number.isInteger||function(t){return t<<0===t},X=f((function(t,e){var n=t<0?e.length+t:t;return m(e)?e.charAt(n):e[n]})),Y=X,K=f((function(t,e){if(null!=e)return J(t)?Y(t,e):e[t]})),Q=K;function tt(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return c(n)?e:f((function(e,r){return t(n,e,r)}));case 2:return c(n)&&c(r)?e:c(n)?f((function(e,n){return t(e,r,n)})):c(r)?f((function(e,r){return t(n,e,r)})):l((function(e){return t(n,r,e)}));default:return c(n)&&c(r)&&c(i)?e:c(n)&&c(r)?f((function(e,n){return t(e,n,i)})):c(n)&&c(i)?f((function(e,n){return t(e,r,n)})):c(r)&&c(i)?f((function(e,r){return t(n,e,r)})):c(n)?l((function(e){return t(e,r,i)})):c(r)?l((function(e){return t(n,e,i)})):c(i)?l((function(e){return t(n,r,e)})):t(n,r,i)}}}var et=tt(P),nt=et;function rt(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function it(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return h(r)||"function"!==typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var ot=tt(it("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)}))),st=ot,at=l(it("tail",st(1,1/0))),ut=at;function ct(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return S(arguments[0].length,nt(rt,arguments[0],ut(arguments)))}var lt=l((function(t){return m(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()})),ft=lt;function ht(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ct.apply(this,ft(arguments))}function pt(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function dt(t,e,n){var r=0,i=n.length;while(r<i){if(t(e,n[r]))return!0;r+=1}return!1}function vt(t){var e=String(t).match(/^function (\w*)/);return null==e?"":e[1]}function yt(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}var gt="function"===typeof Object.is?Object.is:yt,mt=l((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)})),bt=mt;function wt(t,e,n,r){var i=pt(t),o=pt(e);function s(t,e){return _t(t,e,n.slice(),r.slice())}return!dt((function(t,e){return!dt(s,e,t)}),o,i)}function _t(t,e,n,r){if(gt(t,e))return!0;var i=bt(t);if(i!==bt(e))return!1;if("function"===typeof t["fantasy-land/equals"]||"function"===typeof e["fantasy-land/equals"])return"function"===typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"===typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"===typeof t.equals||"function"===typeof e.equals)return"function"===typeof t.equals&&t.equals(e)&&"function"===typeof e.equals&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if("function"===typeof t.constructor&&"Promise"===vt(t.constructor))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!==typeof e||!gt(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!gt(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1;break}var o=n.length-1;while(o>=0){if(n[o]===t)return r[o]===e;o-=1}switch(i){case"Map":return t.size===e.size&&wt(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&wt(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=H(t);if(s.length!==H(e).length)return!1;var a=n.concat([t]),u=r.concat([e]);o=s.length-1;while(o>=0){var c=s[o];if(!D(c,e)||!_t(e[c],t[c],a,u))return!1;o-=1}return!0}var xt=f((function(t,e){return _t(t,e,[],[])})),St=xt;var At=function(t){return(t<10?"0":"")+t};Date.prototype.toISOString;function Tt(t){return"[object Object]"===Object.prototype.toString.call(t)}var kt=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=y.init,t.prototype["@@transducer/result"]=y.result,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?v(n):n},t}(),Ot=f((function(t,e){return new kt(t,e)})),Et=Ot,Ct=f(d(["take"],Et,(function(t,e){return st(0,t<0?1/0:t,e)}))),Pt=Ct;function Rt(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}var Nt=l((function(t){return null!=t&&"function"===typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"===typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"===typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"===typeof t.constructor.empty?t.constructor.empty():h(t)?[]:m(t)?"":Tt(t)?{}:q(t)?function(){return arguments}():Rt(t)?t.constructor.from(""):void 0})),It=Nt,jt=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=y.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=v(this.xf["@@transducer/step"](t,e))),t},t}(),Mt=f((function(t,e){return new jt(t,e)})),Lt=Mt,Dt=f(d(["find"],Lt,(function(t,e){var n=0,r=e.length;while(n<r){if(t(e[n]))return e[n];n+=1}}))),Ft=Dt,$t=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=y.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.found=!0,t=v(this.xf["@@transducer/step"](t,this.idx))),t},t}(),qt=f((function(t,e){return new $t(t,e)})),Bt=qt,Wt=f(d([],Bt,(function(t,e){var n=0,r=e.length;while(n<r){if(t(e[n]))return n;n+=1}return-1}))),Ut=Wt,Vt=Y(0),zt=Vt;function Ht(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");var e=Object(t),n=1,r=arguments.length;while(n<r){var i=arguments[n];if(null!=i)for(var o in i)D(o,i)&&(e[o]=i[o]);n+=1}return e}"function"===typeof Object.assign&&Object.assign;var Zt=l((function(t){return null!=t&&St(t,It(t))})),Gt=Zt,Jt=f((function(t,e){return t.map((function(t){var n,r=e,i=0;while(i<t.length){if(null==r)return;n=t[i],r=J(n)?Y(n,r):r[n],i+=1}return r}))})),Xt=Jt,Yt=f((function(t,e){return Xt([t],e)[0]})),Kt=Yt,Qt=f((function(t,e){return Number(t)+Number(e)})),te=Qt,ee=nt(te,0),ne=ee,re=tt((function(t,e,n){var r,i={};for(r in e)D(r,e)&&(i[r]=D(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)D(r,n)&&!D(r,i)&&(i[r]=n[r]);return i})),ie=re,oe=tt((function(t,e,n){return ie((function(e,n,r){return t(n,r)}),e,n)})),se=oe;var ae=tt((function(t,e,n){return St(e,Q(t,n))})),ue=ae,ce=f((function(t,e){return null==e||e!==e?t:e})),le=ce,fe=tt((function(t,e,n){return le(t,Q(e,n))})),he=fe,pe=f((function(t,e){return Array.prototype.slice.call(e,0).sort((function(e,n){var r=t(e),i=t(n);return r<i?-1:r>i?1:0}))})),de=pe,ve=(String.prototype.trim,{computed:{viewerActiveTool:function(){return this.$store.getters.viewerActiveTool}},watch:{viewerActiveTool:{handler:function(t){t&&this.setActiveTool(t)},immediate:!0}},methods:{setActiveTool:function(t){if(t){var e="set"+t.charAt(0).toUpperCase()+t.slice(1);"function"===typeof this[e]&&this[e]()}}}}),ye=(__webpack_require__(7941),__webpack_require__(3210),__webpack_require__(8862),function(t){return"[object String]"===Object.prototype.toString.call(t)}),ge=function(t){Object.keys(t).forEach((function(e){ye(t[e])&&(t[e]=t[e].trim())}))},me={data:function(){return{method:"GET",body:null,isLoading:!0}},methods:{sendXhr:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t)return Promise.reject(new Error("Url is missing!"));this.isLoading=!0,this.method=he("GET","method",e);var i=he(null,"header",e),s=i||{"Content-type":"application/json"},a=he("","body",e),u={headers:s,method:this.method};return a&&("object"===o(a)&&ge(a),this.body=JSON.stringify(a),u={requestOpts:u,body:this.body}),fetch(t,u).then((function(t){return t.status>=400?Promise.reject(t):r?n.finishLoading(t):t.json().then(n.finishLoading.bind(n)).catch((function(){return n.finishLoading(t)}))}))},finishLoading:function(t){var e=this;return this.$nextTick((function(){e.isLoading=!1})),t},handleXhrError:function(t){this.isLoading=!1;var e=Q("status",t);if(401===e)return this.handleLogout();403===e&&console.error("unauthorized"),this.$emit("ajaxError",t)}}},be=(__webpack_require__(2222),__webpack_require__(2707),{mixins:[me],computed:{activeViewer:function(){return this.$store.getters.activeViewer},viewerChannels:function(){return this.$store.getters.viewerChannels},viewerAnnotations:function(){return this.$store.getters.viewerAnnotations},viewerSidePanelOpen:function(){return this.$store.getters.viewerSidePanelOpen},activeAnnotation:function(){return this.$store.getters.activeAnnotation}},methods:{addAnnotation:function(){var t=this;if(this.activeAnnotation.id)throw new TypeError("Trying to create an annotation that already exists",this.activeAnnotation.id);var e=this.activeAnnotation.start,n=this.activeAnnotation.duration,r=this.activeAnnotation.allChannels,i=this.activeAnnotation.label,o=this.activeAnnotation.description,s=this.activeAnnotation.layer_id;n<0&&(n=-n,e-=n);for(var a=[],u=0;u<this.viewerChannels.length;u++){var c=this.viewerChannels[u];if(c.selected&&c.visible||r){var l=this.getChannelId(c);a.push(l)}}var f={name:"",channelIds:a,label:i,description:o,layer_id:s,start:e,end:e+n},h=this.activeViewer.content.nodeId,p="".concat(this.config.apiUrl,"/timeseries/").concat(h,"/layers/").concat(s,"/annotations");this.sendXhr(p,{method:"POST",header:{Authorization:"Bearer ".concat(this.$store.state.userToken)},body:f}).then((function(e){var n={name:"",id:e.id,label:e.label,description:e.description,start:e.start,duration:e.end-e.start,end:e.end,cStart:null,cEnd:null,selected:!0,channelIds:e.channelIds,allChannels:!1,layer_id:e.layerId,userId:e.userId};e.linkedPackage&&(n.linkedPackage=e.linkedPackage),n.channelIds.length>=t.viewerChannels.length&&(n.allChannels=!0);for(var r=0,i=0;i<t.viewerAnnotations.length;i++)if(t.viewerAnnotations[i].id===e.layerId){r=i;break}t.$store.dispatch("createAnnotation",n).then((function(){t.sortAnns(t.viewerAnnotations[r].annotations),t.onAnnotationCreated()})).catch((function(t){console.log(t)}))})).catch((function(t){console.log(t)}))},updateAnnotation:function(){var t=this;if(!this.activeAnnotation.id)throw new TypeError("Trying to update an annotation that doesn't exists on server",this.activeAnnotation.id);var e=this.activeAnnotation.start,n=this.activeAnnotation.duration;n<0&&(n=-n,e-=n,this.activeAnnotation.start=e,this.activeAnnotation.duration=n,this.activeAnnotation.end=e+n);var r=this.activeAnnotation.layer_id,i=this.activeViewer.content.nodeId,o="".concat(this.config.apiUrl,"/timeseries/").concat(i,"/layers/").concat(r,"/annotations/").concat(this.activeAnnotation.id),s={name:"",channelIds:this.activeAnnotation.channelIds,label:this.activeAnnotation.label,description:this.activeAnnotation.description,layer_id:this.activeAnnotation.layer_id,start:e,end:e+n},a=this;a.sendXhr(o,{method:"PUT",header:{Authorization:"Bearer ".concat(this.$store.state.userToken)},body:s}).then((function(){a.$store.dispatch("updateAnnotation",t.activeAnnotation),a.onAnnotationUpdated()})).catch(a.handleXhrError.bind(this))},removeAnnotation:function(t){var e="";e=t.layer?t.layer.id:t.layer_id;var n=this.activeViewer.content.nodeId,r="".concat(this.config.apiUrl,"/timeseries/").concat(n,"/layers/").concat(e,"/annotations/").concat(t.id),i=this;i.sendXhr(r,{method:"DELETE",header:{Authorization:"Bearer ".concat(this.$store.state.userToken)}}).then((function(){i.$store.dispatch("deleteAnnotation",t),i.onAnnotationDeleted()})).catch(i.handleXhrError.bind(this))},sortAnns:function(t){t.sort((function(t,e){return t.start<e.start?-1:t.start>e.start?1:0}))}}}),we=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeseries-scrubber"},[n("div",{staticClass:"dateWrap"},[n("div",[t._v(t._s(t.ts_start_str))]),n("div",[t._v(t._s(t.fullDateStr))]),n("div",[t._v(t._s(t.ts_end_str))])]),n("div",{staticClass:"noselect"},[n("div",{attrs:{id:"scrubber",noselect:""}},[n("div",{ref:"canvasWrap",attrs:{id:"canvasWrap"}},[n("canvas",{ref:"segmentsCanvas",staticClass:"canvas",style:t.canvasStyle,attrs:{id:"segmentsCanvas",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.viewportHeight-2,t.pixelRatio,0)}}),n("canvas",{ref:"annotationCanvas",staticClass:"canvas",style:t.canvasStyle,attrs:{id:"annotationCanvas",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.viewportHeight-2,t.pixelRatio,0)}}),n("canvas",{ref:"iCanvas",staticClass:"canvas",style:t.iCanvasStyle,attrs:{id:"iCanvas",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.viewportHeight,t.pixelRatio,0)},on:{click:t._onTap,mousemove:t._onMouseMove,mousedown:t._onMouseDown,mouseup:t._onMouseUp,mouseenter:t._onMouseEnter,mouseout:t._onMouseOut}})])])])])},_e=[],xe=(__webpack_require__(9653),__webpack_require__(3290),{name:"TimeseriesScrubber",mixins:[me,ve],props:{ts_start:Number,ts_end:Number,cWidth:Number,constants:Object,start:Number,duration:Number,cursorLoc:Number,labelWidth:Number},computed:{activeViewer:function(){return this.$store.getters.activeViewer},viewerChannels:function(){return this.$store.getters.viewerChannels},viewerAnnotations:function(){return this.$store.getters.viewerAnnotations},ts_start_str:function(){return this.getUTCTimeString(this.ts_start)},ts_end_str:function(){return this.getUTCTimeString(this.ts_end)},fullDateStr:function(){if(""!==this.hoverTxt)return this.hoverTxt;if(this.start>0){var t=new Date(this.start/1e3).toUTCString();return t.substring(0,t.length-3)}return""},canvasStyle:function(){return{width:this.labelWidth+this.cWidth-8+5+"px",height:"28px"}},iCanvasStyle:function(){return{width:this.labelWidth+this.cWidth-8+5+"px",height:"30px"}},scrubberCWidth:function(){return this.cWidth+this.labelWidth-8+5},period:function(){return Math.floor((this.ts_end-this.ts_start)/this.cWidth)}},watch:{start:function(){this.render()},duration:function(){this.render()},cWidth:function(){this.render()}},data:function(){return{pixelRatio:1,scrubberHeight:28,viewportHeight:30,mouseDown:!1,hoverTxt:"",pointerMode:"point",patternCnvs:null,annotations:[],segmentSpans:[],segments:[]}},mounted:function(){this.segments=new Array(5e3),this.segments=this.segments.fill(0,0,4999),this.pixelRatio=this.getScreenPixelRatio(),this.patternCnvs=this.createPinstripeCanvas(),this.renderViewPort()},methods:{_cpCanvasScaler:function(t,e,n){return e*(t+n)},getScreenPixelRatio:function(){var t=this.$refs.iCanvas.getContext("2d"),e=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/n},getUTCTimeString:function(t){if(t>0)return t/=1e3,t=new Date(t),("0"+t.getUTCHours()).slice(-2)+":"+("0"+t.getUTCMinutes()).slice(-2)+":"+("0"+t.getUTCSeconds()).slice(-2)},getUTCDateString:function(t,e){return""!==e?e:t>0?(t=new Date(t/1e3),t.toDateString()):void 0},_onTap:function(t){var e=this.$refs.iCanvas.getBoundingClientRect(),n=t.clientX-e.left,r=n/this.scrubberCWidth*(this.ts_end-this.ts_start);this.$emit("setStart",r+this.ts_start)},_onMouseMove:function(t){if(this.mouseDown){var e=t.clientX-this.clickX,n=e/this.cWidth*(this.ts_end-this.ts_start),r=this.startDragTime+n;this.$emit("setStart",r);var i=new Date((n+this.ts_start)/1e3);this.hoverTxt=i.toUTCString()}else{var o=this.$refs.iCanvas.getBoundingClientRect(),s=t.clientX-o.left,a=this.cStart+this.cDuration,u=this.pointerMode,c=s>this.cStart-10&&s<a+10;c?(this.pointerMode="drag",this.$refs.iCanvas.setAttribute("dragme",!0),this.$refs.iCanvas.removeAttribute("resizeme")):(this.pointerMode="point",this.$refs.iCanvas.removeAttribute("dragme"),this.$refs.iCanvas.removeAttribute("resizeme"));var l=s/this.cWidth*(this.ts_end-this.ts_start)+this.ts_start,f=new Date(l/1e3).toUTCString();this.hoverTxt=f.substring(0,f.length-3),u!==this.pointerMode&&this.render()}},_onMouseUp:function(){this.mouseDown=!1},_onMouseDown:function(t){this.mouseDown=!0,this.clickX=t.clientX,this.startDragTime=this.start},_onMouseEnter:function(){this.mouseDown=!1},_onMouseOut:function(){this.hoverTxt=""},initSegmentSpans:function(){},getAnnotations:function(){var t=this,e=G((function(t){return t.id}),this.viewerAnnotations),n="".concat(this.config.apiUrl,"/timeseries/").concat(this.activeViewer.content.id,"/annotations/window"),r=n+"?api_key=".concat(this.$store.state.userToken,"&aggregation=count&start=").concat(this.ts_start,"&end=").concat(this.ts_end,"&period=").concat(this.period,"&mergePeriods=true");for(var i in e)r+="&layerIds=".concat(e[i]);this.sendXhr(r).then((function(e){console.log(e),t.annotations=e,t.render()}))},render:function(){this.renderViewPort(),this.renderTimelimeLine(),this.renderSegments()},renderViewPort:function(){var t=this;this.$nextTick((function(){var e=t.$refs.iCanvas.getContext("2d");e.setTransform(t.pixelRatio,0,0,t.pixelRatio,0,0),e.clearRect(0,0,t.cWidth,t.viewportHeight),t.cStart=(t.start-t.ts_start)/(t.ts_end-t.ts_start)*t.cWidth+.5|0,t.cDuration=t.duration/(t.ts_end-t.ts_start)*t.cWidth+.5|0,e.fillStyle="rgb(80,80,80)",e.strokeStyle="rgb(80,80,80)",e.strokeRect(t.cStart+.5,.5,t.cDuration,t.viewportHeight-1),e.fillRect(t.cStart-2,t.viewportHeight/2-5|0,2,10),e.fillRect(t.cStart+t.cDuration+1,t.viewportHeight/2-5|0,2,10);var n=t.cStart+t.cursorLoc*t.cDuration;n>t.cStart+.5&&(e.strokeStyle="red",e.beginPath(),e.moveTo(n,0),e.lineTo(n,t.viewportHeight-1),e.stroke())}))},renderSegments:function(){var t=this;this.$nextTick((function(){var e=t.$refs.segmentsCanvas.getContext("2d");e.setTransform(t.pixelRatio,0,0,t.pixelRatio,0,0),e.fillStyle=e.createPattern(t.patternCnvs,"repeat"),e.clearRect(0,0,t.cWidth,t.viewportHeight);for(var n=1;n<t.segmentSpans.length;n+=2){var r=t.cWidth*t.segmentSpans[n]/5e3,i=t.cWidth*t.segmentSpans[n+1]/5e3;e.fillRect(r,2,i-r,t.viewportHeight-6)}}))},renderTimelimeLine:function(){var t=this.$refs.annotationCanvas.getContext("2d");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),t.clearRect(0,0,this.cWidth,this.scrubberHeight);var e=this.ts_start,n=this.ts_end,r=this.annotations,i=0,o=0,s=Math.floor((this.scrubberHeight-2)/Object.keys(r).length-o),a=this.viewerAnnotations,u="rgb(0,0,0)";for(var c in r)if(r.hasOwnProperty(c)){for(var l=0;l<a.length;l++)if(a[l].id===parseInt(c)){i=l,u=a[l].color;break}this.plotAnnotations(t,e,n,o,s,r[c],i,u)}},plotAnnotations:function(t,e,n,r,i,o,s,a){var u=this;this.$nextTick((function(){t.setTransform(u.pixelRatio,0,0,u.pixelRatio,0,0),t.fillStyle=a;for(var c=0;c<o.length;c++)if(o[c].value>0){var l=(o[c].start-e)/(n-e)*u.cWidth,f=(o[c].end-e)/(n-e)*u.cWidth,h=f-l;h<1&&(h=1);var p=1+s*(i-1+r)+s;t.fillRect(l,p,h,i)}}))},createPinstripeCanvas:function(){var t=document.createElement("canvas"),e=t.getContext("2d",{antialias:!0}),n="rgb(220,220,220)",r=5,i=r,o=r,s=10;return t.width=i,t.height=o,e.fillStyle=n,e.beginPath(),e.moveTo(0,o*(1/s)),e.lineTo(i*(1/s),0),e.lineTo(0,0),e.lineTo(0,o*(1/s)),e.fill(),e.beginPath(),e.moveTo(i,o*(1/s)),e.lineTo(i*(1/s),o),e.lineTo(0,o),e.lineTo(0,o*((s-1)/s)),e.lineTo(i*((s-1)/s),0),e.lineTo(i,0),e.lineTo(i,o*(1/s)),e.fill(),e.beginPath(),e.moveTo(i,o*((s-1)/s)),e.lineTo(i*((s-1)/s),o),e.lineTo(i,o),e.lineTo(i,o*((s-1)/s)),e.fill(),t}}}),Se=xe;__webpack_require__(1387);function Ae(t,e,n,r,i,o,s,a){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}var Te=Ae(Se,we,_e,!1,null,"989235a2",null),ke=Te.exports,Oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeseries-viewer-canvas"},[n("div",{attrs:{id:"canvasWrapper"}},[n("timeseries-plot-canvas",{ref:"plotCanvas",attrs:{"c-width":t.cWidth,"c-height":t.cHeight,start:t.start,ts_start:t.tsStart,ts_end:t.tsEnd,duration:t.duration,constants:t.constants,"rs-period":t.rsPeriod,"global-zoom-mult":t.globalZoomMult},on:{channelsInitialized:t.channelsInitialized,setGlobalZoom:t.setGlobalZoom}},[n("canvas",{ref:"axisArea",staticClass:"canvas",style:t.canvasStyle1,attrs:{slot:"axisCanvas",id:"axisArea",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.cHeight,t.pixelRatio,0)},slot:"axisCanvas"}),n("canvas",{ref:"annArea",staticClass:"canvas",style:t.canvasStyle2,attrs:{slot:"annCanvas",id:"annArea",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.pHeight,t.pixelRatio,0)},slot:"annCanvas"})]),n("canvas",{ref:"cursorArea",staticClass:"canvas",style:t.canvasStyle3,attrs:{id:"cursorArea",width:t._cpCanvasScaler(t.cWidth+5,t.pixelRatio,0),height:t._cpCanvasScaler(t.cHeight,t.pixelRatio,0)}}),n("canvas",{ref:"iArea",staticClass:"canvas",style:t.canvasStyle1,attrs:{id:"iArea",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.cHeight,t.pixelRatio,0),tabindex:"-1"},on:{wheel:t._onMouseWheel,mousemove:t._onMouseMove,mousedown:t._onMouseDown,mouseup:t._onMouseUp,mouseout:t._onMouseOut,mouseenter:t._onMouseEnter}})],1)])},Ee=[],Ce=(__webpack_require__(6699),__webpack_require__(7327),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeseries-plot-canvas"},[n("canvas",{ref:"blurArea",staticClass:"canvas",style:t.canvasStyle,attrs:{id:"blurArea",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.pHeight,t.pixelRatio,0)}}),t._t("axisCanvas"),t._t("annCanvas"),n("canvas",{ref:"plotArea",staticClass:"canvas",style:t.canvasStyle,attrs:{id:"plotArea",width:t._cpCanvasScaler(t.cWidth,t.pixelRatio,0),height:t._cpCanvasScaler(t.pHeight,t.pixelRatio,0)}})],2)}),Pe=[];__webpack_require__(1038),__webpack_require__(7601);function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ne(t,e){if(t){if("string"===typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(t,e):void 0}}function Ie(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ne(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(a)throw o}}}}__webpack_require__(1532),__webpack_require__(561),__webpack_require__(9826),__webpack_require__(2472),__webpack_require__(8675),__webpack_require__(2990),__webpack_require__(8927),__webpack_require__(3105),__webpack_require__(5035),__webpack_require__(4345),__webpack_require__(7174),__webpack_require__(2846),__webpack_require__(4731),__webpack_require__(7209),__webpack_require__(6319),__webpack_require__(8867),__webpack_require__(7789),__webpack_require__(3739),__webpack_require__(9368),__webpack_require__(4483),__webpack_require__(2056),__webpack_require__(3462),__webpack_require__(678),__webpack_require__(7462),__webpack_require__(3824),__webpack_require__(5021),__webpack_require__(2974),__webpack_require__(5016),__webpack_require__(4197),__webpack_require__(6495);var je=__webpack_require__(3281),Me=__webpack_require__.n(je),Le={name:"TimeseriesPlotCanvas",props:{cHeight:Number,cWidth:Number,start:Number,duration:Number,constants:Object,rsPeriod:Number,ts_start:Number,ts_end:Number,globalZoomMult:Number},watch:{rsPeriod:function(){this.invalidate(),this.requestedPages.clear()},viewerMontageScheme:function(){this.sendMontageMessage(this.viewerMontageScheme)}},computed:{activeViewer:function(){return this.$store.getters.activeViewer},viewerChannels:function(){return this.$store.getters.viewerChannels},viewerMontageScheme:function(){return this.$store.getters.viewerMontageScheme},canvasStyle:function(){return{width:this.cWidth+"px",height:this.pHeight+"px"}},pHeight:function(){return this.cHeight-20},timeSeriesUrl:function(){return"wss://".concat("api.pennsieve.io","/streaming/discover/ts/query?session=")+this.userToken+"&package="+encodeURIComponent(this.packageId)},packageId:function(){return he("","packageId",this.activeViewer)},userToken:function(){return this.$store.getters.userToken}},data:function(){return{proto:{nested:{Event:{fields:{source:{type:"string",id:1},pageStart:{type:"uint64",id:2},pageEnd:{type:"uint64",id:3},samplePeriod:{type:"double",id:4},pointsPerEvent:{type:"uint64",id:5},isResampled:{type:"bool",id:6},data:{rule:"repeated",type:"double",id:7},times:{rule:"repeated",type:"uint64",id:8},spikeGroup:{rule:"repeated",type:"uint32",id:9}}},Instruction:{fields:{command:{type:"string",id:1},argument:{type:"string",id:2}}},Segment:{fields:{startTs:{type:"uint64",id:1},source:{type:"string",id:2},lastUsed:{type:"uint64",id:3},unit:{type:"string",id:4},samplePeriod:{type:"double",id:5},requestedSamplePeriod:{type:"double",id:6},pageStart:{type:"uint64",id:7},isMinMax:{type:"bool",id:8},unitM:{type:"uint64",id:9},segmentType:{type:"string",id:10},nrPoints:{type:"uint64",id:11},data:{rule:"repeated",type:"double",id:12},pageEnd:{type:"uint64",id:13},channelName:{type:"string",id:14}}},IngestSegment:{fields:{channelId:{type:"string",id:1},startTime:{type:"uint64",id:2},samplePeriod:{type:"double",id:3},data:{rule:"repeated",type:"double",id:4}}},TimeSeriesMessage:{fields:{segment:{type:"Segment",id:3},event:{rule:"repeated",type:"Event",id:4},instruction:{type:"Instruction",id:5},ingestSegment:{type:"IngestSegment",id:6},totalResponses:{type:"uint64",id:7},responseSequenceId:{type:"uint64",id:8}}}}},pixelRatio:1,requestedPages:Object,chData:[],aSyncrequests:[],aSyncPreRequests:[],pageSize:15e6,viewData:{start:0,duration:0,channels:[]},renderCounter:0,lastDataRender:null,lastViewPageRequest:null,prefetchTimer:Object,prefetchDelay:100,autoScale:0,channelsReady:!1,prevStart:0,prevDuration:0,websocket:Object,initWebsocket:!0,segment:null,timeSeriesMessage:null,timeSeriesError:null,channelsList:null,catchUpRequestPages:null}},mounted:function(){this.requestedPages=new Map,this.chData=[],this.aSyncrequests=[],this.throttledGetRenderData=this.throttle(this.renderDataOnMessage,250,{leading:!1}),this.throttledDataRender=this.throttle(this._renderData,50);var t=this;this.preFetchRequestFnc=function(){var e=t.aSyncPreRequests.length;e>0?t.requestedPages.size<3&&(t.requestDataFromServer([t.aSyncPreRequests[0]]),t.aSyncPreRequests.splice(0,1)):(clearInterval(t.prefetchTimer),t.isPrefetching=!1)};var e=Me().Root.fromJSON(this.proto);this.segment=e.Segment,this.timeSeriesMessage=e.TimeSeriesMessage,this.timeSeriesError=e.TimeSeriesError,this.channelsList=e.ChannelsList,this.requestedPages=new Map,this.openWebsocket()},methods:{throttle:function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var u=function(){a=!1===n.leading?0:Date.now(),s=null,o=t.apply(r,i),s||(r=i=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var l=e-(c-a);return r=this,i=arguments,l<=0||l>e?(s&&(clearTimeout(s),s=null),a=c,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(u,l)),o}},viewSegmComparator:function(t,e){return t.startTs<e.startTs?-1:t.startTs>e.startTs?1:0},_cpCanvasScaler:function(t,e,n){return e*(t+n)},getScreenPixelRatio:function(){var t=this.$refs.plotArea.getContext("2d"),e=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/n},getChannelId:function(t){var e="NOT_MONTAGED"!==this.viewerMontageScheme,n=he("","id",t),r=[];return e&&(r=n.split("_"),n=r.length?zt(r):n),n},initChannels:function(t){var e=[];if(t.length>0){for(var n=[],r=0;r<t.length;r++){var i=t[r].content,o=this.getChannelId(i),s={id:o,label:i.name,type:i.channelType,segments:[],start:i.start,end:i.end,sampleFreq:i.rate,unit:i.unit,gaps:[],virtualId:i.virtualId},a=s.label.split(/[ _-]/,3),u=a[0],c=a.length>1?parseFloat(a[1]):0;c=isNaN(c)?a[1]:c,n.push({id:s.id,type:s.type,label:s.label,label_split:a,label_prefix:u,label_value:c,dataSegments:[],rank:r,visible:!0,plotAgainst:null,rowBaseline:null,rowScale:1,rowAdjust:0,selected:!1,hover:!1,unit:i.unit,sf:i.rate,filter:{},hideFilter:!0,isEditing:!1,virtualId:s.virtualId}),e.push(s)}n.sort((function(t,e){return t.label_split.length>2||e.label_split.length>2?t.label>e.label?1:e.label>t.label?-1:0:t.label_prefix===e.label_prefix?t.label_value>e.label_value?1:e.label_value>t.label_value?-1:0:t.label_prefix>e.label_prefix?1:e.label_prefix>t.label_prefix?-1:0}));for(var l=0;l<n.length;l++)n[l].rank=l;this.$store.dispatch("setChannels",n),this.$emit("channelsInitialized",t)}return this.computeSummary(e),this.chData=e,this.autoScale=t.length,this.channelsReady=!0,Promise.resolve()},computeSummary:function(t){0!==t.length?this.globalGaps=Kt(["gaps",0],t):this.globalGaps=null},segmIndexOf:function(t,e,n,r){var i;return r||(r=0),i=this._indexOfStart(t,e,r,t.length-1,n),-1===i?i=0:i<0&&(i=-i-2),i},_indexOfStart:function(t,e,n,r,i){if(r<n){var o;if(o=r>=0?r:-r-2,-1===o)return o;var s=t[o].pageStart;while(o>=0&&t[o].pageStart===s)o--;return o++,-o-2}var a=parseInt((n+r)/2);if(t[a].pageStart>e)return this._indexOfStart(t,e,n,a-1,i);if(t[a].pageStart<e)return this._indexOfStart(t,e,a+1,r,i);var u=a;if(i){while(u>=0&&t[u].pageStart===e)u--;u++}else{while(u<t.length&&t[u].pageStart===e)u++;u--}return u},generatePoints:function(){if(this.viewerChannels){this.viewData.start=this.start,this.viewData.duration=this.duration;for(var t=[],e=[],n=[],r=0;r<this.viewerChannels.length;r++){var i=this.viewerChannels[r],o=this.getChannelId(i.id);i.visible||t.push(o),n.push(o)}for(var s=[],a=0;a<this.viewData.channels.length;a++){var u=this.viewData.channels[a],c=this.getChannelId(u);s.push(c)}for(var l=[],f=0;f<this.chData.length;f++){var h=this.chData[f],p=this.getChannelId(h);t.indexOf(p)>=0?l.push(p):e.push(h)}l.sort();for(var d=l.length-1;d>=0;d--)this.splice("viewData.channels",l[d],1),s.splice(l[d],1);for(var v=0;v<e.length;v++){var y=e[v],g=this.getChannelId(y),m=s.indexOf(g);m<0&&this.viewData.channels.push({id:g,mean:null,firstRenderedIndex:0,lastRenderedIndex:0,blocks:[]})}this.requestData(e,this.start,this.duration)}},requestData:function(t,e,n){this.aSyncRequests=[];var r=!1;this.prevStart===e&&this.prevDuration===n||(this.aSyncPreRequests=[],r=!0),this.prevStart=e,this.prevDuration=n;for(var i=[],o=0;o<this.viewData.channels.length;o++){var s=this.viewData.channels[o];i.push(s)}for(var a=0;a<t.length;a++){var u=!1,c=t[a],l=c.segments,f=this.getChannelId(c),h=Ut(ue("id",f),i),p=this.viewData.channels[h];p.blocks=[];var d=Math.floor(e/this.pageSize)*this.pageSize;d<0&&(d=0);var v=0,y=0;l.length>0&&(v=this.segmIndexOf(l,d,!0,0));var g=e+n+this.constants["PREFETCHPAGES"]*this.pageSize;g>this.ts_end&&(g=this.ts_end);var m=void 0;l.length>0&&(m=l[v]);while(d<g||u){u=!1;var b=!1;if(m&&(b=d>=m.pageStart&&d<=m.pageEnd),b){var w=m.startTs<e+n;y+=1,d=m.pageEnd,w&&p.blocks.push(m);var _=m.pageStart;m=l[v+y],!this.isStreaming&&m&&_===m.pageStart&&(u=!0)}else{if(this.requestedPages.get(d)){if(d+=this.pageSize,m&&d>=m.pageEnd)while(m.pageEnd<d)if(y+=1,m=l[v+y],!m)break;continue}var x=d<e+n,S=!1;if(x){for(var A in this.aSyncPreRequests)if(this.aSyncPreRequests[A].start===d){this.aSyncPreRequests.splice(A,1);break}for(var T in this.aSyncRequests)this.aSyncRequests[T].start===d&&(this.aSyncRequests[T].channels.push(c),S=!0);S||this.aSyncRequests.push({channels:[c],start:d,duration:this.pageSize,isInViewport:!0,pixelWidth:Math.ceil(this.rsPeriod)})}else if(r){for(var k in this.aSyncPreRequests)this.aSyncPreRequests[k].start===d&&(this.aSyncPreRequests[k].channels.push(c),S=!0);S||this.aSyncPreRequests.push({channels:[c],start:d,duration:this.pageSize,isInViewport:!1,pixelWidth:Math.ceil(this.rsPeriod)})}if(d+=this.pageSize,m&&d>=m.pageEnd)while(m.pageEnd<d)if(y+=1,m=l[v+y],!m)break}}p.blocks.sort(this.viewSegmComparator)}if(this.aSyncRequests.length>0){for(var O=0,E=0;E<this.aSyncRequests.length;E++)this.aSyncRequests[E].start>=this.start&&this.aSyncRequests[E].start<this.start+this.duration&&(O=E);this.requestDataFromServer(this.aSyncRequests,O),this.lastViewPageRequest=Date.now()}this.aSyncPreRequests.length>0&&(this.isPrefetching||(this.prefetchTimer=setInterval(this.preFetchRequestFnc,150),this.isPrefetching=!0))},requestDataFromServer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.length>0){for(var n=this.ts_end,r=0;r<t.length;r++){var i=void 0;i=0===r?t[e]:r===e?t[0]:t[r];var o=i.start+i.duration;o>n&&(o=n);var s=this._websocket;if(!(s&&1===s.readyState&&i.pixelWidth>0))return console.log("Websocket Closed"),!1;var a=i.channels.map((function(t){return{id:t.id,name:t.label}})),u={session:this.userToken,minMax:!0,startTime:i.start,endTime:o,packageId:this.packageId,pixelWidth:i.pixelWidth,virtualChannels:a},c=JSON.stringify(u);s.send(c);for(var l=i.channels.length,f=new Map,h=0;h<l;h++)f.set(i.channels[h].id,NaN);this.requestedPages.set(i.start,{count:l,counter:f,subPageCount:NaN,ts:Date.now()+550,inViewport:i.isInViewport})}this.aSyncrequests=[]}return!0},invalidate:function(){console.log("Invalidating"),clearTimeout(this.preFetchTime),this.aSyncPreRequests=[],this.globalGaps=[],this.requestedPages.clear();for(var t=0;t<this.chData.length;t++)this.chData[t].segments=[];for(var e=0;e<this.viewData.channels.length;e++)this.viewData.channels[e].blocks=[];this.renderAll()},renderAll:function(){this.generatePoints(),this._renderData()},_computeChannelViews:function(){var t=this.viewerChannels.map((function(t,e){return{index:e,value:t.rank}}));t.sort((function(t,e){return+(t.value>e.value)||+(t.value===e.value)-1}));for(var e=t.map((function(t){return t.index})),n=this.pHeight/this.nrVisibleChannels,r=0,i=null,o=0;o<e.length;o++){var s=this.viewerChannels[e[o]],a=s.rowBaseline;s.visible&&(i=.5*n+r*n,r++),a!=i&&this.$store.dispatch("updateViewChannel",{channelId:s.id,data:{rowBaseline:i}})}},getPointCoords:function(t,e,n){var r=e.blocks.length;switch(t.type){case"UNIT":if(!n)for(var i=0;i<r;i++)for(var o=e.blocks[i],s=o.cData,a=o.parsedData,u=this.constants["XOFFSET"],c=o.parsedData[0].length,l=s[0],f=s[1],h=s[2],p=a[0],d=0|t.rowBaseline,v=this.start,y=this.rsPeriod,g=this.cHeight/(2*(this.nrVisibleChannels+1))|0,m=0;m<c;m++)l[m]=u+(p[m]-v)/y,f[m]=d-g,h[m]=d+g;break;case"CONTINUOUS":var b=0;if(!n){e.mean=0,e.median=0;for(var w=0;w<r;w++){var _=e.blocks[w];_.nrValidPoints>0&&(e.mean=(_.sumElem+b*e.mean)/(b+_.nrValidPoints),e.median=(_.median+b*e.median)/(b+_.nrValidPoints),b+=_.nrValidPoints)}}for(var x=0;x<r;x++){var S=e.blocks[x],A=Math.floor((this.start-S.startTs)/S.samplePeriod);S.renderStartIndex=A>0?A:0;var T=Math.floor(this.start+this.duration-(S.startTs+S.nrPoints*S.samplePeriod)/S.samplePeriod);S.renderEndIndex=T>=0?S.nrPoints-1:S.nrPoints+T;var k=S.cData,O=S.parsedData,E=this.globalZoomMult*t.rowScale,C=this.constants["XOFFSET"],P=S.parsedData[0].length,R=k[0],N=k[1],I=k[2],j=O[0],M=O[1],L=O[2],D=t.rowBaseline,F=0;F=this.constants["USEMEDIAN"]?e.median:e.mean;for(var $=this.rsPeriod,q=this.start,B=0;B<P;B++)R[B]=C+(j[B]-q)/$,N[B]=D+(M[B]-F)*E,S.isMinMax&&(M[B]===L[B]?I[B]=N[B]+1:I[B]=D+(L[B]-F)*E)}break}},_renderData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.$refs.blurArea,r=n.getContext("2d");r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),r.fillStyle="rgb(220,220,220)";var i=this.$refs.plotArea,o=i.getContext("2d");o.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),o.clearRect(0,0,this.cWidth,this.cHeight),r.clearRect(0,0,this.cWidth,this.cHeight);var s=this.viewerChannels.reduce((function(t,e){return e.visible?t+1:t}),0);for(var a in this.nrVisibleChannels=s,this._computeChannelViews(),o.save(),this.viewData.channels)if(this.viewData.channels.hasOwnProperty(a)){var u=function(){var n=t.viewData.channels[a],i=null;if(i=t.viewerChannels.find((function(t){return t.id===n.id})),!i||!i.visible)return"continue";for(var s=t.start,u=t.rsPeriod,c=t.constants["XOFFSET"],l=Math.min(Math.round(t.cHeight/t.viewData.channels.length-2),10),f=0;f<i.dataSegments.length;f+=2)if(!(i.dataSegments[f+1]<s)){if(i.dataSegments[f]>s+t.duration)break;var h=Math.floor(c+(i.dataSegments[f]-s)/u),p=Math.floor(c+(i.dataSegments[f+1]-s)/u),d=Math.floor(i.rowBaseline-l/2);r.fillRect(h,d,p-h,l)}t.getPointCoords(i,n,e);var v=n.blocks.length,y="Continuous";v&&(y=n.blocks[0].type),i.hover?i.selected?(o.strokeStyle="rgba(39,96,255,0.70)",o.fillStyle="rgba(39,96,255,0.70)"):(o.strokeStyle="rgba(39,96,255,0.60)",o.fillStyle="rgba(39,96,255,0.60)"):i.selected?(o.strokeStyle="rgb(39,96,255)",o.fillStyle="rgb(39,96,255)"):"Neural"===y?o.strokeStyle="rgb(120,120,120)":(o.strokeStyle="black",o.fillStyle="black");for(var g=null,m=!0,b=1/i.sf*1e6,w=0;w<v;w++){var _=n.blocks[w];if(0!==_.nrPoints){var x=_.cData,S=_.nrPoints,A=x[0],T=x[1],k=x[2],O=_.renderStartIndex,E=_.renderEndIndex;switch(r.clearRect(Math.floor(A[O]),Math.floor(i.rowBaseline-l/2),Math.ceil(A[E]-A[O]+2),l+1),_.type){case"Continuous":case"realtime":if(_.isMinMax)if(_.samplePeriod/b<3&&(m=!1),m){o.beginPath(),w>0&&A[O]<g.x+3?o.moveTo(g.x,g.y):o.moveTo(A[O],T[O]);for(var C=O;C<E+1;C++)o.lineTo(A[C],T[C]);for(var P=E-1;P>=O;P--)o.lineTo(A[P],k[P]);w>0&&A[O]<g.x+3&&o.lineTo(g.x,g.y2),o.closePath(),o.fill()}else{o.beginPath();for(var R=O;R<E+1;R++)o.lineTo(A[R],T[R]),o.lineTo(A[R],k[R]),o.moveTo(A[R],T[R]);o.stroke()}else{0===w?(o.beginPath(),o.moveTo(A[O],T[O])):A[O]>g.x+2&&o.moveTo(A[O],T[O]);for(var N=O;N<E+1;N++)o.lineTo(A[N],T[N]);w===v-1&&o.stroke()}break;case"Neural":o.beginPath();for(var I=0;I<S;I++)o.moveTo(A[I],T[I]),o.lineTo(A[I],k[I]);o.stroke()}g={x:A[S-1],y:T[S-1],y2:k[S-1]}}}}();if("continue"===u)continue}o.restore()},renderDataOnMessage:function(){this.generatePoints(),0===this.autoScale?(this.autoScale--,this.autoScaleViewData()):this._renderData()},autoScaleViewData:function(){console.log("autoscale");for(var t=0,e=0,n=this.viewData.channels,r=[],i=0;i<n.length;i++)for(var o=n[i].blocks,s=0;s<o.length;s++)"Continuous"===o[s].type&&(t+=this.standardDeviation(o[s].parsedData[1]),e++,r.push({channel:i,sumMedian:t}));var a=.8*r.length,u=this.calcSumMedian(a,r),c=u/e;isNaN(c)||this.$emit("setGlobalZoom",this.cHeight/r.length/(2*c))},calcSumMedian:function(t,e){return ht(ne,G(Q("sumMedian")),Pt(t),de(Q("sumMedian")))(e)},standardDeviation:function(t){var e=this.average(t),n=t.map((function(t){var n=t-e,r=n*n;return r})),r=this.average(n),i=Math.sqrt(r);return i},average:function(t){var e=t.reduce((function(t,e){return t+e}),0),n=e/t.length;return n},reRequestPages:function(){var t=[];this.requestedPages.forEach((function(e,n){if(!isNaN(e.subPageCount)){var r=[];e.counter.forEach((function(t,e){!isNaN(t)&&t>0&&r.push(e)})),r.length>0&&t.push({channels:r,start:n,duration:this.pageSize,isInViewport:!0,pixelWidth:this.rsPeriod})}}),this),this.requestedPages.clear(),this.catchUpRequestPages=t},openWebsocket:function(){if(!this._websocket||0!==this._websocket.readyState&&1!==this._websocket.readyState){var t=this.timeSeriesUrl;this._websocket=new WebSocket(t),this._websocket.onopen=this._onWebsocketOpen.bind(this),this._websocket.onclose=this._onWebsocketClose.bind(this),this._websocket.onmessage=this._onWebsocketMessage.bind(this)}},sendMontageMessage:function(t){var e=this;if(this._websocket&&1===this._websocket.readyState){var n={montage:t,packageId:this.packageId};this._websocket.send(JSON.stringify(n))}else this.async((function(){e.sendMontageMessage(t)}),500)},_onWebsocketClose:function(){console.log("Websocket closed function"),clearTimeout(this.preFetchTime),this.aSyncPreRequests=[],this.openWebsocket()},_onWebsocketFinalClose:function(){console.log("Websocket closed forever")},_onWebsocketOpen:function(){if(console.log("Websocket is opened"),this.initWebsocket){for(var t=[],e=0;e<this.viewerChannels.length;e++)t.push(this.viewerChannels[e].id);var n={channelFiltersToClear:t};this.sendFilterMessage(n);var r={montage:"NOT_MONTAGED",packageId:this.packageId};this._websocket.send(JSON.stringify(r)),this.initWebsocket=!1}this.catchUpRequestPages&&this.catchUpRequestPages.length>0&&this.requestDataFromServer(this.catchUpRequestPages),this.catchUpRequestPages=[],this.isStreaming&&this.initStream(),this.generatePoints()},_onWebsocketMessage:function(t){var e=this;if("string"!==typeof t.data){var n=new FileReader;n.parent=this,n.addEventListener("loadend",(function(t){var e=t.srcElement?t.srcElement.result:t.target.result,n=new Uint8Array(e),r=this.parent.timeSeriesMessage.decode(n),i=r.segment;if(r.event&&r.event.length>0&&r.event[0].pageStart){for(var o=r.event[0],s=[[],[]],a=o.times.length/2,u=0,c=0;c<a;c++)s[0].push(o.times[u]),s[1].push(o.times[u+1]),u+=2;var l=new Array(3),f=0;while(f<3)l[f]=new Float32Array(s[0].length),f++;var h={chId:o.source,lastUsed:0,unit:"uV",samplePeriod:o.samplePeriod,pageStart:o.pageStart,pageEnd:o.pageEnd,startTs:o.pageStart,isMinMax:o.isResampled,unitM:1,type:"Neural",nrPoints:a,parsedData:s,cData:l};this.parent.dataCallback({pageStart:o.pageStart,data:h,type:"Neural",nrResponses:r.totalResponses})}if(null!==i){if(i.requestedSamplePeriod!==Math.ceil(this.parent.rsPeriod))return;var p=null;p=i.isMinMax?i.data.length/2:i.data.length;var d=new Array(3),v=i.startTs,y=0,g=0,m=0;while(m<3)d[m]=new Float64Array(p),m++;if(i.isMinMax)for(var b=0,w=0;w<p;w++){var _=-i.data[b],x=-i.data[b+1];d[0][w]=v+w*i.samplePeriod,d[1][w]=_,d[2][w]=x,isNaN(_)||(g++,y+=_+(x-_)/2),b+=2}else for(var S=0;S<p;S++){var A=-i.data[S];d[0][S]=v+S*i.samplePeriod,d[1][S]=A,isNaN(A)||(g++,y+=A)}var T=0;if(this.parent.constants["USEMEDIAN"]){var k=Array.prototype.slice.call(d[1]).sort();T=i.isMinMax?k[Math.round(k.length/2)]:k[Math.round(k.length)]}var O=new Array(3),E=0;while(E<3)O[E]=new Float32Array(d[0].length),E++;var C={chId:i.source,lastUsed:i.lastUsed,unit:i.unit,samplePeriod:i.samplePeriod,pageStart:i.pageStart,pageEnd:i.pageEnd,startTs:v,isMinMax:i.isMinMax,unitM:i.unitM,type:i.segmentType,nrPoints:p,cData:O,parsedData:d,median:T,sumElem:y,nrValidPoints:g,name:i.channelName,label:i.channelName,virtualId:"".concat(i.source,"_").concat(i.channelName)};C.nrPoints>0?this.parent.dataCallback({pageStart:i.pageStart,data:C,type:i.segmentType,nrResponses:r.totalResponses}):this.parent.dataCallback({pageStart:i.pageStart,data:C,nrResponses:r.totalResponses,type:"gap"})}})),n.readAsArrayBuffer(t.data)}else{var r={};try{r=JSON.parse(t.data)}catch(o){this.$store.dispatch("setViewerErrors",{error:"JSON Parse Error"})}if(r.channelDetails){var i=r.channelDetails.map((function(t){var n=t.id,r=t.name,i=t.unit,o=t.channelType,s=t.end,a=t.start,u=t.rate,c={id:n,name:r,channelType:o,label:r,unit:i,rate:u,start:a,end:s,virtualId:"".concat(n,"_").concat(r)};return"NOT_MONTAGED"!==e.viewerMontageScheme&&(c.id="".concat(n,"_").concat(r)),{content:c,properties:[]}}));this.initChannels(i).then((function(){e.invalidate(),e.renderAll()}))}else r.error&&this.$store.dispatch("setViewerErrors",r)}},sendFilterMessage:function(t){var e=this;if(this._websocket&&1===this._websocket.readyState){var n=t.filterParameters||[];n.forEach((function(t){e.isTruthy(t)})),this._websocket.send(JSON.stringify(t))}else this.async((function(){e.sendFilterMessage(t)}),200)},isTruthy:function(t){return t&&""!==t&&!t.isNaN},calcFilterType:function(t,e,n){switch(!0){case!this.isTruthy(t)&&!this.isTruthy(e)&&!n:return"clear";case this.isTruthy(t)&&this.isTruthy(e):return"bandpass";case this.isTruthy(t):return"highpass";case this.isTruthy(e):return"lowpass";default:return"bandstop"}},dataCallback:function(t){this.autoScale>0&&this.autoScale--;for(var e=null,n=0;n<this.chData.length;n++)if(this.chData[n].label===t.data.label){e=this.chData[n];break}switch(t.type){case"gap":case"Neural":case"Continuous":var r=!1,i=e&&e.segments;if(i&&"gap"!==t.type&&(r=!0,i.length>0)){var o=this.segmIndexOf(i,t.data.startTs,!0,0);while(i[o]&&i[o].pageStart===t.data.pageStart){if(i[o].startTs===t.data.startTs){r=!1;break}o++}}var s=this.requestedPages.get(t.data.pageStart);if(s){s.ts=Date.now();var a=s.counter.get(t.data.chId);if(isNaN(a)?(a=t.nrResponses-1,s.counter.set(t.data.chId,a),s.subPageCount=a):(a-=1,s.counter.set(t.data.chId,a)),a<=0){var u,c=!0,l=Ie(s.counter.values());try{for(l.s();!(u=l.n()).done;){var f=u.value;if(f>0||isNaN(f)){c=!1;break}}}catch(h){l.e(h)}finally{l.f()}c&&this.requestedPages.delete(t.data.pageStart)}}r&&(i.push(t.data),i.sort((function(t,e){return t.startTs<e.startTs?-1:t.startTs>e.startTs?1:0})),t.pageStart<this.start+this.duration&&this.throttledGetRenderData());break;case"realtime":console.log("No Longer Supporting RealTime Data");break}}}},De=Le,Fe=(__webpack_require__(1096),Ae(De,Ce,Pe,!1,null,"0a32917c",null)),$e=Fe.exports,qe={name:"TimeseriesViewerCanvas",components:{TimeseriesPlotCanvas:$e},mixins:[me,ve],props:{windowHeight:Number,windowWidth:Number,duration:Number,start:Number,cHeight:Number,cWidth:Number,globalZoomMult:Number,constants:Object,tsStart:Number,tsEnd:Number,cursorLoc:Number},computed:{viewerChannels:function(){return this.$store.getters.viewerChannels},viewerAnnotations:function(){return this.$store.getters.viewerAnnotations},viewerActiveTool:function(){return this.$store.getters.viewerActiveTool},pHeight:function(){return this.cHeight-20},cursorWidth:function(){return this.cWidth+this.constants["CURSOROFFSET"]},blurCanvas:function(){return this.$refs.blurCanvas},canvasStyle1:function(){return{width:this.cWidth+"px",height:this.cHeight+"px"}},canvasStyle2:function(){return{width:this.cWidth+"px",height:this.pHeight+"px"}},canvasStyle3:function(){return{width:this.cursorWidth+"px",height:this.cHeight+"px"}}},watch:{cHeight:function(){this.resize()},cWidth:function(){this.resize()},start:function(){this.renderAll()},duration:function(){this.$refs.plotCanvas.invalidate(),this.updateRsPeriod(this.cWidth,this.duration),this.renderAll()},globalZoomMult:function(){var t=this;this.$nextTick((function(){t.$refs.plotCanvas.throttledDataRender()}))},viewerChannels:function(){var t=this;this.$nextTick((function(){t.renderAll()}))},pointerMode:function(){var t=this;switch(this.$refs.iArea.removeAttribute("col_resize"),this.$refs.iArea.removeAttribute("active"),this.$refs.iArea.removeAttribute("point"),this.pointerMode){case"cursor_hover":console.log("hover"),this.$refs.iArea.removeAttribute("point"),this.$refs.iArea.setAttribute("cursor_hover",!0);break;case"annResize-left":console.log("left"),this.$refs.iArea.setAttribute("col_resize",!0);break;case"annResize-right":console.log("right"),this.$refs.iArea.setAttribute("col_resize",!0);break;case"annSelect":this.$refs.iArea.setAttribute("active",!0);break;case"pan":break;case"pointer":this.$refs.iArea.setAttribute("point",!0);break;case"annotate":this.$refs.iArea.setAttribute("point",!0);break;default:console.log("other"),this.$refs.iArea.removeAttribute("point"),this.$refs.iArea.removeAttribute("cursor_hover");break}this.$nextTick((function(){t.renderAnnotationCanvas()}))}},data:function(){return{summary:{},rsPeriod:0,pageSize:0,lastrRsUpdate:0,pixelRatio:1,mouseDown:!1,resizeClicked:!1,pointerMode:"pan",trackDirection:!1,startDragCoord:{x:0,y:0},defaultLabels:["Event","Artifact","Seizure","Mark","Stim On","Stim Off","Start","Stop"],labelSelect:0}},mounted:function(){this.pixelRatio=this.getScreenPixelRatio()},methods:{onAnnotationsReceived:function(){this.renderAll(100)},onAnnLayersInitialized:function(){this.$emit("annLayersInitialized")},setGlobalZoom:function(t){this.$emit("setGlobalZoom",t)},channelsInitialized:function(t){this.$emit("channelsInitialized",t)},_onMouseWheel:function(t){t.stopPropagation(),t.preventDefault(),t.shiftKey?Math.abs(t.deltaY)>Math.abs(t.deltaX)&&(t.deltaY>0?this.$emit("setDuration",1.1*this.duration):this.$emit("setDuration",this.duration/1.1)):Math.abs(t.deltaY)>Math.abs(t.deltaX)&&(t.deltaY>0?this.$emit("setGlobalZoom",1.2*this.globalZoomMult):this.$emit("setGlobalZoom",this.globalZoomMult/1.2))},_onMouseUp:function(t){switch(this.resizeClicked=!1,this.mouseDown=!1,this.pointerMode){case"pointer":this.clearICanvas();var e=t.metaKey,n=t.clientY-this.$refs.iArea.getBoundingClientRect().top,r=this.startDragCoord.y-this.$refs.iArea.getBoundingClientRect().top,i=this.viewerChannels.map((function(t){return!1===e&&(t.selected=!1),(t.rowBaseline>r&&t.rowBaseline<n||t.rowBaseline<r&&t.rowBaseline>n)&&(t.selected=!0),t}));this.$store.dispatch("setChannels",i);break;case"annSelect":this.clearICanvas();break;case"annotate":for(var o=null,s=0;s<this.viewerAnnotations.length;s++)if(this.viewerAnnotations[s].selected){o=s;break}if(null===o)return;var a=this.$store.getters["viewerSelectedChannels"],u=a.length===this.viewerChannels.length||0===a.length,c=(t.clientX-this.startDragCoord.x)*this.rsPeriod,l=this.startDragTimeStamp+(this.startDragCoord.x-this.$refs.iArea.getBoundingClientRect().left)*this.rsPeriod,f={name:"",id:null,label:this.defaultLabels[this.labelSelect],description:"",start:l,duration:c,end:l+c,cStart:null,cEnd:null,selected:!0,channelIds:a,allChannels:u,layer_id:this.viewerAnnotations[o].id,userId:null};this.$store.dispatch("setActiveAnnotation",f),this.$emit("addAnnotation",l,c,u,this.defaultLabels[this.labelSelect],"",this.viewerAnnotations[o]);break;case"annResize-left":case"annResize-right":}},clearICanvas:function(){var t=this.$refs.iArea,e=t.getContext("2d");e.clearRect(0,0,this.cWidth,this.cHeight)},_onMouseDown:function(t){this.mouseDown=!0,this.startDragTimeStamp=this.start,this.startDragCoord.x=t.clientX,this.startDragCoord.y=t.clientY},_onMouseOut:function(){this.mouseDown=!1},_onMouseEnter:function(t){1===t.buttons?this.mouseDown=!0:this.mouseDown=!1},_onMouseMove:function(t){switch(t.preventDefault(),t.stopPropagation(),this.viewerActiveTool){case"pan":if(this.mouseDown){var e=this.startDragTimeStamp-(t.clientX-this.startDragCoord.x)*this.rsPeriod;this.$emit("setStart",e)}break;case"pointer":this.mouseDown&&this.renderSelectBox(t.clientX,t.clientY);break;case"annotate":this.mouseDown&&"annotate"==this.pointerMode?this.renderAnnotationBox(t.clientX):this.mouseDown&&["annResize-left","annResize-right"].includes(this.pointerMode)&&this.renderAll();break}},resize:function(){this.updateRsPeriod(this.cWidth,this.duration),this.renderAll(25)},updateRsPeriod:function(t,e){var n=this.rsPeriod,r=e/t;r!==n&&(this.invalidateCache=!0,this.lastRsUpdate=Date.now(),this.rsPeriod=r,this.pageSize=Math.floor(this.duration/this.constants["PAGESIZEDIVIDER"]))},_cpCanvasScaler:function(t,e,n){return e*(t+n)},renderAll:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.renderFnc&&t===this.renderThrottle&&this.requestLeadingEdge===e||(this.renderFnc=this.throttle(this._renderAll,t,{leading:e}),this.renderThrottle=t,this.requestLeadingEdge=e),this.renderFnc(this)},throttle:function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var u=function(){a=!1===n.leading?0:Date.now(),s=null,o=t.apply(r,i),s||(r=i=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var l=e-(c-a);return r=this,i=arguments,l<=0||l>e?(s&&(clearTimeout(s),s=null),a=c,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(u,l)),o}},renderAnnotationCanvas:function(){this.clearICanvas()},_renderAll:function(){var t=this;this.$nextTick((function(){t._renderAxis(),t._renderCursor(),t.$refs.plotCanvas.renderAll()}))},_renderAxis:function(){var t=this.$refs.axisArea,e=t.getContext("2d");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),e.clearRect(0,0,this.cWidth,this.cHeight),e.stroke(),e.beginPath(),e.lineWidth=1,e.moveTo(this.constants.XOFFSET+.5,.5),e.lineTo(this.constants.XOFFSET+.5,this.pHeight+.5),e.lineTo(this.cWidth+.5,this.pHeight+.5),e.stroke();var n=this.pHeight/(2*this.nrVisibleChannels)+.5<<1>>1;e.lineWidth=.5;for(var r=0;r<this.nrVisibleChannels;r++)e.beginPath(),e.moveTo(this.constants.XOFFSET-2,n),e.lineTo(this.constants.XOFFSET+2,n),e.stroke(),n+=this.pHeight/this.nrVisibleChannels;for(var i=this.constants["XGRIDSPACING"]*Math.ceil(this.duration/1e8),o=Math.ceil(this.duration/i)+1,s=Math.ceil(this.constants["NRPXPERLABEL"]/(i/this.rsPeriod)),a=(i-this.start%i)%i,u=0;u<o;u++){var c=this.start+a+u*i;if(c>this.tsEnd)break;var l=c-this.start,f=this.constants["XOFFSET"]+l/this.rsPeriod,h=Math.round(f);if(h>1){e.save(),e.beginPath(),e.lineWidth=.5,e.strokeStyle="rgb(235,235,235)",e.moveTo(h+.5,.5),e.lineTo(h+.5,this.pHeight-.5),e.stroke(),e.restore();var p=(c/i+i/10)%s|0;if(1===p||1===s){e.beginPath(),e.lineWidth=1,e.moveTo(h+.5,this.pHeight-3),e.lineTo(h+.5,this.pHeight+3),e.stroke();var d=new Date(c/1e3);e.font="12px sans-serif",e.fillStyle="rgb(150,150,150)",e.fillText(this.getUTCTimeString(d),h-20.5,this.cHeight-.2),1}}}},renderSelectBox:function(t,e){var n=this.$refs.iArea,r=n.getContext("2d");r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),r.clearRect(0,0,this.cWidth,this.cHeight),r.beginPath(),r.lineWidth=2,r.strokeStyle="#295eff",r.setLineDash([5,5,15,5]);var i=t-n.getBoundingClientRect().left,o=e-n.getBoundingClientRect().top;r.rect(i,o,-t+this.startDragCoord.x,-e+this.startDragCoord.y),r.stroke()},_renderCursor:function(){var t=this.$refs.cursorArea,e=t.getContext("2d");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),e.clearRect(0,0,this.cWidth+this.constants["CURSOROFFSET"],this.cHeight),e.save(),e.beginPath(),e.fillStyle="red";var n=this.cursorLoc*this.cWidth;n>this.constants["CURSOROFFSET"]?(e.strokeStyle="red",e.moveTo(n,0),e.lineTo(n,this.pHeight),e.stroke()):e.moveTo(n,this.pHeight),e.beginPath(),e.lineTo(n-5,this.pHeight+8),e.lineTo(n+5,this.pHeight+8),e.lineTo(n,this.pHeight),e.fill(),e.restore()},renderAnnotationBox:function(t){var e=this.$refs.iArea,n=e.getContext("2d");n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);for(var r=this.constants["ANNOTATIONLABELHEIGHT"],i=r/2|0,o=null,s=0;s<this.viewerAnnotations.length;s++)if(this.viewerAnnotations[s].selected){o=s;break}if(null!==o){n.save(),n.clearRect(0,0,this.cWidth,this.cHeight),n.lineWidth=1;var a=this.$store.getters["viewerSelectedChannels"],u=a.length===this.viewerChannels.length||0===a.length,c=t-e.getBoundingClientRect().left,l=-t+this.startDragCoord.x;if(u){n.fillStyle="rgba(0,0,0,0.1)",n.fillRect(c,0,l,this.pHeight),n.fillStyle=this.viewerAnnotations[o].color,n.strokeStyle=n.fillStyle;var f=c-1,h=l+2;l<0&&(f=c+1,h=l-2),n.fillRect(f,0,h,r),n.setLineDash([5,5,5,5]),n.beginPath(),n.moveTo(c,r),n.lineTo(c,this.pHeight),n.stroke(),n.beginPath(),n.moveTo(c+l,r),n.lineTo(c+l,this.pHeight),n.stroke()}else{var p=0|this.cHeight,d=0,v=this.viewerChannels;n.fillStyle=this.viewerAnnotations[o].color,n.strokeStyle=n.fillStyle;var y=c-1,g=l+2;l<0&&(y=c+1,g=l-2);for(var m=0;m<v.length;m++){var b=v[m];if(b.selected&&b.visible){var w=0|b.rowBaseline;w<p&&(p=w),w>d&&(d=w),n.fillRect(y,w-i,g,r)}}n.fillStyle="rgba(0,0,0,0.1)",n.setLineDash([5,5,5,5]),n.fillRect(c-1,p+i,l+2,d-p-r),n.beginPath(),n.moveTo(c,p+i),n.lineTo(c,d-i),n.moveTo(c+l,p+i),n.lineTo(c+l,d-i),n.stroke()}n.restore()}},getScreenPixelRatio:function(){var t=this.$refs.iArea.getContext("2d"),e=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/n},getUTCTimeString:function(t){return("0"+t.getUTCHours()).slice(-2)+":"+("0"+t.getUTCMinutes()).slice(-2)+":"+("0"+t.getUTCSeconds()).slice(-2)},setFilters:function(t){var e=parseFloat(t.input0),n=parseFloat(t.input1),r={};switch(t.filterType){case"clear":r={channelFiltersToClear:t.selChannels};break;case"bandpass":var i=(e+n)/2,o=Math.abs((n-e)/2);r={filter:t.filterType,filterParameters:[4,i,o],channels:t.selChannels};break;case"highpass":r={filter:t.filterType,filterParameters:[4,e],channels:t.selChannels};break;case"lowpass":r={filter:t.filterType,filterParameters:[4,e],channels:t.selChannels};break;case"bandstop":var s=10,a=t.notchFreq;r={filter:t.filterType,filterParameters:[4,a,s],channels:t.selChannels};break;default:return}this.$refs.plotCanvas.sendFilterMessage(r);for(var u=0;u<t.selChannels.length;u++){var c=t.selChannels[u],l=Ft(ue("id",c),this.viewerChannels);"clear"===t.filterType?l.filter={}:l.filter={type:t.filterType,input0:e,input1:n,notchFreq:t.notchFreq},this.$store.dispatch("updateChannel",l)}this.$refs.plotCanvas.invalidate(),this.renderAll()}}},Be=qe,We=(__webpack_require__(6454),Ae(Be,Oe,Ee,!1,null,"0f680526",null)),Ue=We.exports,Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeseries-viewer-toolbar"},[n("div",{attrs:{id:"left-controls"}},[n("el-tooltip",{attrs:{placement:"top-end",content:"Toggle Time Zoom Controls"}},[n("button",{staticClass:"btn-icon",on:{click:function(e){return t.toggleTimeZoom()}}},[n("svg",{staticClass:"svg-fill icon",attrs:{width:"20",height:"20",viewBox:"0 0 16 16"}},[n("path",{attrs:{d:"M13.653125,14.3537502 L11.29125,11.9918752 C11.6475,11.4075002 11.8525,10.7200002 11.8525,9.98562517 C11.8525,7.85000017 10.001875,6.00000017 7.86625,6.00000017 C5.730625,5.99937517 4,7.73062517 4,9.86625017 C4,12.0012502 5.850625,13.8518752 7.985625,13.8518752 C8.69625,13.8518752 9.360625,13.6587502 9.9325,13.3243752 L12.306875,15.7000002 C12.539375,15.9318752 12.91625,15.9318752 13.148125,15.7000002 L13.7375,15.1106252 C13.969375,14.8787502 13.885,14.5856252 13.653125,14.3537502 Z M5.19,9.86625017 C5.19,8.38750017 6.388125,7.18937517 7.86625,7.18937517 C9.345,7.18937517 10.6625,8.50625017 10.6625,9.98562517 C10.6625,11.4637502 9.46375,12.6625002 7.985625,12.6625002 C6.506875,12.6618752 5.19,11.3443752 5.19,9.86625017 Z M16,3 L13,6 L13,4 L9,4 L9,2 L13,2 L13,6.2778623e-16 L16,3 Z M3,6 L2.66453526e-15,3 L3,-7.66951701e-17 L3,2 L9,2 L9,4 L3,4 L3,6 Z"}})])])]),t.showTimeZoom?n("el-input-number",{attrs:{precision:1,step:5,max:this.constants["MAXDURATION"],size:"mini","controls-position":"right"},model:{value:t.durationInSeconds,callback:function(e){t.durationInSeconds=e},expression:"durationInSeconds"}}):t._e(),n("el-tooltip",{attrs:{placement:"top-end",content:"Toggle Vertical Zoom Controls"}},[n("button",{staticClass:"btn-icon",on:{click:function(e){return t.toggleVerticalZoom()}}},[n("svg",{staticClass:"svg-fill icon",attrs:{width:"20",height:"20",viewBox:"0 0 16 16"}},[n("path",{attrs:{d:"M15.715625,12.416875 L13.35375,10.055 C13.71,9.470625 13.915,8.783125 13.915,8.04875 C13.915,5.913125 12.064375,4.063125 9.92875,4.063125 C7.793125,4.0625 6.0625,5.79375 6.0625,7.929375 C6.0625,10.064375 7.913125,11.915 10.048125,11.915 C10.75875,11.915 11.423125,11.721875 11.995,11.3875 L14.369375,13.763125 C14.601875,13.995 14.97875,13.995 15.210625,13.763125 L15.8,13.17375 C16.031875,12.941875 15.9475,12.64875 15.715625,12.416875 Z M7.2525,7.929375 C7.2525,6.450625 8.450625,5.2525 9.92875,5.2525 C11.4075,5.2525 12.725,6.569375 12.725,8.04875 C12.725,9.526875 11.52625,10.725625 10.048125,10.725625 C8.569375,10.725 7.2525,9.4075 7.2525,7.929375 Z M3,0 L6,3 L4,3 L4,7 L2,7 L2,3 L0,3 L3,0 Z M6,13 L3,16 L0,13 L2,13 L2,7 L4,7 L4,13 L6,13 Z"}})])])]),t.showVertZoom?n("el-button-group",[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:t.incrementZoom}}),n("el-button",{attrs:{icon:"el-icon-minus",size:"mini"},on:{click:t.decrementZoom}})],1):t._e()],1),n("div",{attrs:{id:"center-controls"}},[n("el-tooltip",{attrs:{placement:"top-end",content:"Page Back"}},[n("button",{staticClass:"btn-icon",on:{click:function(e){return t.pageBack()}}},[n("svg",{staticClass:"svg-fill icon",attrs:{width:"18",height:"12",viewBox:"0 0 12 12"}},[n("path",{attrs:{d:"M10.959,0.571 L3.756,5.52 C3.756,5.52 3.477,5.721 3.477,6.001 C3.477,6.281 3.756,6.48 3.756,6.48 L10.959,11.431 C11.531,11.811 12,11.53 12,10.805 L12,1.196 C12,0.469 11.531,0.188 10.959,0.571 Z M2,0 L1,0 C0.447,0 0,0.048 0,0.6 L0,11.4 C0,11.952 0.447,12 1,12 L2,12 C2.553,12 3,11.952 3,11.4 L3,0.6 C3,0.048 2.553,0 2,0 Z"}})])])]),n("el-tooltip",{attrs:{placement:"top-end",content:"Automatic Forward"}},[n("button",{staticClass:"btn-icon",on:{click:function(e){return t.togglePlayback()}}},[t.isPlaying?n("svg",{staticClass:"svg-fill icon",attrs:{width:"18",height:"12",viewBox:"0 0 10 12"}},[n("path",{attrs:{d:"M2,0 C2.553,0 3,0.048 3,0.6 L3,11.4 C3,11.952 2.553,12 2,12 L1,12 C0.447,12 0,11.952 0,11.4 L0,0.6 C0,0.048 0.447,0 1,0 L2,0 Z M9,0 C9.553,0 10,0.048 10,0.6 L10,11.4 C10,11.952 9.553,12 9,12 L8,12 C7.447,12 7,11.952 7,11.4 L7,0.6 C7,0.048 7.447,0 8,0 L9,0 Z"}})]):n("svg",{staticClass:"svg-fill icon",attrs:{width:"18",height:"12",viewBox:"0 0 10 12"}},[n("path",{attrs:{d:"M10,6.001 C10,6.3 9.695,6.515 9.695,6.515 L1.134,11.818 C0.51,12.227 0,11.924 0,11.149 L0,0.852 C0,0.075 0.51,-0.226 1.135,0.182 L9.696,5.487 C9.695,5.487 10,5.702 10,6.001 Z"}})])])]),n("el-tooltip",{attrs:{placement:"top-end",content:"Next Page"}},[n("button",{staticClass:"btn-icon",on:{click:function(e){return t.pageForward()}}},[n("svg",{staticClass:"svg-fill icon",attrs:{width:"18",height:"12",viewBox:"0 0 12 12"}},[n("path",{attrs:{d:"M8.244,5.52 L1.041,0.571 C0.469,0.188 0,0.469 0,1.196 L0,10.805 C0,11.53 0.469,11.811 1.041,11.43 L8.244,6.479 C8.244,6.479 8.523,6.28 8.523,6.001 C8.523,5.721 8.244,5.52 8.244,5.52 Z M10,0 L11,0 C11.553,0 12,0.048 12,0.6 L12,11.4 C12,11.952 11.553,12 11,12 L10,12 C9.447,12 9,11.952 9,11.4 L9,0.6 C9,0.048 9.447,0 10,0 Z"}})])])])],1),n("div",{attrs:{id:"right-controls"}},[n("el-tooltip",{attrs:{placement:"top-end",content:"Toggle Play Back Speed Controls"}},[n("button",{staticClass:"btn-icon",on:{click:function(e){return t.togglePlaybackSpeed()}}},[n("svg",{staticClass:"svg-fill icon",attrs:{width:"22",height:"20",viewBox:"0 0 16 16"}},[n("path",{attrs:{d:"M5.1008,5.396 C4.7432,5.616 6.0584,8.7896 6.3792,9.3064 C6.6592,9.7616 7.2536,9.9 7.7056,9.6216 C8.16,9.34 8.3016,8.7464 8.0216,8.2936 C7.704,7.7752 5.4576,5.1752 5.1008,5.396 Z M4.8328,1.9216 C5.5752,1.6632 6.3704,1.52 7.2,1.52 C8.0296,1.52 8.8248,1.6632 9.5672,1.9216 C9.8304,2.0128 10.1792,1.8296 10.0248,1.4328 C9.912,1.1448 9.8032,0.8632 9.7592,0.7488 C9.6544,0.4776 9.2792,0.2536 9.116,0.2168 C8.4984,0.0776 7.8584,0 7.2,0 C6.5416,0 5.9016,0.0776 5.2832,0.2168 C5.12,0.2536 4.7456,0.4776 4.6408,0.7488 C4.5968,0.8632 4.4872,1.1448 4.3752,1.4328 C4.2208,1.8296 4.5696,2.0136 4.8328,1.9216 Z M14.4784,2.5488 C14.3248,2.3648 14.1616,2.1848 13.988,2.0112 C13.8152,1.8376 13.6352,1.6752 13.452,1.5208 C13.3296,1.4176 12.9696,1.3336 12.7416,1.5616 C12.5144,1.7896 11.4232,2.8792 11.4232,2.8792 C11.7448,3.1096 12.0576,3.3632 12.3472,3.652 C12.6368,3.9408 12.8888,4.2536 13.12,4.576 C13.12,4.576 14.2104,3.4864 14.4376,3.2584 C14.6664,3.0296 14.5824,2.6704 14.4784,2.5488 Z M7.2,2.32 C3.62,2.32 0.7192,5.2208 0.7192,8.8 C0.7192,12.38 3.62,15.2808 7.2,15.2808 C10.7784,15.2808 13.68,12.38 13.68,8.8 C13.68,5.2216 10.7784,2.32 7.2,2.32 Z M7.2,13.6808 C4.5056,13.6808 2.32,11.496 2.32,8.8008 C2.32,6.1056 4.5048,3.9208 7.2,3.9208 C9.8952,3.9208 12.0808,6.1056 12.0808,8.8008 C12.0808,11.4952 9.8952,13.6808 7.2,13.6808 Z"}})])])]),t.showPlaybackSpeed?n("el-select",{staticClass:"playSelect",attrs:{placeholder:"Select",size:"mini"},model:{value:t.selectedPlaySpeed,callback:function(e){t.selectedPlaySpeed=e},expression:"selectedPlaySpeed"}},t._l(t.playSpeedOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()],1)])},ze=[],He={name:"TimeseriesViewerToolbar",computed:{durationInSeconds:{get:function(){return this.duration/1e6},set:function(t){this.$emit("updateDuration",t)}}},props:{constants:Object,duration:Number,start:Number},data:function(){return{showVertZoom:!0,showTimeZoom:!0,showPlaybackSpeed:!0,selectedTimeRange:0,isPlaying:!1,montageOptions:[{value:"NOT_MONTAGED",label:"Continuous (Default)"},{value:"REFERENTIAL_VS_CZ",label:"Referential Montage"},{value:"BIPOLAR_ANT_POS",label:"Ant/Post Montage"},{value:"BIPOLAR_TRANSVERSE",label:"Transverse Montage"}],selectedMontage:"",playSpeedOptions:[{value:.5,label:"0.5x"},{value:1,label:"1x"},{value:2,label:"2x"},{value:5,label:"5x"},{value:10,label:"10x"}],selectedPlaySpeed:null,intervalTimer:null,intervalPeriod:150,intervalPage:1e6}},mounted:function(){this.selectedMontage="NOT_MONTAGED",this.selectedPlaySpeed=1},methods:{updateMontageScheme:function(t){console.log("Updating Montage Scheme:"+t),this.$store.dispatch("setViewerMontageScheme",t)},updatePlaybackSpeed:function(t){console.log("Updating Playback Speed:"+t)},toggleTimeZoom:function(){this.showTimeZoom=!this.showTimeZoom},toggleVerticalZoom:function(){this.showVertZoom=!this.showVertZoom},togglePlaybackSpeed:function(){this.showPlaybackSpeed=!this.showPlaybackSpeed},togglePlayback:function(){!1===this.isPlaying?this.startPlay():this.stopPlay()},pageBack:function(){this.$emit("pageBack")},pageForward:function(){this.$emit("pageForward")},incrementZoom:function(){this.$emit("incrementZoom")},decrementZoom:function(){this.$emit("decrementZoom")},updateDuration:function(){this.$emit("updateDuration",this.selectedTimeRange)},nextAnnotation:function(){this.$emit("nextAnnotation")},previousAnnotation:function(){this.$emit("previousAnnotation")},startPlay:function(){this.isPlaying=!0;var t=this;this.intervalTimerFnc=function(){t.$emit("setStart",t.start+t.intervalPage*t.selectedPlaySpeed),t.intervalTimer=setTimeout(t.intervalTimerFnc,t.intervalPeriod)},this.intervalTimer=setTimeout(this.intervalTimerFnc,this.intervalPeriod)},stopPlay:function(){this.isPlaying=!1,this.intervalPeriod=150,clearInterval(this.intervalTimer)}}},Ze=He,Ge=(__webpack_require__(7409),Ae(Ze,Ve,ze,!1,null,"09a81dc6",null)),Je=Ge.exports,Xe={name:"TimeseriesViewer",components:{TimeseriesScrubber:ke,TimeseriesViewerCanvas:Ue,TimeseriesViewerToolbar:Je},mixins:[me,ve,be],watch:{viewerSidePanelOpen:{handler:function(){this.onResize()},immediate:!0},userToken:{handler:function(){var t=u(s().mark((function t(e){return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("updateUserToken",e);case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),immediate:!0},packageId:{handler:function(){var t=u(s().mark((function t(e){return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("openViewer",{packageId:e,packageType:this.packageType});case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),immediate:!0}},props:{userToken:{type:String,default:function(){return""}},packageId:{type:String,default:function(){return""}},packageType:{type:String,default:function(){return""}}},computed:{viewerChannels:function(){return this.$store.getters.viewerChannels},viewerAnnotations:function(){return this.$store.getters.viewerAnnotations},viewerSidePanelOpen:function(){return this.$store.getters.viewerSidePanelOpen},viewerMontageScheme:function(){return this.$store.getters.viewerMontageScheme},channelStyle:function(){return{height:this.window_height-110+"px"}},hideLabelInfo:function(){var t=!1,e=this.nrVisChannels;return this.cHeight/e<30&&(t=!0),t},nrVisChannels:function(){return this.viewerChannels.reduce((function(t,e){return e.visible?t+1:t}),0)},_cpStyleLabels:function(){var t=Math.max(1,Math.min(12,(this.window_height-110)/this.nrVisChannels-2));return"font-size:"+t+"px; height:"+t+"px"}},data:function(){return{constants:{TIMEUNIT:"microSeconds",XOFFSET:0,XGRIDSPACING:1e6,NRPXPERLABEL:150,USEREALTIME:!0,DEFAULTDPI:96,ANNOTATIONLABELHEIGHT:20,ROUNDDATAPIXELS:!1,MINMAXPOLYGON:!0,PAGESIZEDIVIDER:.5,PREFETCHPAGES:2,LIMITANNFETCH:500,USEMEDIAN:!1,CURSOROFFSET:5,SEGMENTSPAN:12096e8,MAXRECURSION:20,MAXDURATION:6e8,INITDURATION:15e6},summary:{},ts_start:null,ts_end:null,window_height:0,window_width:0,start:0,duration:0,cWidth:0,cHeight:0,labelWidth:0,globalZoomMult:1,cursorLoc:.1,filterWindowOpen:!1,annotationWindowOpen:!1,annotationLayerWindowOpen:!1,annotationDelete:null,isTsAnnotationDeleteDialogVisible:!1}},mounted:function(){this.window_height=window.innerHeight-144-250,this.window_width=this.$refs.ts_viewer.offsetWidth,window.addEventListener("resize",this.onResize);var t=this.$refs.channelLabels;this.labelWidth=t.clientWidth,this.cWidth=this.window_width-t.clientWidth-5-10,this.cHeight=this.window_height-88,this.duration=this.constants["INITDURATION"]},beforeDestroy:function(){window.removeEventListener("resize",this.onResize)},methods:{openEditAnnotationDialog:function(t){var e=this;this.$store.dispatch("setActiveAnnotation",t).then((function(){e.$refs.viewerCanvas.renderAnnotationCanvas(),e.annotationWindowOpen=!0}))},onUpdateAnnotation:function(t){this.openEditAnnotationDialog(t)},onCreateUpdateAnnotation:function(t){this.annotationWindowOpen=!1,t.id?this.updateAnnotation():this.addAnnotation()},onAnnotationUpdated:function(){this.$refs.viewerCanvas.renderAnnotationCanvas()},onOpenAnnotationWindow:function(){this.annotationWindowOpen=!0},confirmDeleteAnnotation:function(t){this.annotationDelete=t,this.isTsAnnotationDeleteDialogVisible=!0},deleteAnnotation:function(t){this.isTsAnnotationDeleteDialogVisible=!1,this.removeAnnotation(t)},onAnnotationDeleted:function(){this.$refs.viewerCanvas.renderAnnotationCanvas()},onAddAnnotation:function(t,e,n,r,i,o){this.addAnnotation(t,e,n,r,i,o)},onAnnotationCreated:function(){this.$refs.viewerCanvas.renderAnnotationCanvas()},onCreateAnnotationLayer:function(t){this.$refs.viewerCanvas.createAnnotationLayer(t)},onCloseAnnotationLayerWindow:function(){this.annotationLayerWindowOpen=!1},onCloseAnnotationWindow:function(){this.$refs.viewerCanvas.resetFocusedAnnotation(),this.$refs.viewerCanvas.renderAnnotationCanvas(),this.annotationWindowOpen=!1},onCloseFilterWindow:function(){this.filterWindowOpen=!1},onLabelTap:function(t){t.stopPropagation(),t.preventDefault();var e=t.detail.sourceEvent.metaKey;this.selectChannel({channelId:t.currentTarget.dataset.id,append:e}),this.$refs.viewerCanvas.renderAll()},onNextAnnotation:function(){this.start=this.$refs.viewerCanvas.getNextAnnotation()},onPreviousAnnotation:function(){this.start=this.$refs.viewerCanvas.getPreviousAnnotation()},onUpdateDuration:function(t){this.setDuration(1e6*t)},onIncrementZoom:function(){this.globalZoomMult=1.25*this.globalZoomMult},onDecrementZoom:function(){this.globalZoomMult=.8*this.globalZoomMult},onAnnLayersInitialized:function(){this.$refs.scrubber.getAnnotations()},onChannelsInitialized:function(t){var e=this;this.initViewerStart(t),this.$nextTick((function(){e.onResize()}))},onPageBack:function(){var t=this.start-3*this.duration/4;this.start=t},onPageForward:function(){var t=this.start+3*this.duration/4;this.start=t},selectAnnotation:function(t){var e=this.$refs.viewerCanvas.rsPeriod;this.updateStart(t.annotation.start-(this.cursorLoc*this.cWidth-this.constants["CURSOROFFSET"])*e)},selectChannel:function(t){var e=this.viewerChannels.map((function(e){var n=e.selected;return!1===t["append"]&&(e.selected=!1),t["channelId"]===e.id&&(e.selected=!n),e}));this.$store.dispatch("setChannels",e)},selectChannels:function(t,e){var n=this.viewerChannels.map((function(n){return!1===e&&(n.selected=!1),n.id in t&&(n.selected=!0),n}));this.$store.dispatch("setChannels",n)},updateStart:function(t){this.start=t},setCursor:function(t){this.cursorLoc=t},setGlobalZoom:function(t){this.globalZoomMult=t},setDuration:function(t){t>this.constants["MAXDURATION"]?this.duration=this.constants["MAXDURATION"]:this.duration=t},getChannelId:function(t){var e="NOT_MONTAGED"!==this.viewerMontageScheme,n=he("","id",t),r=[];return e&&(r=n.split("_"),n=r.length?zt(r):n),n},onResize:function(){if(void 0!==this.$refs.ts_viewer){this.window_height=window.innerHeight-144-250,this.window_width=this.$refs.ts_viewer.offsetWidth;var t=this.$refs.channelLabels;this.labelWidth=t.clientWidth,this.cWidth=this.window_width-t.clientWidth-16,this.cHeight=this.window_height-88}},_computeLabelInfo:function(t,e,n){var r=(this.constants["DEFAULTDPI"]*window.devicePixelRatio/(e*n)/25.4).toFixed(1);return r+" "+t.unit+"/mm"},initViewerStart:function(t){if(t.length>0){this.ts_start=t[0].content.start,this.ts_end=t[0].content.end;for(var e=1;e<t.length;e++)t[e].content.start<this.ts_start&&(this.ts_start=t[e].content.start),t[e].content.end>this.ts_end&&(this.ts_end=t[e].content.end);this.start=this.ts_start}},openLayerWindow:function(t){var e=this.$refs.layerModal;e.isCreating=t.isCreating,t.isCreating?e.layer={}:e.layer=t.layer,this.annotationLayerWindowOpen=!0},openFilterWindow:function(t){var e=he([],"channels",t),n=he("","filter",t),r=this.$refs.filterWindow;if(r.onChannels=e,Gt(n))r.input0=NaN,r.input1=NaN,r.selectedFilter=null,r.selectedNotch=null;else{r.input0=n.input0,r.input1=n.input1;for(var i=0;i<r._filters.length;i++)if(r._filters[i].value===n.type){r.selectedFilter=n.type;break}for(var o=0;o<r._notchValues.length;o++)if(r._notchValues[o].value===n.notchFreq){r.selectedNotch=n.notchFreq;break}}this.filterWindowOpen=!0},setTimeseriesFilters:function(t){this.$refs.viewerCanvas.setFilters(t)}}},Ye=Xe,Ke=(__webpack_require__(6592),Ae(Ye,r,i,!1,null,"1d6b8d00",null)),Qe=Ke.exports,tn=(__webpack_require__(3371),Object.freeze({INFO_PANEL:"infoPanel",DISCUSSION:"discussion",FILE_BROWSER:"fileBrowser",ANNOTATIONS:"annotations",CHANNELS:"channels"})),en=Object.freeze({PAN:"pan",ANNOTATION_SHAPE:"annotationShape",ANNOTATION_DRAW:"annotationDraw",MEASURE:"measure",ANNOTATE:"annotate",POINTER:"pointer"}),nn=void 0,rn={state:{userToken:"",selectedPackage:{},activeViewer:{},viewerSidePanelOpen:!1,viewerSlideInfo:{curRotation:0,curZoom:0,isMeasuring:!1,measureLength:0,zoomPerClick:0,minZoom:0,maxZoom:0},viewerChannels:[],viewerAnnotations:[],activeAnnotationLayer:{},activeAnnotation:{},viewerErrors:{},viewerSidePanelView:tn.INFO_PANEL,viewerActiveTool:en.PAN,viewerMontageScheme:"NOT_MONTAGED"},getters:{viewerSelectedChannels:function(t){return t.viewerChannels.filter((function(t){return t.selected}))},viewerChannels:function(t){return t.viewerChannels},viewerMontageScheme:function(t){return t.viewerMontageScheme},activeViewer:function(t){return t.activeViewer},viewerActiveTool:function(t){return t.viewerActiveTool},activeAnnotation:function(t){return t.activeAnnotation},viewerSidePanelOpen:function(t){return t.viewerSidePanelOpen},viewerAnnotations:function(t){return t.viewerAnnotations},userToken:function(t){return t.userToken}},mutations:{CLEAR_STATE:function(t){var e=on();Object.keys(e).forEach((function(n){return t[n]=e[n]}))},OPEN_VIEWER:function(t,e){t.activeViewer=e},SET_SIDE_PANEL:function(t,e){t.viewerSidePanelOpen=e.open,t.viewerSidePanelView=e.view},SET_ACTIVE_TOOL:function(t,e){t.viewerActiveTool=e},UPDATE_VIEWER_SLIDE_INFO:function(t,e){t.viewerSlideInfo=e},SET_CHANNELS:function(t,e){t.viewerChannels=e},UPDATE_VIEW_CHANNEL:function(t,e){if(e.channelId){var n=Ut(ue("id",e.channelId),t.viewerChannels);for(var r in e.data)t.viewerChannels[n][r]=e.data[r]}},SET_ACTIVE_ANNOTATION_LAYER:function(t,e){t.activeAnnotationLayer=e,t.viewerAnnotations.forEach((function(t){return t.selected=!1}));var n=Ut(ue("id",e),t.viewerAnnotations);t.viewerAnnotations[n].selected=!0},SET_ACTIVE_ANNOTATION:function(t,e){if(t.viewerAnnotations.forEach((function(t){return t.annotations.forEach((function(t){return t.selected=!1}))})),e.id){var n=Ut(ue("id",e.layer_id),t.viewerAnnotations),r=Ut(ue("id",e.id),t.viewerAnnotations[n].annotations);t.viewerAnnotations[n].annotations[r].selected=!0}t.activeAnnotation=e},SET_ANNOTATIONS:function(t,e){t.viewerAnnotations=e},SET_DISCUSSIONS:function(t,e){var n=e.discussions,r=e.comments;t.viewerDiscussions={discussions:n,comments:r}},SET_VIEWER_ERRORS:function(t,e){t.viewerErrors=e},SET_VIEWER_MONTAGE_SCHEME:function(t,e){t.viewerMontageScheme=e},UPDATE_USER_TOKEN:function(t,e){t.userToken=e},SELECT_PACKAGE:function(t,e){t.selectedPackage=e}},actions:{openViewer:function(t,e){var n=t.commit;return n("OPEN_VIEWER",e)},setSidePanel:function(t,e){var n=t.commit;return n("SET_SIDE_PANEL",e)},setActiveTool:function(t,e){var n=t.commit;return n("SET_ACTIVE_TOOL",e)},setChannels:function(t,e){var n=t.commit;n("SET_CHANNELS",e)},updateViewChannel:function(t,e){var n=t.commit;n("UPDATE_VIEW_CHANNEL",e)},setActiveAnnotationLayer:function(t,e){var n=t.commit;return n("SET_ACTIVE_ANNOTATION_LAYER",e)},setAnnotations:function(t,e){var n=t.commit;return n("SET_ANNOTATIONS",e)},setActiveAnnotation:function(t,e){var n=t.commit;return n("SET_ACTIVE_ANNOTATION",e)},updateViewerSlideInfo:function(t,e){var n=t.commit,r=se(nn.state.viewerSlideInfo,e);n("UPDATE_VIEWER_SLIDE_INFO",r)},setDiscussions:function(t,e){var n=t.commit,r=he([],"discussions",e),i=he({},"comments",e);n("SET_DISCUSSIONS",{discussions:r,comments:i})},setViewerErrors:function(t,e){var n=t.commit;return n("SET_VIEWER_ERRORS",e)},setViewerMontageScheme:function(t,e){var n=t.commit;return n("SET_VIEWER_MONTAGE_SCHEME",e)},setSelectedPackage:function(t,e){var n=t.commit;return n("SELECT_PACKAGE",e)},updateUserToken:function(t,e){var n=t.commit;return n("UPDATE_USER_TOKEN",e)}}},on=function(){return{activeViewer:{},viewerSidePanelOpen:!1,viewerSlideInfo:{curRotation:0,curZoom:0,isMeasuring:!1,measureLength:0,zoomPerClick:0,minZoom:0,maxZoom:0},viewerChannels:[],viewerAnnotations:[],activeAnnotationLayer:{},activeAnnotation:{},viewerErrors:{},viewerSidePanelView:tn.INFO_PANEL,viewerActiveTool:en.PAN,viewerMontageScheme:"NOT_MONTAGED"}},sn=rn,an={install:function(t,e){if(!e||!e.store)throw new Error("Please initialise plugin with a Vuex store.");e.store.registerModule("tsviewer",sn),t.component("ts-viewer",Qe)}},un=an}(),__webpack_exports__=__webpack_exports__["default"],__webpack_exports__}()}));
4
- //# sourceMappingURL=tsviewer.umd.min.js.map