@signageos/front-applet 8.2.4 → 8.3.0
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.
- package/dist/bundle.js +2 -2
- package/dist/bundle.js.map +1 -1
- package/docs/sos_management/network.md +75 -0
- package/docs/sos_management/wifi.md +37 -7
- package/es6/FrontApplet/Management/Network/INetwork.d.ts +18 -0
- package/es6/FrontApplet/Management/Network/INetwork.js +8 -0
- package/es6/FrontApplet/Management/Network/INetwork.js.map +1 -1
- package/es6/FrontApplet/Management/Network/Network.d.ts +46 -1
- package/es6/FrontApplet/Management/Network/Network.js +52 -0
- package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/IWifi.d.ts +18 -0
- package/es6/FrontApplet/Management/Wifi/IWifi.js +8 -0
- package/es6/FrontApplet/Management/Wifi/IWifi.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +18 -0
- package/es6/FrontApplet/Management/Wifi/Wifi.js +18 -0
- package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -21,7 +21,7 @@ var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r)
|
|
|
21
21
|
* Released under MIT license <https://lodash.com/license>
|
|
22
22
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
23
23
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
24
|
-
*/(function(){var o="Expected a function",a="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",f="[object Array]",c="[object Boolean]",h="[object Date]",l="[object Error]",d="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",y="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",M="[object Symbol]",_="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",P="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",A="[object Uint8Array]",x="[object Uint16Array]",T="[object Uint32Array]",I=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,C=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(N.source),L=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(H.source),K=/^\s+/,Y=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",mt="["+dt+"]",vt="["+lt+"]",yt="\\d+",gt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+dt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Mt="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+bt+"|"+wt+")",Pt="(?:"+Et+"|"+wt+")",jt="(?:"+vt+"|"+Mt+")"+"?",Rt="[\\ufe0e\\ufe0f]?"+jt+("(?:\\u200d(?:"+[_t,St,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+jt+")*"),At="(?:"+[gt,St,Ot].join("|")+")"+Rt,xt="(?:"+[_t+vt+"?",vt,St,Ot,pt].join("|")+")",Tt=RegExp("['’]","g"),It=RegExp(vt,"g"),Ft=RegExp(Mt+"(?="+Mt+")|"+xt+Rt,"g"),Ct=RegExp([Et+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[mt,Et,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[mt,Et+kt,"$"].join("|")+")",Et+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,At].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lt=-1,Bt={};Bt[E]=Bt[k]=Bt[P]=Bt[j]=Bt[R]=Bt[A]=Bt["[object Uint8ClampedArray]"]=Bt[x]=Bt[T]=!0,Bt[s]=Bt[f]=Bt[S]=Bt[c]=Bt[O]=Bt[h]=Bt[l]=Bt[d]=Bt[m]=Bt[v]=Bt[y]=Bt[g]=Bt[b]=Bt[w]=Bt[_]=!1;var Gt={};Gt[s]=Gt[f]=Gt[S]=Gt[O]=Gt[c]=Gt[h]=Gt[E]=Gt[k]=Gt[P]=Gt[j]=Gt[R]=Gt[m]=Gt[v]=Gt[y]=Gt[g]=Gt[b]=Gt[w]=Gt[M]=Gt[A]=Gt["[object Uint8ClampedArray]"]=Gt[x]=Gt[T]=!0,Gt[l]=Gt[d]=Gt[_]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zt=parseFloat,Vt=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Ht="object"==typeof self&&self&&self.Object===Object&&self,Zt=Wt||Ht||Function("return this")(),Kt=e&&!e.nodeType&&e,Yt=Kt&&"object"==typeof n&&n&&!n.nodeType&&n,Xt=Yt&&Yt.exports===Kt,$t=Xt&&Wt.process,Jt=function(){try{var t=Yt&&Yt.require&&Yt.require("util").types;return t||$t&&$t.binding&&$t.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,re=Jt&&Jt.isRegExp,ne=Jt&&Jt.isSet,ie=Jt&&Jt.isTypedArray;function oe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ae(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function ue(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function se(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function fe(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function ce(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}function he(t,e){return!!(null==t?0:t.length)&&Me(t,e,0)>-1}function le(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function de(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function pe(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function me(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function ve(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function ye(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var ge=Ee("length");function be(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function we(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Me(t,e,r){return e==e?function(t,e,r){var n=r-1,i=t.length;for(;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):we(t,Se,r)}function _e(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function Se(t){return t!=t}function Oe(t,e){var r=null==t?0:t.length;return r?je(t,e)/r:NaN}function Ee(t){return function(e){return null==e?void 0:e[t]}}function ke(t){return function(e){return null==t?void 0:t[e]}}function Pe(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}function je(t,e){for(var r,n=-1,i=t.length;++n<i;){var o=e(t[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function Re(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ae(t){return t?t.slice(0,Ke(t)+1).replace(K,""):t}function xe(t){return function(e){return t(e)}}function Te(t,e){return de(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Fe(t,e){for(var r=-1,n=t.length;++r<n&&Me(e,t[r],0)>-1;);return r}function Ce(t,e){for(var r=t.length;r--&&Me(e,t[r],0)>-1;);return r}function Ne(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var qe=ke({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),De=ke({"&":"&","<":"<",">":">",'"':""","'":"'"});function Le(t){return"\\"+Ut[t]}function Be(t){return Nt.test(t)}function Ge(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Ue(t,e){return function(r){return t(e(r))}}function ze(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var u=t[r];u!==e&&u!==a||(t[r]=a,o[i++]=r)}return o}function Ve(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function We(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function He(t){return Be(t)?function(t){var e=Ft.lastIndex=0;for(;Ft.test(t);)++e;return e}(t):ge(t)}function Ze(t){return Be(t)?function(t){return t.match(Ft)||[]}(t):function(t){return t.split("")}(t)}function Ke(t){for(var e=t.length;e--&&Y.test(t.charAt(e)););return e}var Ye=ke({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Xe=function t(e){var r,n=(e=null==e?Zt:Xe.defaults(Zt.Object(),e,Xe.pick(Zt,Dt))).Array,i=e.Date,Y=e.Error,lt=e.Function,dt=e.Math,pt=e.Object,mt=e.RegExp,vt=e.String,yt=e.TypeError,gt=n.prototype,bt=lt.prototype,wt=pt.prototype,Mt=e["__core-js_shared__"],_t=bt.toString,St=wt.hasOwnProperty,Ot=0,Et=(r=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",kt=wt.toString,Pt=_t.call(pt),jt=Zt._,Rt=mt("^"+_t.call(St).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Xt?e.Buffer:void 0,xt=e.Symbol,Ft=e.Uint8Array,Nt=At?At.allocUnsafe:void 0,Ut=Ue(pt.getPrototypeOf,pt),Wt=pt.create,Ht=wt.propertyIsEnumerable,Kt=gt.splice,Yt=xt?xt.isConcatSpreadable:void 0,$t=xt?xt.iterator:void 0,Jt=xt?xt.toStringTag:void 0,ge=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ke=e.clearTimeout!==Zt.clearTimeout&&e.clearTimeout,$e=i&&i.now!==Zt.Date.now&&i.now,Je=e.setTimeout!==Zt.setTimeout&&e.setTimeout,Qe=dt.ceil,tr=dt.floor,er=pt.getOwnPropertySymbols,rr=At?At.isBuffer:void 0,nr=e.isFinite,ir=gt.join,or=Ue(pt.keys,pt),ar=dt.max,ur=dt.min,sr=i.now,fr=e.parseInt,cr=dt.random,hr=gt.reverse,lr=to(e,"DataView"),dr=to(e,"Map"),pr=to(e,"Promise"),mr=to(e,"Set"),vr=to(e,"WeakMap"),yr=to(pt,"create"),gr=vr&&new vr,br={},wr=jo(lr),Mr=jo(dr),_r=jo(pr),Sr=jo(mr),Or=jo(vr),Er=xt?xt.prototype:void 0,kr=Er?Er.valueOf:void 0,Pr=Er?Er.toString:void 0;function jr(t){if(Wa(t)&&!Fa(t)&&!(t instanceof Tr)){if(t instanceof xr)return t;if(St.call(t,"__wrapped__"))return Ro(t)}return new xr(t)}var Rr=function(){function t(){}return function(e){if(!Va(e))return{};if(Wt)return Wt(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Ar(){}function xr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Tr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ir(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Cr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Nr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Cr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Fr(t);this.size=e.size}function Dr(t,e){var r=Fa(t),n=!r&&Ia(t),i=!r&&!n&&Da(t),o=!r&&!n&&!i&&Qa(t),a=r||n||i||o,u=a?Re(t.length,vt):[],s=u.length;for(var f in t)!e&&!St.call(t,f)||a&&("length"==f||i&&("offset"==f||"parent"==f)||o&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||uo(f,s))||u.push(f);return u}function Lr(t){var e=t.length;return e?t[qn(0,e-1)]:void 0}function Br(t,e){return Eo(gi(t),Yr(e,0,t.length))}function Gr(t){return Eo(gi(t))}function Ur(t,e,r){(void 0!==r&&!Aa(t[e],r)||void 0===r&&!(e in t))&&Zr(t,e,r)}function zr(t,e,r){var n=t[e];St.call(t,e)&&Aa(n,r)&&(void 0!==r||e in t)||Zr(t,e,r)}function Vr(t,e){for(var r=t.length;r--;)if(Aa(t[r][0],e))return r;return-1}function Wr(t,e,r,n){return tn(t,(function(t,i,o){e(n,t,r(t),o)})),n}function Hr(t,e){return t&&bi(e,Mu(e),t)}function Zr(t,e,r){"__proto__"==e&&ge?ge(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Kr(t,e){for(var r=-1,i=e.length,o=n(i),a=null==t;++r<i;)o[r]=a?void 0:vu(t,e[r]);return o}function Yr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function Xr(t,e,r,n,i,o){var a,u=1&e,f=2&e,l=4&e;if(r&&(a=i?r(t,n,i,o):r(t)),void 0!==a)return a;if(!Va(t))return t;var _=Fa(t);if(_){if(a=function(t){var e=t.length,r=new t.constructor(e);e&&"string"==typeof t[0]&&St.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!u)return gi(t,a)}else{var I=no(t),F=I==d||I==p;if(Da(t))return li(t,u);if(I==y||I==s||F&&!i){if(a=f||F?{}:oo(t),!u)return f?function(t,e){return bi(t,ro(t),e)}(t,function(t,e){return t&&bi(e,_u(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Hr(a,t))}else{if(!Gt[I])return i?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case S:return di(t);case c:case h:return new n(+t);case O:return function(t,e){var r=e?di(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case E:case k:case P:case j:case R:case A:case"[object Uint8ClampedArray]":case x:case T:return pi(t,r);case m:return new n;case v:case w:return new n(t);case g:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new n;case M:return i=t,kr?pt(kr.call(i)):{}}var i}(t,I,u)}}o||(o=new qr);var C=o.get(t);if(C)return C;o.set(t,a),Xa(t)?t.forEach((function(n){a.add(Xr(n,e,r,n,t,o))})):Ha(t)&&t.forEach((function(n,i){a.set(i,Xr(n,e,r,i,t,o))}));var N=_?void 0:(l?f?Zi:Hi:f?_u:Mu)(t);return ue(N||t,(function(n,i){N&&(n=t[i=n]),zr(a,i,Xr(n,e,r,i,t,o))})),a}function $r(t,e,r){var n=r.length;if(null==t)return!n;for(t=pt(t);n--;){var i=r[n],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jr(t,e,r){if("function"!=typeof t)throw new yt(o);return Mo((function(){t.apply(void 0,r)}),e)}function Qr(t,e,r,n){var i=-1,o=he,a=!0,u=t.length,s=[],f=e.length;if(!u)return s;r&&(e=de(e,xe(r))),n?(o=le,a=!1):e.length>=200&&(o=Ie,a=!1,e=new Nr(e));t:for(;++i<u;){var c=t[i],h=null==r?c:r(c);if(c=n||0!==c?c:0,a&&h==h){for(var l=f;l--;)if(e[l]===h)continue t;s.push(c)}else o(e,h,n)||s.push(c)}return s}jr.templateSettings={escape:B,evaluate:G,interpolate:U,variable:"",imports:{_:jr}},jr.prototype=Ar.prototype,jr.prototype.constructor=jr,xr.prototype=Rr(Ar.prototype),xr.prototype.constructor=xr,Tr.prototype=Rr(Ar.prototype),Tr.prototype.constructor=Tr,Ir.prototype.clear=function(){this.__data__=yr?yr(null):{},this.size=0},Ir.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ir.prototype.get=function(t){var e=this.__data__;if(yr){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return St.call(e,t)?e[t]:void 0},Ir.prototype.has=function(t){var e=this.__data__;return yr?void 0!==e[t]:St.call(e,t)},Ir.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=yr&&void 0===e?"__lodash_hash_undefined__":e,this},Fr.prototype.clear=function(){this.__data__=[],this.size=0},Fr.prototype.delete=function(t){var e=this.__data__,r=Vr(e,t);return!(r<0)&&(r==e.length-1?e.pop():Kt.call(e,r,1),--this.size,!0)},Fr.prototype.get=function(t){var e=this.__data__,r=Vr(e,t);return r<0?void 0:e[r][1]},Fr.prototype.has=function(t){return Vr(this.__data__,t)>-1},Fr.prototype.set=function(t,e){var r=this.__data__,n=Vr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ir,map:new(dr||Fr),string:new Ir}},Cr.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Cr.prototype.get=function(t){return Ji(this,t).get(t)},Cr.prototype.has=function(t){return Ji(this,t).has(t)},Cr.prototype.set=function(t,e){var r=Ji(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Nr.prototype.add=Nr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Fr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Fr){var n=r.__data__;if(!dr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Cr(n)}return r.set(t,e),this.size=r.size,this};var tn=_i(fn),en=_i(cn,!0);function rn(t,e){var r=!0;return tn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function nn(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===u?a==a&&!Ja(a):r(a,u)))var u=a,s=o}return s}function on(t,e){var r=[];return tn(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function an(t,e,r,n,i){var o=-1,a=t.length;for(r||(r=ao),i||(i=[]);++o<a;){var u=t[o];e>0&&r(u)?e>1?an(u,e-1,r,n,i):pe(i,u):n||(i[i.length]=u)}return i}var un=Si(),sn=Si(!0);function fn(t,e){return t&&un(t,e,Mu)}function cn(t,e){return t&&sn(t,e,Mu)}function hn(t,e){return ce(e,(function(e){return Ga(t[e])}))}function ln(t,e){for(var r=0,n=(e=si(e,t)).length;null!=t&&r<n;)t=t[Po(e[r++])];return r&&r==n?t:void 0}function dn(t,e,r){var n=e(t);return Fa(t)?n:pe(n,r(t))}function pn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jt&&Jt in pt(t)?function(t){var e=St.call(t,Jt),r=t[Jt];try{t[Jt]=void 0;var n=!0}catch(t){}var i=kt.call(t);n&&(e?t[Jt]=r:delete t[Jt]);return i}(t):function(t){return kt.call(t)}(t)}function mn(t,e){return t>e}function vn(t,e){return null!=t&&St.call(t,e)}function yn(t,e){return null!=t&&e in pt(t)}function gn(t,e,r){for(var i=r?le:he,o=t[0].length,a=t.length,u=a,s=n(a),f=1/0,c=[];u--;){var h=t[u];u&&e&&(h=de(h,xe(e))),f=ur(h.length,f),s[u]=!r&&(e||o>=120&&h.length>=120)?new Nr(u&&h):void 0}h=t[0];var l=-1,d=s[0];t:for(;++l<o&&c.length<f;){var p=h[l],m=e?e(p):p;if(p=r||0!==p?p:0,!(d?Ie(d,m):i(c,m,r))){for(u=a;--u;){var v=s[u];if(!(v?Ie(v,m):i(t[u],m,r)))continue t}d&&d.push(m),c.push(p)}}return c}function bn(t,e,r){var n=null==(t=yo(t,e=si(e,t)))?t:t[Po(Bo(e))];return null==n?void 0:oe(n,t,r)}function wn(t){return Wa(t)&&pn(t)==s}function Mn(t,e,r,n,i){return t===e||(null==t||null==e||!Wa(t)&&!Wa(e)?t!=t&&e!=e:function(t,e,r,n,i,o){var a=Fa(t),u=Fa(e),d=a?f:no(t),p=u?f:no(e),_=(d=d==s?y:d)==y,E=(p=p==s?y:p)==y,k=d==p;if(k&&Da(t)){if(!Da(e))return!1;a=!0,_=!1}if(k&&!_)return o||(o=new qr),a||Qa(t)?Vi(t,e,r,n,i,o):function(t,e,r,n,i,o,a){switch(r){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case S:return!(t.byteLength!=e.byteLength||!o(new Ft(t),new Ft(e)));case c:case h:case v:return Aa(+t,+e);case l:return t.name==e.name&&t.message==e.message;case g:case w:return t==e+"";case m:var u=Ge;case b:var s=1&n;if(u||(u=Ve),t.size!=e.size&&!s)return!1;var f=a.get(t);if(f)return f==e;n|=2,a.set(t,e);var d=Vi(u(t),u(e),n,i,o,a);return a.delete(t),d;case M:if(kr)return kr.call(t)==kr.call(e)}return!1}(t,e,d,r,n,i,o);if(!(1&r)){var P=_&&St.call(t,"__wrapped__"),j=E&&St.call(e,"__wrapped__");if(P||j){var R=P?t.value():t,A=j?e.value():e;return o||(o=new qr),i(R,A,r,n,o)}}if(!k)return!1;return o||(o=new qr),function(t,e,r,n,i,o){var a=1&r,u=Hi(t),s=u.length,f=Hi(e).length;if(s!=f&&!a)return!1;var c=s;for(;c--;){var h=u[c];if(!(a?h in e:St.call(e,h)))return!1}var l=o.get(t),d=o.get(e);if(l&&d)return l==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);var m=a;for(;++c<s;){h=u[c];var v=t[h],y=e[h];if(n)var g=a?n(y,v,h,e,t,o):n(v,y,h,t,e,o);if(!(void 0===g?v===y||i(v,y,r,n,o):g)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,r,n,i,o)}(t,e,r,n,Mn,i))}function _n(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=pt(t);i--;){var u=r[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var s=(u=r[i])[0],f=t[s],c=u[1];if(a&&u[2]){if(void 0===f&&!(s in t))return!1}else{var h=new qr;if(n)var l=n(f,c,s,t,e,h);if(!(void 0===l?Mn(c,f,3,n,h):l))return!1}}return!0}function Sn(t){return!(!Va(t)||(e=t,Et&&Et in e))&&(Ga(t)?Rt:at).test(jo(t));var e}function On(t){return"function"==typeof t?t:null==t?Zu:"object"==typeof t?Fa(t)?An(t[0],t[1]):Rn(t):rs(t)}function En(t){if(!lo(t))return or(t);var e=[];for(var r in pt(t))St.call(t,r)&&"constructor"!=r&&e.push(r);return e}function kn(t){if(!Va(t))return function(t){var e=[];if(null!=t)for(var r in pt(t))e.push(r);return e}(t);var e=lo(t),r=[];for(var n in t)("constructor"!=n||!e&&St.call(t,n))&&r.push(n);return r}function Pn(t,e){return t<e}function jn(t,e){var r=-1,i=Na(t)?n(t.length):[];return tn(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Rn(t){var e=Qi(t);return 1==e.length&&e[0][2]?mo(e[0][0],e[0][1]):function(r){return r===t||_n(r,t,e)}}function An(t,e){return fo(t)&&po(e)?mo(Po(t),e):function(r){var n=vu(r,t);return void 0===n&&n===e?yu(r,t):Mn(e,n,3)}}function xn(t,e,r,n,i){t!==e&&un(e,(function(o,a){if(i||(i=new qr),Va(o))!function(t,e,r,n,i,o,a){var u=bo(t,r),s=bo(e,r),f=a.get(s);if(f)return void Ur(t,r,f);var c=o?o(u,s,r+"",t,e,a):void 0,h=void 0===c;if(h){var l=Fa(s),d=!l&&Da(s),p=!l&&!d&&Qa(s);c=s,l||d||p?Fa(u)?c=u:qa(u)?c=gi(u):d?(h=!1,c=li(s,!0)):p?(h=!1,c=pi(s,!0)):c=[]:Ka(s)||Ia(s)?(c=u,Ia(u)?c=uu(u):Va(u)&&!Ga(u)||(c=oo(s))):h=!1}h&&(a.set(s,c),i(c,s,n,o,a),a.delete(s));Ur(t,r,c)}(t,e,a,r,xn,n,i);else{var u=n?n(bo(t,a),o,a+"",t,e,i):void 0;void 0===u&&(u=o),Ur(t,a,u)}}),_u)}function Tn(t,e){var r=t.length;if(r)return uo(e+=e<0?r:0,r)?t[e]:void 0}function In(t,e,r){e=e.length?de(e,(function(t){return Fa(t)?function(e){return ln(e,1===t.length?t[0]:t)}:t})):[Zu];var n=-1;return e=de(e,xe($i())),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(jn(t,(function(t,r,i){return{criteria:de(e,(function(e){return e(t)})),index:++n,value:t}})),(function(t,e){return function(t,e,r){var n=-1,i=t.criteria,o=e.criteria,a=i.length,u=r.length;for(;++n<a;){var s=mi(i[n],o[n]);if(s){if(n>=u)return s;var f=r[n];return s*("desc"==f?-1:1)}}return t.index-e.index}(t,e,r)}))}function Fn(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],u=ln(t,a);r(u,a)&&Un(o,si(a,t),u)}return o}function Cn(t,e,r,n){var i=n?_e:Me,o=-1,a=e.length,u=t;for(t===e&&(e=gi(e)),r&&(u=de(t,xe(r)));++o<a;)for(var s=0,f=e[o],c=r?r(f):f;(s=i(u,c,s,n))>-1;)u!==t&&Kt.call(u,s,1),Kt.call(t,s,1);return t}function Nn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;uo(i)?Kt.call(t,i,1):ti(t,i)}}return t}function qn(t,e){return t+tr(cr()*(e-t+1))}function Dn(t,e){var r="";if(!t||e<1||e>9007199254740991)return r;do{e%2&&(r+=t),(e=tr(e/2))&&(t+=t)}while(e);return r}function Ln(t,e){return _o(vo(t,e,Zu),t+"")}function Bn(t){return Lr(Au(t))}function Gn(t,e){var r=Au(t);return Eo(r,Yr(e,0,r.length))}function Un(t,e,r,n){if(!Va(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,u=t;null!=u&&++i<o;){var s=Po(e[i]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(i!=a){var c=u[s];void 0===(f=n?n(c,s,u):void 0)&&(f=Va(c)?c:uo(e[i+1])?[]:{})}zr(u,s,f),u=u[s]}return t}var zn=gr?function(t,e){return gr.set(t,e),t}:Zu,Vn=ge?function(t,e){return ge(t,"toString",{configurable:!0,enumerable:!1,value:Vu(e),writable:!0})}:Zu;function Wn(t){return Eo(Au(t))}function Hn(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=n(o);++i<o;)a[i]=t[i+e];return a}function Zn(t,e){var r;return tn(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function Kn(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=t[o];null!==a&&!Ja(a)&&(r?a<=e:a<e)?n=o+1:i=o}return i}return Yn(t,e,Zu,r)}function Yn(t,e,r,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=r(e))!=e,u=null===e,s=Ja(e),f=void 0===e;i<o;){var c=tr((i+o)/2),h=r(t[c]),l=void 0!==h,d=null===h,p=h==h,m=Ja(h);if(a)var v=n||p;else v=f?p&&(n||l):u?p&&l&&(n||!d):s?p&&l&&!d&&(n||!m):!d&&!m&&(n?h<=e:h<e);v?i=c+1:o=c}return ur(o,4294967294)}function Xn(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r],u=e?e(a):a;if(!r||!Aa(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function $n(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jn(t){if("string"==typeof t)return t;if(Fa(t))return de(t,Jn)+"";if(Ja(t))return Pr?Pr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qn(t,e,r){var n=-1,i=he,o=t.length,a=!0,u=[],s=u;if(r)a=!1,i=le;else if(o>=200){var f=e?null:Di(t);if(f)return Ve(f);a=!1,i=Ie,s=new Nr}else s=e?[]:u;t:for(;++n<o;){var c=t[n],h=e?e(c):c;if(c=r||0!==c?c:0,a&&h==h){for(var l=s.length;l--;)if(s[l]===h)continue t;e&&s.push(h),u.push(c)}else i(s,h,r)||(s!==u&&s.push(h),u.push(c))}return u}function ti(t,e){return null==(t=yo(t,e=si(e,t)))||delete t[Po(Bo(e))]}function ei(t,e,r,n){return Un(t,e,r(ln(t,e)),n)}function ri(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?Hn(t,n?0:o,n?o+1:i):Hn(t,n?o+1:0,n?i:o)}function ni(t,e){var r=t;return r instanceof Tr&&(r=r.value()),me(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),r)}function ii(t,e,r){var i=t.length;if(i<2)return i?Qn(t[0]):[];for(var o=-1,a=n(i);++o<i;)for(var u=t[o],s=-1;++s<i;)s!=o&&(a[o]=Qr(a[o]||u,t[s],e,r));return Qn(an(a,1),e,r)}function oi(t,e,r){for(var n=-1,i=t.length,o=e.length,a={};++n<i;){var u=n<o?e[n]:void 0;r(a,t[n],u)}return a}function ai(t){return qa(t)?t:[]}function ui(t){return"function"==typeof t?t:Zu}function si(t,e){return Fa(t)?t:fo(t,e)?[t]:ko(su(t))}var fi=Ln;function ci(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Hn(t,e,r)}var hi=ke||function(t){return Zt.clearTimeout(t)};function li(t,e){if(e)return t.slice();var r=t.length,n=Nt?Nt(r):new t.constructor(r);return t.copy(n),n}function di(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function pi(t,e){var r=e?di(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function mi(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Ja(t),a=void 0!==e,u=null===e,s=e==e,f=Ja(e);if(!u&&!f&&!o&&t>e||o&&a&&s&&!u&&!f||n&&a&&s||!r&&s||!i)return 1;if(!n&&!o&&!f&&t<e||f&&r&&i&&!n&&!o||u&&r&&i||!a&&i||!s)return-1}return 0}function vi(t,e,r,i){for(var o=-1,a=t.length,u=r.length,s=-1,f=e.length,c=ar(a-u,0),h=n(f+c),l=!i;++s<f;)h[s]=e[s];for(;++o<u;)(l||o<a)&&(h[r[o]]=t[o]);for(;c--;)h[s++]=t[o++];return h}function yi(t,e,r,i){for(var o=-1,a=t.length,u=-1,s=r.length,f=-1,c=e.length,h=ar(a-s,0),l=n(h+c),d=!i;++o<h;)l[o]=t[o];for(var p=o;++f<c;)l[p+f]=e[f];for(;++u<s;)(d||o<a)&&(l[p+r[u]]=t[o++]);return l}function gi(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function bi(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var u=e[o],s=n?n(r[u],t[u],u,r,t):void 0;void 0===s&&(s=t[u]),i?Zr(r,u,s):zr(r,u,s)}return r}function wi(t,e){return function(r,n){var i=Fa(r)?ae:Wr,o=e?e():{};return i(r,t,$i(n,2),o)}}function Mi(t){return Ln((function(e,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),e=pt(e);++n<i;){var u=r[n];u&&t(e,u,n,o)}return e}))}function _i(t,e){return function(r,n){if(null==r)return r;if(!Na(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=pt(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Si(t){return function(e,r,n){for(var i=-1,o=pt(e),a=n(e),u=a.length;u--;){var s=a[t?u:++i];if(!1===r(o[s],s,o))break}return e}}function Oi(t){return function(e){var r=Be(e=su(e))?Ze(e):void 0,n=r?r[0]:e.charAt(0),i=r?ci(r,1).join(""):e.slice(1);return n[t]()+i}}function Ei(t){return function(e){return me(Gu(Iu(e).replace(Tt,"")),t,"")}}function ki(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Rr(t.prototype),n=t.apply(r,e);return Va(n)?n:r}}function Pi(t){return function(e,r,n){var i=pt(e);if(!Na(e)){var o=$i(r,3);e=Mu(e),r=function(t){return o(i[t],t,i)}}var a=t(e,r,n);return a>-1?i[o?e[a]:a]:void 0}}function ji(t){return Wi((function(e){var r=e.length,n=r,i=xr.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new yt(o);if(i&&!u&&"wrapper"==Yi(a))var u=new xr([],!0)}for(n=u?n:r;++n<r;){var s=Yi(a=e[n]),f="wrapper"==s?Ki(a):void 0;u=f&&co(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?u[Yi(f[0])].apply(u,f[3]):1==a.length&&co(a)?u[s]():u.thru(a)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&Fa(n))return u.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}}))}function Ri(t,e,r,i,o,a,u,s,f,c){var h=128&e,l=1&e,d=2&e,p=24&e,m=512&e,v=d?void 0:ki(t);return function y(){for(var g=arguments.length,b=n(g),w=g;w--;)b[w]=arguments[w];if(p)var M=Xi(y),_=Ne(b,M);if(i&&(b=vi(b,i,o,p)),a&&(b=yi(b,a,u,p)),g-=_,p&&g<c){var S=ze(b,M);return Ni(t,e,Ri,y.placeholder,r,b,S,s,f,c-g)}var O=l?r:this,E=d?O[t]:t;return g=b.length,s?b=go(b,s):m&&g>1&&b.reverse(),h&&f<g&&(b.length=f),this&&this!==Zt&&this instanceof y&&(E=v||ki(E)),E.apply(O,b)}}function Ai(t,e){return function(r,n){return function(t,e,r,n){return fn(t,(function(t,i,o){e(n,r(t),i,o)})),n}(r,t,e(n),{})}}function xi(t,e){return function(r,n){var i;if(void 0===r&&void 0===n)return e;if(void 0!==r&&(i=r),void 0!==n){if(void 0===i)return n;"string"==typeof r||"string"==typeof n?(r=Jn(r),n=Jn(n)):(r=$n(r),n=$n(n)),i=t(r,n)}return i}}function Ti(t){return Wi((function(e){return e=de(e,xe($i())),Ln((function(r){var n=this;return t(e,(function(t){return oe(t,n,r)}))}))}))}function Ii(t,e){var r=(e=void 0===e?" ":Jn(e)).length;if(r<2)return r?Dn(e,t):e;var n=Dn(e,Qe(t/He(e)));return Be(e)?ci(Ze(n),0,t).join(""):n.slice(0,t)}function Fi(t){return function(e,r,i){return i&&"number"!=typeof i&&so(e,r,i)&&(r=i=void 0),e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r,i){for(var o=-1,a=ar(Qe((e-t)/(r||1)),0),u=n(a);a--;)u[i?a:++o]=t,t+=r;return u}(e,r,i=void 0===i?e<r?1:-1:nu(i),t)}}function Ci(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=au(e),r=au(r)),t(e,r)}}function Ni(t,e,r,n,i,o,a,u,s,f){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,u,s,f],l=r.apply(void 0,h);return co(t)&&wo(l,h),l.placeholder=n,So(l,t,e)}function qi(t){var e=dt[t];return function(t,r){if(t=au(t),(r=null==r?0:ur(iu(r),292))&&nr(t)){var n=(su(t)+"e").split("e");return+((n=(su(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Di=mr&&1/Ve(new mr([,-0]))[1]==1/0?function(t){return new mr(t)}:Ju;function Li(t){return function(e){var r=no(e);return r==m?Ge(e):r==b?We(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Bi(t,e,r,i,u,s,f,c){var h=2&e;if(!h&&"function"!=typeof t)throw new yt(o);var l=i?i.length:0;if(l||(e&=-97,i=u=void 0),f=void 0===f?f:ar(iu(f),0),c=void 0===c?c:iu(c),l-=u?u.length:0,64&e){var d=i,p=u;i=u=void 0}var m=h?void 0:Ki(t),v=[t,e,r,i,u,d,p,s,f,c];if(m&&function(t,e){var r=t[1],n=e[1],i=r|n,o=i<131,u=128==n&&8==r||128==n&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!o&&!u)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var f=t[3];t[3]=f?vi(f,s,e[4]):s,t[4]=f?ze(t[3],a):e[4]}(s=e[5])&&(f=t[5],t[5]=f?yi(f,s,e[6]):s,t[6]=f?ze(t[5],a):e[6]);(s=e[7])&&(t[7]=s);128&n&&(t[8]=null==t[8]?e[8]:ur(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,m),t=v[0],e=v[1],r=v[2],i=v[3],u=v[4],!(c=v[9]=void 0===v[9]?h?0:t.length:ar(v[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)y=8==e||16==e?function(t,e,r){var i=ki(t);return function o(){for(var a=arguments.length,u=n(a),s=a,f=Xi(o);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==f&&u[a-1]!==f?[]:ze(u,f);if((a-=c.length)<r)return Ni(t,e,Ri,o.placeholder,void 0,u,c,void 0,void 0,r-a);var h=this&&this!==Zt&&this instanceof o?i:t;return oe(h,this,u)}}(t,e,c):32!=e&&33!=e||u.length?Ri.apply(void 0,v):function(t,e,r,i){var o=1&e,a=ki(t);return function e(){for(var u=-1,s=arguments.length,f=-1,c=i.length,h=n(c+s),l=this&&this!==Zt&&this instanceof e?a:t;++f<c;)h[f]=i[f];for(;s--;)h[f++]=arguments[++u];return oe(l,o?r:this,h)}}(t,e,r,i);else var y=function(t,e,r){var n=1&e,i=ki(t);return function e(){var o=this&&this!==Zt&&this instanceof e?i:t;return o.apply(n?r:this,arguments)}}(t,e,r);return So((m?zn:wo)(y,v),t,e)}function Gi(t,e,r,n){return void 0===t||Aa(t,wt[r])&&!St.call(n,r)?e:t}function Ui(t,e,r,n,i,o){return Va(t)&&Va(e)&&(o.set(e,t),xn(t,e,void 0,Ui,o),o.delete(e)),t}function zi(t){return Ka(t)?void 0:t}function Vi(t,e,r,n,i,o){var a=1&r,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var f=o.get(t),c=o.get(e);if(f&&c)return f==e&&c==t;var h=-1,l=!0,d=2&r?new Nr:void 0;for(o.set(t,e),o.set(e,t);++h<u;){var p=t[h],m=e[h];if(n)var v=a?n(m,p,h,e,t,o):n(p,m,h,t,e,o);if(void 0!==v){if(v)continue;l=!1;break}if(d){if(!ye(e,(function(t,e){if(!Ie(d,e)&&(p===t||i(p,t,r,n,o)))return d.push(e)}))){l=!1;break}}else if(p!==m&&!i(p,m,r,n,o)){l=!1;break}}return o.delete(t),o.delete(e),l}function Wi(t){return _o(vo(t,void 0,Co),t+"")}function Hi(t){return dn(t,Mu,eo)}function Zi(t){return dn(t,_u,ro)}var Ki=gr?function(t){return gr.get(t)}:Ju;function Yi(t){for(var e=t.name+"",r=br[e],n=St.call(br,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function Xi(t){return(St.call(jr,"placeholder")?jr:t).placeholder}function $i(){var t=jr.iteratee||Ku;return t=t===Ku?On:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Qi(t){for(var e=Mu(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,po(i)]}return e}function to(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Sn(r)?r:void 0}var eo=er?function(t){return null==t?[]:(t=pt(t),ce(er(t),(function(e){return Ht.call(t,e)})))}:os,ro=er?function(t){for(var e=[];t;)pe(e,eo(t)),t=Ut(t);return e}:os,no=pn;function io(t,e,r){for(var n=-1,i=(e=si(e,t)).length,o=!1;++n<i;){var a=Po(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&za(i)&&uo(a,i)&&(Fa(t)||Ia(t))}function oo(t){return"function"!=typeof t.constructor||lo(t)?{}:Rr(Ut(t))}function ao(t){return Fa(t)||Ia(t)||!!(Yt&&t&&t[Yt])}function uo(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&st.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,r){if(!Va(r))return!1;var n=typeof e;return!!("number"==n?Na(r)&&uo(e,r.length):"string"==n&&e in r)&&Aa(r[e],t)}function fo(t,e){if(Fa(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ja(t))||(V.test(t)||!z.test(t)||null!=e&&t in pt(e))}function co(t){var e=Yi(t),r=jr[e];if("function"!=typeof r||!(e in Tr.prototype))return!1;if(t===r)return!0;var n=Ki(r);return!!n&&t===n[0]}(lr&&no(new lr(new ArrayBuffer(1)))!=O||dr&&no(new dr)!=m||pr&&"[object Promise]"!=no(pr.resolve())||mr&&no(new mr)!=b||vr&&no(new vr)!=_)&&(no=function(t){var e=pn(t),r=e==y?t.constructor:void 0,n=r?jo(r):"";if(n)switch(n){case wr:return O;case Mr:return m;case _r:return"[object Promise]";case Sr:return b;case Or:return _}return e});var ho=Mt?Ga:as;function lo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wt)}function po(t){return t==t&&!Va(t)}function mo(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in pt(r)))}}function vo(t,e,r){return e=ar(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=ar(i.length-e,0),u=n(a);++o<a;)u[o]=i[e+o];o=-1;for(var s=n(e+1);++o<e;)s[o]=i[o];return s[e]=r(u),oe(t,this,s)}}function yo(t,e){return e.length<2?t:ln(t,Hn(e,0,-1))}function go(t,e){for(var r=t.length,n=ur(e.length,r),i=gi(t);n--;){var o=e[n];t[n]=uo(o,r)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var wo=Oo(zn),Mo=Je||function(t,e){return Zt.setTimeout(t,e)},_o=Oo(Vn);function So(t,e,r){var n=e+"";return _o(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return ue(u,(function(r){var n="_."+r[0];e&r[1]&&!he(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match($);return e?e[1].split(J):[]}(n),r)))}function Oo(t){var e=0,r=0;return function(){var n=sr(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Eo(t,e){var r=-1,n=t.length,i=n-1;for(e=void 0===e?n:e;++r<e;){var o=qn(r,i),a=t[o];t[o]=t[r],t[r]=a}return t.length=e,t}var ko=function(t){var e=Oa(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(W,(function(t,r,n,i){e.push(n?i.replace(et,"$1"):r||t)})),e}));function Po(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function jo(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ro(t){if(t instanceof Tr)return t.clone();var e=new xr(t.__wrapped__,t.__chain__);return e.__actions__=gi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ao=Ln((function(t,e){return qa(t)?Qr(t,an(e,1,qa,!0)):[]})),xo=Ln((function(t,e){var r=Bo(e);return qa(r)&&(r=void 0),qa(t)?Qr(t,an(e,1,qa,!0),$i(r,2)):[]})),To=Ln((function(t,e){var r=Bo(e);return qa(r)&&(r=void 0),qa(t)?Qr(t,an(e,1,qa,!0),void 0,r):[]}));function Io(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),we(t,$i(e,3),i)}function Fo(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n-1;return void 0!==r&&(i=iu(r),i=r<0?ar(n+i,0):ur(i,n-1)),we(t,$i(e,3),i,!0)}function Co(t){return(null==t?0:t.length)?an(t,1):[]}function No(t){return t&&t.length?t[0]:void 0}var qo=Ln((function(t){var e=de(t,ai);return e.length&&e[0]===t[0]?gn(e):[]})),Do=Ln((function(t){var e=Bo(t),r=de(t,ai);return e===Bo(r)?e=void 0:r.pop(),r.length&&r[0]===t[0]?gn(r,$i(e,2)):[]})),Lo=Ln((function(t){var e=Bo(t),r=de(t,ai);return(e="function"==typeof e?e:void 0)&&r.pop(),r.length&&r[0]===t[0]?gn(r,void 0,e):[]}));function Bo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Go=Ln(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Cn(t,e):t}var zo=Wi((function(t,e){var r=null==t?0:t.length,n=Kr(t,e);return Nn(t,de(e,(function(t){return uo(t,r)?+t:t})).sort(mi)),n}));function Vo(t){return null==t?t:hr.call(t)}var Wo=Ln((function(t){return Qn(an(t,1,qa,!0))})),Ho=Ln((function(t){var e=Bo(t);return qa(e)&&(e=void 0),Qn(an(t,1,qa,!0),$i(e,2))})),Zo=Ln((function(t){var e=Bo(t);return e="function"==typeof e?e:void 0,Qn(an(t,1,qa,!0),void 0,e)}));function Ko(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(qa(t))return e=ar(t.length,e),!0})),Re(e,(function(e){return de(t,Ee(e))}))}function Yo(t,e){if(!t||!t.length)return[];var r=Ko(t);return null==e?r:de(r,(function(t){return oe(e,void 0,t)}))}var Xo=Ln((function(t,e){return qa(t)?Qr(t,e):[]})),$o=Ln((function(t){return ii(ce(t,qa))})),Jo=Ln((function(t){var e=Bo(t);return qa(e)&&(e=void 0),ii(ce(t,qa),$i(e,2))})),Qo=Ln((function(t){var e=Bo(t);return e="function"==typeof e?e:void 0,ii(ce(t,qa),void 0,e)})),ta=Ln(Ko);var ea=Ln((function(t){var e=t.length,r=e>1?t[e-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Yo(t,r)}));function ra(t){var e=jr(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ia=Wi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,i=function(e){return Kr(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Tr&&uo(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new xr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=wi((function(t,e,r){St.call(t,r)?++t[r]:Zr(t,r,1)}));var aa=Pi(Io),ua=Pi(Fo);function sa(t,e){return(Fa(t)?ue:tn)(t,$i(e,3))}function fa(t,e){return(Fa(t)?se:en)(t,$i(e,3))}var ca=wi((function(t,e,r){St.call(t,r)?t[r].push(e):Zr(t,r,[e])}));var ha=Ln((function(t,e,r){var i=-1,o="function"==typeof e,a=Na(t)?n(t.length):[];return tn(t,(function(t){a[++i]=o?oe(e,t,r):bn(t,e,r)})),a})),la=wi((function(t,e,r){Zr(t,r,e)}));function da(t,e){return(Fa(t)?de:jn)(t,$i(e,3))}var pa=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]}));var ma=Ln((function(t,e){if(null==t)return[];var r=e.length;return r>1&&so(t,e[0],e[1])?e=[]:r>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),In(t,an(e,1),[])})),va=$e||function(){return Zt.Date.now()};function ya(t,e,r){return e=r?void 0:e,Bi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ga(t,e){var r;if("function"!=typeof e)throw new yt(o);return t=iu(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=void 0),r}}var ba=Ln((function(t,e,r){var n=1;if(r.length){var i=ze(r,Xi(ba));n|=32}return Bi(t,n,e,r,i)})),wa=Ln((function(t,e,r){var n=3;if(r.length){var i=ze(r,Xi(wa));n|=32}return Bi(e,n,t,r,i)}));function Ma(t,e,r){var n,i,a,u,s,f,c=0,h=!1,l=!1,d=!0;if("function"!=typeof t)throw new yt(o);function p(e){var r=n,o=i;return n=i=void 0,c=e,u=t.apply(o,r)}function m(t){return c=t,s=Mo(y,e),h?p(t):u}function v(t){var r=t-f;return void 0===f||r>=e||r<0||l&&t-c>=a}function y(){var t=va();if(v(t))return g(t);s=Mo(y,function(t){var r=e-(t-f);return l?ur(r,a-(t-c)):r}(t))}function g(t){return s=void 0,d&&n?p(t):(n=i=void 0,u)}function b(){var t=va(),r=v(t);if(n=arguments,i=this,f=t,r){if(void 0===s)return m(f);if(l)return hi(s),s=Mo(y,e),p(f)}return void 0===s&&(s=Mo(y,e)),u}return e=au(e)||0,Va(r)&&(h=!!r.leading,a=(l="maxWait"in r)?ar(au(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),b.cancel=function(){void 0!==s&&hi(s),c=0,n=f=i=s=void 0},b.flush=function(){return void 0===s?u:g(va())},b}var _a=Ln((function(t,e){return Jr(t,1,e)})),Sa=Ln((function(t,e,r){return Jr(t,au(e)||0,r)}));function Oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Oa.Cache||Cr),r}function Ea(t){if("function"!=typeof t)throw new yt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oa.Cache=Cr;var ka=fi((function(t,e){var r=(e=1==e.length&&Fa(e[0])?de(e[0],xe($i())):de(an(e,1),xe($i()))).length;return Ln((function(n){for(var i=-1,o=ur(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return oe(t,this,n)}))})),Pa=Ln((function(t,e){return Bi(t,32,void 0,e,ze(e,Xi(Pa)))})),ja=Ln((function(t,e){return Bi(t,64,void 0,e,ze(e,Xi(ja)))})),Ra=Wi((function(t,e){return Bi(t,256,void 0,void 0,void 0,e)}));function Aa(t,e){return t===e||t!=t&&e!=e}var xa=Ci(mn),Ta=Ci((function(t,e){return t>=e})),Ia=wn(function(){return arguments}())?wn:function(t){return Wa(t)&&St.call(t,"callee")&&!Ht.call(t,"callee")},Fa=n.isArray,Ca=Qt?xe(Qt):function(t){return Wa(t)&&pn(t)==S};function Na(t){return null!=t&&za(t.length)&&!Ga(t)}function qa(t){return Wa(t)&&Na(t)}var Da=rr||as,La=te?xe(te):function(t){return Wa(t)&&pn(t)==h};function Ba(t){if(!Wa(t))return!1;var e=pn(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Ga(t){if(!Va(t))return!1;var e=pn(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==iu(t)}function za(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Va(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Wa(t){return null!=t&&"object"==typeof t}var Ha=ee?xe(ee):function(t){return Wa(t)&&no(t)==m};function Za(t){return"number"==typeof t||Wa(t)&&pn(t)==v}function Ka(t){if(!Wa(t)||pn(t)!=y)return!1;var e=Ut(t);if(null===e)return!0;var r=St.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&_t.call(r)==Pt}var Ya=re?xe(re):function(t){return Wa(t)&&pn(t)==g};var Xa=ne?xe(ne):function(t){return Wa(t)&&no(t)==b};function $a(t){return"string"==typeof t||!Fa(t)&&Wa(t)&&pn(t)==w}function Ja(t){return"symbol"==typeof t||Wa(t)&&pn(t)==M}var Qa=ie?xe(ie):function(t){return Wa(t)&&za(t.length)&&!!Bt[pn(t)]};var tu=Ci(Pn),eu=Ci((function(t,e){return t<=e}));function ru(t){if(!t)return[];if(Na(t))return $a(t)?Ze(t):gi(t);if($t&&t[$t])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[$t]());var e=no(t);return(e==m?Ge:e==b?Ve:Au)(t)}function nu(t){return t?(t=au(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function iu(t){var e=nu(t),r=e%1;return e==e?r?e-r:e:0}function ou(t){return t?Yr(iu(t),0,4294967295):0}function au(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(Va(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Va(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ae(t);var r=ot.test(t);return r||ut.test(t)?Vt(t.slice(2),r?2:8):it.test(t)?NaN:+t}function uu(t){return bi(t,_u(t))}function su(t){return null==t?"":Jn(t)}var fu=Mi((function(t,e){if(lo(e)||Na(e))bi(e,Mu(e),t);else for(var r in e)St.call(e,r)&&zr(t,r,e[r])})),cu=Mi((function(t,e){bi(e,_u(e),t)})),hu=Mi((function(t,e,r,n){bi(e,_u(e),t,n)})),lu=Mi((function(t,e,r,n){bi(e,Mu(e),t,n)})),du=Wi(Kr);var pu=Ln((function(t,e){t=pt(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(n=1);++r<n;)for(var o=e[r],a=_u(o),u=-1,s=a.length;++u<s;){var f=a[u],c=t[f];(void 0===c||Aa(c,wt[f])&&!St.call(t,f))&&(t[f]=o[f])}return t})),mu=Ln((function(t){return t.push(void 0,Ui),oe(Ou,void 0,t)}));function vu(t,e,r){var n=null==t?void 0:ln(t,e);return void 0===n?r:n}function yu(t,e){return null!=t&&io(t,e,yn)}var gu=Ai((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),t[e]=r}),Vu(Zu)),bu=Ai((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),St.call(t,e)?t[e].push(r):t[e]=[r]}),$i),wu=Ln(bn);function Mu(t){return Na(t)?Dr(t):En(t)}function _u(t){return Na(t)?Dr(t,!0):kn(t)}var Su=Mi((function(t,e,r){xn(t,e,r)})),Ou=Mi((function(t,e,r,n){xn(t,e,r,n)})),Eu=Wi((function(t,e){var r={};if(null==t)return r;var n=!1;e=de(e,(function(e){return e=si(e,t),n||(n=e.length>1),e})),bi(t,Zi(t),r),n&&(r=Xr(r,7,zi));for(var i=e.length;i--;)ti(r,e[i]);return r}));var ku=Wi((function(t,e){return null==t?{}:function(t,e){return Fn(t,e,(function(e,r){return yu(t,r)}))}(t,e)}));function Pu(t,e){if(null==t)return{};var r=de(Zi(t),(function(t){return[t]}));return e=$i(e),Fn(t,r,(function(t,r){return e(t,r[0])}))}var ju=Li(Mu),Ru=Li(_u);function Au(t){return null==t?[]:Te(t,Mu(t))}var xu=Ei((function(t,e,r){return e=e.toLowerCase(),t+(r?Tu(e):e)}));function Tu(t){return Bu(su(t).toLowerCase())}function Iu(t){return(t=su(t))&&t.replace(ft,qe).replace(It,"")}var Fu=Ei((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Cu=Ei((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Nu=Oi("toLowerCase");var qu=Ei((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));var Du=Ei((function(t,e,r){return t+(r?" ":"")+Bu(e)}));var Lu=Ei((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Bu=Oi("toUpperCase");function Gu(t,e,r){return t=su(t),void 0===(e=r?void 0:e)?function(t){return qt.test(t)}(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var Uu=Ln((function(t,e){try{return oe(t,void 0,e)}catch(t){return Ba(t)?t:new Y(t)}})),zu=Wi((function(t,e){return ue(e,(function(e){e=Po(e),Zr(t,e,ba(t[e],t))})),t}));function Vu(t){return function(){return t}}var Wu=ji(),Hu=ji(!0);function Zu(t){return t}function Ku(t){return On("function"==typeof t?t:Xr(t,1))}var Yu=Ln((function(t,e){return function(r){return bn(r,t,e)}})),Xu=Ln((function(t,e){return function(r){return bn(t,r,e)}}));function $u(t,e,r){var n=Mu(e),i=hn(e,n);null!=r||Va(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=hn(e,Mu(e)));var o=!(Va(r)&&"chain"in r&&!r.chain),a=Ga(t);return ue(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=gi(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,pe([this.value()],arguments))})})),t}function Ju(){}var Qu=Ti(de),ts=Ti(fe),es=Ti(ye);function rs(t){return fo(t)?Ee(Po(t)):function(t){return function(e){return ln(e,t)}}(t)}var ns=Fi(),is=Fi(!0);function os(){return[]}function as(){return!1}var us=xi((function(t,e){return t+e}),0),ss=qi("ceil"),fs=xi((function(t,e){return t/e}),1),cs=qi("floor");var hs,ls=xi((function(t,e){return t*e}),1),ds=qi("round"),ps=xi((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new yt(o);return t=iu(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=ya,jr.assign=fu,jr.assignIn=cu,jr.assignInWith=hu,jr.assignWith=lu,jr.at=du,jr.before=ga,jr.bind=ba,jr.bindAll=zu,jr.bindKey=wa,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fa(t)?t:[t]},jr.chain=ra,jr.chunk=function(t,e,r){e=(r?so(t,e,r):void 0===e)?1:ar(iu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,u=n(Qe(i/e));o<i;)u[a++]=Hn(t,o,o+=e);return u},jr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},jr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Fa(r)?gi(r):[r],an(e,1))},jr.cond=function(t){var e=null==t?0:t.length,r=$i();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new yt(o);return[r(t[0]),t[1]]})):[],Ln((function(r){for(var n=-1;++n<e;){var i=t[n];if(oe(i[0],this,r))return oe(i[1],this,r)}}))},jr.conforms=function(t){return function(t){var e=Mu(t);return function(r){return $r(r,t,e)}}(Xr(t,1))},jr.constant=Vu,jr.countBy=oa,jr.create=function(t,e){var r=Rr(t);return null==e?r:Hr(r,e)},jr.curry=function t(e,r,n){var i=Bi(e,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},jr.curryRight=function t(e,r,n){var i=Bi(e,16,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},jr.debounce=Ma,jr.defaults=pu,jr.defaultsDeep=mu,jr.defer=_a,jr.delay=Sa,jr.difference=Ao,jr.differenceBy=xo,jr.differenceWith=To,jr.drop=function(t,e,r){var n=null==t?0:t.length;return n?Hn(t,(e=r||void 0===e?1:iu(e))<0?0:e,n):[]},jr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?Hn(t,0,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e):[]},jr.dropRightWhile=function(t,e){return t&&t.length?ri(t,$i(e,3),!0,!0):[]},jr.dropWhile=function(t,e){return t&&t.length?ri(t,$i(e,3),!0):[]},jr.fill=function(t,e,r,n){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&so(t,e,r)&&(r=0,n=i),function(t,e,r,n){var i=t.length;for((r=iu(r))<0&&(r=-r>i?0:i+r),(n=void 0===n||n>i?i:iu(n))<0&&(n+=i),n=r>n?0:ou(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},jr.filter=function(t,e){return(Fa(t)?ce:on)(t,$i(e,3))},jr.flatMap=function(t,e){return an(da(t,e),1)},jr.flatMapDeep=function(t,e){return an(da(t,e),1/0)},jr.flatMapDepth=function(t,e,r){return r=void 0===r?1:iu(r),an(da(t,e),r)},jr.flatten=Co,jr.flattenDeep=function(t){return(null==t?0:t.length)?an(t,1/0):[]},jr.flattenDepth=function(t,e){return(null==t?0:t.length)?an(t,e=void 0===e?1:iu(e)):[]},jr.flip=function(t){return Bi(t,512)},jr.flow=Wu,jr.flowRight=Hu,jr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},jr.functions=function(t){return null==t?[]:hn(t,Mu(t))},jr.functionsIn=function(t){return null==t?[]:hn(t,_u(t))},jr.groupBy=ca,jr.initial=function(t){return(null==t?0:t.length)?Hn(t,0,-1):[]},jr.intersection=qo,jr.intersectionBy=Do,jr.intersectionWith=Lo,jr.invert=gu,jr.invertBy=bu,jr.invokeMap=ha,jr.iteratee=Ku,jr.keyBy=la,jr.keys=Mu,jr.keysIn=_u,jr.map=da,jr.mapKeys=function(t,e){var r={};return e=$i(e,3),fn(t,(function(t,n,i){Zr(r,e(t,n,i),t)})),r},jr.mapValues=function(t,e){var r={};return e=$i(e,3),fn(t,(function(t,n,i){Zr(r,n,e(t,n,i))})),r},jr.matches=function(t){return Rn(Xr(t,1))},jr.matchesProperty=function(t,e){return An(t,Xr(e,1))},jr.memoize=Oa,jr.merge=Su,jr.mergeWith=Ou,jr.method=Yu,jr.methodOf=Xu,jr.mixin=$u,jr.negate=Ea,jr.nthArg=function(t){return t=iu(t),Ln((function(e){return Tn(e,t)}))},jr.omit=Eu,jr.omitBy=function(t,e){return Pu(t,Ea($i(e)))},jr.once=function(t){return ga(2,t)},jr.orderBy=function(t,e,r,n){return null==t?[]:(Fa(e)||(e=null==e?[]:[e]),Fa(r=n?void 0:r)||(r=null==r?[]:[r]),In(t,e,r))},jr.over=Qu,jr.overArgs=ka,jr.overEvery=ts,jr.overSome=es,jr.partial=Pa,jr.partialRight=ja,jr.partition=pa,jr.pick=ku,jr.pickBy=Pu,jr.property=rs,jr.propertyOf=function(t){return function(e){return null==t?void 0:ln(t,e)}},jr.pull=Go,jr.pullAll=Uo,jr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Cn(t,e,$i(r,2)):t},jr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Cn(t,e,void 0,r):t},jr.pullAt=zo,jr.range=ns,jr.rangeRight=is,jr.rearg=Ra,jr.reject=function(t,e){return(Fa(t)?ce:on)(t,Ea($i(e,3)))},jr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=$i(e,3);++n<o;){var a=t[n];e(a,n,t)&&(r.push(a),i.push(n))}return Nn(t,i),r},jr.rest=function(t,e){if("function"!=typeof t)throw new yt(o);return Ln(t,e=void 0===e?e:iu(e))},jr.reverse=Vo,jr.sampleSize=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),(Fa(t)?Br:Gn)(t,e)},jr.set=function(t,e,r){return null==t?t:Un(t,e,r)},jr.setWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:Un(t,e,r,n)},jr.shuffle=function(t){return(Fa(t)?Gr:Wn)(t)},jr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&so(t,e,r)?(e=0,r=n):(e=null==e?0:iu(e),r=void 0===r?n:iu(r)),Hn(t,e,r)):[]},jr.sortBy=ma,jr.sortedUniq=function(t){return t&&t.length?Xn(t):[]},jr.sortedUniqBy=function(t,e){return t&&t.length?Xn(t,$i(e,2)):[]},jr.split=function(t,e,r){return r&&"number"!=typeof r&&so(t,e,r)&&(e=r=void 0),(r=void 0===r?4294967295:r>>>0)?(t=su(t))&&("string"==typeof e||null!=e&&!Ya(e))&&!(e=Jn(e))&&Be(t)?ci(Ze(t),0,r):t.split(e,r):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new yt(o);return e=null==e?0:ar(iu(e),0),Ln((function(r){var n=r[e],i=ci(r,0,e);return n&&pe(i,n),oe(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?Hn(t,1,e):[]},jr.take=function(t,e,r){return t&&t.length?Hn(t,0,(e=r||void 0===e?1:iu(e))<0?0:e):[]},jr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Hn(t,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e,n):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ri(t,$i(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ri(t,$i(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new yt(o);return Va(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ma(t,e,{leading:n,maxWait:e,trailing:i})},jr.thru=na,jr.toArray=ru,jr.toPairs=ju,jr.toPairsIn=Ru,jr.toPath=function(t){return Fa(t)?de(t,Po):Ja(t)?[t]:gi(ko(su(t)))},jr.toPlainObject=uu,jr.transform=function(t,e,r){var n=Fa(t),i=n||Da(t)||Qa(t);if(e=$i(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Va(t)&&Ga(o)?Rr(Ut(t)):{}}return(i?ue:fn)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return ya(t,1)},jr.union=Wo,jr.unionBy=Ho,jr.unionWith=Zo,jr.uniq=function(t){return t&&t.length?Qn(t):[]},jr.uniqBy=function(t,e){return t&&t.length?Qn(t,$i(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qn(t,void 0,e):[]},jr.unset=function(t,e){return null==t||ti(t,e)},jr.unzip=Ko,jr.unzipWith=Yo,jr.update=function(t,e,r){return null==t?t:ei(t,e,ui(r))},jr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:ei(t,e,ui(r),n)},jr.values=Au,jr.valuesIn=function(t){return null==t?[]:Te(t,_u(t))},jr.without=Xo,jr.words=Gu,jr.wrap=function(t,e){return Pa(ui(e),t)},jr.xor=$o,jr.xorBy=Jo,jr.xorWith=Qo,jr.zip=ta,jr.zipObject=function(t,e){return oi(t||[],e||[],zr)},jr.zipObjectDeep=function(t,e){return oi(t||[],e||[],Un)},jr.zipWith=ea,jr.entries=ju,jr.entriesIn=Ru,jr.extend=cu,jr.extendWith=hu,$u(jr,jr),jr.add=us,jr.attempt=Uu,jr.camelCase=xu,jr.capitalize=Tu,jr.ceil=ss,jr.clamp=function(t,e,r){return void 0===r&&(r=e,e=void 0),void 0!==r&&(r=(r=au(r))==r?r:0),void 0!==e&&(e=(e=au(e))==e?e:0),Yr(au(t),e,r)},jr.clone=function(t){return Xr(t,4)},jr.cloneDeep=function(t){return Xr(t,5)},jr.cloneDeepWith=function(t,e){return Xr(t,5,e="function"==typeof e?e:void 0)},jr.cloneWith=function(t,e){return Xr(t,4,e="function"==typeof e?e:void 0)},jr.conformsTo=function(t,e){return null==e||$r(t,e,Mu(e))},jr.deburr=Iu,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=fs,jr.endsWith=function(t,e,r){t=su(t),e=Jn(e);var n=t.length,i=r=void 0===r?n:Yr(iu(r),0,n);return(r-=e.length)>=0&&t.slice(r,i)==e},jr.eq=Aa,jr.escape=function(t){return(t=su(t))&&L.test(t)?t.replace(q,De):t},jr.escapeRegExp=function(t){return(t=su(t))&&Z.test(t)?t.replace(H,"\\$&"):t},jr.every=function(t,e,r){var n=Fa(t)?fe:rn;return r&&so(t,e,r)&&(e=void 0),n(t,$i(e,3))},jr.find=aa,jr.findIndex=Io,jr.findKey=function(t,e){return be(t,$i(e,3),fn)},jr.findLast=ua,jr.findLastIndex=Fo,jr.findLastKey=function(t,e){return be(t,$i(e,3),cn)},jr.floor=cs,jr.forEach=sa,jr.forEachRight=fa,jr.forIn=function(t,e){return null==t?t:un(t,$i(e,3),_u)},jr.forInRight=function(t,e){return null==t?t:sn(t,$i(e,3),_u)},jr.forOwn=function(t,e){return t&&fn(t,$i(e,3))},jr.forOwnRight=function(t,e){return t&&cn(t,$i(e,3))},jr.get=vu,jr.gt=xa,jr.gte=Ta,jr.has=function(t,e){return null!=t&&io(t,e,vn)},jr.hasIn=yu,jr.head=No,jr.identity=Zu,jr.includes=function(t,e,r,n){t=Na(t)?t:Au(t),r=r&&!n?iu(r):0;var i=t.length;return r<0&&(r=ar(i+r,0)),$a(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Me(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),Me(t,e,i)},jr.inRange=function(t,e,r){return e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r){return t>=ur(e,r)&&t<ar(e,r)}(t=au(t),e,r)},jr.invoke=wu,jr.isArguments=Ia,jr.isArray=Fa,jr.isArrayBuffer=Ca,jr.isArrayLike=Na,jr.isArrayLikeObject=qa,jr.isBoolean=function(t){return!0===t||!1===t||Wa(t)&&pn(t)==c},jr.isBuffer=Da,jr.isDate=La,jr.isElement=function(t){return Wa(t)&&1===t.nodeType&&!Ka(t)},jr.isEmpty=function(t){if(null==t)return!0;if(Na(t)&&(Fa(t)||"string"==typeof t||"function"==typeof t.splice||Da(t)||Qa(t)||Ia(t)))return!t.length;var e=no(t);if(e==m||e==b)return!t.size;if(lo(t))return!En(t).length;for(var r in t)if(St.call(t,r))return!1;return!0},jr.isEqual=function(t,e){return Mn(t,e)},jr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:void 0)?r(t,e):void 0;return void 0===n?Mn(t,e,void 0,r):!!n},jr.isError=Ba,jr.isFinite=function(t){return"number"==typeof t&&nr(t)},jr.isFunction=Ga,jr.isInteger=Ua,jr.isLength=za,jr.isMap=Ha,jr.isMatch=function(t,e){return t===e||_n(t,e,Qi(e))},jr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:void 0,_n(t,e,Qi(e),r)},jr.isNaN=function(t){return Za(t)&&t!=+t},jr.isNative=function(t){if(ho(t))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sn(t)},jr.isNil=function(t){return null==t},jr.isNull=function(t){return null===t},jr.isNumber=Za,jr.isObject=Va,jr.isObjectLike=Wa,jr.isPlainObject=Ka,jr.isRegExp=Ya,jr.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},jr.isSet=Xa,jr.isString=$a,jr.isSymbol=Ja,jr.isTypedArray=Qa,jr.isUndefined=function(t){return void 0===t},jr.isWeakMap=function(t){return Wa(t)&&no(t)==_},jr.isWeakSet=function(t){return Wa(t)&&"[object WeakSet]"==pn(t)},jr.join=function(t,e){return null==t?"":ir.call(t,e)},jr.kebabCase=Fu,jr.last=Bo,jr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n;return void 0!==r&&(i=(i=iu(r))<0?ar(n+i,0):ur(i,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):we(t,Se,i,!0)},jr.lowerCase=Cu,jr.lowerFirst=Nu,jr.lt=tu,jr.lte=eu,jr.max=function(t){return t&&t.length?nn(t,Zu,mn):void 0},jr.maxBy=function(t,e){return t&&t.length?nn(t,$i(e,2),mn):void 0},jr.mean=function(t){return Oe(t,Zu)},jr.meanBy=function(t,e){return Oe(t,$i(e,2))},jr.min=function(t){return t&&t.length?nn(t,Zu,Pn):void 0},jr.minBy=function(t,e){return t&&t.length?nn(t,$i(e,2),Pn):void 0},jr.stubArray=os,jr.stubFalse=as,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=ls,jr.nth=function(t,e){return t&&t.length?Tn(t,iu(e)):void 0},jr.noConflict=function(){return Zt._===this&&(Zt._=jt),this},jr.noop=Ju,jr.now=va,jr.pad=function(t,e,r){t=su(t);var n=(e=iu(e))?He(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Ii(tr(i),r)+t+Ii(Qe(i),r)},jr.padEnd=function(t,e,r){t=su(t);var n=(e=iu(e))?He(t):0;return e&&n<e?t+Ii(e-n,r):t},jr.padStart=function(t,e,r){t=su(t);var n=(e=iu(e))?He(t):0;return e&&n<e?Ii(e-n,r)+t:t},jr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),fr(su(t).replace(K,""),e||0)},jr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&so(t,e,r)&&(e=r=void 0),void 0===r&&("boolean"==typeof e?(r=e,e=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=nu(t),void 0===e?(e=t,t=0):e=nu(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var i=cr();return ur(t+i*(e-t+zt("1e-"+((i+"").length-1))),e)}return qn(t,e)},jr.reduce=function(t,e,r){var n=Fa(t)?me:Pe,i=arguments.length<3;return n(t,$i(e,4),r,i,tn)},jr.reduceRight=function(t,e,r){var n=Fa(t)?ve:Pe,i=arguments.length<3;return n(t,$i(e,4),r,i,en)},jr.repeat=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),Dn(su(t),e)},jr.replace=function(){var t=arguments,e=su(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,r){var n=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++n<i;){var o=null==t?void 0:t[Po(e[n])];void 0===o&&(n=i,o=r),t=Ga(o)?o.call(t):o}return t},jr.round=ds,jr.runInContext=t,jr.sample=function(t){return(Fa(t)?Lr:Bn)(t)},jr.size=function(t){if(null==t)return 0;if(Na(t))return $a(t)?He(t):t.length;var e=no(t);return e==m||e==b?t.size:En(t).length},jr.snakeCase=qu,jr.some=function(t,e,r){var n=Fa(t)?ye:Zn;return r&&so(t,e,r)&&(e=void 0),n(t,$i(e,3))},jr.sortedIndex=function(t,e){return Kn(t,e)},jr.sortedIndexBy=function(t,e,r){return Yn(t,e,$i(r,2))},jr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=Kn(t,e);if(n<r&&Aa(t[n],e))return n}return-1},jr.sortedLastIndex=function(t,e){return Kn(t,e,!0)},jr.sortedLastIndexBy=function(t,e,r){return Yn(t,e,$i(r,2),!0)},jr.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var r=Kn(t,e,!0)-1;if(Aa(t[r],e))return r}return-1},jr.startCase=Du,jr.startsWith=function(t,e,r){return t=su(t),r=null==r?0:Yr(iu(r),0,t.length),e=Jn(e),t.slice(r,r+e.length)==e},jr.subtract=ps,jr.sum=function(t){return t&&t.length?je(t,Zu):0},jr.sumBy=function(t,e){return t&&t.length?je(t,$i(e,2)):0},jr.template=function(t,e,r){var n=jr.templateSettings;r&&so(t,e,r)&&(e=void 0),t=su(t),e=hu({},e,n,Gi);var i,o,a=hu({},e.imports,n.imports,Gi),u=Mu(a),s=Te(a,u),f=0,c=e.interpolate||ct,h="__p += '",l=mt((e.escape||ct).source+"|"+c.source+"|"+(c===U?rt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),d="//# sourceURL="+(St.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lt+"]")+"\n";t.replace(l,(function(e,r,n,a,u,s){return n||(n=a),h+=t.slice(f,s).replace(ht,Le),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),u&&(o=!0,h+="';\n"+u+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),f=s+e.length,e})),h+="';\n";var p=St.call(e,"variable")&&e.variable;if(p){if(tt.test(p))throw new Y("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(I,""):h).replace(F,"$1").replace(C,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=Uu((function(){return lt(u,d+"return "+h).apply(void 0,s)}));if(m.source=h,Ba(m))throw m;return m},jr.times=function(t,e){if((t=iu(t))<1||t>9007199254740991)return[];var r=4294967295,n=ur(t,4294967295);t-=4294967295;for(var i=Re(n,e=$i(e));++r<t;)e(r);return i},jr.toFinite=nu,jr.toInteger=iu,jr.toLength=ou,jr.toLower=function(t){return su(t).toLowerCase()},jr.toNumber=au,jr.toSafeInteger=function(t){return t?Yr(iu(t),-9007199254740991,9007199254740991):0===t?t:0},jr.toString=su,jr.toUpper=function(t){return su(t).toUpperCase()},jr.trim=function(t,e,r){if((t=su(t))&&(r||void 0===e))return Ae(t);if(!t||!(e=Jn(e)))return t;var n=Ze(t),i=Ze(e);return ci(n,Fe(n,i),Ce(n,i)+1).join("")},jr.trimEnd=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.slice(0,Ke(t)+1);if(!t||!(e=Jn(e)))return t;var n=Ze(t);return ci(n,0,Ce(n,Ze(e))+1).join("")},jr.trimStart=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.replace(K,"");if(!t||!(e=Jn(e)))return t;var n=Ze(t);return ci(n,Fe(n,Ze(e))).join("")},jr.truncate=function(t,e){var r=30,n="...";if(Va(e)){var i="separator"in e?e.separator:i;r="length"in e?iu(e.length):r,n="omission"in e?Jn(e.omission):n}var o=(t=su(t)).length;if(Be(t)){var a=Ze(t);o=a.length}if(r>=o)return t;var u=r-He(n);if(u<1)return n;var s=a?ci(a,0,u).join(""):t.slice(0,u);if(void 0===i)return s+n;if(a&&(u+=s.length-u),Ya(i)){if(t.slice(u).search(i)){var f,c=s;for(i.global||(i=mt(i.source,su(nt.exec(i))+"g")),i.lastIndex=0;f=i.exec(c);)var h=f.index;s=s.slice(0,void 0===h?u:h)}}else if(t.indexOf(Jn(i),u)!=u){var l=s.lastIndexOf(i);l>-1&&(s=s.slice(0,l))}return s+n},jr.unescape=function(t){return(t=su(t))&&D.test(t)?t.replace(N,Ye):t},jr.uniqueId=function(t){var e=++Ot;return su(t)+e},jr.upperCase=Lu,jr.upperFirst=Bu,jr.each=sa,jr.eachRight=fa,jr.first=No,$u(jr,(hs={},fn(jr,(function(t,e){St.call(jr.prototype,e)||(hs[e]=t)})),hs),{chain:!1}),jr.VERSION="4.17.21",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),ue(["drop","take"],(function(t,e){Tr.prototype[t]=function(r){r=void 0===r?1:ar(iu(r),0);var n=this.__filtered__&&!e?new Tr(this):this.clone();return n.__filtered__?n.__takeCount__=ur(r,n.__takeCount__):n.__views__.push({size:ur(r,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Tr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ue(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Tr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$i(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),ue(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Tr.prototype[t]=function(){return this[r](1).value()[0]}})),ue(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Tr.prototype[t]=function(){return this.__filtered__?new Tr(this):this[r](1)}})),Tr.prototype.compact=function(){return this.filter(Zu)},Tr.prototype.find=function(t){return this.filter(t).head()},Tr.prototype.findLast=function(t){return this.reverse().find(t)},Tr.prototype.invokeMap=Ln((function(t,e){return"function"==typeof t?new Tr(this):this.map((function(r){return bn(r,t,e)}))})),Tr.prototype.reject=function(t){return this.filter(Ea($i(t)))},Tr.prototype.slice=function(t,e){t=iu(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Tr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==e&&(r=(e=iu(e))<0?r.dropRight(-e):r.take(e-t)),r)},Tr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tr.prototype.toArray=function(){return this.take(4294967295)},fn(Tr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),i=jr[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);i&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,u=e instanceof Tr,s=a[0],f=u||Fa(e),c=function(t){var e=i.apply(jr,pe([t],a));return n&&h?e[0]:e};f&&r&&"function"==typeof s&&1!=s.length&&(u=f=!1);var h=this.__chain__,l=!!this.__actions__.length,d=o&&!h,p=u&&!l;if(!o&&f){e=p?e:new Tr(this);var m=t.apply(e,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new xr(m,h)}return d&&p?t.apply(this,a):(m=this.thru(c),d?n?m.value()[0]:m.value():m)})})),ue(["pop","push","shift","sort","splice","unshift"],(function(t){var e=gt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Fa(i)?i:[],t)}return this[r]((function(r){return e.apply(Fa(r)?r:[],t)}))}})),fn(Tr.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";St.call(br,n)||(br[n]=[]),br[n].push({name:e,func:r})}})),br[Ri(void 0,2).name]=[{name:"wrapper",func:void 0}],Tr.prototype.clone=function(){var t=new Tr(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},Tr.prototype.reverse=function(){if(this.__filtered__){var t=new Tr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Fa(t),n=e<0,i=r?t.length:0,o=function(t,e,r){var n=-1,i=r.length;for(;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=ur(e,t+a);break;case"takeRight":t=ar(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,u=o.end,s=u-a,f=n?u:a-1,c=this.__iteratees__,h=c.length,l=0,d=ur(s,this.__takeCount__);if(!r||!n&&i==s&&d==s)return ni(t,this.__actions__);var p=[];t:for(;s--&&l<d;){for(var m=-1,v=t[f+=e];++m<h;){var y=c[m],g=y.iteratee,b=y.type,w=g(v);if(2==b)v=w;else if(!w){if(1==b)continue t;break t}}p[l++]=v}return p},jr.prototype.at=ia,jr.prototype.chain=function(){return ra(this)},jr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},jr.prototype.next=function(){void 0===this.__values__&&(this.__values__=ru(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,r=this;r instanceof Ar;){var n=Ro(r);n.__index__=0,n.__values__=void 0,e?i.__wrapped__=n:e=n;var i=n;r=r.__wrapped__}return i.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Tr){var e=t;return this.__actions__.length&&(e=new Tr(this)),(e=e.reverse()).__actions__.push({func:na,args:[Vo],thisArg:void 0}),new xr(e,this.__chain__)}return this.thru(Vo)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,$t&&(jr.prototype[$t]=function(){return this}),jr}();Zt._=Xe,void 0===(i=function(){return Xe}.call(e,r,e,n))||(n.exports=i)}).call(this)}).call(this,r(15),r(38)(t))},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.WeekdayNamed=e.WeekdayNumbered=void 0,function(t){t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY"}(n||(e.WeekdayNumbered=n={})),function(t){t.SUNDAY="SUNDAY",t.MONDAY="MONDAY",t.TUESDAY="TUESDAY",t.WEDNESDAY="WEDNESDAY",t.THURSDAY="THURSDAY",t.FRIDAY="FRIDAY",t.SATURDAY="SATURDAY"}(i||(e.WeekdayNamed=i={}))},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.enhanceStandardConsoleLogging=function(e){r.forEach((function(r){var n=t.console[r],i=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.apply(t.console,o),e.apply(void 0,[r].concat(o))};i.__next=n,i.__enhancer=e,t.console[r]=i}))};var r=["debug","log","info","warn","error"]}).call(this,r(15))},function(t,e,r){r(247),t.exports=r(420)},function(t,e,r){r(248)},function(t,e,r){"use strict";r(249),r(392),r(394),r(397),r(399),r(401),r(403),r(405),r(407),r(409),r(411),r(413),r(415),r(419)},function(t,e,r){r(250),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(331),r(332),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(119),r(355),r(169),r(356),r(170),r(357),r(358),r(359),r(360),r(171),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(381),r(382),r(383),r(384),r(385),r(386),r(387),r(388),r(389),r(390),r(391),t.exports=r(11)},function(t,e,r){"use strict";var n=r(2),i=r(19),o=r(12),a=r(0),u=r(17),s=r(41).KEY,f=r(3),c=r(79),h=r(58),l=r(46),d=r(8),p=r(100),m=r(150),v=r(252),y=r(82),g=r(4),b=r(5),w=r(16),M=r(21),_=r(40),S=r(45),O=r(50),E=r(153),k=r(29),P=r(81),j=r(13),R=r(48),A=k.f,x=j.f,T=E.f,I=n.Symbol,F=n.JSON,C=F&&F.stringify,N=d("_hidden"),q=d("toPrimitive"),D={}.propertyIsEnumerable,L=c("symbol-registry"),B=c("symbols"),G=c("op-symbols"),U=Object.prototype,z="function"==typeof I&&!!P.f,V=n.QObject,W=!V||!V.prototype||!V.prototype.findChild,H=o&&f((function(){return 7!=O(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=A(U,e);n&&delete U[e],x(t,e,r),n&&t!==U&&x(U,e,n)}:x,Z=function(t){var e=B[t]=O(I.prototype);return e._k=t,e},K=z&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Y=function(t,e,r){return t===U&&Y(G,e,r),g(t),e=_(e,!0),g(r),i(B,e)?(r.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),r=O(r,{enumerable:S(0,!1)})):(i(t,N)||x(t,N,S(1,{})),t[N][e]=!0),H(t,e,r)):x(t,e,r)},X=function(t,e){g(t);for(var r,n=v(e=M(e)),i=0,o=n.length;o>i;)Y(t,r=n[i++],e[r]);return t},$=function(t){var e=D.call(this,t=_(t,!0));return!(this===U&&i(B,t)&&!i(G,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,N)&&this[N][t])||e)},J=function(t,e){if(t=M(t),e=_(e,!0),t!==U||!i(B,e)||i(G,e)){var r=A(t,e);return!r||!i(B,e)||i(t,N)&&t[N][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=T(M(t)),n=[],o=0;r.length>o;)i(B,e=r[o++])||e==N||e==s||n.push(e);return n},tt=function(t){for(var e,r=t===U,n=T(r?G:M(t)),o=[],a=0;n.length>a;)!i(B,e=n[a++])||r&&!i(U,e)||o.push(B[e]);return o};z||(u((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(r){this===U&&e.call(G,r),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),H(this,t,S(1,r))};return o&&W&&H(U,t,{configurable:!0,set:e}),Z(t)}).prototype,"toString",(function(){return this._k})),k.f=J,j.f=Y,r(51).f=E.f=Q,r(68).f=$,P.f=tt,o&&!r(47)&&u(U,"propertyIsEnumerable",$,!0),p.f=function(t){return Z(d(t))}),a(a.G+a.W+a.F*!z,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var nt=R(d.store),it=0;nt.length>it;)m(nt[it++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(L,t+="")?L[t]:L[t]=I(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?O(t):X(O(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=f((function(){P.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return P.f(w(t))}}),F&&a(a.S+a.F*(!z||f((function(){var t=I();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,C.apply(F,n)}}),I.prototype[q]||r(20)(I.prototype,q,I.prototype.valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,r){t.exports=r(79)("native-function-to-string",Function.toString)},function(t,e,r){var n=r(48),i=r(81),o=r(68);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,f=0;u.length>f;)s.call(t,a=u[f++])&&e.push(a);return e}},function(t,e,r){var n=r(0);n(n.S,"Object",{create:r(50)})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(12),"Object",{defineProperty:r(13).f})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(12),"Object",{defineProperties:r(152)})},function(t,e,r){var n=r(21),i=r(29).f;r(30)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(n(t),e)}}))},function(t,e,r){var n=r(16),i=r(52);r(30)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){var n=r(16),i=r(48);r(30)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(30)("getOwnPropertyNames",(function(){return r(153).f}))},function(t,e,r){var n=r(5),i=r(41).onFreeze;r(30)("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(5),i=r(41).onFreeze;r(30)("seal",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(5),i=r(41).onFreeze;r(30)("preventExtensions",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(5);r(30)("isFrozen",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(5);r(30)("isSealed",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(5);r(30)("isExtensible",(function(t){return function(e){return!!n(e)&&(!t||t(e))}}))},function(t,e,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(154)})},function(t,e,r){var n=r(0);n(n.S,"Object",{is:r(155)})},function(t,e,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(104).set})},function(t,e,r){"use strict";var n=r(69),i={};i[r(8)("toStringTag")]="z",i+""!="[object z]"&&r(17)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},function(t,e,r){var n=r(0);n(n.P,"Function",{bind:r(156)})},function(t,e,r){var n=r(13).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(12)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(5),i=r(52),o=r(8)("hasInstance"),a=Function.prototype;o in a||r(13).f(a,o,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){var n=r(0),i=r(158);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(t,e,r){var n=r(0),i=r(159);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(t,e,r){"use strict";var n=r(2),i=r(19),o=r(34),a=r(106),u=r(40),s=r(3),f=r(51).f,c=r(29).f,h=r(13).f,l=r(59).trim,d=n.Number,p=d,m=d.prototype,v="Number"==o(r(50)(m)),y="trim"in String.prototype,g=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,o=(e=y?e.trim():l(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var a,s=e.slice(2),f=0,c=s.length;f<c;f++)if((a=s.charCodeAt(f))<48||a>i)return NaN;return parseInt(s,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof d&&(v?s((function(){m.valueOf.call(r)})):"Number"!=o(r))?a(new p(g(e)),r,d):g(e)};for(var b,w=r(12)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;w.length>M;M++)i(p,b=w[M])&&!i(d,b)&&h(d,b,c(p,b));d.prototype=m,m.constructor=d,r(17)(n,"Number",d)}},function(t,e,r){"use strict";var n=r(0),i=r(28),o=r(160),a=r(107),u=1..toFixed,s=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*f[r],f[r]=n%1e7,n=s(n/1e7)},l=function(t){for(var e=6,r=0;--e>=0;)r+=f[e],f[e]=s(r/t),r=r%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==f[t]){var r=String(f[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e},p=function(t,e,r){return 0===e?r:e%2==1?p(t,e-1,r*t):p(t*t,e/2,r)};n(n.P+n.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(3)((function(){u.call({})}))),"Number",{toFixed:function(t){var e,r,n,u,s=o(this,c),f=i(t),m="",v="0";if(f<0||f>20)throw RangeError(c);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(s*p(2,69,1))-69)<0?s*p(2,-e,1):s/p(2,e,1),r*=4503599627370496,(e=52-e)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=e-1;n>=23;)l(1<<23),n-=23;l(1<<n),h(1,1),l(2),v=d()}else h(0,r),h(1<<-e,0),v=d()+a.call("0",f);return v=f>0?m+((u=v.length)<=f?"0."+a.call("0",f-u)+v:v.slice(0,u-f)+"."+v.slice(u-f)):m+v}})},function(t,e,r){"use strict";var n=r(0),i=r(3),o=r(160),a=1..toPrecision;n(n.P+n.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,r){var n=r(0),i=r(2).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{isInteger:r(161)})},function(t,e,r){var n=r(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(0),i=r(161),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(0),i=r(159);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,r){var n=r(0),i=r(158);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,r){var n=r(0),i=r(162),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,r){var n=r(0),i=r(108);n(n.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,r){var n=r(0),i=r(109);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,r){var n=r(0);n(n.S,"Math",{fround:r(295)})},function(t,e,r){var n=r(108),i=Math.pow,o=i(2,-52),a=i(2,-23),u=i(2,127)*(2-a),s=i(2,-126);t.exports=Math.fround||function(t){var e,r,i=Math.abs(t),f=n(t);return i<s?f*(i/s/a+1/o-1/o)*s*a:(r=(e=(1+a/o)*i)-(e-i))>u||r!=r?f*(1/0):f*r}},function(t,e,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,o=0,a=0,u=arguments.length,s=0;a<u;)s<(r=i(arguments[a++]))?(o=o*(n=s/r)*n+1,s=r):o+=r>0?(n=r/s)*n:r;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,e,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(3)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var r=+t,n=+e,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log1p:r(162)})},function(t,e,r){var n=r(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,r){var n=r(0);n(n.S,"Math",{sign:r(108)})},function(t,e,r){var n=r(0),i=r(109),o=Math.exp;n(n.S+n.F*r(3)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,r){var n=r(0),i=r(109),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},function(t,e,r){var n=r(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,r){var n=r(0),i=r(49),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var n=r(0),i=r(21),o=r(10);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=o(e.length),n=arguments.length,a=[],u=0;r>u;)a.push(String(e[u++])),u<n&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,r){"use strict";r(59)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,r){"use strict";var n=r(110)(!0);r(111)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(0),i=r(110)(!1);n(n.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,r){"use strict";var n=r(0),i=r(10),o=r(112),a="".endsWith;n(n.P+n.F*r(114)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(e.length),u=void 0===r?n:Math.min(i(r),n),s=String(t);return a?a.call(e,s,u):e.slice(u-s.length,u)===s}})},function(t,e,r){"use strict";var n=r(0),i=r(112);n(n.P+n.F*r(114)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0);n(n.P,"String",{repeat:r(107)})},function(t,e,r){"use strict";var n=r(0),i=r(10),o=r(112),a="".startsWith;n(n.P+n.F*r(114)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";r(18)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,r){"use strict";r(18)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,r){"use strict";r(18)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,r){"use strict";r(18)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,r){"use strict";r(18)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,r){"use strict";r(18)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,r){"use strict";r(18)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,r){"use strict";r(18)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,r){"use strict";r(18)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,r){"use strict";r(18)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,r){"use strict";r(18)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,r){"use strict";r(18)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,r){"use strict";r(18)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(0),i=r(16),o=r(40);n(n.P+n.F*r(3)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),r=o(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(0),i=r(330);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,r){"use strict";var n=r(3),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!n((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(t,e,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(17)(n,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,r){var n=r(8)("toPrimitive"),i=Date.prototype;n in i||r(20)(i,n,r(333))},function(t,e,r){"use strict";var n=r(4),i=r(40);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),"number"!=t)}},function(t,e,r){var n=r(0);n(n.S,"Array",{isArray:r(82)})},function(t,e,r){"use strict";var n=r(26),i=r(0),o=r(16),a=r(164),u=r(115),s=r(10),f=r(116),c=r(117);i(i.S+i.F*!r(83)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,h,l=o(t),d="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,y=0,g=c(l);if(v&&(m=n(m,p>2?arguments[2]:void 0,2)),null==g||d==Array&&u(g))for(r=new d(e=s(l.length));e>y;y++)f(r,y,v?m(l[y],y):l[y]);else for(h=g.call(l),r=new d;!(i=h.next()).done;y++)f(r,y,v?a(h,m,[i.value,y],!0):i.value);return r.length=y,r}})},function(t,e,r){"use strict";var n=r(0),i=r(116);n(n.S+n.F*r(3)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)i(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(0),i=r(21),o=[].join;n(n.P+n.F*(r(67)!=Object||!r(25)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,r){"use strict";var n=r(0),i=r(103),o=r(34),a=r(49),u=r(10),s=[].slice;n(n.P+n.F*r(3)((function(){i&&s.call(i)})),"Array",{slice:function(t,e){var r=u(this.length),n=o(this);if(e=void 0===e?r:e,"Array"==n)return s.call(this,t,e);for(var i=a(t,r),f=a(e,r),c=u(f-i),h=new Array(c),l=0;l<c;l++)h[l]="String"==n?this.charAt(i+l):this[i+l];return h}})},function(t,e,r){"use strict";var n=r(0),i=r(27),o=r(16),a=r(3),u=[].sort,s=[1,2,3];n(n.P+n.F*(a((function(){s.sort(void 0)}))||!a((function(){s.sort(null)}))||!r(25)(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(0),o=r(25)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,r){var n=r(5),i=r(82),o=r(8)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){"use strict";var n=r(0),i=r(31)(1);n(n.P+n.F*!r(25)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(2);n(n.P+n.F*!r(25)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(3);n(n.P+n.F*!r(25)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(4);n(n.P+n.F*!r(25)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(166);n(n.P+n.F*!r(25)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,r){"use strict";var n=r(0),i=r(166);n(n.P+n.F*!r(25)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,r){"use strict";var n=r(0),i=r(80)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(25)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(21),o=r(28),a=r(10),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(25)(u)),"Array",{lastIndexOf:function(t){if(s)return u.apply(this,arguments)||0;var e=i(this),r=a(e.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,r){var n=r(0);n(n.P,"Array",{copyWithin:r(167)}),r(53)("copyWithin")},function(t,e,r){var n=r(0);n(n.P,"Array",{fill:r(118)}),r(53)("fill")},function(t,e,r){"use strict";var n=r(0),i=r(31)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(53)("find")},function(t,e,r){"use strict";var n=r(0),i=r(31)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(53)(o)},function(t,e,r){r(61)("Array")},function(t,e,r){var n=r(2),i=r(106),o=r(13).f,a=r(51).f,u=r(113),s=r(84),f=n.RegExp,c=f,h=f.prototype,l=/a/g,d=/a/g,p=new f(l)!==l;if(r(12)&&(!p||r(3)((function(){return d[r(8)("match")]=!1,f(l)!=l||f(d)==d||"/a/i"!=f(l,"i")})))){f=function(t,e){var r=this instanceof f,n=u(t),o=void 0===e;return!r&&n&&t.constructor===f&&o?t:i(p?new c(n&&!o?t.source:t,e):c((n=t instanceof f)?t.source:t,n&&o?s.call(t):e),r?this:h,f)};for(var m=function(t){t in f||o(f,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},v=a(c),y=0;v.length>y;)m(v[y++]);h.constructor=f,f.prototype=h,r(17)(n,"RegExp",f)}r(61)("RegExp")},function(t,e,r){"use strict";r(170);var n=r(4),i=r(84),o=r(12),a=/./.toString,u=function(t){r(17)(RegExp.prototype,"toString",t,!0)};r(3)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=a.name&&u((function(){return a.call(this)}))},function(t,e,r){"use strict";var n=r(4),i=r(10),o=r(121),a=r(85);r(86)("match",1,(function(t,e,r,u){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=u(r,t,this);if(e.done)return e.value;var s=n(t),f=String(this);if(!s.global)return a(s,f);var c=s.unicode;s.lastIndex=0;for(var h,l=[],d=0;null!==(h=a(s,f));){var p=String(h[0]);l[d]=p,""===p&&(s.lastIndex=o(f,i(s.lastIndex),c)),d++}return 0===d?null:l}]}))},function(t,e,r){"use strict";var n=r(4),i=r(16),o=r(10),a=r(28),u=r(121),s=r(85),f=Math.max,c=Math.min,h=Math.floor,l=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;r(86)("replace",2,(function(t,e,r,p){return[function(n,i){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=p(r,t,this,e);if(i.done)return i.value;var h=n(t),l=String(this),d="function"==typeof e;d||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}for(var g=[];;){var b=s(h,l);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(h.lastIndex=u(l,o(h.lastIndex),y))}for(var w,M="",_=0,S=0;S<g.length;S++){b=g[S];for(var O=String(b[0]),E=f(c(a(b.index),l.length),0),k=[],P=1;P<b.length;P++)k.push(void 0===(w=b[P])?w:String(w));var j=b.groups;if(d){var R=[O].concat(k,E,l);void 0!==j&&R.push(j);var A=String(e.apply(void 0,R))}else A=m(O,l,E,k,j,e);E>=_&&(M+=l.slice(_,E)+A,_=E+O.length)}return M+l.slice(_)}];function m(t,e,n,o,a,u){var s=n+t.length,f=o.length,c=d;return void 0!==a&&(a=i(a),c=l),r.call(u,c,(function(r,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(s);case"<":u=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var l=h(c/10);return 0===l?r:l<=f?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):r}u=o[c-1]}return void 0===u?"":u}))}}))},function(t,e,r){"use strict";var n=r(4),i=r(155),o=r(85);r(86)("search",1,(function(t,e,r,a){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var u=n(t),s=String(this),f=u.lastIndex;i(f,0)||(u.lastIndex=0);var c=o(u,s);return i(u.lastIndex,f)||(u.lastIndex=f),null===c?-1:c.index}]}))},function(t,e,r){"use strict";var n=r(113),i=r(4),o=r(70),a=r(121),u=r(10),s=r(85),f=r(120),c=r(3),h=Math.min,l=[].push,d="length",p=!c((function(){RegExp(4294967295,"y")}));r(86)("split",2,(function(t,e,r,c){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[d]||2!="ab".split(/(?:ab)*/)[d]||4!=".".split(/(.?)(.?)/)[d]||".".split(/()()/)[d]>1||"".split(/.?/)[d]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);for(var o,a,u,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,p=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,c+"g");(o=f.call(m,i))&&!((a=m.lastIndex)>h&&(s.push(i.slice(h,o.index)),o[d]>1&&o.index<i[d]&&l.apply(s,o.slice(1)),u=o[0][d],h=a,s[d]>=p));)m.lastIndex===o.index&&m.lastIndex++;return h===i[d]?!u&&m.test("")||s.push(""):s.push(i.slice(h)),s[d]>p?s.slice(0,p):s}:"0".split(void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):m.call(String(i),r,n)},function(t,e){var n=c(m,t,this,e,m!==r);if(n.done)return n.value;var f=i(t),l=String(this),d=o(f,RegExp),v=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(p?"y":"g"),g=new d(p?f:"^(?:"+f.source+")",y),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===l.length)return null===s(g,l)?[l]:[];for(var w=0,M=0,_=[];M<l.length;){g.lastIndex=p?M:0;var S,O=s(g,p?l:l.slice(M));if(null===O||(S=h(u(g.lastIndex+(p?0:M)),l.length))===w)M=a(l,M,v);else{if(_.push(l.slice(w,M)),_.length===b)return _;for(var E=1;E<=O.length-1;E++)if(_.push(O[E]),_.length===b)return _;M=w=S}}return _.push(l.slice(w)),_}]}))},function(t,e,r){var n=r(2),i=r(122).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(34)(a);t.exports=function(){var t,e,r,f=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,l=document.createTextNode("");new o(f).observe(l,{characterData:!0}),r=function(){l.data=h=!h}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){"use strict";var n=r(174),i=r(54);t.exports=r(89)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){"use strict";var n=r(174),i=r(54);t.exports=r(89)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n,i=r(2),o=r(31)(0),a=r(17),u=r(41),s=r(154),f=r(175),c=r(5),h=r(54),l=r(54),d=!i.ActiveXObject&&"ActiveXObject"in i,p=u.getWeak,m=Object.isExtensible,v=f.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=p(t);return!0===e?v(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return f.def(h(this,"WeakMap"),t,e)}},b=t.exports=r(89)("WeakMap",y,g,f,!0,!0);l&&d&&(s((n=f.getConstructor(y,"WeakMap")).prototype,g),u.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,r=e[t];a(e,t,(function(e,i){if(c(e)&&!m(e)){this._f||(this._f=new n);var o=this._f[t](e,i);return"set"==t?this:o}return r.call(this,e,i)}))})))},function(t,e,r){"use strict";var n=r(175),i=r(54);r(89)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,r){"use strict";var n=r(0),i=r(90),o=r(123),a=r(4),u=r(49),s=r(10),f=r(5),c=r(2).ArrayBuffer,h=r(70),l=o.ArrayBuffer,d=o.DataView,p=i.ABV&&c.isView,m=l.prototype.slice,v=i.VIEW;n(n.G+n.W+n.F*(c!==l),{ArrayBuffer:l}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||f(t)&&v in t}}),n(n.P+n.U+n.F*r(3)((function(){return!new l(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),i=u(void 0===e?r:e,r),o=new(h(this,l))(s(i-n)),f=new d(this),c=new d(o),p=0;n<i;)c.setUint8(p++,f.getUint8(n++));return o}}),r(61)("ArrayBuffer")},function(t,e,r){var n=r(0);n(n.G+n.W+n.F*!r(90).ABV,{DataView:r(123).DataView})},function(t,e,r){r(36)("Int8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},function(t,e,r){r(36)("Int16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Int32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float64",8,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){var n=r(0),i=r(27),o=r(4),a=(r(2).Reflect||{}).apply,u=Function.apply;n(n.S+n.F*!r(3)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,r){var n=i(t),s=o(r);return a?a(n,e,s):u.call(n,e,s)}})},function(t,e,r){var n=r(0),i=r(50),o=r(27),a=r(4),u=r(5),s=r(3),f=r(156),c=(r(2).Reflect||{}).construct,h=s((function(){function t(){}return!(c((function(){}),[],t)instanceof t)})),l=!s((function(){c((function(){}))}));n(n.S+n.F*(h||l),"Reflect",{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(l&&!h)return c(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(f.apply(t,n))}var s=r.prototype,d=i(u(s)?s:Object.prototype),p=Function.apply.call(t,d,e);return u(p)?p:d}})},function(t,e,r){var n=r(13),i=r(0),o=r(4),a=r(40);i(i.S+i.F*r(3)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,r){o(t),e=a(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),i=r(29).f,o=r(4);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=i(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){"use strict";var n=r(0),i=r(4),o=function(t){this._t=i(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};r(163)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,r){var n=r(29),i=r(52),o=r(19),a=r(0),u=r(5),s=r(4);a(a.S,"Reflect",{get:function t(e,r){var a,f,c=arguments.length<3?e:arguments[2];return s(e)===c?e[r]:(a=n.f(e,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:u(f=i(e))?t(f,r,c):void 0}})},function(t,e,r){var n=r(29),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,r){var n=r(0),i=r(52),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(177)})},function(t,e,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(13),i=r(29),o=r(52),a=r(19),u=r(0),s=r(45),f=r(4),c=r(5);u(u.S,"Reflect",{set:function t(e,r,u){var h,l,d=arguments.length<4?e:arguments[3],p=i.f(f(e),r);if(!p){if(c(l=o(e)))return t(l,r,u,d);p=s(0)}if(a(p,"value")){if(!1===p.writable||!c(d))return!1;if(h=i.f(d,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=u,n.f(d,r,h)}else n.f(d,r,s(0,u));return!0}return void 0!==p.set&&(p.set.call(d,u),!0)}})},function(t,e,r){var n=r(0),i=r(104);i&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(393),t.exports=r(11).Array.includes},function(t,e,r){"use strict";var n=r(0),i=r(80)(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(53)("includes")},function(t,e,r){r(395),t.exports=r(11).Array.flatMap},function(t,e,r){"use strict";var n=r(0),i=r(396),o=r(16),a=r(10),u=r(27),s=r(165);n(n.P,"Array",{flatMap:function(t){var e,r,n=o(this);return u(t),e=a(n.length),r=s(n,0),i(r,n,n,e,0,1,t,arguments[1]),r}}),r(53)("flatMap")},function(t,e,r){"use strict";var n=r(82),i=r(5),o=r(10),a=r(26),u=r(8)("isConcatSpreadable");t.exports=function t(e,r,s,f,c,h,l,d){for(var p,m,v=c,y=0,g=!!l&&a(l,d,3);y<f;){if(y in s){if(p=g?g(s[y],y,r):s[y],m=!1,i(p)&&(m=void 0!==(m=p[u])?!!m:n(p)),m&&h>0)v=t(e,r,p,o(p.length),v,h-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=p}v++}y++}return v}},function(t,e,r){r(398),t.exports=r(11).String.padStart},function(t,e,r){"use strict";var n=r(0),i=r(178),o=r(88),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,r){r(400),t.exports=r(11).String.padEnd},function(t,e,r){"use strict";var n=r(0),i=r(178),o=r(88),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,r){r(402),t.exports=r(11).String.trimLeft},function(t,e,r){"use strict";r(59)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,r){r(404),t.exports=r(11).String.trimRight},function(t,e,r){"use strict";r(59)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,r){r(406),t.exports=r(100).f("asyncIterator")},function(t,e,r){r(150)("asyncIterator")},function(t,e,r){r(408),t.exports=r(11).Object.getOwnPropertyDescriptors},function(t,e,r){var n=r(0),i=r(177),o=r(21),a=r(29),u=r(116);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),s=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=s(n,e=f[h++]))&&u(c,e,r);return c}})},function(t,e,r){r(410),t.exports=r(11).Object.values},function(t,e,r){var n=r(0),i=r(179)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){r(412),t.exports=r(11).Object.entries},function(t,e,r){var n=r(0),i=r(179)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){"use strict";r(171),r(414),t.exports=r(11).Promise.finally},function(t,e,r){"use strict";var n=r(0),i=r(11),o=r(2),a=r(70),u=r(173);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then((function(){return r}))}:t,r?function(r){return u(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){r(416),r(417),r(418),t.exports=r(11)},function(t,e,r){var n=r(2),i=r(0),o=r(88),a=[].slice,u=/MSIE .\./.test(o),s=function(t){return function(e,r){var n=arguments.length>2,i=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};i(i.G+i.B+i.F*u,{setTimeout:s(n.setTimeout),setInterval:s(n.setInterval)})},function(t,e,r){var n=r(0),i=r(122);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,r){for(var n=r(119),i=r(48),o=r(17),a=r(2),u=r(20),s=r(60),f=r(8),c=f("iterator"),h=f("toStringTag"),l=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),m=0;m<p.length;m++){var v,y=p[m],g=d[y],b=a[y],w=b&&b.prototype;if(w&&(w[c]||u(w,c,l),w[h]||u(w,h,y),s[y]=l,g))for(v in n)w[v]||o(w,v,n[v],!0)}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,i){var o=e&&e.prototype instanceof l?e:l,a=Object.create(o.prototype),u=new E(i||[]);return n(a,"_invoke",{value:M(t,r,u)}),a}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function l(){}function d(){}function p(){}var m={};s(m,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==e&&r.call(y,o)&&(m=y);var g=p.prototype=l.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;n(this,"_invoke",{value:function(n,o){function a(){return new e((function(i,a){!function n(i,o,a,u){var s=c(t[i],t,o);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}(n,o,i,a)}))}return i=i?i.then(a,a):a()}})}function M(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=c(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(p,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,p):(t.__proto__=p,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,u,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,E.prototype={constructor:E,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(O),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.fpath=e.monitoring=e.sos=e.frontApplet=void 0;var i=n(r(421)),o=n(r(654)),a=r(701);e.frontApplet=(0,i.default)(window,"hug"),e.sos=e.frontApplet,e.monitoring=new o.default(e.frontApplet),e.fpath=a.fpath,e.frontApplet.sos=e.frontApplet,e.frontApplet.frontApplet=e.frontApplet,e.frontApplet.monitoring=e.monitoring,e.frontApplet.default=e.frontApplet,e.frontApplet.fpath=e.fpath,window.sos=e.frontApplet,window.sosMonitoring=e.monitoring,e.default=e.frontApplet,t.exports=e.frontApplet},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new i.default(t,e)};var i=n(r(422))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=r(124),l=f(r(560)),d=f(r(567)),p=f(r(569)),m=f(r(239)),v=f(r(582)),y=f(r(584)),g=f(r(588)),b=f(r(591)),w=f(r(592)),M=f(r(593)),_=f(r(594)),S=f(r(595)),O=f(r(596)),E=f(r(597)),k=f(r(599)),P=f(r(601)),j=r(237),R=f(r(603)),A=f(r(641)),x=f(r(642)),T=r(644),I=f(r(645)),F=f(r(646)),C=f(r(648)),N=f(r(650)),q=function(){return t=function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.config=void 0,this.authHash=void 0,this.appletVersion=void 0;var i=(0,T.createExchange)(r,this.postMessage.bind(this));this.readyEmitter=new c.EventEmitter,this.invocationResponseEmitter=new c.EventEmitter,this.debug=new _.default(this.window,r,this.postMessage.bind(this)),this.deviceInfo=new S.default(r,this.postMessage.bind(this)),this.display=new O.default(r,this.postMessage.bind(this)),this.stream=new d.default(r,this.postMessage.bind(this)),this.video=new l.default(r,this.postMessage.bind(this)),this.command=new v.default(this.messagePrefix,this.postMessage.bind(this)),this.hardware=new y.default(this.messagePrefix,this.postMessage.bind(this)),this.offline=new p.default(r,this.window,this.postMessage.bind(this)),this.browser=new g.default(i.createNamespaced("browser")),this.touch=new w.default(this.window,this.messagePrefix,this.postMessage.bind(this)),this.iframe=new b.default(this.window,this.messagePrefix,this,[this.touch.transformIframeData.bind(this.touch)]),this.input=new M.default(this.window,this.messagePrefix),this.timing=new E.default(this.messagePrefix,this.postMessage.bind(this)),this.sync=new k.default(this.messagePrefix,this.postMessage.bind(this)),this.fileSystem=new P.default(this.messagePrefix,this.postMessage.bind(this)),this.management=new R.default(r,this.postMessage.bind(this)),this.monitors=new A.default(r,this.postMessage.bind(this)),this.osd=new I.default(r,this.postMessage.bind(this)),this.proofOfPlay=new F.default(this.command),this.sensors=new x.default(r),this.native=new C.default(r,this.postMessage.bind(this)),this.connect=new N.default(this.window,this.messagePrefix),this.javascriptLoadFileController=new m.default(this.window),this.window.addEventListener("message",(function(t){return n.handleMessage(t)})),this.postMessage({type:r+"_api.ready"}),this.startPinging()},(e=[{key:"postMessage",value:function(t){var e=this,r=(0,h.generateUniqueHash)();return this.window.setTimeout((function(){var n;null===(n=e.window.parent)||void 0===n||n.postMessage(Object.assign({invocationUid:r},t),"*")})),new Promise((function(t,n){e.invocationResponseEmitter.once(r,(function(e){e.error?e.error.error?n((0,j.createError)(e.error.error)):n(e.error):t(e.success)}))}))}},{key:"onReady",value:function(t){var e=this;return new Promise((function(r){e.readyEmitter.once("ready",(function(){r(),void 0!==t&&t()})),e.checkIfReady()}))}},{key:"restore",value:function(){this.postMessage({type:this.getMessage("restore")}),this.removeMediaListeners(),this.forwardRestoreToFrontAppletWindows()}},{key:"refresh",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("applet_refresh")});case 1:return t.a(2)}}),t,this)})))}},{key:"forwardRestoreToFrontAppletWindows",value:function(){var t={type:this.messagePrefix+"restore"};this.iframe.forwardToFrontAppletWindows(t)}},{key:"removeMediaListeners",value:function(){this.video.removeEventListeners(),this.stream.removeEventListeners(),this.sync.removeEventListeners(),this.input.removeEventListeners()}},{key:"checkIfReady",value:function(){void 0!==this.authHash&&void 0!==this.config&&void 0!==this.display.version&&this.readyEmitter.emit("ready")}},{key:"handleMessage",value:function(t){if("object"===n(t.data)){var e=t.source;if(e===this.window.parent){var r=t.data;switch(r.type){case this.getMessage("invocation.success"):this.invocationResponseEmitter.emit(r.invocationUid,{success:r});break;case this.getMessage("invocation.error"):this.invocationResponseEmitter.emit(r.invocationUid,{error:r});break;case this.getMessage("config.update"):this.config=r.config,this.checkIfReady();break;case this.getMessage("auth_hash.update"):this.authHash=r.authHash,this.checkIfReady();break;case this.getMessage("front_display_version.update"):this.display.version=r.version,this.checkIfReady();break;case this.getMessage("applet_version.update"):this.appletVersion=r.version;break;case this.getMessage("restore"):this.removeMediaListeners();break;case this.getMessage("assets.load_js"):this.javascriptLoadFileController.load(r.src,this.window.document.body);break;default:this.browser.handleMessageData(r),this.sync.handleMessageData(r),this.video.handleMessageData(r),this.stream.handleMessageData(r),this.input.handleMessageData(r),this.command.handleMessageData(r),this.fileSystem.handleMessageData(r),this.sensors.handleMessageData(r),this.management.wifi.handleMessageData(r),this.hardware.handleMessageData(r),this.touch.handleMessageData(r),this.debug.handleMessageData(r),this.connect.handleMessageData(r)}this.iframe.forwardToFrontAppletWindows(r)}else if(function(t){return Boolean(t)}(e)&&e!==this.window){var i=t.data;switch(i.type){case this.messagePrefix+"_loader.ready":this.iframe.registerFrontAppletLoaderWindow(e);break;case this.messagePrefix+"_api.ready":this.iframe.registerBundledFrontAppletWindow(e);break;default:this.iframe.forwardFromFrontAppletWindows(e,i)}}}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}},{key:"startPinging",value:function(){var t=this,e=function(){return t.postMessage({type:t.getMessage("ping")})};this.window.setInterval(e,3e4),e()}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=q},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(64),e.createHash=e.Hash=r(71),e.createHmac=e.Hmac=r(198);var n=r(479),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(200);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var u=r(485);e.Cipher=u.Cipher,e.createCipher=u.createCipher,e.Cipheriv=u.Cipheriv,e.createCipheriv=u.createCipheriv,e.Decipher=u.Decipher,e.createDecipher=u.createDecipher,e.Decipheriv=u.Decipheriv,e.createDecipheriv=u.createDecipheriv,e.getCiphers=u.getCiphers,e.listCiphers=u.listCiphers;var s=r(500);e.DiffieHellmanGroup=s.DiffieHellmanGroup,e.createDiffieHellmanGroup=s.createDiffieHellmanGroup,e.getDiffieHellman=s.getDiffieHellman,e.createDiffieHellman=s.createDiffieHellman,e.DiffieHellman=s.DiffieHellman;var f=r(507);e.createSign=f.createSign,e.Sign=f.Sign,e.createVerify=f.createVerify,e.Verify=f.Verify,e.createECDH=r(552);var c=r(555);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var h=r(559);e.randomFill=h.randomFill,e.randomFillSync=h.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=f(t),a=n[0],u=n[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),c=0,h=u>0?a-4:a;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],s[c++]=e>>16&255,s[c++]=e>>8&255,s[c++]=255&e;2===u&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,s[c++]=255&e);1===u&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e);return s},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,u=r-i;a<u;a+=16383)o.push(c(t,a,a+16383>u?u:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)n[u]=a[u],i[a.charCodeAt(u)]=u;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],u=e;u<r;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
|
|
24
|
+
*/(function(){var o="Expected a function",a="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",f="[object Array]",c="[object Boolean]",h="[object Date]",l="[object Error]",d="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",y="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",M="[object Symbol]",_="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",P="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",A="[object Uint8Array]",x="[object Uint16Array]",T="[object Uint32Array]",I=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,C=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(N.source),L=RegExp(q.source),B=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(H.source),K=/^\s+/,Y=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",mt="["+dt+"]",vt="["+lt+"]",yt="\\d+",gt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+dt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Mt="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+bt+"|"+wt+")",Pt="(?:"+Et+"|"+wt+")",jt="(?:"+vt+"|"+Mt+")"+"?",Rt="[\\ufe0e\\ufe0f]?"+jt+("(?:\\u200d(?:"+[_t,St,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+jt+")*"),At="(?:"+[gt,St,Ot].join("|")+")"+Rt,xt="(?:"+[_t+vt+"?",vt,St,Ot,pt].join("|")+")",Tt=RegExp("['’]","g"),It=RegExp(vt,"g"),Ft=RegExp(Mt+"(?="+Mt+")|"+xt+Rt,"g"),Ct=RegExp([Et+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[mt,Et,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[mt,Et+kt,"$"].join("|")+")",Et+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,At].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lt=-1,Bt={};Bt[E]=Bt[k]=Bt[P]=Bt[j]=Bt[R]=Bt[A]=Bt["[object Uint8ClampedArray]"]=Bt[x]=Bt[T]=!0,Bt[s]=Bt[f]=Bt[S]=Bt[c]=Bt[O]=Bt[h]=Bt[l]=Bt[d]=Bt[m]=Bt[v]=Bt[y]=Bt[g]=Bt[b]=Bt[w]=Bt[_]=!1;var Gt={};Gt[s]=Gt[f]=Gt[S]=Gt[O]=Gt[c]=Gt[h]=Gt[E]=Gt[k]=Gt[P]=Gt[j]=Gt[R]=Gt[m]=Gt[v]=Gt[y]=Gt[g]=Gt[b]=Gt[w]=Gt[M]=Gt[A]=Gt["[object Uint8ClampedArray]"]=Gt[x]=Gt[T]=!0,Gt[l]=Gt[d]=Gt[_]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zt=parseFloat,Vt=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Ht="object"==typeof self&&self&&self.Object===Object&&self,Zt=Wt||Ht||Function("return this")(),Kt=e&&!e.nodeType&&e,Yt=Kt&&"object"==typeof n&&n&&!n.nodeType&&n,Xt=Yt&&Yt.exports===Kt,$t=Xt&&Wt.process,Jt=function(){try{var t=Yt&&Yt.require&&Yt.require("util").types;return t||$t&&$t.binding&&$t.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,re=Jt&&Jt.isRegExp,ne=Jt&&Jt.isSet,ie=Jt&&Jt.isTypedArray;function oe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ae(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function ue(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function se(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function fe(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function ce(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}function he(t,e){return!!(null==t?0:t.length)&&Me(t,e,0)>-1}function le(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function de(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function pe(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function me(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function ve(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function ye(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var ge=Ee("length");function be(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function we(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Me(t,e,r){return e==e?function(t,e,r){var n=r-1,i=t.length;for(;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):we(t,Se,r)}function _e(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function Se(t){return t!=t}function Oe(t,e){var r=null==t?0:t.length;return r?je(t,e)/r:NaN}function Ee(t){return function(e){return null==e?void 0:e[t]}}function ke(t){return function(e){return null==t?void 0:t[e]}}function Pe(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}function je(t,e){for(var r,n=-1,i=t.length;++n<i;){var o=e(t[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function Re(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ae(t){return t?t.slice(0,Ke(t)+1).replace(K,""):t}function xe(t){return function(e){return t(e)}}function Te(t,e){return de(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Fe(t,e){for(var r=-1,n=t.length;++r<n&&Me(e,t[r],0)>-1;);return r}function Ce(t,e){for(var r=t.length;r--&&Me(e,t[r],0)>-1;);return r}function Ne(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var qe=ke({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),De=ke({"&":"&","<":"<",">":">",'"':""","'":"'"});function Le(t){return"\\"+Ut[t]}function Be(t){return Nt.test(t)}function Ge(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Ue(t,e){return function(r){return t(e(r))}}function ze(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var u=t[r];u!==e&&u!==a||(t[r]=a,o[i++]=r)}return o}function Ve(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function We(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function He(t){return Be(t)?function(t){var e=Ft.lastIndex=0;for(;Ft.test(t);)++e;return e}(t):ge(t)}function Ze(t){return Be(t)?function(t){return t.match(Ft)||[]}(t):function(t){return t.split("")}(t)}function Ke(t){for(var e=t.length;e--&&Y.test(t.charAt(e)););return e}var Ye=ke({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Xe=function t(e){var r,n=(e=null==e?Zt:Xe.defaults(Zt.Object(),e,Xe.pick(Zt,Dt))).Array,i=e.Date,Y=e.Error,lt=e.Function,dt=e.Math,pt=e.Object,mt=e.RegExp,vt=e.String,yt=e.TypeError,gt=n.prototype,bt=lt.prototype,wt=pt.prototype,Mt=e["__core-js_shared__"],_t=bt.toString,St=wt.hasOwnProperty,Ot=0,Et=(r=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",kt=wt.toString,Pt=_t.call(pt),jt=Zt._,Rt=mt("^"+_t.call(St).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Xt?e.Buffer:void 0,xt=e.Symbol,Ft=e.Uint8Array,Nt=At?At.allocUnsafe:void 0,Ut=Ue(pt.getPrototypeOf,pt),Wt=pt.create,Ht=wt.propertyIsEnumerable,Kt=gt.splice,Yt=xt?xt.isConcatSpreadable:void 0,$t=xt?xt.iterator:void 0,Jt=xt?xt.toStringTag:void 0,ge=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ke=e.clearTimeout!==Zt.clearTimeout&&e.clearTimeout,$e=i&&i.now!==Zt.Date.now&&i.now,Je=e.setTimeout!==Zt.setTimeout&&e.setTimeout,Qe=dt.ceil,tr=dt.floor,er=pt.getOwnPropertySymbols,rr=At?At.isBuffer:void 0,nr=e.isFinite,ir=gt.join,or=Ue(pt.keys,pt),ar=dt.max,ur=dt.min,sr=i.now,fr=e.parseInt,cr=dt.random,hr=gt.reverse,lr=to(e,"DataView"),dr=to(e,"Map"),pr=to(e,"Promise"),mr=to(e,"Set"),vr=to(e,"WeakMap"),yr=to(pt,"create"),gr=vr&&new vr,br={},wr=jo(lr),Mr=jo(dr),_r=jo(pr),Sr=jo(mr),Or=jo(vr),Er=xt?xt.prototype:void 0,kr=Er?Er.valueOf:void 0,Pr=Er?Er.toString:void 0;function jr(t){if(Wa(t)&&!Fa(t)&&!(t instanceof Tr)){if(t instanceof xr)return t;if(St.call(t,"__wrapped__"))return Ro(t)}return new xr(t)}var Rr=function(){function t(){}return function(e){if(!Va(e))return{};if(Wt)return Wt(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Ar(){}function xr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Tr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ir(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Cr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Nr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Cr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Fr(t);this.size=e.size}function Dr(t,e){var r=Fa(t),n=!r&&Ia(t),i=!r&&!n&&Da(t),o=!r&&!n&&!i&&Qa(t),a=r||n||i||o,u=a?Re(t.length,vt):[],s=u.length;for(var f in t)!e&&!St.call(t,f)||a&&("length"==f||i&&("offset"==f||"parent"==f)||o&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||uo(f,s))||u.push(f);return u}function Lr(t){var e=t.length;return e?t[qn(0,e-1)]:void 0}function Br(t,e){return Eo(gi(t),Yr(e,0,t.length))}function Gr(t){return Eo(gi(t))}function Ur(t,e,r){(void 0!==r&&!Aa(t[e],r)||void 0===r&&!(e in t))&&Zr(t,e,r)}function zr(t,e,r){var n=t[e];St.call(t,e)&&Aa(n,r)&&(void 0!==r||e in t)||Zr(t,e,r)}function Vr(t,e){for(var r=t.length;r--;)if(Aa(t[r][0],e))return r;return-1}function Wr(t,e,r,n){return tn(t,(function(t,i,o){e(n,t,r(t),o)})),n}function Hr(t,e){return t&&bi(e,Mu(e),t)}function Zr(t,e,r){"__proto__"==e&&ge?ge(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Kr(t,e){for(var r=-1,i=e.length,o=n(i),a=null==t;++r<i;)o[r]=a?void 0:vu(t,e[r]);return o}function Yr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function Xr(t,e,r,n,i,o){var a,u=1&e,f=2&e,l=4&e;if(r&&(a=i?r(t,n,i,o):r(t)),void 0!==a)return a;if(!Va(t))return t;var _=Fa(t);if(_){if(a=function(t){var e=t.length,r=new t.constructor(e);e&&"string"==typeof t[0]&&St.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!u)return gi(t,a)}else{var I=no(t),F=I==d||I==p;if(Da(t))return li(t,u);if(I==y||I==s||F&&!i){if(a=f||F?{}:oo(t),!u)return f?function(t,e){return bi(t,ro(t),e)}(t,function(t,e){return t&&bi(e,_u(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Hr(a,t))}else{if(!Gt[I])return i?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case S:return di(t);case c:case h:return new n(+t);case O:return function(t,e){var r=e?di(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case E:case k:case P:case j:case R:case A:case"[object Uint8ClampedArray]":case x:case T:return pi(t,r);case m:return new n;case v:case w:return new n(t);case g:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new n;case M:return i=t,kr?pt(kr.call(i)):{}}var i}(t,I,u)}}o||(o=new qr);var C=o.get(t);if(C)return C;o.set(t,a),Xa(t)?t.forEach((function(n){a.add(Xr(n,e,r,n,t,o))})):Ha(t)&&t.forEach((function(n,i){a.set(i,Xr(n,e,r,i,t,o))}));var N=_?void 0:(l?f?Zi:Hi:f?_u:Mu)(t);return ue(N||t,(function(n,i){N&&(n=t[i=n]),zr(a,i,Xr(n,e,r,i,t,o))})),a}function $r(t,e,r){var n=r.length;if(null==t)return!n;for(t=pt(t);n--;){var i=r[n],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jr(t,e,r){if("function"!=typeof t)throw new yt(o);return Mo((function(){t.apply(void 0,r)}),e)}function Qr(t,e,r,n){var i=-1,o=he,a=!0,u=t.length,s=[],f=e.length;if(!u)return s;r&&(e=de(e,xe(r))),n?(o=le,a=!1):e.length>=200&&(o=Ie,a=!1,e=new Nr(e));t:for(;++i<u;){var c=t[i],h=null==r?c:r(c);if(c=n||0!==c?c:0,a&&h==h){for(var l=f;l--;)if(e[l]===h)continue t;s.push(c)}else o(e,h,n)||s.push(c)}return s}jr.templateSettings={escape:B,evaluate:G,interpolate:U,variable:"",imports:{_:jr}},jr.prototype=Ar.prototype,jr.prototype.constructor=jr,xr.prototype=Rr(Ar.prototype),xr.prototype.constructor=xr,Tr.prototype=Rr(Ar.prototype),Tr.prototype.constructor=Tr,Ir.prototype.clear=function(){this.__data__=yr?yr(null):{},this.size=0},Ir.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ir.prototype.get=function(t){var e=this.__data__;if(yr){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return St.call(e,t)?e[t]:void 0},Ir.prototype.has=function(t){var e=this.__data__;return yr?void 0!==e[t]:St.call(e,t)},Ir.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=yr&&void 0===e?"__lodash_hash_undefined__":e,this},Fr.prototype.clear=function(){this.__data__=[],this.size=0},Fr.prototype.delete=function(t){var e=this.__data__,r=Vr(e,t);return!(r<0)&&(r==e.length-1?e.pop():Kt.call(e,r,1),--this.size,!0)},Fr.prototype.get=function(t){var e=this.__data__,r=Vr(e,t);return r<0?void 0:e[r][1]},Fr.prototype.has=function(t){return Vr(this.__data__,t)>-1},Fr.prototype.set=function(t,e){var r=this.__data__,n=Vr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ir,map:new(dr||Fr),string:new Ir}},Cr.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Cr.prototype.get=function(t){return Ji(this,t).get(t)},Cr.prototype.has=function(t){return Ji(this,t).has(t)},Cr.prototype.set=function(t,e){var r=Ji(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Nr.prototype.add=Nr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Fr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Fr){var n=r.__data__;if(!dr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Cr(n)}return r.set(t,e),this.size=r.size,this};var tn=_i(fn),en=_i(cn,!0);function rn(t,e){var r=!0;return tn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function nn(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===u?a==a&&!Ja(a):r(a,u)))var u=a,s=o}return s}function on(t,e){var r=[];return tn(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function an(t,e,r,n,i){var o=-1,a=t.length;for(r||(r=ao),i||(i=[]);++o<a;){var u=t[o];e>0&&r(u)?e>1?an(u,e-1,r,n,i):pe(i,u):n||(i[i.length]=u)}return i}var un=Si(),sn=Si(!0);function fn(t,e){return t&&un(t,e,Mu)}function cn(t,e){return t&&sn(t,e,Mu)}function hn(t,e){return ce(e,(function(e){return Ga(t[e])}))}function ln(t,e){for(var r=0,n=(e=si(e,t)).length;null!=t&&r<n;)t=t[Po(e[r++])];return r&&r==n?t:void 0}function dn(t,e,r){var n=e(t);return Fa(t)?n:pe(n,r(t))}function pn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jt&&Jt in pt(t)?function(t){var e=St.call(t,Jt),r=t[Jt];try{t[Jt]=void 0;var n=!0}catch(t){}var i=kt.call(t);n&&(e?t[Jt]=r:delete t[Jt]);return i}(t):function(t){return kt.call(t)}(t)}function mn(t,e){return t>e}function vn(t,e){return null!=t&&St.call(t,e)}function yn(t,e){return null!=t&&e in pt(t)}function gn(t,e,r){for(var i=r?le:he,o=t[0].length,a=t.length,u=a,s=n(a),f=1/0,c=[];u--;){var h=t[u];u&&e&&(h=de(h,xe(e))),f=ur(h.length,f),s[u]=!r&&(e||o>=120&&h.length>=120)?new Nr(u&&h):void 0}h=t[0];var l=-1,d=s[0];t:for(;++l<o&&c.length<f;){var p=h[l],m=e?e(p):p;if(p=r||0!==p?p:0,!(d?Ie(d,m):i(c,m,r))){for(u=a;--u;){var v=s[u];if(!(v?Ie(v,m):i(t[u],m,r)))continue t}d&&d.push(m),c.push(p)}}return c}function bn(t,e,r){var n=null==(t=yo(t,e=si(e,t)))?t:t[Po(Bo(e))];return null==n?void 0:oe(n,t,r)}function wn(t){return Wa(t)&&pn(t)==s}function Mn(t,e,r,n,i){return t===e||(null==t||null==e||!Wa(t)&&!Wa(e)?t!=t&&e!=e:function(t,e,r,n,i,o){var a=Fa(t),u=Fa(e),d=a?f:no(t),p=u?f:no(e),_=(d=d==s?y:d)==y,E=(p=p==s?y:p)==y,k=d==p;if(k&&Da(t)){if(!Da(e))return!1;a=!0,_=!1}if(k&&!_)return o||(o=new qr),a||Qa(t)?Vi(t,e,r,n,i,o):function(t,e,r,n,i,o,a){switch(r){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case S:return!(t.byteLength!=e.byteLength||!o(new Ft(t),new Ft(e)));case c:case h:case v:return Aa(+t,+e);case l:return t.name==e.name&&t.message==e.message;case g:case w:return t==e+"";case m:var u=Ge;case b:var s=1&n;if(u||(u=Ve),t.size!=e.size&&!s)return!1;var f=a.get(t);if(f)return f==e;n|=2,a.set(t,e);var d=Vi(u(t),u(e),n,i,o,a);return a.delete(t),d;case M:if(kr)return kr.call(t)==kr.call(e)}return!1}(t,e,d,r,n,i,o);if(!(1&r)){var P=_&&St.call(t,"__wrapped__"),j=E&&St.call(e,"__wrapped__");if(P||j){var R=P?t.value():t,A=j?e.value():e;return o||(o=new qr),i(R,A,r,n,o)}}if(!k)return!1;return o||(o=new qr),function(t,e,r,n,i,o){var a=1&r,u=Hi(t),s=u.length,f=Hi(e).length;if(s!=f&&!a)return!1;var c=s;for(;c--;){var h=u[c];if(!(a?h in e:St.call(e,h)))return!1}var l=o.get(t),d=o.get(e);if(l&&d)return l==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);var m=a;for(;++c<s;){h=u[c];var v=t[h],y=e[h];if(n)var g=a?n(y,v,h,e,t,o):n(v,y,h,t,e,o);if(!(void 0===g?v===y||i(v,y,r,n,o):g)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,r,n,i,o)}(t,e,r,n,Mn,i))}function _n(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=pt(t);i--;){var u=r[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var s=(u=r[i])[0],f=t[s],c=u[1];if(a&&u[2]){if(void 0===f&&!(s in t))return!1}else{var h=new qr;if(n)var l=n(f,c,s,t,e,h);if(!(void 0===l?Mn(c,f,3,n,h):l))return!1}}return!0}function Sn(t){return!(!Va(t)||(e=t,Et&&Et in e))&&(Ga(t)?Rt:at).test(jo(t));var e}function On(t){return"function"==typeof t?t:null==t?Zu:"object"==typeof t?Fa(t)?An(t[0],t[1]):Rn(t):rs(t)}function En(t){if(!lo(t))return or(t);var e=[];for(var r in pt(t))St.call(t,r)&&"constructor"!=r&&e.push(r);return e}function kn(t){if(!Va(t))return function(t){var e=[];if(null!=t)for(var r in pt(t))e.push(r);return e}(t);var e=lo(t),r=[];for(var n in t)("constructor"!=n||!e&&St.call(t,n))&&r.push(n);return r}function Pn(t,e){return t<e}function jn(t,e){var r=-1,i=Na(t)?n(t.length):[];return tn(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Rn(t){var e=Qi(t);return 1==e.length&&e[0][2]?mo(e[0][0],e[0][1]):function(r){return r===t||_n(r,t,e)}}function An(t,e){return fo(t)&&po(e)?mo(Po(t),e):function(r){var n=vu(r,t);return void 0===n&&n===e?yu(r,t):Mn(e,n,3)}}function xn(t,e,r,n,i){t!==e&&un(e,(function(o,a){if(i||(i=new qr),Va(o))!function(t,e,r,n,i,o,a){var u=bo(t,r),s=bo(e,r),f=a.get(s);if(f)return void Ur(t,r,f);var c=o?o(u,s,r+"",t,e,a):void 0,h=void 0===c;if(h){var l=Fa(s),d=!l&&Da(s),p=!l&&!d&&Qa(s);c=s,l||d||p?Fa(u)?c=u:qa(u)?c=gi(u):d?(h=!1,c=li(s,!0)):p?(h=!1,c=pi(s,!0)):c=[]:Ka(s)||Ia(s)?(c=u,Ia(u)?c=uu(u):Va(u)&&!Ga(u)||(c=oo(s))):h=!1}h&&(a.set(s,c),i(c,s,n,o,a),a.delete(s));Ur(t,r,c)}(t,e,a,r,xn,n,i);else{var u=n?n(bo(t,a),o,a+"",t,e,i):void 0;void 0===u&&(u=o),Ur(t,a,u)}}),_u)}function Tn(t,e){var r=t.length;if(r)return uo(e+=e<0?r:0,r)?t[e]:void 0}function In(t,e,r){e=e.length?de(e,(function(t){return Fa(t)?function(e){return ln(e,1===t.length?t[0]:t)}:t})):[Zu];var n=-1;return e=de(e,xe($i())),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(jn(t,(function(t,r,i){return{criteria:de(e,(function(e){return e(t)})),index:++n,value:t}})),(function(t,e){return function(t,e,r){var n=-1,i=t.criteria,o=e.criteria,a=i.length,u=r.length;for(;++n<a;){var s=mi(i[n],o[n]);if(s){if(n>=u)return s;var f=r[n];return s*("desc"==f?-1:1)}}return t.index-e.index}(t,e,r)}))}function Fn(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],u=ln(t,a);r(u,a)&&Un(o,si(a,t),u)}return o}function Cn(t,e,r,n){var i=n?_e:Me,o=-1,a=e.length,u=t;for(t===e&&(e=gi(e)),r&&(u=de(t,xe(r)));++o<a;)for(var s=0,f=e[o],c=r?r(f):f;(s=i(u,c,s,n))>-1;)u!==t&&Kt.call(u,s,1),Kt.call(t,s,1);return t}function Nn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;uo(i)?Kt.call(t,i,1):ti(t,i)}}return t}function qn(t,e){return t+tr(cr()*(e-t+1))}function Dn(t,e){var r="";if(!t||e<1||e>9007199254740991)return r;do{e%2&&(r+=t),(e=tr(e/2))&&(t+=t)}while(e);return r}function Ln(t,e){return _o(vo(t,e,Zu),t+"")}function Bn(t){return Lr(Au(t))}function Gn(t,e){var r=Au(t);return Eo(r,Yr(e,0,r.length))}function Un(t,e,r,n){if(!Va(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,u=t;null!=u&&++i<o;){var s=Po(e[i]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(i!=a){var c=u[s];void 0===(f=n?n(c,s,u):void 0)&&(f=Va(c)?c:uo(e[i+1])?[]:{})}zr(u,s,f),u=u[s]}return t}var zn=gr?function(t,e){return gr.set(t,e),t}:Zu,Vn=ge?function(t,e){return ge(t,"toString",{configurable:!0,enumerable:!1,value:Vu(e),writable:!0})}:Zu;function Wn(t){return Eo(Au(t))}function Hn(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=n(o);++i<o;)a[i]=t[i+e];return a}function Zn(t,e){var r;return tn(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function Kn(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=t[o];null!==a&&!Ja(a)&&(r?a<=e:a<e)?n=o+1:i=o}return i}return Yn(t,e,Zu,r)}function Yn(t,e,r,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=r(e))!=e,u=null===e,s=Ja(e),f=void 0===e;i<o;){var c=tr((i+o)/2),h=r(t[c]),l=void 0!==h,d=null===h,p=h==h,m=Ja(h);if(a)var v=n||p;else v=f?p&&(n||l):u?p&&l&&(n||!d):s?p&&l&&!d&&(n||!m):!d&&!m&&(n?h<=e:h<e);v?i=c+1:o=c}return ur(o,4294967294)}function Xn(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r],u=e?e(a):a;if(!r||!Aa(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function $n(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jn(t){if("string"==typeof t)return t;if(Fa(t))return de(t,Jn)+"";if(Ja(t))return Pr?Pr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qn(t,e,r){var n=-1,i=he,o=t.length,a=!0,u=[],s=u;if(r)a=!1,i=le;else if(o>=200){var f=e?null:Di(t);if(f)return Ve(f);a=!1,i=Ie,s=new Nr}else s=e?[]:u;t:for(;++n<o;){var c=t[n],h=e?e(c):c;if(c=r||0!==c?c:0,a&&h==h){for(var l=s.length;l--;)if(s[l]===h)continue t;e&&s.push(h),u.push(c)}else i(s,h,r)||(s!==u&&s.push(h),u.push(c))}return u}function ti(t,e){return null==(t=yo(t,e=si(e,t)))||delete t[Po(Bo(e))]}function ei(t,e,r,n){return Un(t,e,r(ln(t,e)),n)}function ri(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?Hn(t,n?0:o,n?o+1:i):Hn(t,n?o+1:0,n?i:o)}function ni(t,e){var r=t;return r instanceof Tr&&(r=r.value()),me(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),r)}function ii(t,e,r){var i=t.length;if(i<2)return i?Qn(t[0]):[];for(var o=-1,a=n(i);++o<i;)for(var u=t[o],s=-1;++s<i;)s!=o&&(a[o]=Qr(a[o]||u,t[s],e,r));return Qn(an(a,1),e,r)}function oi(t,e,r){for(var n=-1,i=t.length,o=e.length,a={};++n<i;){var u=n<o?e[n]:void 0;r(a,t[n],u)}return a}function ai(t){return qa(t)?t:[]}function ui(t){return"function"==typeof t?t:Zu}function si(t,e){return Fa(t)?t:fo(t,e)?[t]:ko(su(t))}var fi=Ln;function ci(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Hn(t,e,r)}var hi=ke||function(t){return Zt.clearTimeout(t)};function li(t,e){if(e)return t.slice();var r=t.length,n=Nt?Nt(r):new t.constructor(r);return t.copy(n),n}function di(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function pi(t,e){var r=e?di(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function mi(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Ja(t),a=void 0!==e,u=null===e,s=e==e,f=Ja(e);if(!u&&!f&&!o&&t>e||o&&a&&s&&!u&&!f||n&&a&&s||!r&&s||!i)return 1;if(!n&&!o&&!f&&t<e||f&&r&&i&&!n&&!o||u&&r&&i||!a&&i||!s)return-1}return 0}function vi(t,e,r,i){for(var o=-1,a=t.length,u=r.length,s=-1,f=e.length,c=ar(a-u,0),h=n(f+c),l=!i;++s<f;)h[s]=e[s];for(;++o<u;)(l||o<a)&&(h[r[o]]=t[o]);for(;c--;)h[s++]=t[o++];return h}function yi(t,e,r,i){for(var o=-1,a=t.length,u=-1,s=r.length,f=-1,c=e.length,h=ar(a-s,0),l=n(h+c),d=!i;++o<h;)l[o]=t[o];for(var p=o;++f<c;)l[p+f]=e[f];for(;++u<s;)(d||o<a)&&(l[p+r[u]]=t[o++]);return l}function gi(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function bi(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var u=e[o],s=n?n(r[u],t[u],u,r,t):void 0;void 0===s&&(s=t[u]),i?Zr(r,u,s):zr(r,u,s)}return r}function wi(t,e){return function(r,n){var i=Fa(r)?ae:Wr,o=e?e():{};return i(r,t,$i(n,2),o)}}function Mi(t){return Ln((function(e,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),e=pt(e);++n<i;){var u=r[n];u&&t(e,u,n,o)}return e}))}function _i(t,e){return function(r,n){if(null==r)return r;if(!Na(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=pt(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Si(t){return function(e,r,n){for(var i=-1,o=pt(e),a=n(e),u=a.length;u--;){var s=a[t?u:++i];if(!1===r(o[s],s,o))break}return e}}function Oi(t){return function(e){var r=Be(e=su(e))?Ze(e):void 0,n=r?r[0]:e.charAt(0),i=r?ci(r,1).join(""):e.slice(1);return n[t]()+i}}function Ei(t){return function(e){return me(Gu(Iu(e).replace(Tt,"")),t,"")}}function ki(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Rr(t.prototype),n=t.apply(r,e);return Va(n)?n:r}}function Pi(t){return function(e,r,n){var i=pt(e);if(!Na(e)){var o=$i(r,3);e=Mu(e),r=function(t){return o(i[t],t,i)}}var a=t(e,r,n);return a>-1?i[o?e[a]:a]:void 0}}function ji(t){return Wi((function(e){var r=e.length,n=r,i=xr.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new yt(o);if(i&&!u&&"wrapper"==Yi(a))var u=new xr([],!0)}for(n=u?n:r;++n<r;){var s=Yi(a=e[n]),f="wrapper"==s?Ki(a):void 0;u=f&&co(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?u[Yi(f[0])].apply(u,f[3]):1==a.length&&co(a)?u[s]():u.thru(a)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&Fa(n))return u.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}}))}function Ri(t,e,r,i,o,a,u,s,f,c){var h=128&e,l=1&e,d=2&e,p=24&e,m=512&e,v=d?void 0:ki(t);return function y(){for(var g=arguments.length,b=n(g),w=g;w--;)b[w]=arguments[w];if(p)var M=Xi(y),_=Ne(b,M);if(i&&(b=vi(b,i,o,p)),a&&(b=yi(b,a,u,p)),g-=_,p&&g<c){var S=ze(b,M);return Ni(t,e,Ri,y.placeholder,r,b,S,s,f,c-g)}var O=l?r:this,E=d?O[t]:t;return g=b.length,s?b=go(b,s):m&&g>1&&b.reverse(),h&&f<g&&(b.length=f),this&&this!==Zt&&this instanceof y&&(E=v||ki(E)),E.apply(O,b)}}function Ai(t,e){return function(r,n){return function(t,e,r,n){return fn(t,(function(t,i,o){e(n,r(t),i,o)})),n}(r,t,e(n),{})}}function xi(t,e){return function(r,n){var i;if(void 0===r&&void 0===n)return e;if(void 0!==r&&(i=r),void 0!==n){if(void 0===i)return n;"string"==typeof r||"string"==typeof n?(r=Jn(r),n=Jn(n)):(r=$n(r),n=$n(n)),i=t(r,n)}return i}}function Ti(t){return Wi((function(e){return e=de(e,xe($i())),Ln((function(r){var n=this;return t(e,(function(t){return oe(t,n,r)}))}))}))}function Ii(t,e){var r=(e=void 0===e?" ":Jn(e)).length;if(r<2)return r?Dn(e,t):e;var n=Dn(e,Qe(t/He(e)));return Be(e)?ci(Ze(n),0,t).join(""):n.slice(0,t)}function Fi(t){return function(e,r,i){return i&&"number"!=typeof i&&so(e,r,i)&&(r=i=void 0),e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r,i){for(var o=-1,a=ar(Qe((e-t)/(r||1)),0),u=n(a);a--;)u[i?a:++o]=t,t+=r;return u}(e,r,i=void 0===i?e<r?1:-1:nu(i),t)}}function Ci(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=au(e),r=au(r)),t(e,r)}}function Ni(t,e,r,n,i,o,a,u,s,f){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,u,s,f],l=r.apply(void 0,h);return co(t)&&wo(l,h),l.placeholder=n,So(l,t,e)}function qi(t){var e=dt[t];return function(t,r){if(t=au(t),(r=null==r?0:ur(iu(r),292))&&nr(t)){var n=(su(t)+"e").split("e");return+((n=(su(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Di=mr&&1/Ve(new mr([,-0]))[1]==1/0?function(t){return new mr(t)}:Ju;function Li(t){return function(e){var r=no(e);return r==m?Ge(e):r==b?We(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Bi(t,e,r,i,u,s,f,c){var h=2&e;if(!h&&"function"!=typeof t)throw new yt(o);var l=i?i.length:0;if(l||(e&=-97,i=u=void 0),f=void 0===f?f:ar(iu(f),0),c=void 0===c?c:iu(c),l-=u?u.length:0,64&e){var d=i,p=u;i=u=void 0}var m=h?void 0:Ki(t),v=[t,e,r,i,u,d,p,s,f,c];if(m&&function(t,e){var r=t[1],n=e[1],i=r|n,o=i<131,u=128==n&&8==r||128==n&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!o&&!u)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var f=t[3];t[3]=f?vi(f,s,e[4]):s,t[4]=f?ze(t[3],a):e[4]}(s=e[5])&&(f=t[5],t[5]=f?yi(f,s,e[6]):s,t[6]=f?ze(t[5],a):e[6]);(s=e[7])&&(t[7]=s);128&n&&(t[8]=null==t[8]?e[8]:ur(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,m),t=v[0],e=v[1],r=v[2],i=v[3],u=v[4],!(c=v[9]=void 0===v[9]?h?0:t.length:ar(v[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)y=8==e||16==e?function(t,e,r){var i=ki(t);return function o(){for(var a=arguments.length,u=n(a),s=a,f=Xi(o);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==f&&u[a-1]!==f?[]:ze(u,f);if((a-=c.length)<r)return Ni(t,e,Ri,o.placeholder,void 0,u,c,void 0,void 0,r-a);var h=this&&this!==Zt&&this instanceof o?i:t;return oe(h,this,u)}}(t,e,c):32!=e&&33!=e||u.length?Ri.apply(void 0,v):function(t,e,r,i){var o=1&e,a=ki(t);return function e(){for(var u=-1,s=arguments.length,f=-1,c=i.length,h=n(c+s),l=this&&this!==Zt&&this instanceof e?a:t;++f<c;)h[f]=i[f];for(;s--;)h[f++]=arguments[++u];return oe(l,o?r:this,h)}}(t,e,r,i);else var y=function(t,e,r){var n=1&e,i=ki(t);return function e(){var o=this&&this!==Zt&&this instanceof e?i:t;return o.apply(n?r:this,arguments)}}(t,e,r);return So((m?zn:wo)(y,v),t,e)}function Gi(t,e,r,n){return void 0===t||Aa(t,wt[r])&&!St.call(n,r)?e:t}function Ui(t,e,r,n,i,o){return Va(t)&&Va(e)&&(o.set(e,t),xn(t,e,void 0,Ui,o),o.delete(e)),t}function zi(t){return Ka(t)?void 0:t}function Vi(t,e,r,n,i,o){var a=1&r,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var f=o.get(t),c=o.get(e);if(f&&c)return f==e&&c==t;var h=-1,l=!0,d=2&r?new Nr:void 0;for(o.set(t,e),o.set(e,t);++h<u;){var p=t[h],m=e[h];if(n)var v=a?n(m,p,h,e,t,o):n(p,m,h,t,e,o);if(void 0!==v){if(v)continue;l=!1;break}if(d){if(!ye(e,(function(t,e){if(!Ie(d,e)&&(p===t||i(p,t,r,n,o)))return d.push(e)}))){l=!1;break}}else if(p!==m&&!i(p,m,r,n,o)){l=!1;break}}return o.delete(t),o.delete(e),l}function Wi(t){return _o(vo(t,void 0,Co),t+"")}function Hi(t){return dn(t,Mu,eo)}function Zi(t){return dn(t,_u,ro)}var Ki=gr?function(t){return gr.get(t)}:Ju;function Yi(t){for(var e=t.name+"",r=br[e],n=St.call(br,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function Xi(t){return(St.call(jr,"placeholder")?jr:t).placeholder}function $i(){var t=jr.iteratee||Ku;return t=t===Ku?On:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Qi(t){for(var e=Mu(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,po(i)]}return e}function to(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Sn(r)?r:void 0}var eo=er?function(t){return null==t?[]:(t=pt(t),ce(er(t),(function(e){return Ht.call(t,e)})))}:os,ro=er?function(t){for(var e=[];t;)pe(e,eo(t)),t=Ut(t);return e}:os,no=pn;function io(t,e,r){for(var n=-1,i=(e=si(e,t)).length,o=!1;++n<i;){var a=Po(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&za(i)&&uo(a,i)&&(Fa(t)||Ia(t))}function oo(t){return"function"!=typeof t.constructor||lo(t)?{}:Rr(Ut(t))}function ao(t){return Fa(t)||Ia(t)||!!(Yt&&t&&t[Yt])}function uo(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&st.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,r){if(!Va(r))return!1;var n=typeof e;return!!("number"==n?Na(r)&&uo(e,r.length):"string"==n&&e in r)&&Aa(r[e],t)}function fo(t,e){if(Fa(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ja(t))||(V.test(t)||!z.test(t)||null!=e&&t in pt(e))}function co(t){var e=Yi(t),r=jr[e];if("function"!=typeof r||!(e in Tr.prototype))return!1;if(t===r)return!0;var n=Ki(r);return!!n&&t===n[0]}(lr&&no(new lr(new ArrayBuffer(1)))!=O||dr&&no(new dr)!=m||pr&&"[object Promise]"!=no(pr.resolve())||mr&&no(new mr)!=b||vr&&no(new vr)!=_)&&(no=function(t){var e=pn(t),r=e==y?t.constructor:void 0,n=r?jo(r):"";if(n)switch(n){case wr:return O;case Mr:return m;case _r:return"[object Promise]";case Sr:return b;case Or:return _}return e});var ho=Mt?Ga:as;function lo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wt)}function po(t){return t==t&&!Va(t)}function mo(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in pt(r)))}}function vo(t,e,r){return e=ar(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=ar(i.length-e,0),u=n(a);++o<a;)u[o]=i[e+o];o=-1;for(var s=n(e+1);++o<e;)s[o]=i[o];return s[e]=r(u),oe(t,this,s)}}function yo(t,e){return e.length<2?t:ln(t,Hn(e,0,-1))}function go(t,e){for(var r=t.length,n=ur(e.length,r),i=gi(t);n--;){var o=e[n];t[n]=uo(o,r)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var wo=Oo(zn),Mo=Je||function(t,e){return Zt.setTimeout(t,e)},_o=Oo(Vn);function So(t,e,r){var n=e+"";return _o(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return ue(u,(function(r){var n="_."+r[0];e&r[1]&&!he(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match($);return e?e[1].split(J):[]}(n),r)))}function Oo(t){var e=0,r=0;return function(){var n=sr(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Eo(t,e){var r=-1,n=t.length,i=n-1;for(e=void 0===e?n:e;++r<e;){var o=qn(r,i),a=t[o];t[o]=t[r],t[r]=a}return t.length=e,t}var ko=function(t){var e=Oa(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(W,(function(t,r,n,i){e.push(n?i.replace(et,"$1"):r||t)})),e}));function Po(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function jo(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ro(t){if(t instanceof Tr)return t.clone();var e=new xr(t.__wrapped__,t.__chain__);return e.__actions__=gi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ao=Ln((function(t,e){return qa(t)?Qr(t,an(e,1,qa,!0)):[]})),xo=Ln((function(t,e){var r=Bo(e);return qa(r)&&(r=void 0),qa(t)?Qr(t,an(e,1,qa,!0),$i(r,2)):[]})),To=Ln((function(t,e){var r=Bo(e);return qa(r)&&(r=void 0),qa(t)?Qr(t,an(e,1,qa,!0),void 0,r):[]}));function Io(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),we(t,$i(e,3),i)}function Fo(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n-1;return void 0!==r&&(i=iu(r),i=r<0?ar(n+i,0):ur(i,n-1)),we(t,$i(e,3),i,!0)}function Co(t){return(null==t?0:t.length)?an(t,1):[]}function No(t){return t&&t.length?t[0]:void 0}var qo=Ln((function(t){var e=de(t,ai);return e.length&&e[0]===t[0]?gn(e):[]})),Do=Ln((function(t){var e=Bo(t),r=de(t,ai);return e===Bo(r)?e=void 0:r.pop(),r.length&&r[0]===t[0]?gn(r,$i(e,2)):[]})),Lo=Ln((function(t){var e=Bo(t),r=de(t,ai);return(e="function"==typeof e?e:void 0)&&r.pop(),r.length&&r[0]===t[0]?gn(r,void 0,e):[]}));function Bo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Go=Ln(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Cn(t,e):t}var zo=Wi((function(t,e){var r=null==t?0:t.length,n=Kr(t,e);return Nn(t,de(e,(function(t){return uo(t,r)?+t:t})).sort(mi)),n}));function Vo(t){return null==t?t:hr.call(t)}var Wo=Ln((function(t){return Qn(an(t,1,qa,!0))})),Ho=Ln((function(t){var e=Bo(t);return qa(e)&&(e=void 0),Qn(an(t,1,qa,!0),$i(e,2))})),Zo=Ln((function(t){var e=Bo(t);return e="function"==typeof e?e:void 0,Qn(an(t,1,qa,!0),void 0,e)}));function Ko(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(qa(t))return e=ar(t.length,e),!0})),Re(e,(function(e){return de(t,Ee(e))}))}function Yo(t,e){if(!t||!t.length)return[];var r=Ko(t);return null==e?r:de(r,(function(t){return oe(e,void 0,t)}))}var Xo=Ln((function(t,e){return qa(t)?Qr(t,e):[]})),$o=Ln((function(t){return ii(ce(t,qa))})),Jo=Ln((function(t){var e=Bo(t);return qa(e)&&(e=void 0),ii(ce(t,qa),$i(e,2))})),Qo=Ln((function(t){var e=Bo(t);return e="function"==typeof e?e:void 0,ii(ce(t,qa),void 0,e)})),ta=Ln(Ko);var ea=Ln((function(t){var e=t.length,r=e>1?t[e-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Yo(t,r)}));function ra(t){var e=jr(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ia=Wi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,i=function(e){return Kr(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Tr&&uo(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new xr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=wi((function(t,e,r){St.call(t,r)?++t[r]:Zr(t,r,1)}));var aa=Pi(Io),ua=Pi(Fo);function sa(t,e){return(Fa(t)?ue:tn)(t,$i(e,3))}function fa(t,e){return(Fa(t)?se:en)(t,$i(e,3))}var ca=wi((function(t,e,r){St.call(t,r)?t[r].push(e):Zr(t,r,[e])}));var ha=Ln((function(t,e,r){var i=-1,o="function"==typeof e,a=Na(t)?n(t.length):[];return tn(t,(function(t){a[++i]=o?oe(e,t,r):bn(t,e,r)})),a})),la=wi((function(t,e,r){Zr(t,r,e)}));function da(t,e){return(Fa(t)?de:jn)(t,$i(e,3))}var pa=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]}));var ma=Ln((function(t,e){if(null==t)return[];var r=e.length;return r>1&&so(t,e[0],e[1])?e=[]:r>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),In(t,an(e,1),[])})),va=$e||function(){return Zt.Date.now()};function ya(t,e,r){return e=r?void 0:e,Bi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ga(t,e){var r;if("function"!=typeof e)throw new yt(o);return t=iu(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=void 0),r}}var ba=Ln((function(t,e,r){var n=1;if(r.length){var i=ze(r,Xi(ba));n|=32}return Bi(t,n,e,r,i)})),wa=Ln((function(t,e,r){var n=3;if(r.length){var i=ze(r,Xi(wa));n|=32}return Bi(e,n,t,r,i)}));function Ma(t,e,r){var n,i,a,u,s,f,c=0,h=!1,l=!1,d=!0;if("function"!=typeof t)throw new yt(o);function p(e){var r=n,o=i;return n=i=void 0,c=e,u=t.apply(o,r)}function m(t){return c=t,s=Mo(y,e),h?p(t):u}function v(t){var r=t-f;return void 0===f||r>=e||r<0||l&&t-c>=a}function y(){var t=va();if(v(t))return g(t);s=Mo(y,function(t){var r=e-(t-f);return l?ur(r,a-(t-c)):r}(t))}function g(t){return s=void 0,d&&n?p(t):(n=i=void 0,u)}function b(){var t=va(),r=v(t);if(n=arguments,i=this,f=t,r){if(void 0===s)return m(f);if(l)return hi(s),s=Mo(y,e),p(f)}return void 0===s&&(s=Mo(y,e)),u}return e=au(e)||0,Va(r)&&(h=!!r.leading,a=(l="maxWait"in r)?ar(au(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),b.cancel=function(){void 0!==s&&hi(s),c=0,n=f=i=s=void 0},b.flush=function(){return void 0===s?u:g(va())},b}var _a=Ln((function(t,e){return Jr(t,1,e)})),Sa=Ln((function(t,e,r){return Jr(t,au(e)||0,r)}));function Oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Oa.Cache||Cr),r}function Ea(t){if("function"!=typeof t)throw new yt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oa.Cache=Cr;var ka=fi((function(t,e){var r=(e=1==e.length&&Fa(e[0])?de(e[0],xe($i())):de(an(e,1),xe($i()))).length;return Ln((function(n){for(var i=-1,o=ur(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return oe(t,this,n)}))})),Pa=Ln((function(t,e){return Bi(t,32,void 0,e,ze(e,Xi(Pa)))})),ja=Ln((function(t,e){return Bi(t,64,void 0,e,ze(e,Xi(ja)))})),Ra=Wi((function(t,e){return Bi(t,256,void 0,void 0,void 0,e)}));function Aa(t,e){return t===e||t!=t&&e!=e}var xa=Ci(mn),Ta=Ci((function(t,e){return t>=e})),Ia=wn(function(){return arguments}())?wn:function(t){return Wa(t)&&St.call(t,"callee")&&!Ht.call(t,"callee")},Fa=n.isArray,Ca=Qt?xe(Qt):function(t){return Wa(t)&&pn(t)==S};function Na(t){return null!=t&&za(t.length)&&!Ga(t)}function qa(t){return Wa(t)&&Na(t)}var Da=rr||as,La=te?xe(te):function(t){return Wa(t)&&pn(t)==h};function Ba(t){if(!Wa(t))return!1;var e=pn(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Ga(t){if(!Va(t))return!1;var e=pn(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==iu(t)}function za(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Va(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Wa(t){return null!=t&&"object"==typeof t}var Ha=ee?xe(ee):function(t){return Wa(t)&&no(t)==m};function Za(t){return"number"==typeof t||Wa(t)&&pn(t)==v}function Ka(t){if(!Wa(t)||pn(t)!=y)return!1;var e=Ut(t);if(null===e)return!0;var r=St.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&_t.call(r)==Pt}var Ya=re?xe(re):function(t){return Wa(t)&&pn(t)==g};var Xa=ne?xe(ne):function(t){return Wa(t)&&no(t)==b};function $a(t){return"string"==typeof t||!Fa(t)&&Wa(t)&&pn(t)==w}function Ja(t){return"symbol"==typeof t||Wa(t)&&pn(t)==M}var Qa=ie?xe(ie):function(t){return Wa(t)&&za(t.length)&&!!Bt[pn(t)]};var tu=Ci(Pn),eu=Ci((function(t,e){return t<=e}));function ru(t){if(!t)return[];if(Na(t))return $a(t)?Ze(t):gi(t);if($t&&t[$t])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[$t]());var e=no(t);return(e==m?Ge:e==b?Ve:Au)(t)}function nu(t){return t?(t=au(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function iu(t){var e=nu(t),r=e%1;return e==e?r?e-r:e:0}function ou(t){return t?Yr(iu(t),0,4294967295):0}function au(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(Va(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Va(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ae(t);var r=ot.test(t);return r||ut.test(t)?Vt(t.slice(2),r?2:8):it.test(t)?NaN:+t}function uu(t){return bi(t,_u(t))}function su(t){return null==t?"":Jn(t)}var fu=Mi((function(t,e){if(lo(e)||Na(e))bi(e,Mu(e),t);else for(var r in e)St.call(e,r)&&zr(t,r,e[r])})),cu=Mi((function(t,e){bi(e,_u(e),t)})),hu=Mi((function(t,e,r,n){bi(e,_u(e),t,n)})),lu=Mi((function(t,e,r,n){bi(e,Mu(e),t,n)})),du=Wi(Kr);var pu=Ln((function(t,e){t=pt(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(n=1);++r<n;)for(var o=e[r],a=_u(o),u=-1,s=a.length;++u<s;){var f=a[u],c=t[f];(void 0===c||Aa(c,wt[f])&&!St.call(t,f))&&(t[f]=o[f])}return t})),mu=Ln((function(t){return t.push(void 0,Ui),oe(Ou,void 0,t)}));function vu(t,e,r){var n=null==t?void 0:ln(t,e);return void 0===n?r:n}function yu(t,e){return null!=t&&io(t,e,yn)}var gu=Ai((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),t[e]=r}),Vu(Zu)),bu=Ai((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),St.call(t,e)?t[e].push(r):t[e]=[r]}),$i),wu=Ln(bn);function Mu(t){return Na(t)?Dr(t):En(t)}function _u(t){return Na(t)?Dr(t,!0):kn(t)}var Su=Mi((function(t,e,r){xn(t,e,r)})),Ou=Mi((function(t,e,r,n){xn(t,e,r,n)})),Eu=Wi((function(t,e){var r={};if(null==t)return r;var n=!1;e=de(e,(function(e){return e=si(e,t),n||(n=e.length>1),e})),bi(t,Zi(t),r),n&&(r=Xr(r,7,zi));for(var i=e.length;i--;)ti(r,e[i]);return r}));var ku=Wi((function(t,e){return null==t?{}:function(t,e){return Fn(t,e,(function(e,r){return yu(t,r)}))}(t,e)}));function Pu(t,e){if(null==t)return{};var r=de(Zi(t),(function(t){return[t]}));return e=$i(e),Fn(t,r,(function(t,r){return e(t,r[0])}))}var ju=Li(Mu),Ru=Li(_u);function Au(t){return null==t?[]:Te(t,Mu(t))}var xu=Ei((function(t,e,r){return e=e.toLowerCase(),t+(r?Tu(e):e)}));function Tu(t){return Bu(su(t).toLowerCase())}function Iu(t){return(t=su(t))&&t.replace(ft,qe).replace(It,"")}var Fu=Ei((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Cu=Ei((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Nu=Oi("toLowerCase");var qu=Ei((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));var Du=Ei((function(t,e,r){return t+(r?" ":"")+Bu(e)}));var Lu=Ei((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Bu=Oi("toUpperCase");function Gu(t,e,r){return t=su(t),void 0===(e=r?void 0:e)?function(t){return qt.test(t)}(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var Uu=Ln((function(t,e){try{return oe(t,void 0,e)}catch(t){return Ba(t)?t:new Y(t)}})),zu=Wi((function(t,e){return ue(e,(function(e){e=Po(e),Zr(t,e,ba(t[e],t))})),t}));function Vu(t){return function(){return t}}var Wu=ji(),Hu=ji(!0);function Zu(t){return t}function Ku(t){return On("function"==typeof t?t:Xr(t,1))}var Yu=Ln((function(t,e){return function(r){return bn(r,t,e)}})),Xu=Ln((function(t,e){return function(r){return bn(t,r,e)}}));function $u(t,e,r){var n=Mu(e),i=hn(e,n);null!=r||Va(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=hn(e,Mu(e)));var o=!(Va(r)&&"chain"in r&&!r.chain),a=Ga(t);return ue(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=gi(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,pe([this.value()],arguments))})})),t}function Ju(){}var Qu=Ti(de),ts=Ti(fe),es=Ti(ye);function rs(t){return fo(t)?Ee(Po(t)):function(t){return function(e){return ln(e,t)}}(t)}var ns=Fi(),is=Fi(!0);function os(){return[]}function as(){return!1}var us=xi((function(t,e){return t+e}),0),ss=qi("ceil"),fs=xi((function(t,e){return t/e}),1),cs=qi("floor");var hs,ls=xi((function(t,e){return t*e}),1),ds=qi("round"),ps=xi((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new yt(o);return t=iu(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=ya,jr.assign=fu,jr.assignIn=cu,jr.assignInWith=hu,jr.assignWith=lu,jr.at=du,jr.before=ga,jr.bind=ba,jr.bindAll=zu,jr.bindKey=wa,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fa(t)?t:[t]},jr.chain=ra,jr.chunk=function(t,e,r){e=(r?so(t,e,r):void 0===e)?1:ar(iu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,u=n(Qe(i/e));o<i;)u[a++]=Hn(t,o,o+=e);return u},jr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},jr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Fa(r)?gi(r):[r],an(e,1))},jr.cond=function(t){var e=null==t?0:t.length,r=$i();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new yt(o);return[r(t[0]),t[1]]})):[],Ln((function(r){for(var n=-1;++n<e;){var i=t[n];if(oe(i[0],this,r))return oe(i[1],this,r)}}))},jr.conforms=function(t){return function(t){var e=Mu(t);return function(r){return $r(r,t,e)}}(Xr(t,1))},jr.constant=Vu,jr.countBy=oa,jr.create=function(t,e){var r=Rr(t);return null==e?r:Hr(r,e)},jr.curry=function t(e,r,n){var i=Bi(e,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},jr.curryRight=function t(e,r,n){var i=Bi(e,16,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},jr.debounce=Ma,jr.defaults=pu,jr.defaultsDeep=mu,jr.defer=_a,jr.delay=Sa,jr.difference=Ao,jr.differenceBy=xo,jr.differenceWith=To,jr.drop=function(t,e,r){var n=null==t?0:t.length;return n?Hn(t,(e=r||void 0===e?1:iu(e))<0?0:e,n):[]},jr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?Hn(t,0,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e):[]},jr.dropRightWhile=function(t,e){return t&&t.length?ri(t,$i(e,3),!0,!0):[]},jr.dropWhile=function(t,e){return t&&t.length?ri(t,$i(e,3),!0):[]},jr.fill=function(t,e,r,n){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&so(t,e,r)&&(r=0,n=i),function(t,e,r,n){var i=t.length;for((r=iu(r))<0&&(r=-r>i?0:i+r),(n=void 0===n||n>i?i:iu(n))<0&&(n+=i),n=r>n?0:ou(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},jr.filter=function(t,e){return(Fa(t)?ce:on)(t,$i(e,3))},jr.flatMap=function(t,e){return an(da(t,e),1)},jr.flatMapDeep=function(t,e){return an(da(t,e),1/0)},jr.flatMapDepth=function(t,e,r){return r=void 0===r?1:iu(r),an(da(t,e),r)},jr.flatten=Co,jr.flattenDeep=function(t){return(null==t?0:t.length)?an(t,1/0):[]},jr.flattenDepth=function(t,e){return(null==t?0:t.length)?an(t,e=void 0===e?1:iu(e)):[]},jr.flip=function(t){return Bi(t,512)},jr.flow=Wu,jr.flowRight=Hu,jr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},jr.functions=function(t){return null==t?[]:hn(t,Mu(t))},jr.functionsIn=function(t){return null==t?[]:hn(t,_u(t))},jr.groupBy=ca,jr.initial=function(t){return(null==t?0:t.length)?Hn(t,0,-1):[]},jr.intersection=qo,jr.intersectionBy=Do,jr.intersectionWith=Lo,jr.invert=gu,jr.invertBy=bu,jr.invokeMap=ha,jr.iteratee=Ku,jr.keyBy=la,jr.keys=Mu,jr.keysIn=_u,jr.map=da,jr.mapKeys=function(t,e){var r={};return e=$i(e,3),fn(t,(function(t,n,i){Zr(r,e(t,n,i),t)})),r},jr.mapValues=function(t,e){var r={};return e=$i(e,3),fn(t,(function(t,n,i){Zr(r,n,e(t,n,i))})),r},jr.matches=function(t){return Rn(Xr(t,1))},jr.matchesProperty=function(t,e){return An(t,Xr(e,1))},jr.memoize=Oa,jr.merge=Su,jr.mergeWith=Ou,jr.method=Yu,jr.methodOf=Xu,jr.mixin=$u,jr.negate=Ea,jr.nthArg=function(t){return t=iu(t),Ln((function(e){return Tn(e,t)}))},jr.omit=Eu,jr.omitBy=function(t,e){return Pu(t,Ea($i(e)))},jr.once=function(t){return ga(2,t)},jr.orderBy=function(t,e,r,n){return null==t?[]:(Fa(e)||(e=null==e?[]:[e]),Fa(r=n?void 0:r)||(r=null==r?[]:[r]),In(t,e,r))},jr.over=Qu,jr.overArgs=ka,jr.overEvery=ts,jr.overSome=es,jr.partial=Pa,jr.partialRight=ja,jr.partition=pa,jr.pick=ku,jr.pickBy=Pu,jr.property=rs,jr.propertyOf=function(t){return function(e){return null==t?void 0:ln(t,e)}},jr.pull=Go,jr.pullAll=Uo,jr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Cn(t,e,$i(r,2)):t},jr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Cn(t,e,void 0,r):t},jr.pullAt=zo,jr.range=ns,jr.rangeRight=is,jr.rearg=Ra,jr.reject=function(t,e){return(Fa(t)?ce:on)(t,Ea($i(e,3)))},jr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=$i(e,3);++n<o;){var a=t[n];e(a,n,t)&&(r.push(a),i.push(n))}return Nn(t,i),r},jr.rest=function(t,e){if("function"!=typeof t)throw new yt(o);return Ln(t,e=void 0===e?e:iu(e))},jr.reverse=Vo,jr.sampleSize=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),(Fa(t)?Br:Gn)(t,e)},jr.set=function(t,e,r){return null==t?t:Un(t,e,r)},jr.setWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:Un(t,e,r,n)},jr.shuffle=function(t){return(Fa(t)?Gr:Wn)(t)},jr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&so(t,e,r)?(e=0,r=n):(e=null==e?0:iu(e),r=void 0===r?n:iu(r)),Hn(t,e,r)):[]},jr.sortBy=ma,jr.sortedUniq=function(t){return t&&t.length?Xn(t):[]},jr.sortedUniqBy=function(t,e){return t&&t.length?Xn(t,$i(e,2)):[]},jr.split=function(t,e,r){return r&&"number"!=typeof r&&so(t,e,r)&&(e=r=void 0),(r=void 0===r?4294967295:r>>>0)?(t=su(t))&&("string"==typeof e||null!=e&&!Ya(e))&&!(e=Jn(e))&&Be(t)?ci(Ze(t),0,r):t.split(e,r):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new yt(o);return e=null==e?0:ar(iu(e),0),Ln((function(r){var n=r[e],i=ci(r,0,e);return n&&pe(i,n),oe(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?Hn(t,1,e):[]},jr.take=function(t,e,r){return t&&t.length?Hn(t,0,(e=r||void 0===e?1:iu(e))<0?0:e):[]},jr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Hn(t,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e,n):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ri(t,$i(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ri(t,$i(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new yt(o);return Va(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ma(t,e,{leading:n,maxWait:e,trailing:i})},jr.thru=na,jr.toArray=ru,jr.toPairs=ju,jr.toPairsIn=Ru,jr.toPath=function(t){return Fa(t)?de(t,Po):Ja(t)?[t]:gi(ko(su(t)))},jr.toPlainObject=uu,jr.transform=function(t,e,r){var n=Fa(t),i=n||Da(t)||Qa(t);if(e=$i(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Va(t)&&Ga(o)?Rr(Ut(t)):{}}return(i?ue:fn)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return ya(t,1)},jr.union=Wo,jr.unionBy=Ho,jr.unionWith=Zo,jr.uniq=function(t){return t&&t.length?Qn(t):[]},jr.uniqBy=function(t,e){return t&&t.length?Qn(t,$i(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qn(t,void 0,e):[]},jr.unset=function(t,e){return null==t||ti(t,e)},jr.unzip=Ko,jr.unzipWith=Yo,jr.update=function(t,e,r){return null==t?t:ei(t,e,ui(r))},jr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:ei(t,e,ui(r),n)},jr.values=Au,jr.valuesIn=function(t){return null==t?[]:Te(t,_u(t))},jr.without=Xo,jr.words=Gu,jr.wrap=function(t,e){return Pa(ui(e),t)},jr.xor=$o,jr.xorBy=Jo,jr.xorWith=Qo,jr.zip=ta,jr.zipObject=function(t,e){return oi(t||[],e||[],zr)},jr.zipObjectDeep=function(t,e){return oi(t||[],e||[],Un)},jr.zipWith=ea,jr.entries=ju,jr.entriesIn=Ru,jr.extend=cu,jr.extendWith=hu,$u(jr,jr),jr.add=us,jr.attempt=Uu,jr.camelCase=xu,jr.capitalize=Tu,jr.ceil=ss,jr.clamp=function(t,e,r){return void 0===r&&(r=e,e=void 0),void 0!==r&&(r=(r=au(r))==r?r:0),void 0!==e&&(e=(e=au(e))==e?e:0),Yr(au(t),e,r)},jr.clone=function(t){return Xr(t,4)},jr.cloneDeep=function(t){return Xr(t,5)},jr.cloneDeepWith=function(t,e){return Xr(t,5,e="function"==typeof e?e:void 0)},jr.cloneWith=function(t,e){return Xr(t,4,e="function"==typeof e?e:void 0)},jr.conformsTo=function(t,e){return null==e||$r(t,e,Mu(e))},jr.deburr=Iu,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=fs,jr.endsWith=function(t,e,r){t=su(t),e=Jn(e);var n=t.length,i=r=void 0===r?n:Yr(iu(r),0,n);return(r-=e.length)>=0&&t.slice(r,i)==e},jr.eq=Aa,jr.escape=function(t){return(t=su(t))&&L.test(t)?t.replace(q,De):t},jr.escapeRegExp=function(t){return(t=su(t))&&Z.test(t)?t.replace(H,"\\$&"):t},jr.every=function(t,e,r){var n=Fa(t)?fe:rn;return r&&so(t,e,r)&&(e=void 0),n(t,$i(e,3))},jr.find=aa,jr.findIndex=Io,jr.findKey=function(t,e){return be(t,$i(e,3),fn)},jr.findLast=ua,jr.findLastIndex=Fo,jr.findLastKey=function(t,e){return be(t,$i(e,3),cn)},jr.floor=cs,jr.forEach=sa,jr.forEachRight=fa,jr.forIn=function(t,e){return null==t?t:un(t,$i(e,3),_u)},jr.forInRight=function(t,e){return null==t?t:sn(t,$i(e,3),_u)},jr.forOwn=function(t,e){return t&&fn(t,$i(e,3))},jr.forOwnRight=function(t,e){return t&&cn(t,$i(e,3))},jr.get=vu,jr.gt=xa,jr.gte=Ta,jr.has=function(t,e){return null!=t&&io(t,e,vn)},jr.hasIn=yu,jr.head=No,jr.identity=Zu,jr.includes=function(t,e,r,n){t=Na(t)?t:Au(t),r=r&&!n?iu(r):0;var i=t.length;return r<0&&(r=ar(i+r,0)),$a(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Me(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),Me(t,e,i)},jr.inRange=function(t,e,r){return e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r){return t>=ur(e,r)&&t<ar(e,r)}(t=au(t),e,r)},jr.invoke=wu,jr.isArguments=Ia,jr.isArray=Fa,jr.isArrayBuffer=Ca,jr.isArrayLike=Na,jr.isArrayLikeObject=qa,jr.isBoolean=function(t){return!0===t||!1===t||Wa(t)&&pn(t)==c},jr.isBuffer=Da,jr.isDate=La,jr.isElement=function(t){return Wa(t)&&1===t.nodeType&&!Ka(t)},jr.isEmpty=function(t){if(null==t)return!0;if(Na(t)&&(Fa(t)||"string"==typeof t||"function"==typeof t.splice||Da(t)||Qa(t)||Ia(t)))return!t.length;var e=no(t);if(e==m||e==b)return!t.size;if(lo(t))return!En(t).length;for(var r in t)if(St.call(t,r))return!1;return!0},jr.isEqual=function(t,e){return Mn(t,e)},jr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:void 0)?r(t,e):void 0;return void 0===n?Mn(t,e,void 0,r):!!n},jr.isError=Ba,jr.isFinite=function(t){return"number"==typeof t&&nr(t)},jr.isFunction=Ga,jr.isInteger=Ua,jr.isLength=za,jr.isMap=Ha,jr.isMatch=function(t,e){return t===e||_n(t,e,Qi(e))},jr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:void 0,_n(t,e,Qi(e),r)},jr.isNaN=function(t){return Za(t)&&t!=+t},jr.isNative=function(t){if(ho(t))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sn(t)},jr.isNil=function(t){return null==t},jr.isNull=function(t){return null===t},jr.isNumber=Za,jr.isObject=Va,jr.isObjectLike=Wa,jr.isPlainObject=Ka,jr.isRegExp=Ya,jr.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},jr.isSet=Xa,jr.isString=$a,jr.isSymbol=Ja,jr.isTypedArray=Qa,jr.isUndefined=function(t){return void 0===t},jr.isWeakMap=function(t){return Wa(t)&&no(t)==_},jr.isWeakSet=function(t){return Wa(t)&&"[object WeakSet]"==pn(t)},jr.join=function(t,e){return null==t?"":ir.call(t,e)},jr.kebabCase=Fu,jr.last=Bo,jr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n;return void 0!==r&&(i=(i=iu(r))<0?ar(n+i,0):ur(i,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):we(t,Se,i,!0)},jr.lowerCase=Cu,jr.lowerFirst=Nu,jr.lt=tu,jr.lte=eu,jr.max=function(t){return t&&t.length?nn(t,Zu,mn):void 0},jr.maxBy=function(t,e){return t&&t.length?nn(t,$i(e,2),mn):void 0},jr.mean=function(t){return Oe(t,Zu)},jr.meanBy=function(t,e){return Oe(t,$i(e,2))},jr.min=function(t){return t&&t.length?nn(t,Zu,Pn):void 0},jr.minBy=function(t,e){return t&&t.length?nn(t,$i(e,2),Pn):void 0},jr.stubArray=os,jr.stubFalse=as,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=ls,jr.nth=function(t,e){return t&&t.length?Tn(t,iu(e)):void 0},jr.noConflict=function(){return Zt._===this&&(Zt._=jt),this},jr.noop=Ju,jr.now=va,jr.pad=function(t,e,r){t=su(t);var n=(e=iu(e))?He(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Ii(tr(i),r)+t+Ii(Qe(i),r)},jr.padEnd=function(t,e,r){t=su(t);var n=(e=iu(e))?He(t):0;return e&&n<e?t+Ii(e-n,r):t},jr.padStart=function(t,e,r){t=su(t);var n=(e=iu(e))?He(t):0;return e&&n<e?Ii(e-n,r)+t:t},jr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),fr(su(t).replace(K,""),e||0)},jr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&so(t,e,r)&&(e=r=void 0),void 0===r&&("boolean"==typeof e?(r=e,e=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=nu(t),void 0===e?(e=t,t=0):e=nu(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var i=cr();return ur(t+i*(e-t+zt("1e-"+((i+"").length-1))),e)}return qn(t,e)},jr.reduce=function(t,e,r){var n=Fa(t)?me:Pe,i=arguments.length<3;return n(t,$i(e,4),r,i,tn)},jr.reduceRight=function(t,e,r){var n=Fa(t)?ve:Pe,i=arguments.length<3;return n(t,$i(e,4),r,i,en)},jr.repeat=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),Dn(su(t),e)},jr.replace=function(){var t=arguments,e=su(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,r){var n=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++n<i;){var o=null==t?void 0:t[Po(e[n])];void 0===o&&(n=i,o=r),t=Ga(o)?o.call(t):o}return t},jr.round=ds,jr.runInContext=t,jr.sample=function(t){return(Fa(t)?Lr:Bn)(t)},jr.size=function(t){if(null==t)return 0;if(Na(t))return $a(t)?He(t):t.length;var e=no(t);return e==m||e==b?t.size:En(t).length},jr.snakeCase=qu,jr.some=function(t,e,r){var n=Fa(t)?ye:Zn;return r&&so(t,e,r)&&(e=void 0),n(t,$i(e,3))},jr.sortedIndex=function(t,e){return Kn(t,e)},jr.sortedIndexBy=function(t,e,r){return Yn(t,e,$i(r,2))},jr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=Kn(t,e);if(n<r&&Aa(t[n],e))return n}return-1},jr.sortedLastIndex=function(t,e){return Kn(t,e,!0)},jr.sortedLastIndexBy=function(t,e,r){return Yn(t,e,$i(r,2),!0)},jr.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var r=Kn(t,e,!0)-1;if(Aa(t[r],e))return r}return-1},jr.startCase=Du,jr.startsWith=function(t,e,r){return t=su(t),r=null==r?0:Yr(iu(r),0,t.length),e=Jn(e),t.slice(r,r+e.length)==e},jr.subtract=ps,jr.sum=function(t){return t&&t.length?je(t,Zu):0},jr.sumBy=function(t,e){return t&&t.length?je(t,$i(e,2)):0},jr.template=function(t,e,r){var n=jr.templateSettings;r&&so(t,e,r)&&(e=void 0),t=su(t),e=hu({},e,n,Gi);var i,o,a=hu({},e.imports,n.imports,Gi),u=Mu(a),s=Te(a,u),f=0,c=e.interpolate||ct,h="__p += '",l=mt((e.escape||ct).source+"|"+c.source+"|"+(c===U?rt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),d="//# sourceURL="+(St.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lt+"]")+"\n";t.replace(l,(function(e,r,n,a,u,s){return n||(n=a),h+=t.slice(f,s).replace(ht,Le),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),u&&(o=!0,h+="';\n"+u+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),f=s+e.length,e})),h+="';\n";var p=St.call(e,"variable")&&e.variable;if(p){if(tt.test(p))throw new Y("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(I,""):h).replace(F,"$1").replace(C,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=Uu((function(){return lt(u,d+"return "+h).apply(void 0,s)}));if(m.source=h,Ba(m))throw m;return m},jr.times=function(t,e){if((t=iu(t))<1||t>9007199254740991)return[];var r=4294967295,n=ur(t,4294967295);t-=4294967295;for(var i=Re(n,e=$i(e));++r<t;)e(r);return i},jr.toFinite=nu,jr.toInteger=iu,jr.toLength=ou,jr.toLower=function(t){return su(t).toLowerCase()},jr.toNumber=au,jr.toSafeInteger=function(t){return t?Yr(iu(t),-9007199254740991,9007199254740991):0===t?t:0},jr.toString=su,jr.toUpper=function(t){return su(t).toUpperCase()},jr.trim=function(t,e,r){if((t=su(t))&&(r||void 0===e))return Ae(t);if(!t||!(e=Jn(e)))return t;var n=Ze(t),i=Ze(e);return ci(n,Fe(n,i),Ce(n,i)+1).join("")},jr.trimEnd=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.slice(0,Ke(t)+1);if(!t||!(e=Jn(e)))return t;var n=Ze(t);return ci(n,0,Ce(n,Ze(e))+1).join("")},jr.trimStart=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.replace(K,"");if(!t||!(e=Jn(e)))return t;var n=Ze(t);return ci(n,Fe(n,Ze(e))).join("")},jr.truncate=function(t,e){var r=30,n="...";if(Va(e)){var i="separator"in e?e.separator:i;r="length"in e?iu(e.length):r,n="omission"in e?Jn(e.omission):n}var o=(t=su(t)).length;if(Be(t)){var a=Ze(t);o=a.length}if(r>=o)return t;var u=r-He(n);if(u<1)return n;var s=a?ci(a,0,u).join(""):t.slice(0,u);if(void 0===i)return s+n;if(a&&(u+=s.length-u),Ya(i)){if(t.slice(u).search(i)){var f,c=s;for(i.global||(i=mt(i.source,su(nt.exec(i))+"g")),i.lastIndex=0;f=i.exec(c);)var h=f.index;s=s.slice(0,void 0===h?u:h)}}else if(t.indexOf(Jn(i),u)!=u){var l=s.lastIndexOf(i);l>-1&&(s=s.slice(0,l))}return s+n},jr.unescape=function(t){return(t=su(t))&&D.test(t)?t.replace(N,Ye):t},jr.uniqueId=function(t){var e=++Ot;return su(t)+e},jr.upperCase=Lu,jr.upperFirst=Bu,jr.each=sa,jr.eachRight=fa,jr.first=No,$u(jr,(hs={},fn(jr,(function(t,e){St.call(jr.prototype,e)||(hs[e]=t)})),hs),{chain:!1}),jr.VERSION="4.17.21",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),ue(["drop","take"],(function(t,e){Tr.prototype[t]=function(r){r=void 0===r?1:ar(iu(r),0);var n=this.__filtered__&&!e?new Tr(this):this.clone();return n.__filtered__?n.__takeCount__=ur(r,n.__takeCount__):n.__views__.push({size:ur(r,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Tr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ue(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Tr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$i(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),ue(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Tr.prototype[t]=function(){return this[r](1).value()[0]}})),ue(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Tr.prototype[t]=function(){return this.__filtered__?new Tr(this):this[r](1)}})),Tr.prototype.compact=function(){return this.filter(Zu)},Tr.prototype.find=function(t){return this.filter(t).head()},Tr.prototype.findLast=function(t){return this.reverse().find(t)},Tr.prototype.invokeMap=Ln((function(t,e){return"function"==typeof t?new Tr(this):this.map((function(r){return bn(r,t,e)}))})),Tr.prototype.reject=function(t){return this.filter(Ea($i(t)))},Tr.prototype.slice=function(t,e){t=iu(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Tr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==e&&(r=(e=iu(e))<0?r.dropRight(-e):r.take(e-t)),r)},Tr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tr.prototype.toArray=function(){return this.take(4294967295)},fn(Tr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),i=jr[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);i&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,u=e instanceof Tr,s=a[0],f=u||Fa(e),c=function(t){var e=i.apply(jr,pe([t],a));return n&&h?e[0]:e};f&&r&&"function"==typeof s&&1!=s.length&&(u=f=!1);var h=this.__chain__,l=!!this.__actions__.length,d=o&&!h,p=u&&!l;if(!o&&f){e=p?e:new Tr(this);var m=t.apply(e,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new xr(m,h)}return d&&p?t.apply(this,a):(m=this.thru(c),d?n?m.value()[0]:m.value():m)})})),ue(["pop","push","shift","sort","splice","unshift"],(function(t){var e=gt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Fa(i)?i:[],t)}return this[r]((function(r){return e.apply(Fa(r)?r:[],t)}))}})),fn(Tr.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";St.call(br,n)||(br[n]=[]),br[n].push({name:e,func:r})}})),br[Ri(void 0,2).name]=[{name:"wrapper",func:void 0}],Tr.prototype.clone=function(){var t=new Tr(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},Tr.prototype.reverse=function(){if(this.__filtered__){var t=new Tr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Fa(t),n=e<0,i=r?t.length:0,o=function(t,e,r){var n=-1,i=r.length;for(;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=ur(e,t+a);break;case"takeRight":t=ar(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,u=o.end,s=u-a,f=n?u:a-1,c=this.__iteratees__,h=c.length,l=0,d=ur(s,this.__takeCount__);if(!r||!n&&i==s&&d==s)return ni(t,this.__actions__);var p=[];t:for(;s--&&l<d;){for(var m=-1,v=t[f+=e];++m<h;){var y=c[m],g=y.iteratee,b=y.type,w=g(v);if(2==b)v=w;else if(!w){if(1==b)continue t;break t}}p[l++]=v}return p},jr.prototype.at=ia,jr.prototype.chain=function(){return ra(this)},jr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},jr.prototype.next=function(){void 0===this.__values__&&(this.__values__=ru(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,r=this;r instanceof Ar;){var n=Ro(r);n.__index__=0,n.__values__=void 0,e?i.__wrapped__=n:e=n;var i=n;r=r.__wrapped__}return i.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Tr){var e=t;return this.__actions__.length&&(e=new Tr(this)),(e=e.reverse()).__actions__.push({func:na,args:[Vo],thisArg:void 0}),new xr(e,this.__chain__)}return this.thru(Vo)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,$t&&(jr.prototype[$t]=function(){return this}),jr}();Zt._=Xe,void 0===(i=function(){return Xe}.call(e,r,e,n))||(n.exports=i)}).call(this)}).call(this,r(15),r(38)(t))},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.WeekdayNamed=e.WeekdayNumbered=void 0,function(t){t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY"}(n||(e.WeekdayNumbered=n={})),function(t){t.SUNDAY="SUNDAY",t.MONDAY="MONDAY",t.TUESDAY="TUESDAY",t.WEDNESDAY="WEDNESDAY",t.THURSDAY="THURSDAY",t.FRIDAY="FRIDAY",t.SATURDAY="SATURDAY"}(i||(e.WeekdayNamed=i={}))},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.enhanceStandardConsoleLogging=function(e){r.forEach((function(r){var n=t.console[r],i=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.apply(t.console,o),e.apply(void 0,[r].concat(o))};i.__next=n,i.__enhancer=e,t.console[r]=i}))};var r=["debug","log","info","warn","error"]}).call(this,r(15))},function(t,e,r){r(247),t.exports=r(420)},function(t,e,r){r(248)},function(t,e,r){"use strict";r(249),r(392),r(394),r(397),r(399),r(401),r(403),r(405),r(407),r(409),r(411),r(413),r(415),r(419)},function(t,e,r){r(250),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(331),r(332),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(119),r(355),r(169),r(356),r(170),r(357),r(358),r(359),r(360),r(171),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(381),r(382),r(383),r(384),r(385),r(386),r(387),r(388),r(389),r(390),r(391),t.exports=r(11)},function(t,e,r){"use strict";var n=r(2),i=r(19),o=r(12),a=r(0),u=r(17),s=r(41).KEY,f=r(3),c=r(79),h=r(58),l=r(46),d=r(8),p=r(100),m=r(150),v=r(252),y=r(82),g=r(4),b=r(5),w=r(16),M=r(21),_=r(40),S=r(45),O=r(50),E=r(153),k=r(29),P=r(81),j=r(13),R=r(48),A=k.f,x=j.f,T=E.f,I=n.Symbol,F=n.JSON,C=F&&F.stringify,N=d("_hidden"),q=d("toPrimitive"),D={}.propertyIsEnumerable,L=c("symbol-registry"),B=c("symbols"),G=c("op-symbols"),U=Object.prototype,z="function"==typeof I&&!!P.f,V=n.QObject,W=!V||!V.prototype||!V.prototype.findChild,H=o&&f((function(){return 7!=O(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=A(U,e);n&&delete U[e],x(t,e,r),n&&t!==U&&x(U,e,n)}:x,Z=function(t){var e=B[t]=O(I.prototype);return e._k=t,e},K=z&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Y=function(t,e,r){return t===U&&Y(G,e,r),g(t),e=_(e,!0),g(r),i(B,e)?(r.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),r=O(r,{enumerable:S(0,!1)})):(i(t,N)||x(t,N,S(1,{})),t[N][e]=!0),H(t,e,r)):x(t,e,r)},X=function(t,e){g(t);for(var r,n=v(e=M(e)),i=0,o=n.length;o>i;)Y(t,r=n[i++],e[r]);return t},$=function(t){var e=D.call(this,t=_(t,!0));return!(this===U&&i(B,t)&&!i(G,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,N)&&this[N][t])||e)},J=function(t,e){if(t=M(t),e=_(e,!0),t!==U||!i(B,e)||i(G,e)){var r=A(t,e);return!r||!i(B,e)||i(t,N)&&t[N][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=T(M(t)),n=[],o=0;r.length>o;)i(B,e=r[o++])||e==N||e==s||n.push(e);return n},tt=function(t){for(var e,r=t===U,n=T(r?G:M(t)),o=[],a=0;n.length>a;)!i(B,e=n[a++])||r&&!i(U,e)||o.push(B[e]);return o};z||(u((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(r){this===U&&e.call(G,r),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),H(this,t,S(1,r))};return o&&W&&H(U,t,{configurable:!0,set:e}),Z(t)}).prototype,"toString",(function(){return this._k})),k.f=J,j.f=Y,r(51).f=E.f=Q,r(68).f=$,P.f=tt,o&&!r(47)&&u(U,"propertyIsEnumerable",$,!0),p.f=function(t){return Z(d(t))}),a(a.G+a.W+a.F*!z,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var nt=R(d.store),it=0;nt.length>it;)m(nt[it++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(L,t+="")?L[t]:L[t]=I(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?O(t):X(O(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=f((function(){P.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return P.f(w(t))}}),F&&a(a.S+a.F*(!z||f((function(){var t=I();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,C.apply(F,n)}}),I.prototype[q]||r(20)(I.prototype,q,I.prototype.valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,r){t.exports=r(79)("native-function-to-string",Function.toString)},function(t,e,r){var n=r(48),i=r(81),o=r(68);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,f=0;u.length>f;)s.call(t,a=u[f++])&&e.push(a);return e}},function(t,e,r){var n=r(0);n(n.S,"Object",{create:r(50)})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(12),"Object",{defineProperty:r(13).f})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(12),"Object",{defineProperties:r(152)})},function(t,e,r){var n=r(21),i=r(29).f;r(30)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(n(t),e)}}))},function(t,e,r){var n=r(16),i=r(52);r(30)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){var n=r(16),i=r(48);r(30)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(30)("getOwnPropertyNames",(function(){return r(153).f}))},function(t,e,r){var n=r(5),i=r(41).onFreeze;r(30)("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(5),i=r(41).onFreeze;r(30)("seal",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(5),i=r(41).onFreeze;r(30)("preventExtensions",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(5);r(30)("isFrozen",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(5);r(30)("isSealed",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(5);r(30)("isExtensible",(function(t){return function(e){return!!n(e)&&(!t||t(e))}}))},function(t,e,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(154)})},function(t,e,r){var n=r(0);n(n.S,"Object",{is:r(155)})},function(t,e,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(104).set})},function(t,e,r){"use strict";var n=r(69),i={};i[r(8)("toStringTag")]="z",i+""!="[object z]"&&r(17)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},function(t,e,r){var n=r(0);n(n.P,"Function",{bind:r(156)})},function(t,e,r){var n=r(13).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(12)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(5),i=r(52),o=r(8)("hasInstance"),a=Function.prototype;o in a||r(13).f(a,o,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){var n=r(0),i=r(158);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(t,e,r){var n=r(0),i=r(159);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(t,e,r){"use strict";var n=r(2),i=r(19),o=r(34),a=r(106),u=r(40),s=r(3),f=r(51).f,c=r(29).f,h=r(13).f,l=r(59).trim,d=n.Number,p=d,m=d.prototype,v="Number"==o(r(50)(m)),y="trim"in String.prototype,g=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,o=(e=y?e.trim():l(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var a,s=e.slice(2),f=0,c=s.length;f<c;f++)if((a=s.charCodeAt(f))<48||a>i)return NaN;return parseInt(s,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof d&&(v?s((function(){m.valueOf.call(r)})):"Number"!=o(r))?a(new p(g(e)),r,d):g(e)};for(var b,w=r(12)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;w.length>M;M++)i(p,b=w[M])&&!i(d,b)&&h(d,b,c(p,b));d.prototype=m,m.constructor=d,r(17)(n,"Number",d)}},function(t,e,r){"use strict";var n=r(0),i=r(28),o=r(160),a=r(107),u=1..toFixed,s=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*f[r],f[r]=n%1e7,n=s(n/1e7)},l=function(t){for(var e=6,r=0;--e>=0;)r+=f[e],f[e]=s(r/t),r=r%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==f[t]){var r=String(f[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e},p=function(t,e,r){return 0===e?r:e%2==1?p(t,e-1,r*t):p(t*t,e/2,r)};n(n.P+n.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(3)((function(){u.call({})}))),"Number",{toFixed:function(t){var e,r,n,u,s=o(this,c),f=i(t),m="",v="0";if(f<0||f>20)throw RangeError(c);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(s*p(2,69,1))-69)<0?s*p(2,-e,1):s/p(2,e,1),r*=4503599627370496,(e=52-e)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=e-1;n>=23;)l(1<<23),n-=23;l(1<<n),h(1,1),l(2),v=d()}else h(0,r),h(1<<-e,0),v=d()+a.call("0",f);return v=f>0?m+((u=v.length)<=f?"0."+a.call("0",f-u)+v:v.slice(0,u-f)+"."+v.slice(u-f)):m+v}})},function(t,e,r){"use strict";var n=r(0),i=r(3),o=r(160),a=1..toPrecision;n(n.P+n.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,r){var n=r(0),i=r(2).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{isInteger:r(161)})},function(t,e,r){var n=r(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(0),i=r(161),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(0),i=r(159);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,r){var n=r(0),i=r(158);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,r){var n=r(0),i=r(162),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,r){var n=r(0),i=r(108);n(n.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,r){var n=r(0),i=r(109);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,r){var n=r(0);n(n.S,"Math",{fround:r(295)})},function(t,e,r){var n=r(108),i=Math.pow,o=i(2,-52),a=i(2,-23),u=i(2,127)*(2-a),s=i(2,-126);t.exports=Math.fround||function(t){var e,r,i=Math.abs(t),f=n(t);return i<s?f*(i/s/a+1/o-1/o)*s*a:(r=(e=(1+a/o)*i)-(e-i))>u||r!=r?f*(1/0):f*r}},function(t,e,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,o=0,a=0,u=arguments.length,s=0;a<u;)s<(r=i(arguments[a++]))?(o=o*(n=s/r)*n+1,s=r):o+=r>0?(n=r/s)*n:r;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,e,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(3)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var r=+t,n=+e,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log1p:r(162)})},function(t,e,r){var n=r(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,r){var n=r(0);n(n.S,"Math",{sign:r(108)})},function(t,e,r){var n=r(0),i=r(109),o=Math.exp;n(n.S+n.F*r(3)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,r){var n=r(0),i=r(109),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},function(t,e,r){var n=r(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,r){var n=r(0),i=r(49),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var n=r(0),i=r(21),o=r(10);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=o(e.length),n=arguments.length,a=[],u=0;r>u;)a.push(String(e[u++])),u<n&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,r){"use strict";r(59)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,r){"use strict";var n=r(110)(!0);r(111)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(0),i=r(110)(!1);n(n.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,r){"use strict";var n=r(0),i=r(10),o=r(112),a="".endsWith;n(n.P+n.F*r(114)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(e.length),u=void 0===r?n:Math.min(i(r),n),s=String(t);return a?a.call(e,s,u):e.slice(u-s.length,u)===s}})},function(t,e,r){"use strict";var n=r(0),i=r(112);n(n.P+n.F*r(114)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0);n(n.P,"String",{repeat:r(107)})},function(t,e,r){"use strict";var n=r(0),i=r(10),o=r(112),a="".startsWith;n(n.P+n.F*r(114)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";r(18)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,r){"use strict";r(18)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,r){"use strict";r(18)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,r){"use strict";r(18)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,r){"use strict";r(18)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,r){"use strict";r(18)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,r){"use strict";r(18)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,r){"use strict";r(18)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,r){"use strict";r(18)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,r){"use strict";r(18)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,r){"use strict";r(18)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,r){"use strict";r(18)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,r){"use strict";r(18)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(0),i=r(16),o=r(40);n(n.P+n.F*r(3)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),r=o(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(0),i=r(330);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,r){"use strict";var n=r(3),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!n((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(t,e,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(17)(n,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,r){var n=r(8)("toPrimitive"),i=Date.prototype;n in i||r(20)(i,n,r(333))},function(t,e,r){"use strict";var n=r(4),i=r(40);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),"number"!=t)}},function(t,e,r){var n=r(0);n(n.S,"Array",{isArray:r(82)})},function(t,e,r){"use strict";var n=r(26),i=r(0),o=r(16),a=r(164),u=r(115),s=r(10),f=r(116),c=r(117);i(i.S+i.F*!r(83)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,h,l=o(t),d="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,y=0,g=c(l);if(v&&(m=n(m,p>2?arguments[2]:void 0,2)),null==g||d==Array&&u(g))for(r=new d(e=s(l.length));e>y;y++)f(r,y,v?m(l[y],y):l[y]);else for(h=g.call(l),r=new d;!(i=h.next()).done;y++)f(r,y,v?a(h,m,[i.value,y],!0):i.value);return r.length=y,r}})},function(t,e,r){"use strict";var n=r(0),i=r(116);n(n.S+n.F*r(3)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)i(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(0),i=r(21),o=[].join;n(n.P+n.F*(r(67)!=Object||!r(25)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,r){"use strict";var n=r(0),i=r(103),o=r(34),a=r(49),u=r(10),s=[].slice;n(n.P+n.F*r(3)((function(){i&&s.call(i)})),"Array",{slice:function(t,e){var r=u(this.length),n=o(this);if(e=void 0===e?r:e,"Array"==n)return s.call(this,t,e);for(var i=a(t,r),f=a(e,r),c=u(f-i),h=new Array(c),l=0;l<c;l++)h[l]="String"==n?this.charAt(i+l):this[i+l];return h}})},function(t,e,r){"use strict";var n=r(0),i=r(27),o=r(16),a=r(3),u=[].sort,s=[1,2,3];n(n.P+n.F*(a((function(){s.sort(void 0)}))||!a((function(){s.sort(null)}))||!r(25)(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(0),o=r(25)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,r){var n=r(5),i=r(82),o=r(8)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){"use strict";var n=r(0),i=r(31)(1);n(n.P+n.F*!r(25)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(2);n(n.P+n.F*!r(25)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(3);n(n.P+n.F*!r(25)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(4);n(n.P+n.F*!r(25)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(166);n(n.P+n.F*!r(25)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,r){"use strict";var n=r(0),i=r(166);n(n.P+n.F*!r(25)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,r){"use strict";var n=r(0),i=r(80)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(25)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(21),o=r(28),a=r(10),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(25)(u)),"Array",{lastIndexOf:function(t){if(s)return u.apply(this,arguments)||0;var e=i(this),r=a(e.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,r){var n=r(0);n(n.P,"Array",{copyWithin:r(167)}),r(53)("copyWithin")},function(t,e,r){var n=r(0);n(n.P,"Array",{fill:r(118)}),r(53)("fill")},function(t,e,r){"use strict";var n=r(0),i=r(31)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(53)("find")},function(t,e,r){"use strict";var n=r(0),i=r(31)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(53)(o)},function(t,e,r){r(61)("Array")},function(t,e,r){var n=r(2),i=r(106),o=r(13).f,a=r(51).f,u=r(113),s=r(84),f=n.RegExp,c=f,h=f.prototype,l=/a/g,d=/a/g,p=new f(l)!==l;if(r(12)&&(!p||r(3)((function(){return d[r(8)("match")]=!1,f(l)!=l||f(d)==d||"/a/i"!=f(l,"i")})))){f=function(t,e){var r=this instanceof f,n=u(t),o=void 0===e;return!r&&n&&t.constructor===f&&o?t:i(p?new c(n&&!o?t.source:t,e):c((n=t instanceof f)?t.source:t,n&&o?s.call(t):e),r?this:h,f)};for(var m=function(t){t in f||o(f,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},v=a(c),y=0;v.length>y;)m(v[y++]);h.constructor=f,f.prototype=h,r(17)(n,"RegExp",f)}r(61)("RegExp")},function(t,e,r){"use strict";r(170);var n=r(4),i=r(84),o=r(12),a=/./.toString,u=function(t){r(17)(RegExp.prototype,"toString",t,!0)};r(3)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=a.name&&u((function(){return a.call(this)}))},function(t,e,r){"use strict";var n=r(4),i=r(10),o=r(121),a=r(85);r(86)("match",1,(function(t,e,r,u){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=u(r,t,this);if(e.done)return e.value;var s=n(t),f=String(this);if(!s.global)return a(s,f);var c=s.unicode;s.lastIndex=0;for(var h,l=[],d=0;null!==(h=a(s,f));){var p=String(h[0]);l[d]=p,""===p&&(s.lastIndex=o(f,i(s.lastIndex),c)),d++}return 0===d?null:l}]}))},function(t,e,r){"use strict";var n=r(4),i=r(16),o=r(10),a=r(28),u=r(121),s=r(85),f=Math.max,c=Math.min,h=Math.floor,l=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;r(86)("replace",2,(function(t,e,r,p){return[function(n,i){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=p(r,t,this,e);if(i.done)return i.value;var h=n(t),l=String(this),d="function"==typeof e;d||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}for(var g=[];;){var b=s(h,l);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(h.lastIndex=u(l,o(h.lastIndex),y))}for(var w,M="",_=0,S=0;S<g.length;S++){b=g[S];for(var O=String(b[0]),E=f(c(a(b.index),l.length),0),k=[],P=1;P<b.length;P++)k.push(void 0===(w=b[P])?w:String(w));var j=b.groups;if(d){var R=[O].concat(k,E,l);void 0!==j&&R.push(j);var A=String(e.apply(void 0,R))}else A=m(O,l,E,k,j,e);E>=_&&(M+=l.slice(_,E)+A,_=E+O.length)}return M+l.slice(_)}];function m(t,e,n,o,a,u){var s=n+t.length,f=o.length,c=d;return void 0!==a&&(a=i(a),c=l),r.call(u,c,(function(r,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(s);case"<":u=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var l=h(c/10);return 0===l?r:l<=f?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):r}u=o[c-1]}return void 0===u?"":u}))}}))},function(t,e,r){"use strict";var n=r(4),i=r(155),o=r(85);r(86)("search",1,(function(t,e,r,a){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var u=n(t),s=String(this),f=u.lastIndex;i(f,0)||(u.lastIndex=0);var c=o(u,s);return i(u.lastIndex,f)||(u.lastIndex=f),null===c?-1:c.index}]}))},function(t,e,r){"use strict";var n=r(113),i=r(4),o=r(70),a=r(121),u=r(10),s=r(85),f=r(120),c=r(3),h=Math.min,l=[].push,d="length",p=!c((function(){RegExp(4294967295,"y")}));r(86)("split",2,(function(t,e,r,c){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[d]||2!="ab".split(/(?:ab)*/)[d]||4!=".".split(/(.?)(.?)/)[d]||".".split(/()()/)[d]>1||"".split(/.?/)[d]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);for(var o,a,u,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,p=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,c+"g");(o=f.call(m,i))&&!((a=m.lastIndex)>h&&(s.push(i.slice(h,o.index)),o[d]>1&&o.index<i[d]&&l.apply(s,o.slice(1)),u=o[0][d],h=a,s[d]>=p));)m.lastIndex===o.index&&m.lastIndex++;return h===i[d]?!u&&m.test("")||s.push(""):s.push(i.slice(h)),s[d]>p?s.slice(0,p):s}:"0".split(void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):m.call(String(i),r,n)},function(t,e){var n=c(m,t,this,e,m!==r);if(n.done)return n.value;var f=i(t),l=String(this),d=o(f,RegExp),v=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(p?"y":"g"),g=new d(p?f:"^(?:"+f.source+")",y),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===l.length)return null===s(g,l)?[l]:[];for(var w=0,M=0,_=[];M<l.length;){g.lastIndex=p?M:0;var S,O=s(g,p?l:l.slice(M));if(null===O||(S=h(u(g.lastIndex+(p?0:M)),l.length))===w)M=a(l,M,v);else{if(_.push(l.slice(w,M)),_.length===b)return _;for(var E=1;E<=O.length-1;E++)if(_.push(O[E]),_.length===b)return _;M=w=S}}return _.push(l.slice(w)),_}]}))},function(t,e,r){var n=r(2),i=r(122).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(34)(a);t.exports=function(){var t,e,r,f=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,l=document.createTextNode("");new o(f).observe(l,{characterData:!0}),r=function(){l.data=h=!h}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){"use strict";var n=r(174),i=r(54);t.exports=r(89)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){"use strict";var n=r(174),i=r(54);t.exports=r(89)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n,i=r(2),o=r(31)(0),a=r(17),u=r(41),s=r(154),f=r(175),c=r(5),h=r(54),l=r(54),d=!i.ActiveXObject&&"ActiveXObject"in i,p=u.getWeak,m=Object.isExtensible,v=f.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=p(t);return!0===e?v(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return f.def(h(this,"WeakMap"),t,e)}},b=t.exports=r(89)("WeakMap",y,g,f,!0,!0);l&&d&&(s((n=f.getConstructor(y,"WeakMap")).prototype,g),u.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,r=e[t];a(e,t,(function(e,i){if(c(e)&&!m(e)){this._f||(this._f=new n);var o=this._f[t](e,i);return"set"==t?this:o}return r.call(this,e,i)}))})))},function(t,e,r){"use strict";var n=r(175),i=r(54);r(89)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,r){"use strict";var n=r(0),i=r(90),o=r(123),a=r(4),u=r(49),s=r(10),f=r(5),c=r(2).ArrayBuffer,h=r(70),l=o.ArrayBuffer,d=o.DataView,p=i.ABV&&c.isView,m=l.prototype.slice,v=i.VIEW;n(n.G+n.W+n.F*(c!==l),{ArrayBuffer:l}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||f(t)&&v in t}}),n(n.P+n.U+n.F*r(3)((function(){return!new l(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),i=u(void 0===e?r:e,r),o=new(h(this,l))(s(i-n)),f=new d(this),c=new d(o),p=0;n<i;)c.setUint8(p++,f.getUint8(n++));return o}}),r(61)("ArrayBuffer")},function(t,e,r){var n=r(0);n(n.G+n.W+n.F*!r(90).ABV,{DataView:r(123).DataView})},function(t,e,r){r(36)("Int8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},function(t,e,r){r(36)("Int16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Int32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float64",8,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){var n=r(0),i=r(27),o=r(4),a=(r(2).Reflect||{}).apply,u=Function.apply;n(n.S+n.F*!r(3)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,r){var n=i(t),s=o(r);return a?a(n,e,s):u.call(n,e,s)}})},function(t,e,r){var n=r(0),i=r(50),o=r(27),a=r(4),u=r(5),s=r(3),f=r(156),c=(r(2).Reflect||{}).construct,h=s((function(){function t(){}return!(c((function(){}),[],t)instanceof t)})),l=!s((function(){c((function(){}))}));n(n.S+n.F*(h||l),"Reflect",{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(l&&!h)return c(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(f.apply(t,n))}var s=r.prototype,d=i(u(s)?s:Object.prototype),p=Function.apply.call(t,d,e);return u(p)?p:d}})},function(t,e,r){var n=r(13),i=r(0),o=r(4),a=r(40);i(i.S+i.F*r(3)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,r){o(t),e=a(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),i=r(29).f,o=r(4);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=i(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){"use strict";var n=r(0),i=r(4),o=function(t){this._t=i(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};r(163)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,r){var n=r(29),i=r(52),o=r(19),a=r(0),u=r(5),s=r(4);a(a.S,"Reflect",{get:function t(e,r){var a,f,c=arguments.length<3?e:arguments[2];return s(e)===c?e[r]:(a=n.f(e,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:u(f=i(e))?t(f,r,c):void 0}})},function(t,e,r){var n=r(29),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,r){var n=r(0),i=r(52),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(177)})},function(t,e,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(13),i=r(29),o=r(52),a=r(19),u=r(0),s=r(45),f=r(4),c=r(5);u(u.S,"Reflect",{set:function t(e,r,u){var h,l,d=arguments.length<4?e:arguments[3],p=i.f(f(e),r);if(!p){if(c(l=o(e)))return t(l,r,u,d);p=s(0)}if(a(p,"value")){if(!1===p.writable||!c(d))return!1;if(h=i.f(d,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=u,n.f(d,r,h)}else n.f(d,r,s(0,u));return!0}return void 0!==p.set&&(p.set.call(d,u),!0)}})},function(t,e,r){var n=r(0),i=r(104);i&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(393),t.exports=r(11).Array.includes},function(t,e,r){"use strict";var n=r(0),i=r(80)(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(53)("includes")},function(t,e,r){r(395),t.exports=r(11).Array.flatMap},function(t,e,r){"use strict";var n=r(0),i=r(396),o=r(16),a=r(10),u=r(27),s=r(165);n(n.P,"Array",{flatMap:function(t){var e,r,n=o(this);return u(t),e=a(n.length),r=s(n,0),i(r,n,n,e,0,1,t,arguments[1]),r}}),r(53)("flatMap")},function(t,e,r){"use strict";var n=r(82),i=r(5),o=r(10),a=r(26),u=r(8)("isConcatSpreadable");t.exports=function t(e,r,s,f,c,h,l,d){for(var p,m,v=c,y=0,g=!!l&&a(l,d,3);y<f;){if(y in s){if(p=g?g(s[y],y,r):s[y],m=!1,i(p)&&(m=void 0!==(m=p[u])?!!m:n(p)),m&&h>0)v=t(e,r,p,o(p.length),v,h-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=p}v++}y++}return v}},function(t,e,r){r(398),t.exports=r(11).String.padStart},function(t,e,r){"use strict";var n=r(0),i=r(178),o=r(88),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,r){r(400),t.exports=r(11).String.padEnd},function(t,e,r){"use strict";var n=r(0),i=r(178),o=r(88),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,r){r(402),t.exports=r(11).String.trimLeft},function(t,e,r){"use strict";r(59)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,r){r(404),t.exports=r(11).String.trimRight},function(t,e,r){"use strict";r(59)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,r){r(406),t.exports=r(100).f("asyncIterator")},function(t,e,r){r(150)("asyncIterator")},function(t,e,r){r(408),t.exports=r(11).Object.getOwnPropertyDescriptors},function(t,e,r){var n=r(0),i=r(177),o=r(21),a=r(29),u=r(116);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),s=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=s(n,e=f[h++]))&&u(c,e,r);return c}})},function(t,e,r){r(410),t.exports=r(11).Object.values},function(t,e,r){var n=r(0),i=r(179)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){r(412),t.exports=r(11).Object.entries},function(t,e,r){var n=r(0),i=r(179)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){"use strict";r(171),r(414),t.exports=r(11).Promise.finally},function(t,e,r){"use strict";var n=r(0),i=r(11),o=r(2),a=r(70),u=r(173);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then((function(){return r}))}:t,r?function(r){return u(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){r(416),r(417),r(418),t.exports=r(11)},function(t,e,r){var n=r(2),i=r(0),o=r(88),a=[].slice,u=/MSIE .\./.test(o),s=function(t){return function(e,r){var n=arguments.length>2,i=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};i(i.G+i.B+i.F*u,{setTimeout:s(n.setTimeout),setInterval:s(n.setInterval)})},function(t,e,r){var n=r(0),i=r(122);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,r){for(var n=r(119),i=r(48),o=r(17),a=r(2),u=r(20),s=r(60),f=r(8),c=f("iterator"),h=f("toStringTag"),l=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),m=0;m<p.length;m++){var v,y=p[m],g=d[y],b=a[y],w=b&&b.prototype;if(w&&(w[c]||u(w,c,l),w[h]||u(w,h,y),s[y]=l,g))for(v in n)w[v]||o(w,v,n[v],!0)}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,i){var o=e&&e.prototype instanceof l?e:l,a=Object.create(o.prototype),u=new E(i||[]);return n(a,"_invoke",{value:M(t,r,u)}),a}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function l(){}function d(){}function p(){}var m={};s(m,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==e&&r.call(y,o)&&(m=y);var g=p.prototype=l.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;n(this,"_invoke",{value:function(n,o){function a(){return new e((function(i,a){!function n(i,o,a,u){var s=c(t[i],t,o);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}(n,o,i,a)}))}return i=i?i.then(a,a):a()}})}function M(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=c(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(p,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,p):(t.__proto__=p,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,u,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,E.prototype={constructor:E,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(O),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.fpath=e.monitoring=e.sos=e.frontApplet=void 0;var i=n(r(421)),o=n(r(655)),a=r(702);e.frontApplet=(0,i.default)(window,"hug"),e.sos=e.frontApplet,e.monitoring=new o.default(e.frontApplet),e.fpath=a.fpath,e.frontApplet.sos=e.frontApplet,e.frontApplet.frontApplet=e.frontApplet,e.frontApplet.monitoring=e.monitoring,e.frontApplet.default=e.frontApplet,e.frontApplet.fpath=e.fpath,window.sos=e.frontApplet,window.sosMonitoring=e.monitoring,e.default=e.frontApplet,t.exports=e.frontApplet},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new i.default(t,e)};var i=n(r(422))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=r(124),l=f(r(560)),d=f(r(567)),p=f(r(569)),m=f(r(239)),v=f(r(582)),y=f(r(584)),g=f(r(588)),b=f(r(591)),w=f(r(592)),M=f(r(593)),_=f(r(594)),S=f(r(595)),O=f(r(596)),E=f(r(597)),k=f(r(599)),P=f(r(601)),j=r(237),R=f(r(603)),A=f(r(642)),x=f(r(643)),T=r(645),I=f(r(646)),F=f(r(647)),C=f(r(649)),N=f(r(651)),q=function(){return t=function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.config=void 0,this.authHash=void 0,this.appletVersion=void 0;var i=(0,T.createExchange)(r,this.postMessage.bind(this));this.readyEmitter=new c.EventEmitter,this.invocationResponseEmitter=new c.EventEmitter,this.debug=new _.default(this.window,r,this.postMessage.bind(this)),this.deviceInfo=new S.default(r,this.postMessage.bind(this)),this.display=new O.default(r,this.postMessage.bind(this)),this.stream=new d.default(r,this.postMessage.bind(this)),this.video=new l.default(r,this.postMessage.bind(this)),this.command=new v.default(this.messagePrefix,this.postMessage.bind(this)),this.hardware=new y.default(this.messagePrefix,this.postMessage.bind(this)),this.offline=new p.default(r,this.window,this.postMessage.bind(this)),this.browser=new g.default(i.createNamespaced("browser")),this.touch=new w.default(this.window,this.messagePrefix,this.postMessage.bind(this)),this.iframe=new b.default(this.window,this.messagePrefix,this,[this.touch.transformIframeData.bind(this.touch)]),this.input=new M.default(this.window,this.messagePrefix),this.timing=new E.default(this.messagePrefix,this.postMessage.bind(this)),this.sync=new k.default(this.messagePrefix,this.postMessage.bind(this)),this.fileSystem=new P.default(this.messagePrefix,this.postMessage.bind(this)),this.management=new R.default(r,this.postMessage.bind(this)),this.monitors=new A.default(r,this.postMessage.bind(this)),this.osd=new I.default(r,this.postMessage.bind(this)),this.proofOfPlay=new F.default(this.command),this.sensors=new x.default(r),this.native=new C.default(r,this.postMessage.bind(this)),this.connect=new N.default(this.window,this.messagePrefix),this.javascriptLoadFileController=new m.default(this.window),this.window.addEventListener("message",(function(t){return n.handleMessage(t)})),this.postMessage({type:r+"_api.ready"}),this.startPinging()},(e=[{key:"postMessage",value:function(t){var e=this,r=(0,h.generateUniqueHash)();return this.window.setTimeout((function(){var n;null===(n=e.window.parent)||void 0===n||n.postMessage(Object.assign({invocationUid:r},t),"*")})),new Promise((function(t,n){e.invocationResponseEmitter.once(r,(function(e){e.error?e.error.error?n((0,j.createError)(e.error.error)):n(e.error):t(e.success)}))}))}},{key:"onReady",value:function(t){var e=this;return new Promise((function(r){e.readyEmitter.once("ready",(function(){r(),void 0!==t&&t()})),e.checkIfReady()}))}},{key:"restore",value:function(){this.postMessage({type:this.getMessage("restore")}),this.removeMediaListeners(),this.forwardRestoreToFrontAppletWindows()}},{key:"refresh",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("applet_refresh")});case 1:return t.a(2)}}),t,this)})))}},{key:"forwardRestoreToFrontAppletWindows",value:function(){var t={type:this.messagePrefix+"restore"};this.iframe.forwardToFrontAppletWindows(t)}},{key:"removeMediaListeners",value:function(){this.video.removeEventListeners(),this.stream.removeEventListeners(),this.sync.removeEventListeners(),this.input.removeEventListeners()}},{key:"checkIfReady",value:function(){void 0!==this.authHash&&void 0!==this.config&&void 0!==this.display.version&&this.readyEmitter.emit("ready")}},{key:"handleMessage",value:function(t){if("object"===n(t.data)){var e=t.source;if(e===this.window.parent){var r=t.data;switch(r.type){case this.getMessage("invocation.success"):this.invocationResponseEmitter.emit(r.invocationUid,{success:r});break;case this.getMessage("invocation.error"):this.invocationResponseEmitter.emit(r.invocationUid,{error:r});break;case this.getMessage("config.update"):this.config=r.config,this.checkIfReady();break;case this.getMessage("auth_hash.update"):this.authHash=r.authHash,this.checkIfReady();break;case this.getMessage("front_display_version.update"):this.display.version=r.version,this.checkIfReady();break;case this.getMessage("applet_version.update"):this.appletVersion=r.version;break;case this.getMessage("restore"):this.removeMediaListeners();break;case this.getMessage("assets.load_js"):this.javascriptLoadFileController.load(r.src,this.window.document.body);break;default:this.browser.handleMessageData(r),this.sync.handleMessageData(r),this.video.handleMessageData(r),this.stream.handleMessageData(r),this.input.handleMessageData(r),this.command.handleMessageData(r),this.fileSystem.handleMessageData(r),this.sensors.handleMessageData(r),this.management.wifi.handleMessageData(r),this.hardware.handleMessageData(r),this.touch.handleMessageData(r),this.debug.handleMessageData(r),this.connect.handleMessageData(r)}this.iframe.forwardToFrontAppletWindows(r)}else if(function(t){return Boolean(t)}(e)&&e!==this.window){var i=t.data;switch(i.type){case this.messagePrefix+"_loader.ready":this.iframe.registerFrontAppletLoaderWindow(e);break;case this.messagePrefix+"_api.ready":this.iframe.registerBundledFrontAppletWindow(e);break;default:this.iframe.forwardFromFrontAppletWindows(e,i)}}}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}},{key:"startPinging",value:function(){var t=this,e=function(){return t.postMessage({type:t.getMessage("ping")})};this.window.setInterval(e,3e4),e()}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=q},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(64),e.createHash=e.Hash=r(71),e.createHmac=e.Hmac=r(198);var n=r(479),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(200);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var u=r(485);e.Cipher=u.Cipher,e.createCipher=u.createCipher,e.Cipheriv=u.Cipheriv,e.createCipheriv=u.createCipheriv,e.Decipher=u.Decipher,e.createDecipher=u.createDecipher,e.Decipheriv=u.Decipheriv,e.createDecipheriv=u.createDecipheriv,e.getCiphers=u.getCiphers,e.listCiphers=u.listCiphers;var s=r(500);e.DiffieHellmanGroup=s.DiffieHellmanGroup,e.createDiffieHellmanGroup=s.createDiffieHellmanGroup,e.getDiffieHellman=s.getDiffieHellman,e.createDiffieHellman=s.createDiffieHellman,e.DiffieHellman=s.DiffieHellman;var f=r(507);e.createSign=f.createSign,e.Sign=f.Sign,e.createVerify=f.createVerify,e.Verify=f.Verify,e.createECDH=r(552);var c=r(555);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var h=r(559);e.randomFill=h.randomFill,e.randomFillSync=h.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=f(t),a=n[0],u=n[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),c=0,h=u>0?a-4:a;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],s[c++]=e>>16&255,s[c++]=e>>8&255,s[c++]=255&e;2===u&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,s[c++]=255&e);1===u&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e);return s},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,u=r-i;a<u;a+=16383)o.push(c(t,a,a+16383>u?u:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)n[u]=a[u],i[a.charCodeAt(u)]=u;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],u=e;u<r;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
|
|
25
25
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
26
26
|
e.read=function(t,e,r,n,i){var o,a,u=8*i-n-1,s=(1<<u)-1,f=s>>1,c=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-c)-1,d>>=-c,c+=u;c>0;o=256*o+t[e+h],h+=l,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=l,c-=8);if(0===o)o=1-f;else{if(o===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,u,s,f=8*o-i-1,c=(1<<f)-1,h=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+h>=1?l/s:l*Math.pow(2,1-h))*s>=2&&(a++,s/=2),a+h>=c?(u=0,a=c):a+h>=1?(u=(e*s-1)*Math.pow(2,i),a+=h):(u=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&u,d+=p,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*m}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){
|
|
27
27
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -31,5 +31,5 @@ var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r)
|
|
|
31
31
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
32
32
|
var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=r(1),i=r(7).Buffer,o=r(43),a=i.alloc(128);function u(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=i.concat([e,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),u=0;u<64;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},function(t,e,r){var n=r(125);t.exports=function(t){return(new n).update(t).digest()}},function(t,e,r){"use strict";t.exports=r(199)},function(t,e,r){"use strict";(function(e){var n,i,o=r(133).Buffer,a=r(201),u=r(202),s=r(203),f=r(204),c=e.crypto&&e.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function d(){return i||(i=e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask?e.queueMicrotask:e.setImmediate?e.setImmediate:e.setTimeout)}function p(t,e,r,n,i){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,r,i,m,v,y){"function"==typeof v&&(y=v,v=void 0);var g=h[(v=v||"sha1").toLowerCase()];if(g&&"function"==typeof e.Promise){if(a(i,m),t=f(t,u,"Password"),r=f(r,u,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){d()((function(){e(null,t)}))}),(function(t){d()((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==l[t])return l[t];var r=p(n=n||o.alloc(8),n,10,128,t).then((function(){return!0}),(function(){return!1}));return l[t]=r,r}(g).then((function(e){return e?p(t,r,i,m,g):s(t,r,i,m,v)})),y)}else d()((function(){var e;try{e=s(t,r,i,m,v)}catch(t){return void y(t)}y(null,e)}))}}).call(this,r(15))},function(t,e,r){"use strict";var n=r(482);function i(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,h=0;h<t.length;h+=16){var l=r,d=n,p=i,m=o;r=a(r,n,i,o,t[h+0],7,-680876936),o=a(o,r,n,i,t[h+1],12,-389564586),i=a(i,o,r,n,t[h+2],17,606105819),n=a(n,i,o,r,t[h+3],22,-1044525330),r=a(r,n,i,o,t[h+4],7,-176418897),o=a(o,r,n,i,t[h+5],12,1200080426),i=a(i,o,r,n,t[h+6],17,-1473231341),n=a(n,i,o,r,t[h+7],22,-45705983),r=a(r,n,i,o,t[h+8],7,1770035416),o=a(o,r,n,i,t[h+9],12,-1958414417),i=a(i,o,r,n,t[h+10],17,-42063),n=a(n,i,o,r,t[h+11],22,-1990404162),r=a(r,n,i,o,t[h+12],7,1804603682),o=a(o,r,n,i,t[h+13],12,-40341101),i=a(i,o,r,n,t[h+14],17,-1502002290),r=u(r,n=a(n,i,o,r,t[h+15],22,1236535329),i,o,t[h+1],5,-165796510),o=u(o,r,n,i,t[h+6],9,-1069501632),i=u(i,o,r,n,t[h+11],14,643717713),n=u(n,i,o,r,t[h+0],20,-373897302),r=u(r,n,i,o,t[h+5],5,-701558691),o=u(o,r,n,i,t[h+10],9,38016083),i=u(i,o,r,n,t[h+15],14,-660478335),n=u(n,i,o,r,t[h+4],20,-405537848),r=u(r,n,i,o,t[h+9],5,568446438),o=u(o,r,n,i,t[h+14],9,-1019803690),i=u(i,o,r,n,t[h+3],14,-187363961),n=u(n,i,o,r,t[h+8],20,1163531501),r=u(r,n,i,o,t[h+13],5,-1444681467),o=u(o,r,n,i,t[h+2],9,-51403784),i=u(i,o,r,n,t[h+7],14,1735328473),r=s(r,n=u(n,i,o,r,t[h+12],20,-1926607734),i,o,t[h+5],4,-378558),o=s(o,r,n,i,t[h+8],11,-2022574463),i=s(i,o,r,n,t[h+11],16,1839030562),n=s(n,i,o,r,t[h+14],23,-35309556),r=s(r,n,i,o,t[h+1],4,-1530992060),o=s(o,r,n,i,t[h+4],11,1272893353),i=s(i,o,r,n,t[h+7],16,-155497632),n=s(n,i,o,r,t[h+10],23,-1094730640),r=s(r,n,i,o,t[h+13],4,681279174),o=s(o,r,n,i,t[h+0],11,-358537222),i=s(i,o,r,n,t[h+3],16,-722521979),n=s(n,i,o,r,t[h+6],23,76029189),r=s(r,n,i,o,t[h+9],4,-640364487),o=s(o,r,n,i,t[h+12],11,-421815835),i=s(i,o,r,n,t[h+15],16,530742520),r=f(r,n=s(n,i,o,r,t[h+2],23,-995338651),i,o,t[h+0],6,-198630844),o=f(o,r,n,i,t[h+7],10,1126891415),i=f(i,o,r,n,t[h+14],15,-1416354905),n=f(n,i,o,r,t[h+5],21,-57434055),r=f(r,n,i,o,t[h+12],6,1700485571),o=f(o,r,n,i,t[h+3],10,-1894986606),i=f(i,o,r,n,t[h+10],15,-1051523),n=f(n,i,o,r,t[h+1],21,-2054922799),r=f(r,n,i,o,t[h+8],6,1873313359),o=f(o,r,n,i,t[h+15],10,-30611744),i=f(i,o,r,n,t[h+6],15,-1560198380),n=f(n,i,o,r,t[h+13],21,1309151649),r=f(r,n,i,o,t[h+4],6,-145523070),o=f(o,r,n,i,t[h+11],10,-1120210379),i=f(i,o,r,n,t[h+2],15,718787259),n=f(n,i,o,r,t[h+9],21,-343485551),r=c(r,l),n=c(n,d),i=c(i,p),o=c(o,m)}return[r,n,i,o]}function o(t,e,r,n,i,o){return c((a=c(c(e,t),c(n,o)))<<(u=i)|a>>>32-u,r);var a,u}function a(t,e,r,n,i,a,u){return o(e&r|~e&n,t,e,i,a,u)}function u(t,e,r,n,i,a,u){return o(e&n|r&~n,t,e,i,a,u)}function s(t,e,r,n,i,a,u){return o(e^r^n,t,e,i,a,u)}function f(t,e,r,n,i,a,u){return o(r^(e|~n),t,e,i,a,u)}function c(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}t.exports=function(t){return n(t,i)}},function(t,e,r){"use strict";(function(e){var r=new e(4);r.fill(0);t.exports=function(t,n){var i=n(function(t){if(t.length%4!=0){var n=t.length+(4-t.length%4);t=e.concat([t,r],n)}for(var i=new Array(t.length>>>2),o=0,a=0;o<t.length;o+=4,a++)i[a]=t.readInt32LE(o);return i}(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(1),i=r(484);function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function a(t,e){return t<<e|t>>>32-e}function u(t,e,r,n,i,o,u,s){return a(t+(e^r^n)+o+u|0,s)+i|0}function s(t,e,r,n,i,o,u,s){return a(t+(e&r|~e&n)+o+u|0,s)+i|0}function f(t,e,r,n,i,o,u,s){return a(t+((e|~r)^n)+o+u|0,s)+i|0}function c(t,e,r,n,i,o,u,s){return a(t+(e&n|r&~n)+o+u|0,s)+i|0}function h(t,e,r,n,i,o,u,s){return a(t+(e^(r|~n))+o+u|0,s)+i|0}n(o,i),o.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d,l=this._e;r=u(r,n,i,o,l,t[0],0,11),l=u(l,r,n,i=a(i,10),o,t[1],0,14),o=u(o,l,r,n=a(n,10),i,t[2],0,15),i=u(i,o,l,r=a(r,10),n,t[3],0,12),n=u(n,i,o,l=a(l,10),r,t[4],0,5),r=u(r,n,i,o=a(o,10),l,t[5],0,8),l=u(l,r,n,i=a(i,10),o,t[6],0,7),o=u(o,l,r,n=a(n,10),i,t[7],0,9),i=u(i,o,l,r=a(r,10),n,t[8],0,11),n=u(n,i,o,l=a(l,10),r,t[9],0,13),r=u(r,n,i,o=a(o,10),l,t[10],0,14),l=u(l,r,n,i=a(i,10),o,t[11],0,15),o=u(o,l,r,n=a(n,10),i,t[12],0,6),i=u(i,o,l,r=a(r,10),n,t[13],0,7),n=u(n,i,o,l=a(l,10),r,t[14],0,9),l=s(l,r=u(r,n,i,o=a(o,10),l,t[15],0,8),n,i=a(i,10),o,t[7],1518500249,7),o=s(o,l,r,n=a(n,10),i,t[4],1518500249,6),i=s(i,o,l,r=a(r,10),n,t[13],1518500249,8),n=s(n,i,o,l=a(l,10),r,t[1],1518500249,13),r=s(r,n,i,o=a(o,10),l,t[10],1518500249,11),l=s(l,r,n,i=a(i,10),o,t[6],1518500249,9),o=s(o,l,r,n=a(n,10),i,t[15],1518500249,7),i=s(i,o,l,r=a(r,10),n,t[3],1518500249,15),n=s(n,i,o,l=a(l,10),r,t[12],1518500249,7),r=s(r,n,i,o=a(o,10),l,t[0],1518500249,12),l=s(l,r,n,i=a(i,10),o,t[9],1518500249,15),o=s(o,l,r,n=a(n,10),i,t[5],1518500249,9),i=s(i,o,l,r=a(r,10),n,t[2],1518500249,11),n=s(n,i,o,l=a(l,10),r,t[14],1518500249,7),r=s(r,n,i,o=a(o,10),l,t[11],1518500249,13),o=f(o,l=s(l,r,n,i=a(i,10),o,t[8],1518500249,12),r,n=a(n,10),i,t[3],1859775393,11),i=f(i,o,l,r=a(r,10),n,t[10],1859775393,13),n=f(n,i,o,l=a(l,10),r,t[14],1859775393,6),r=f(r,n,i,o=a(o,10),l,t[4],1859775393,7),l=f(l,r,n,i=a(i,10),o,t[9],1859775393,14),o=f(o,l,r,n=a(n,10),i,t[15],1859775393,9),i=f(i,o,l,r=a(r,10),n,t[8],1859775393,13),n=f(n,i,o,l=a(l,10),r,t[1],1859775393,15),r=f(r,n,i,o=a(o,10),l,t[2],1859775393,14),l=f(l,r,n,i=a(i,10),o,t[7],1859775393,8),o=f(o,l,r,n=a(n,10),i,t[0],1859775393,13),i=f(i,o,l,r=a(r,10),n,t[6],1859775393,6),n=f(n,i,o,l=a(l,10),r,t[13],1859775393,5),r=f(r,n,i,o=a(o,10),l,t[11],1859775393,12),l=f(l,r,n,i=a(i,10),o,t[5],1859775393,7),i=c(i,o=f(o,l,r,n=a(n,10),i,t[12],1859775393,5),l,r=a(r,10),n,t[1],2400959708,11),n=c(n,i,o,l=a(l,10),r,t[9],2400959708,12),r=c(r,n,i,o=a(o,10),l,t[11],2400959708,14),l=c(l,r,n,i=a(i,10),o,t[10],2400959708,15),o=c(o,l,r,n=a(n,10),i,t[0],2400959708,14),i=c(i,o,l,r=a(r,10),n,t[8],2400959708,15),n=c(n,i,o,l=a(l,10),r,t[12],2400959708,9),r=c(r,n,i,o=a(o,10),l,t[4],2400959708,8),l=c(l,r,n,i=a(i,10),o,t[13],2400959708,9),o=c(o,l,r,n=a(n,10),i,t[3],2400959708,14),i=c(i,o,l,r=a(r,10),n,t[7],2400959708,5),n=c(n,i,o,l=a(l,10),r,t[15],2400959708,6),r=c(r,n,i,o=a(o,10),l,t[14],2400959708,8),l=c(l,r,n,i=a(i,10),o,t[5],2400959708,6),o=c(o,l,r,n=a(n,10),i,t[6],2400959708,5),n=h(n,i=c(i,o,l,r=a(r,10),n,t[2],2400959708,12),o,l=a(l,10),r,t[4],2840853838,9),r=h(r,n,i,o=a(o,10),l,t[0],2840853838,15),l=h(l,r,n,i=a(i,10),o,t[5],2840853838,5),o=h(o,l,r,n=a(n,10),i,t[9],2840853838,11),i=h(i,o,l,r=a(r,10),n,t[7],2840853838,6),n=h(n,i,o,l=a(l,10),r,t[12],2840853838,8),r=h(r,n,i,o=a(o,10),l,t[2],2840853838,13),l=h(l,r,n,i=a(i,10),o,t[10],2840853838,12),o=h(o,l,r,n=a(n,10),i,t[14],2840853838,5),i=h(i,o,l,r=a(r,10),n,t[1],2840853838,12),n=h(n,i,o,l=a(l,10),r,t[3],2840853838,13),r=h(r,n,i,o=a(o,10),l,t[8],2840853838,14),l=h(l,r,n,i=a(i,10),o,t[11],2840853838,11),o=h(o,l,r,n=a(n,10),i,t[6],2840853838,8),i=h(i,o,l,r=a(r,10),n,t[15],2840853838,5),n=h(n,i,o,l=a(l,10),r,t[13],2840853838,6),o=a(o,10);var d=this._a,p=this._b,m=this._c,v=this._d,y=this._e;d=h(d,p,m,v,y,t[5],1352829926,8),y=h(y,d,p,m=a(m,10),v,t[14],1352829926,9),v=h(v,y,d,p=a(p,10),m,t[7],1352829926,9),m=h(m,v,y,d=a(d,10),p,t[0],1352829926,11),p=h(p,m,v,y=a(y,10),d,t[9],1352829926,13),d=h(d,p,m,v=a(v,10),y,t[2],1352829926,15),y=h(y,d,p,m=a(m,10),v,t[11],1352829926,15),v=h(v,y,d,p=a(p,10),m,t[4],1352829926,5),m=h(m,v,y,d=a(d,10),p,t[13],1352829926,7),p=h(p,m,v,y=a(y,10),d,t[6],1352829926,7),d=h(d,p,m,v=a(v,10),y,t[15],1352829926,8),y=h(y,d,p,m=a(m,10),v,t[8],1352829926,11),v=h(v,y,d,p=a(p,10),m,t[1],1352829926,14),m=h(m,v,y,d=a(d,10),p,t[10],1352829926,14),p=h(p,m,v,y=a(y,10),d,t[3],1352829926,12),y=c(y,d=h(d,p,m,v=a(v,10),y,t[12],1352829926,6),p,m=a(m,10),v,t[6],1548603684,9),v=c(v,y,d,p=a(p,10),m,t[11],1548603684,13),m=c(m,v,y,d=a(d,10),p,t[3],1548603684,15),p=c(p,m,v,y=a(y,10),d,t[7],1548603684,7),d=c(d,p,m,v=a(v,10),y,t[0],1548603684,12),y=c(y,d,p,m=a(m,10),v,t[13],1548603684,8),v=c(v,y,d,p=a(p,10),m,t[5],1548603684,9),m=c(m,v,y,d=a(d,10),p,t[10],1548603684,11),p=c(p,m,v,y=a(y,10),d,t[14],1548603684,7),d=c(d,p,m,v=a(v,10),y,t[15],1548603684,7),y=c(y,d,p,m=a(m,10),v,t[8],1548603684,12),v=c(v,y,d,p=a(p,10),m,t[12],1548603684,7),m=c(m,v,y,d=a(d,10),p,t[4],1548603684,6),p=c(p,m,v,y=a(y,10),d,t[9],1548603684,15),d=c(d,p,m,v=a(v,10),y,t[1],1548603684,13),v=f(v,y=c(y,d,p,m=a(m,10),v,t[2],1548603684,11),d,p=a(p,10),m,t[15],1836072691,9),m=f(m,v,y,d=a(d,10),p,t[5],1836072691,7),p=f(p,m,v,y=a(y,10),d,t[1],1836072691,15),d=f(d,p,m,v=a(v,10),y,t[3],1836072691,11),y=f(y,d,p,m=a(m,10),v,t[7],1836072691,8),v=f(v,y,d,p=a(p,10),m,t[14],1836072691,6),m=f(m,v,y,d=a(d,10),p,t[6],1836072691,6),p=f(p,m,v,y=a(y,10),d,t[9],1836072691,14),d=f(d,p,m,v=a(v,10),y,t[11],1836072691,12),y=f(y,d,p,m=a(m,10),v,t[8],1836072691,13),v=f(v,y,d,p=a(p,10),m,t[12],1836072691,5),m=f(m,v,y,d=a(d,10),p,t[2],1836072691,14),p=f(p,m,v,y=a(y,10),d,t[10],1836072691,13),d=f(d,p,m,v=a(v,10),y,t[0],1836072691,13),y=f(y,d,p,m=a(m,10),v,t[4],1836072691,7),m=s(m,v=f(v,y,d,p=a(p,10),m,t[13],1836072691,5),y,d=a(d,10),p,t[8],2053994217,15),p=s(p,m,v,y=a(y,10),d,t[6],2053994217,5),d=s(d,p,m,v=a(v,10),y,t[4],2053994217,8),y=s(y,d,p,m=a(m,10),v,t[1],2053994217,11),v=s(v,y,d,p=a(p,10),m,t[3],2053994217,14),m=s(m,v,y,d=a(d,10),p,t[11],2053994217,14),p=s(p,m,v,y=a(y,10),d,t[15],2053994217,6),d=s(d,p,m,v=a(v,10),y,t[0],2053994217,14),y=s(y,d,p,m=a(m,10),v,t[5],2053994217,6),v=s(v,y,d,p=a(p,10),m,t[12],2053994217,9),m=s(m,v,y,d=a(d,10),p,t[2],2053994217,12),p=s(p,m,v,y=a(y,10),d,t[13],2053994217,9),d=s(d,p,m,v=a(v,10),y,t[9],2053994217,12),y=s(y,d,p,m=a(m,10),v,t[7],2053994217,5),v=s(v,y,d,p=a(p,10),m,t[10],2053994217,15),p=u(p,m=s(m,v,y,d=a(d,10),p,t[14],2053994217,8),v,y=a(y,10),d,t[12],0,8),d=u(d,p,m,v=a(v,10),y,t[15],0,5),y=u(y,d,p,m=a(m,10),v,t[10],0,12),v=u(v,y,d,p=a(p,10),m,t[4],0,9),m=u(m,v,y,d=a(d,10),p,t[1],0,12),p=u(p,m,v,y=a(y,10),d,t[5],0,5),d=u(d,p,m,v=a(v,10),y,t[8],0,14),y=u(y,d,p,m=a(m,10),v,t[7],0,6),v=u(v,y,d,p=a(p,10),m,t[6],0,8),m=u(m,v,y,d=a(d,10),p,t[2],0,13),p=u(p,m,v,y=a(y,10),d,t[13],0,6),d=u(d,p,m,v=a(v,10),y,t[14],0,5),y=u(y,d,p,m=a(m,10),v,t[0],0,15),v=u(v,y,d,p=a(p,10),m,t[3],0,13),m=u(m,v,y,d=a(d,10),p,t[9],0,11),p=u(p,m,v,y=a(y,10),d,t[11],0,11),v=a(v,10);var g=this._b+i+v|0;this._b=this._c+o+y|0,this._c=this._d+l+d|0,this._d=this._e+r+p|0,this._e=this._a+n+m|0,this._a=g},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=o}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(126).Transform;function i(t){n.call(this),this._block=new e(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(1)(i,n),i.prototype._transform=function(t,r,n){var i=null;try{"buffer"!==r&&(t=new e(t,r)),this.update(t)}catch(t){i=t}n(i)},i.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,r){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");e.isBuffer(t)||(t=new e(t,r||"binary"));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var a=0,u=8*t.length;u>0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},i.prototype._update=function(t){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i}).call(this,r(9).Buffer)},function(t,e,r){var n=r(486),i=r(135),o=r(136),a=r(499),u=r(95);function s(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function f(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=u(e,!1,r,n);return s(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=s,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=u(e,!1,r,n);return f(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=f,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(t,e,r){var n=r(43),i=r(487),o=r(1),a=r(7).Buffer,u={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function s(t){n.call(this);var e,r=t.mode.toLowerCase(),i=u[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var s=t.iv;a.isBuffer(s)||(s=a.from(s)),this._des=i.create({key:o,iv:s,type:e})}u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],t.exports=s,o(s,n),s.prototype._update=function(t){return a.from(this._des.update(t))},s.prototype._final=function(){return a.from(this._des.final())}},function(t,e,r){"use strict";e.utils=r(205),e.Cipher=r(134),e.DES=r(206),e.CBC=r(488),e.EDE=r(489)},function(t,e,r){"use strict";var n=r(23),i=r(1),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var u=0;u<this.blockSize;u++)a[u]^=t[e+u];o._update.call(this,a,0,r,n);for(u=0;u<this.blockSize;u++)a[u]=r[n+u]}else{o._update.call(this,t,e,r,n);for(u=0;u<this.blockSize;u++)r[n+u]^=a[u];for(u=0;u<this.blockSize;u++)a[u]=t[e+u]}}},function(t,e,r){"use strict";var n=r(23),i=r(1),o=r(134),a=r(206);function u(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function s(t){o.call(this,t);var e=new u(this.type,this.options.key);this._edeState=e}i(s,o),t.exports=s,s.create=function(t){return new s(t)},s.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},s.prototype._pad=a.prototype._pad,s.prototype._unpad=a.prototype._unpad},function(t,e,r){var n=r(136),i=r(210),o=r(7).Buffer,a=r(211),u=r(43),s=r(94),f=r(95);function c(t,e,r){u.call(this),this._cache=new l,this._cipher=new s.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}r(1)(c,u),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return o.concat(n)};var h=o.alloc(16,16);function l(){this.cache=o.allocUnsafe(0)}function d(t,e,r){var u=n[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==u.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==u.mode&&r.length!==u.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===u.type?new a(u.module,e,r):"auth"===u.type?new i(u.module,e,r):new c(u.module,e,r)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=o.concat([this.cache,t])},l.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=d,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=f(e,!1,r.key,r.iv);return d(t,i.key,i.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(75);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},function(t,e,r){var n=r(7).Buffer,i=r(75);function o(t,e,r){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,r)]);break}i=t._cache.length,a=n.concat([a,o(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},function(t,e,r){var n=r(7).Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),u=-1;++u<o;)a[u]=i(t,e[u],r);return a}},function(t,e,r){var n=r(7).Buffer;function i(t,e,r){for(var n,i,a=-1,u=0;++a<8;)n=e&1<<7-a?128:0,u+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=o(t._prev,r?n:i);return u}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),u=-1;++u<o;)a[u]=i(t,e[u],r);return a}},function(t,e,r){(function(t){var n=r(75);function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,r(9).Buffer)},function(t,e,r){var n=r(7).Buffer,i=n.alloc(16,0);function o(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},function(t,e,r){var n=r(210),i=r(7).Buffer,o=r(136),a=r(211),u=r(43),s=r(94),f=r(95);function c(t,e,r){u.call(this),this._cache=new h,this._last=void 0,this._cipher=new s.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function l(t,e,r){var u=o[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==u.mode&&r.length!==u.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==u.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===u.type?new a(u.module,e,r,!0):"auth"===u.type?new n(u.module,e,r,!0):new c(u.module,e,r)}r(1)(c,u),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=i.concat([this.cache,t])},h.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(e,!1,r.key,r.iv);return l(t,n.key,n.iv)},e.createDecipheriv=l},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,r){(function(t){var n=r(212),i=r(505),o=r(506);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,i,u,s){return t.isBuffer(i)||void 0===a[i]?e(r,"binary",i,u):(i=i||"binary",s=s||"binary",u=u||new t([2]),t.isBuffer(u)||(u=new t(u,s)),"number"==typeof r?new o(n(r,u),u,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,u,!0)))}}).call(this,r(9).Buffer)},function(t,e){},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(503).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var u=t.charCodeAt(a)-48;i*=n,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,s=0,c=r;c<u;c+=n)s=f(t,c,c+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var h=1;for(s=f(t,c,t.length,e),c=0;c<a;c++)h*=e;this.imuln(h),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var f=1;f<n;f++){for(var c=s>>>26,h=67108863&s,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,s=0|c}return 0!==s?r.words[f]=0|s:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===e,f=new t(o),c=this.clone();if(s){for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[u]=a;for(;u<o;u++)f[u]=0}else{for(u=0;u<o-i;u++)f[u]=0;for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[o-u-1]=a}return f},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,f=0,c=0|a[0],h=8191&c,l=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,g=v>>>13,b=0|a[3],w=8191&b,M=b>>>13,_=0|a[4],S=8191&_,O=_>>>13,E=0|a[5],k=8191&E,P=E>>>13,j=0|a[6],R=8191&j,A=j>>>13,x=0|a[7],T=8191&x,I=x>>>13,F=0|a[8],C=8191&F,N=F>>>13,q=0|a[9],D=8191&q,L=q>>>13,B=0|u[0],G=8191&B,U=B>>>13,z=0|u[1],V=8191&z,W=z>>>13,H=0|u[2],Z=8191&H,K=H>>>13,Y=0|u[3],X=8191&Y,$=Y>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ft=ut>>>13,ct=0|u[8],ht=8191&ct,lt=ct>>>13,dt=0|u[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(f+(n=Math.imul(h,G))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,G)|0))<<13)|0;f=((o=Math.imul(l,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,G),i=(i=Math.imul(p,U))+Math.imul(m,G)|0,o=Math.imul(m,U);var yt=(f+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;f=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,G),i=(i=Math.imul(y,U))+Math.imul(g,G)|0,o=Math.imul(g,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var gt=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(l,Z)|0))<<13)|0;f=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(w,G),i=(i=Math.imul(w,U))+Math.imul(M,G)|0,o=Math.imul(M,U),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,K)|0;var bt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(S,G),i=(i=Math.imul(S,U))+Math.imul(O,G)|0,o=Math.imul(O,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,G),i=(i=Math.imul(k,U))+Math.imul(P,G)|0,o=Math.imul(P,U),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var Mt=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,U))+Math.imul(A,G)|0,o=Math.imul(A,U),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(T,G),i=(i=Math.imul(T,U))+Math.imul(I,G)|0,o=Math.imul(I,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var St=(f+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,st)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,U))+Math.imul(N,G)|0,o=Math.imul(N,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ft)|0;var Ot=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,U))+Math.imul(L,G)|0,o=Math.imul(L,U),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,st)|0,o=o+Math.imul(g,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Et=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(M,st)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(g,ht)|0,o=o+Math.imul(g,lt)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Z),i=(i=Math.imul(D,K))+Math.imul(L,Z)|0,o=Math.imul(L,K),n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(O,st)|0,o=o+Math.imul(O,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,lt)|0;var Pt=(f+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(g,pt)|0))<<13)|0;f=((o=o+Math.imul(g,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(P,st)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(A,st)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,lt)|0;var Rt=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(O,pt)|0))<<13)|0;f=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(L,rt)|0,o=Math.imul(L,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ft)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var At=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(P,pt)|0))<<13)|0;f=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(L,ot)|0,o=Math.imul(L,at),n=n+Math.imul(C,st)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var xt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(A,pt)|0))<<13)|0;f=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,st),i=(i=Math.imul(D,ft))+Math.imul(L,st)|0,o=Math.imul(L,ft),n=n+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,lt)|0;var Tt=(f+(n=n+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var It=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ft=(f+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return f=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,s[0]=vt,s[1]=yt,s[2]=gt,s[3]=bt,s[4]=wt,s[5]=Mt,s[6]=_t,s[7]=St,s[8]=Ot,s[9]=Et,s[10]=kt,s[11]=Pt,s[12]=jt,s[13]=Rt,s[14]=At,s[15]=xt,s[16]=Tt,s[17]=It,s[18]=Ft,0!==f&&(s[19]=f,r.length++),r};function m(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var u=67108863&n,s=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=s;f++){var c=o-f,h=(0|t.words[c])*(0|e.words[f]),l=67108863&h;u=67108863&(l=l+u|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),f=Math.sin(2*Math.PI/u),c=0;c<i;c+=u)for(var h=s,l=f,d=0;d<a;d++){var p=r[c+d],m=n[c+d],v=r[c+d+a],y=n[c+d+a],g=h*v-l*y;y=h*y+l*v,v=g,r[c+d]=p+v,n[c+d]=m+y,r[c+d+a]=p-v,n[c+d+a]=m-y,d!==u&&(g=s*h-f*l,l=s*l+f*h,h=g)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),f=new Array(n),c=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,u,s,n,i),this.transform(f,o,c,h,n,i);for(var d=0;d<n;d++){var p=u[d]*c[d]-s[d]*h[d];s[d]=u[d]*h[d]+s[d]*c[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<r;this.words[e]=s|a,a=u>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=r;if(i-=a,i=Math.max(0,i),s){for(var f=0;f<a;f++)s.words[f]=this.words[f];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,f=0;f<this.length;f++)this.words[f]=this.words[f+a];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this.strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,s=n.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,u&&(u.words[s]=1));for(var h=s-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);u&&(u.words[h]=l)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),a.isub(s)):(r.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:r.iushln(f)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(u)):(r.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(u);){for(var m=d,v=0;0!==m.cmp(u);v++)m=m.redSqr();n(v<p);var y=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(y),h=y.redSqr(),d=d.redMul(h),p=v}return l},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var f=e.words[n],c=s-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++u||0===n&&0===c)&&(i=this.mul(i,r[a]),u=0,a=0)):u=0}s=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,S),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(38)(t))},function(t,e){},function(t,e){},function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,r){(function(e){var n=r(213),i=new(r(214)),o=new n(24),a=new n(11),u=new n(10),s=new n(3),f=new n(7),c=r(212),h=r(64);function l(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function d(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=m;var p={};function m(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=l,this.setPrivateKey=d):this._primeCode=8}function v(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var h,l=0;if(t.isEven()||!c.simpleSieve||!c.fermatTest(t)||!i.test(t))return l+=1,l+="02"===r||"05"===r?8:4,p[n]=l,l;switch(i.test(t.shrn(1))||(l+=2),r){case"02":t.mod(o).cmp(a)&&(l+=8);break;case"05":(h=t.mod(u)).cmp(s)&&h.cmp(f)&&(l+=8);break;default:l+=4}return p[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new e(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new e(o.length-i.length);a.fill(0),i=e.concat([a,i])}return i},m.prototype.getPublicKey=function(t){return v(this._pub,t)},m.prototype.getPrivateKey=function(t){return v(this._priv,t)},m.prototype.getPrime=function(t){return v(this.__prime,t)},m.prototype.getGenerator=function(t){return v(this._gen,t)},m.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new n(t),this}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(138).Buffer,i=r(71),o=r(508),a=r(1),u=r(514),s=r(551),f=r(199);function c(t){o.Writable.call(this);var e=f[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){o.Writable.call(this);var e=f[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){return new c(t)}function d(t){return new h(t)}Object.keys(f).forEach((function(t){f[t].id=n.from(f[t].id,"hex"),f[t.toLowerCase()]=f[t]})),a(c,o.Writable),c.prototype._write=function(t,e,r){this._hash.update(t),r()},c.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},c.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=u(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(h,o.Writable),h.prototype._write=function(t,e,r){this._hash.update(t),r()},h.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},h.prototype.verify=function(t,e,r){var i="string"==typeof e?n.from(e,r):e;this.end();var o=this._hash.digest();return s(i,o,t,this._signType,this._tag)},t.exports={Sign:l,Verify:d,createSign:l,createVerify:d}},function(t,e,r){(e=t.exports=r(215)).Stream=e,e.Readable=e,e.Writable=r(218),e.Duplex=r(66),e.Transform=r(219),e.PassThrough=r(513)},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){},function(t,e,r){"use strict";var n=r(139).Buffer,i=r(512);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,u=0;a;)e=a.data,r=o,i=u,e.copy(r,i),u+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,r){"use strict";t.exports=o;var n=r(219),i=Object.create(r(32));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(1),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){"use strict";var n=r(138).Buffer,i=r(198),o=r(140),a=r(142).ec,u=r(141),s=r(97),f=r(230);function c(t,e,r,o){if((t=n.from(t.toArray())).length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var u=r.length,s=function(t,e){t=(t=h(t,e)).mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var i=n.alloc(e.byteLength()-r.length);r=n.concat([i,r])}return r}(r,e),f=n.alloc(u);f.fill(1);var c=n.alloc(u);return c=i(o,c).update(f).update(n.from([0])).update(t).update(s).digest(),f=i(o,c).update(f).digest(),{k:c=i(o,c).update(f).update(n.from([1])).update(t).update(s).digest(),v:f=i(o,c).update(f).digest()}}function h(t,e){var r=new u(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function l(t,e,r){var o,a;do{for(o=n.alloc(0);8*o.length<t.bitLength();)e.v=i(r,e.k).update(e.v).digest(),o=n.concat([o,e.v]);a=h(o,t),e.k=i(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=i(r,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function d(t,e,r,n){return t.toRed(u.mont(r)).redPow(e).fromRed().mod(n)}t.exports=function(t,e,r,i,p){var m=s(e);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(t,e){var r=f[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new a(r).keyFromPrivate(e.privateKey).sign(t);return n.from(i.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(t,e,r){var i,o=e.params.priv_key,a=e.params.p,s=e.params.q,f=e.params.g,p=new u(0),m=h(t,s).mod(s),v=!1,y=c(o,s,t,r);for(;!1===v;)i=l(s,y,r),p=d(f,i,a,s),0===(v=i.invm(s).imul(m.add(o.mul(p))).mod(s)).cmpn(0)&&(v=!1,p=new u(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t));128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),n.from(r)}(p,v)}(t,m,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==e.padding&&1!==e.padding)throw new Error("illegal or unsupported padding mode");t=n.concat([p,t]);for(var v=m.modulus.byteLength(),y=[0,1];t.length+y.length+1<v;)y.push(255);y.push(0);for(var g=-1;++g<t.length;)y.push(t[g]);return o(y,m)},t.exports.getKey=c,t.exports.makeKey=l},function(t,e){},function(t,e,r){
|
|
33
33
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
34
|
-
var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.6.1","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(t,e){},function(t,e,r){"use strict";var n=r(24),i=r(39),o=r(1),a=r(96),u=n.assert;function s(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(s,a),t.exports=s,s.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],u(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},s.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},s.prototype._getEndoBasis=function(t){for(var e,r,n,o,a,u,s,f,c,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),y=new i(1),g=0;0!==l.cmpn(0);){var b=d.div(l);f=d.sub(b.mul(l)),c=v.sub(b.mul(p));var w=y.sub(b.mul(m));if(!n&&f.cmp(h)<0)e=s.neg(),r=p,n=f.neg(),o=c;else if(n&&2==++g)break;s=f,d=l,l=f,v=p,p=c,y=m,m=w}a=f.neg(),u=c;var M=n.sqr().add(o.sqr());return a.sqr().add(u.sqr()).cmp(M)>=0&&(a=e,u=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),u=u.neg()),[{a:n,b:o},{a:a,b:u}]},s.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),u=o.mul(n.a),s=i.mul(r.b),f=o.mul(n.b);return{k1:t.sub(a).sub(u),k2:s.add(f).neg()}},s.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},s.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),u=t[o],s=u._getBeta();a.k1.negative&&(a.k1.ineg(),u=u.neg(!0)),a.k2.negative&&(a.k2.ineg(),s=s.neg(!0)),n[2*o]=u,n[2*o+1]=s,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var f=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return f},o(f,a.BasePoint),s.prototype.point=function(t,e,r){return new f(this,t,e,r)},s.prototype.pointFromJSON=function(t,e){return f.fromJSON(this,t,e)},f.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},f.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),s.prototype.jpoint=function(t,e,r){return new c(this,t,e,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),u=n.redSub(i),s=o.redSub(a);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=u.redSqr(),c=f.redMul(u),h=n.redMul(f),l=s.redSqr().redIAdd(c).redISub(h).redISub(h),d=s.redMul(h.redISub(l)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(l,d,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),u=i.redSub(o);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),f=s.redMul(a),c=r.redMul(s),h=u.redSqr().redIAdd(f).redISub(c).redISub(c),l=u.redMul(c.redISub(h)).redISub(i.redMul(f)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,u=this.z,s=u.redSqr().redSqr(),f=a.redAdd(a);for(e=0;e<t;e++){var c=o.redSqr(),h=f.redSqr(),l=h.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(s)),p=o.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),y=d.redMul(v);y=y.redIAdd(y).redISub(l);var g=f.redMul(u);e+1<t&&(s=s.redMul(l)),o=m,u=g,f=y}return this.curve.jpoint(o,f.redMul(i),u)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n),s=u.redSqr().redISub(a).redISub(a),f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),t=s,e=u.redMul(a.redISub(s)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(c).redISub(l);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),v=l.redIAdd(l);v=(v=v.redIAdd(v)).redIAdd(v),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},c.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=u.redSqr().redISub(a).redISub(a);t=s;var f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),e=u.redMul(a.redISub(s)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(c);var v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),s=e.redAdd(e),f=(s=s.redIAdd(s)).redMul(a),c=u.redSqr().redISub(f.redAdd(f)),h=f.redISub(c),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=u.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,d,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),u=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var f=i.redIAdd(a).redSqr().redISub(o).redISub(u).redISub(s),c=e.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var h=this.x.redMul(u).redISub(c);h=(h=h.redIAdd(h)).redIAdd(h);var l=this.y.redMul(f.redMul(s.redISub(f)).redISub(a.redMul(u)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(u);return this.curve.jpoint(h,l,d)},c.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(39),i=r(1),o=r(96),a=r(24);function u(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(u,o),t.exports=u,u.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(s,o.BasePoint),u.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},u.prototype.point=function(t,e){return new s(this,t,e)},u.prototype.pointFromJSON=function(t){return s.fromJSON(this,t)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(t,e){return new s(t,e[0],e[1]||t.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),u=e.z.redMul(o.redAdd(a).redSqr()),s=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(u,s)},s.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(24),i=r(39),o=r(1),a=r(96),u=n.assert;function s(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function f(t,e,r,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(s,a),t.exports=s,s.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},s.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},s.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},s.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=u.fromRed().isOdd();return(e&&!s||!e&&s)&&(u=u.redNeg()),this.point(t,u)},s.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return u.fromRed().isOdd()!==e&&(u=u.redNeg()),this.point(u,t)},s.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(f,a.BasePoint),s.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},s.prototype.point=function(t,e,r,n){return new f(this,t,e,r,n)},f.fromJSON=function(t,e){return new f(t,e[0],e[1],e[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),u=n.redSub(e),s=i.redMul(a),f=o.redMul(u),c=i.redMul(u),h=a.redMul(o);return this.curve.point(s,f,h,c)},f.prototype._projDbl=function(){var t,e,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),u=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(u)).redAdd(s);this.zOne?(t=a.redSub(u).redSub(s).redMul(f.redSub(this.curve.two)),e=f.redMul(n.redSub(s)),r=f.redSqr().redSub(f).redSub(f)):(i=this.z.redSqr(),o=f.redSub(i).redISub(i),t=a.redSub(u).redISub(s).redMul(o),e=f.redMul(n.redSub(s)),r=f.redMul(o))}else n=u.redAdd(s),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(u.redISub(s)),r=n.redMul(o);return this.curve.point(t,e,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),u=i.redAdd(n),s=r.redAdd(e),f=o.redMul(a),c=u.redMul(s),h=o.redMul(s),l=a.redMul(u);return this.curve.point(f,c,l,h)},f.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),u=this.curve.d.redMul(o).redMul(a),s=i.redSub(u),f=i.redAdd(u),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(s).redMul(c);return this.curve.twisted?(e=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=s.redMul(f)):(e=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(s).redMul(f)),this.curve.point(h,e,r)},f.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},f.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},f.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(t,e,r){"use strict";e.sha1=r(523),e.sha224=r(524),e.sha256=r(223),e.sha384=r(525),e.sha512=r(224)},function(t,e,r){"use strict";var n=r(33),i=r(76),o=r(222),a=n.rotl32,u=n.sum32,s=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,c),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],l=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=s(a(i,5),f(p,o,c,l),d,r[n],h[p]);d=l,l=c,c=a(o,30),o=i,i=m}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],c),this.h[3]=u(this.h[3],l),this.h[4]=u(this.h[4],d)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(33),i=r(223);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(33),i=r(224);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(33),i=r(76),o=n.rotl32,a=n.sum32,u=n.sum32_3,s=n.sum32_4,f=i.BlockHash;function c(){if(!(this instanceof c))return new c;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,f),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],f=this.h[3],c=this.h[4],g=r,b=n,w=i,M=f,_=c,S=0;S<80;S++){var O=a(o(s(r,h(S,n,i,f),t[p[S]+e],l(S)),v[S]),c);r=c,c=f,f=o(i,10),i=n,n=O,O=a(o(s(g,h(79-S,b,w,M),t[m[S]+e],d(S)),y[S]),_),g=_,_=M,M=o(w,10),w=b,b=O}O=u(this.h[1],i,M),this.h[1]=u(this.h[2],f,_),this.h[2]=u(this.h[3],c,g),this.h[3]=u(this.h[4],r,b),this.h[4]=u(this.h[0],n,w),this.h[0]=O},c.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";var n=r(33),i=r(23);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";var n=r(39),i=r(530),o=r(24),a=r(143),u=r(137),s=o.assert,f=r(531),c=r(532);function h(t){if(!(this instanceof h))return new h(t);"string"==typeof t&&(s(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=h,h.prototype.keyPair=function(t){return new f(this,t)},h.prototype.keyFromPrivate=function(t,e){return f.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return f.fromPublic(this,t,e)},h.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||u(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncateToN=function(t,e,r){var i;if(n.isBN(t)||"number"==typeof t)i=(t=new n(t,16)).byteLength();else if("object"==typeof t)i=t.length,t=new n(t,16);else{var o=t.toString();i=o.length+1>>>1,t=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return a>0&&(t=t.ushrn(a)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},h.prototype.sign=function(t,e,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof t&&"number"!=typeof t&&!n.isBN(t)){s("object"==typeof t&&t&&"number"==typeof t.length,"Expected message to be an array-like, a hex string, or a BN instance"),s(t.length>>>0===t.length);for(var a=0;a<t.length;a++)s((255&t[a])===t[a])}e=this.keyFromPrivate(e,r),t=this._truncateToN(t,!1,o.msgBitLength),s(!t.isNeg(),"Can not sign a negative message");var u=this.n.byteLength(),f=e.getPrivate().toArray("be",u),h=t.toArray("be",u);s(new n(h).eq(t),"Can not sign message");for(var l=new i({hash:this.hash,entropy:f,nonce:h,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),p=0;;p++){var m=o.k?o.k(p):new n(l.generate(this.n.byteLength()));if(!((m=this._truncateToN(m,!0)).cmpn(1)<=0||m.cmp(d)>=0)){var v=this.g.mul(m);if(!v.isInfinity()){var y=v.getX(),g=y.umod(this.n);if(0!==g.cmpn(0)){var b=m.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(b=b.umod(this.n)).cmpn(0)){var w=(v.getY().isOdd()?1:0)|(0!==y.cmp(g)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),w^=1),new c({r:g,s:b,recoveryParam:w})}}}}}},h.prototype.verify=function(t,e,r,n,i){i||(i={}),t=this._truncateToN(t,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(e=new c(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,s=a.invm(this.n),f=s.mul(t).umod(this.n),h=s.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(f,r.getPublic(),h)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(f,r.getPublic(),h)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(t,e,r,i){s((3&r)===r,"The recovery param is more than two bits"),e=new c(e,i);var o=this.n,a=new n(t),u=e.r,f=e.s,h=1&r,l=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");u=l?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),m=f.mul(d).umod(o);return this.g.mulAdd(p,u,m)},h.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new c(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(144),i=r(220),o=r(23);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(r),this._reseed++,i.encode(a,e)}},function(t,e,r){"use strict";var n=r(39),i=r(24).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e,r){return this.ec.verify(t,e,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var n=r(39),i=r(24),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function u(){this.place=0}function s(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===t[e.place])return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function f(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function c(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new u;if(48!==t[r.place++])return!1;var o=s(t,r);if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=s(t,r);if(!1===a)return!1;if(0!=(128&t[r.place]))return!1;var f=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var c=s(t,r);if(!1===c)return!1;if(t.length!==c+r.place)return!1;if(0!=(128&t[r.place]))return!1;var h=t.slice(r.place,c+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(f),this.s=new n(h),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=f(e),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,e.length),(n=n.concat(e)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,t)}},function(t,e,r){"use strict";var n=r(144),i=r(143),o=r(24),a=o.assert,u=o.parseBytes,s=r(534),f=r(535);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=c,c.prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},c.prototype.verify=function(t,e,r){if(t=u(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return s.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return s.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return o.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var n=r(24),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function u(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}u.fromPublic=function(t,e){return e instanceof u?e:new u(t,{pub:e})},u.fromSecret=function(t,e){return e instanceof u?e:new u(t,{secret:e})},u.prototype.secret=function(){return this._secret},a(u,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(u,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(u,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(u,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(u,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(u,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),u.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},u.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},u.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},u.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=u},function(t,e,r){"use strict";var n=r(39),i=r(24),o=i.assert,a=i.cachedProperty,u=i.parseBytes;function s(t,e){this.eddsa=t,"object"!=typeof e&&(e=u(e)),Array.isArray(e)&&(o(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(s,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(s,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(s,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(s,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=s},function(t,e,r){"use strict";var n=r(77);e.certificate=r(548);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=u;var s=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=s;var f=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=f;var c=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=c,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var h=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=l,e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(538).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var u=t.charCodeAt(a)-48;i*=n,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,s=0,c=r;c<u;c+=n)s=f(t,c,c+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var h=1;for(s=f(t,c,t.length,e),c=0;c<a;c++)h*=e;this.imuln(h),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var f=1;f<n;f++){for(var c=s>>>26,h=67108863&s,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,s=0|c}return 0!==s?r.words[f]=0|s:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===e,f=new t(o),c=this.clone();if(s){for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[u]=a;for(;u<o;u++)f[u]=0}else{for(u=0;u<o-i;u++)f[u]=0;for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[o-u-1]=a}return f},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,f=0,c=0|a[0],h=8191&c,l=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,g=v>>>13,b=0|a[3],w=8191&b,M=b>>>13,_=0|a[4],S=8191&_,O=_>>>13,E=0|a[5],k=8191&E,P=E>>>13,j=0|a[6],R=8191&j,A=j>>>13,x=0|a[7],T=8191&x,I=x>>>13,F=0|a[8],C=8191&F,N=F>>>13,q=0|a[9],D=8191&q,L=q>>>13,B=0|u[0],G=8191&B,U=B>>>13,z=0|u[1],V=8191&z,W=z>>>13,H=0|u[2],Z=8191&H,K=H>>>13,Y=0|u[3],X=8191&Y,$=Y>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ft=ut>>>13,ct=0|u[8],ht=8191&ct,lt=ct>>>13,dt=0|u[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(f+(n=Math.imul(h,G))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,G)|0))<<13)|0;f=((o=Math.imul(l,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,G),i=(i=Math.imul(p,U))+Math.imul(m,G)|0,o=Math.imul(m,U);var yt=(f+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;f=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,G),i=(i=Math.imul(y,U))+Math.imul(g,G)|0,o=Math.imul(g,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var gt=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(l,Z)|0))<<13)|0;f=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(w,G),i=(i=Math.imul(w,U))+Math.imul(M,G)|0,o=Math.imul(M,U),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,K)|0;var bt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(S,G),i=(i=Math.imul(S,U))+Math.imul(O,G)|0,o=Math.imul(O,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,G),i=(i=Math.imul(k,U))+Math.imul(P,G)|0,o=Math.imul(P,U),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var Mt=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,U))+Math.imul(A,G)|0,o=Math.imul(A,U),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(T,G),i=(i=Math.imul(T,U))+Math.imul(I,G)|0,o=Math.imul(I,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var St=(f+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,st)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,U))+Math.imul(N,G)|0,o=Math.imul(N,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ft)|0;var Ot=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,U))+Math.imul(L,G)|0,o=Math.imul(L,U),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,st)|0,o=o+Math.imul(g,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Et=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(M,st)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(g,ht)|0,o=o+Math.imul(g,lt)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Z),i=(i=Math.imul(D,K))+Math.imul(L,Z)|0,o=Math.imul(L,K),n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(O,st)|0,o=o+Math.imul(O,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,lt)|0;var Pt=(f+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(g,pt)|0))<<13)|0;f=((o=o+Math.imul(g,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(P,st)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(A,st)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,lt)|0;var Rt=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(O,pt)|0))<<13)|0;f=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(L,rt)|0,o=Math.imul(L,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ft)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var At=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(P,pt)|0))<<13)|0;f=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(L,ot)|0,o=Math.imul(L,at),n=n+Math.imul(C,st)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var xt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(A,pt)|0))<<13)|0;f=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,st),i=(i=Math.imul(D,ft))+Math.imul(L,st)|0,o=Math.imul(L,ft),n=n+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,lt)|0;var Tt=(f+(n=n+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var It=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ft=(f+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return f=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,s[0]=vt,s[1]=yt,s[2]=gt,s[3]=bt,s[4]=wt,s[5]=Mt,s[6]=_t,s[7]=St,s[8]=Ot,s[9]=Et,s[10]=kt,s[11]=Pt,s[12]=jt,s[13]=Rt,s[14]=At,s[15]=xt,s[16]=Tt,s[17]=It,s[18]=Ft,0!==f&&(s[19]=f,r.length++),r};function m(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var u=67108863&n,s=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=s;f++){var c=o-f,h=(0|t.words[c])*(0|e.words[f]),l=67108863&h;u=67108863&(l=l+u|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),f=Math.sin(2*Math.PI/u),c=0;c<i;c+=u)for(var h=s,l=f,d=0;d<a;d++){var p=r[c+d],m=n[c+d],v=r[c+d+a],y=n[c+d+a],g=h*v-l*y;y=h*y+l*v,v=g,r[c+d]=p+v,n[c+d]=m+y,r[c+d+a]=p-v,n[c+d+a]=m-y,d!==u&&(g=s*h-f*l,l=s*l+f*h,h=g)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),f=new Array(n),c=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,u,s,n,i),this.transform(f,o,c,h,n,i);for(var d=0;d<n;d++){var p=u[d]*c[d]-s[d]*h[d];s[d]=u[d]*h[d]+s[d]*c[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<r;this.words[e]=s|a,a=u>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=r;if(i-=a,i=Math.max(0,i),s){for(var f=0;f<a;f++)s.words[f]=this.words[f];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,f=0;f<this.length;f++)this.words[f]=this.words[f+a];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this.strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,s=n.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,u&&(u.words[s]=1));for(var h=s-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);u&&(u.words[h]=l)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),a.isub(s)):(r.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:r.iushln(f)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(u)):(r.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(u);){for(var m=d,v=0;0!==m.cmp(u);v++)m=m.redSqr();n(v<p);var y=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(y),h=y.redSqr(),d=d.redMul(h),p=v}return l},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var f=e.words[n],c=s-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++u||0===n&&0===c)&&(i=this.mul(i,r[a]),u=0,a=0)):u=0}s=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,S),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(38)(t))},function(t,e){},function(t,e,r){var n=r(77),i=r(1);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=r(540).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),(function(e){r[e]=t[e]})),forEach(globals,(function(e){t[e]&&(r[e]=t[e])}));var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),(function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])})),forEach(globals,(function(e){e in t||defineProp(t,e,r[e])})),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),r},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),e}},function(t,e,r){var n=r(1);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){var n=r(78).Reporter,i=r(78).EncoderBuffer,o=r(78).DecoderBuffer,a=r(23),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function f(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=f;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},f.prototype._wrap=function(){var t=this._baseState;s.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},f.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){f.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),u.forEach((function(t){f.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),f.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},f.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},f.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},f.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},f.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},f.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},f.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,u=null;if(null!==r.key&&(u=t.enterKey(r.key)),r.optional){var s=null;if(null!==r.explicit?s=r.explicit:null!==r.implicit?s=r.implicit:null!==r.tag&&(s=r.tag),null!==s||r.any){if(a=this._peekTag(t,s,r.any),t.isError(a))return a}else{var f=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(f)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var c=this._decodeTag(t,r.explicit);if(t.isError(c))return c;t=c}var h=t.offset;if(null===r.use&&null===r.choice){if(r.any)f=t.save();var l=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(l))return l;r.any?i=t.raw(f):t=l}if(e&&e.track&&null!==r.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(d,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==u&&t.exitKey(u):t.leaveKey(u,r.key,i),i},f.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},f.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=t.save(),u=r.choice[o];try{var s=u._decode(t,e);if(t.isError(s))return!1;n={type:o,value:s},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},f.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},f.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},f.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,u=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),u=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),s))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),u=!0);if(!i.any&&null===i.choice){var f=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===f?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(f,u,c,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},f.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},f.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},f.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},f.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,r){var n=r(226);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},function(t,e,r){var n=e;n.der=r(227),n.pem=r(545)},function(t,e,r){var n=r(1),i=r(9).Buffer,o=r(227);function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,u=-1,s=-1,f=0;f<r.length;f++){var c=r[f].match(a);if(null!==c&&c[2]===n){if(-1!==u){if("END"!==c[1])break;s=f;break}if("BEGIN"!==c[1])break;u=f}}if(-1===u||-1===s)throw new Error("PEM section not found for: "+n);var h=r.slice(u+1,s).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new i(h,"base64");return o.prototype.decode.call(this,l,e)}},function(t,e,r){var n=e;n.der=r(228),n.pem=r(547)},function(t,e,r){var n=r(1),i=r(228);function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},function(t,e,r){"use strict";var n=r(77),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),u=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),s=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),f=n.define("RDNSequence",(function(){this.seqof(s)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),h=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),l=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(h),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(u),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(95),u=r(135),s=r(229).Buffer;t.exports=function(t,e){var r,f=t.toString(),c=f.match(n);if(c){var h="aes"+c[1],l=s.from(c[2],"hex"),d=s.from(c[3].replace(/[\r\n]/g,""),"base64"),p=a(e,l.slice(0,8),parseInt(c[1],10)).key,m=[],v=u.createDecipheriv(h,p,l);m.push(v.update(d)),m.push(v.final()),r=s.concat(m)}else{var y=f.match(o);r=s.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(i)[1],data:r}}},function(t,e,r){"use strict";var n=r(138).Buffer,i=r(141),o=r(142).ec,a=r(97),u=r(230);function s(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,r,f,c){var h=a(r);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(t,e,r){var n=u[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,o=r.data.q,u=r.data.g,f=r.data.pub_key,c=a.signature.decode(t,"der"),h=c.s,l=c.r;s(h,o),s(l,o);var d=i.mont(n),p=h.invm(o);return 0===u.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(f.toRed(d).redPow(l.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(l)}(t,e,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");e=n.concat([c,e]);for(var l=h.modulus.byteLength(),d=[1],p=0;e.length+d.length+2<l;)d.push(255),p+=1;d.push(0);for(var m=-1;++m<e.length;)d.push(e[m]);d=n.from(d);var v=i.mont(h.modulus);t=(t=new i(t).toRed(v)).redPow(new i(h.publicExponent)),t=n.from(t.fromRed().toArray());var y=p<8?1:0;for(l=Math.min(t.length,d.length),t.length!==d.length&&(y=1),m=-1;++m<l;)y|=t[m]^d[m];return 0===y}},function(t,e,r){(function(e){var n=r(142),i=r(553);t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length<n){var o=new e(n-i.length);o.fill(0),i=e.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),u(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,t)},a.prototype.getPrivateKey=function(t){return u(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new i(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(9).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(554).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var u=t.charCodeAt(a)-48;i*=n,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,s=0,c=r;c<u;c+=n)s=f(t,c,c+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var h=1;for(s=f(t,c,t.length,e),c=0;c<a;c++)h*=e;this.imuln(h),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var f=1;f<n;f++){for(var c=s>>>26,h=67108863&s,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,s=0|c}return 0!==s?r.words[f]=0|s:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===e,f=new t(o),c=this.clone();if(s){for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[u]=a;for(;u<o;u++)f[u]=0}else{for(u=0;u<o-i;u++)f[u]=0;for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[o-u-1]=a}return f},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,f=0,c=0|a[0],h=8191&c,l=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,g=v>>>13,b=0|a[3],w=8191&b,M=b>>>13,_=0|a[4],S=8191&_,O=_>>>13,E=0|a[5],k=8191&E,P=E>>>13,j=0|a[6],R=8191&j,A=j>>>13,x=0|a[7],T=8191&x,I=x>>>13,F=0|a[8],C=8191&F,N=F>>>13,q=0|a[9],D=8191&q,L=q>>>13,B=0|u[0],G=8191&B,U=B>>>13,z=0|u[1],V=8191&z,W=z>>>13,H=0|u[2],Z=8191&H,K=H>>>13,Y=0|u[3],X=8191&Y,$=Y>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ft=ut>>>13,ct=0|u[8],ht=8191&ct,lt=ct>>>13,dt=0|u[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(f+(n=Math.imul(h,G))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,G)|0))<<13)|0;f=((o=Math.imul(l,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,G),i=(i=Math.imul(p,U))+Math.imul(m,G)|0,o=Math.imul(m,U);var yt=(f+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;f=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,G),i=(i=Math.imul(y,U))+Math.imul(g,G)|0,o=Math.imul(g,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var gt=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(l,Z)|0))<<13)|0;f=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(w,G),i=(i=Math.imul(w,U))+Math.imul(M,G)|0,o=Math.imul(M,U),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,K)|0;var bt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(S,G),i=(i=Math.imul(S,U))+Math.imul(O,G)|0,o=Math.imul(O,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,G),i=(i=Math.imul(k,U))+Math.imul(P,G)|0,o=Math.imul(P,U),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var Mt=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,U))+Math.imul(A,G)|0,o=Math.imul(A,U),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(T,G),i=(i=Math.imul(T,U))+Math.imul(I,G)|0,o=Math.imul(I,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var St=(f+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,st)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,U))+Math.imul(N,G)|0,o=Math.imul(N,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ft)|0;var Ot=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,U))+Math.imul(L,G)|0,o=Math.imul(L,U),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,st)|0,o=o+Math.imul(g,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Et=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(M,st)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(g,ht)|0,o=o+Math.imul(g,lt)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Z),i=(i=Math.imul(D,K))+Math.imul(L,Z)|0,o=Math.imul(L,K),n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(O,st)|0,o=o+Math.imul(O,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,lt)|0;var Pt=(f+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(g,pt)|0))<<13)|0;f=((o=o+Math.imul(g,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(P,st)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(A,st)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,lt)|0;var Rt=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(O,pt)|0))<<13)|0;f=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(L,rt)|0,o=Math.imul(L,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ft)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var At=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(P,pt)|0))<<13)|0;f=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(L,ot)|0,o=Math.imul(L,at),n=n+Math.imul(C,st)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var xt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(A,pt)|0))<<13)|0;f=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,st),i=(i=Math.imul(D,ft))+Math.imul(L,st)|0,o=Math.imul(L,ft),n=n+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,lt)|0;var Tt=(f+(n=n+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var It=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ft=(f+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return f=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,s[0]=vt,s[1]=yt,s[2]=gt,s[3]=bt,s[4]=wt,s[5]=Mt,s[6]=_t,s[7]=St,s[8]=Ot,s[9]=Et,s[10]=kt,s[11]=Pt,s[12]=jt,s[13]=Rt,s[14]=At,s[15]=xt,s[16]=Tt,s[17]=It,s[18]=Ft,0!==f&&(s[19]=f,r.length++),r};function m(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var u=67108863&n,s=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=s;f++){var c=o-f,h=(0|t.words[c])*(0|e.words[f]),l=67108863&h;u=67108863&(l=l+u|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),f=Math.sin(2*Math.PI/u),c=0;c<i;c+=u)for(var h=s,l=f,d=0;d<a;d++){var p=r[c+d],m=n[c+d],v=r[c+d+a],y=n[c+d+a],g=h*v-l*y;y=h*y+l*v,v=g,r[c+d]=p+v,n[c+d]=m+y,r[c+d+a]=p-v,n[c+d+a]=m-y,d!==u&&(g=s*h-f*l,l=s*l+f*h,h=g)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),f=new Array(n),c=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,u,s,n,i),this.transform(f,o,c,h,n,i);for(var d=0;d<n;d++){var p=u[d]*c[d]-s[d]*h[d];s[d]=u[d]*h[d]+s[d]*c[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<r;this.words[e]=s|a,a=u>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=r;if(i-=a,i=Math.max(0,i),s){for(var f=0;f<a;f++)s.words[f]=this.words[f];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,f=0;f<this.length;f++)this.words[f]=this.words[f+a];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this.strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,s=n.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,u&&(u.words[s]=1));for(var h=s-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);u&&(u.words[h]=l)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),a.isub(s)):(r.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:r.iushln(f)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(u)):(r.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(u);){for(var m=d,v=0;0!==m.cmp(u);v++)m=m.redSqr();n(v<p);var y=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(y),h=y.redSqr(),d=d.redMul(h),p=v}return l},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var f=e.words[n],c=s-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++u||0===n&&0===c)&&(i=this.mul(i,r[a]),u=0,a=0)):u=0}s=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,S),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(38)(t))},function(t,e){},function(t,e,r){e.publicEncrypt=r(556),e.privateDecrypt=r(558),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},function(t,e,r){var n=r(97),i=r(64),o=r(71),a=r(231),u=r(232),s=r(145),f=r(233),c=r(140),h=r(7).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var d,p=n(t);if(4===l)d=function(t,e){var r=t.modulus.byteLength(),n=e.length,f=o("sha1").update(h.alloc(0)).digest(),c=f.length,l=2*c;if(n>r-l-2)throw new Error("message too long");var d=h.alloc(r-n-l-2),p=r-c-1,m=i(c),v=u(h.concat([f,d,h.alloc(1,1),e],p),a(m,p)),y=u(m,a(v,c));return new s(h.concat([h.alloc(1),y,v],r))}(p,e);else if(1===l)d=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(t){var e,r=h.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(r[n++]=e);return r}(a-o-3);return new s(h.concat([h.from([0,r?1:2]),n,h.alloc(1),e],a))}(p,e,r);else{if(3!==l)throw new Error("unknown padding");if((d=new s(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?c(d,p):f(d,p)}},function(t,e){},function(t,e,r){var n=r(97),i=r(231),o=r(232),a=r(145),u=r(140),s=r(71),f=r(233),c=r(7).Buffer;t.exports=function(t,e,r){var h;h=t.padding?t.padding:r?1:4;var l,d=n(t),p=d.modulus.byteLength();if(e.length>p||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");l=r?f(new a(e),d):u(e,d);var m=c.alloc(p-l.length);if(l=c.concat([m,l],p),4===h)return function(t,e){var r=t.modulus.byteLength(),n=s("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var u=e.slice(1,a+1),f=e.slice(a+1),h=o(u,i(f,a)),l=o(f,i(h,r-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(n,l.slice(0,a)))throw new Error("decryption error");var d=a;for(;0===l[d];)d++;if(1!==l[d++])throw new Error("decryption error");return l.slice(d)}(d,l);if(1===h)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===h)return l;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(7),a=r(64),u=o.Buffer,s=o.kMaxLength,f=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>s||t>e)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>s)throw new RangeError("buffer too small")}function d(t,e,r,i){if(n.browser){var o=t.buffer,u=new Uint8Array(o,e,r);return f.getRandomValues(u),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}f&&f.getRandomValues||!n.browser?(e.randomFill=function(e,r,n,i){if(!(u.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,e.length),l(n,r,e.length),d(e,r,n,i)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(u.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,e.length),void 0===n&&(n=e.length-r);return l(n,r,e.length),d(e,r,n)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,r(15),r(22))},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function u(r,n,i,o){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return a(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,o),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(a(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,a(d,"constructor",h),a(h,"constructor",c),c.displayName="GeneratorFunction",a(h,i,"GeneratorFunction"),a(d),a(d,i,"Generator"),a(d,n,(function(){return this})),a(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:u,m:p}})()}function a(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(a=function(t,e,r,n){function o(e,r){a(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(o("next",0),o("throw",1),o("return",2))})(t,e,r,n)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}function f(t){return(f="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})(t)}var c,h,l,d,p,m,v,y=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},g=this&&this.__metadata||function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},b=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},w=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var M=r(14),_=r(234),S=r(235),O=w(r(564)),E=w(r(44)),k=w(r(146)),P=w(r(236)),j=w(r(6)),R=r(566),A="@signageos/front-applet:FrontApplet:Video",x=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.onceDeferredIndex={},this.eventEmitter=new M.EventEmitter}return e=t,(r=[{key:"play",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u,s,f,c;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,this.removeAllVideoListeners(t,e,r,n,i),s=this.createOncePromise("ended",t,e,r,n,i),f=this.createOncePromise("stop",t,e,r,n,i),o.n=1,this.postMessage({type:this.getMessage("play"),uri:t,x:e,y:r,width:n,height:i});case 1:c=(0,R.stringifySrcArguments)(t,e,r,n,i),this.onceDeferredIndex[c]={ended:s,stop:f},this.createAndEmitEvent("play",t,e,r,n,i);case 2:return o.a(2)}}),a,this)})))}},{key:"prepare",value:function(t,e,r,n,i){return b(this,arguments,void 0,(function(t,e,r,n,i){var a=this,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return o().m((function s(){var f;return o().w((function(o){for(;;)switch(o.n){case 0:return a.checkParamsValidity(t,e,r,n,i),f=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=f.x,r=f.y,n=f.width,i=f.height,o.n=1,a.postMessage({type:a.getMessage("prepare"),uri:t,x:e,y:r,width:n,height:i,options:u});case 1:a.createAndEmitEvent("prepare",t,e,r,n,i);case 2:return o.a(2)}}),s)}))()}))}},{key:"stop",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u,s,f,c,h;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),c=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=c.x,r=c.y,n=c.width,i=c.height,o.n=1,this.postMessage({type:this.getMessage("stop"),uri:t,x:e,y:r,width:n,height:i});case 1:this.createAndEmitEvent("stop",t,e,r,n,i),h=(0,R.stringifySrcArguments)(t,e,r,n,i),null===(f=null===(u=this.onceDeferredIndex[h])||void 0===u?void 0:(s=u.ended).reject)||void 0===f||f.call(s,new O.default({kind:"appletVideoError",message:"This video was stopped already. The arguments: ".concat(h),code:E.default.VIDEO_WAS_STOPPED_ALREADY,suggestion:k.default.VIDEO_WAS_STOPPED_ALREADY})),delete this.onceDeferredIndex[h];case 2:return o.a(2)}}),a,this)})))}},{key:"pause",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,o.n=1,this.postMessage({type:this.getMessage("pause"),uri:t,x:e,y:r,width:n,height:i});case 1:this.createAndEmitEvent("pause",t,e,r,n,i);case 2:return o.a(2)}}),a,this)})))}},{key:"resume",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,o.n=1,this.postMessage({type:this.getMessage("resume"),uri:t,x:e,y:r,width:n,height:i});case 1:this.createAndEmitEvent("resume",t,e,r,n,i);case 2:return o.a(2)}}),a,this)})))}},{key:"onceEnded",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i});e=o.x,r=o.y,n=o.width,i=o.height;var a=(0,R.stringifySrcArguments)(t,e,r,n,i),u=this.onceDeferredIndex[a];if(void 0===u)throw new O.default({kind:"appletVideoError",message:"This video was not played yet. The arguments: ".concat(a),code:E.default.VIDEO_WAS_NOT_PLAYED_YET,suggestion:k.default.VIDEO_WAS_NOT_PLAYED});return u.ended.oncePromise}},{key:"onceStop",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i});e=o.x,r=o.y,n=o.width,i=o.height;var a=(0,R.stringifySrcArguments)(t,e,r,n,i),u=this.onceDeferredIndex[a];if(void 0===u)throw new O.default({kind:"appletVideoError",message:"This video was not played yet. The arguments: ".concat(a),code:E.default.VIDEO_WAS_NOT_PLAYED_YET,suggestion:k.default.VIDEO_WAS_NOT_PLAYED});return u.stop.oncePromise}},{key:"onPlay",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("play",t)}},{key:"onPrepare",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("prepare",t)}},{key:"onStop",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("stop",t)}},{key:"onPause",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("pause",t)}},{key:"onResume",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("resume",t)}},{key:"onEnded",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("ended",t)}},{key:"onError",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("error",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("ended"):case this.getMessage("error"):var e=t.type.substring(this.getMessage("").length);this.createAndEmitEvent(e,t.uri,t.x,t.y,t.width,t.height)}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"createOncePromise",value:function(t,e,r,n,i,o){var a=this,u={};return u.oncePromise=new Promise((function(s,f){u.reject=f;var c={uri:e,x:r,y:n,width:i,height:o},h=(0,R.getEventName)({type:t,srcArguments:c}),l=(0,R.getEventName)({type:"error",srcArguments:c}),d=function(u){JSON.stringify(u.srcArguments)===JSON.stringify({uri:e,x:r,y:n,width:i,height:o})&&(a.eventEmitter.removeListener(h,d),a.eventEmitter.removeListener(l,d),u.type===t?s():"error"===u.type&&f(new P.default({kind:"sosError",message:JSON.stringify(u.srcArguments),code:E.default.UNEXPECTED_EXCEPTION})))};a.eventEmitter.addListener(h,d),a.eventEmitter.addListener(l,d)})),u}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"removeAllVideoListeners",value:function(t,e,r,i,o){var a,u=n(R.VIDEO_EVENT_TYPES);try{for(u.s();!(a=u.n()).done;){var s=a.value,f=(0,R.getEventName)({type:s,srcArguments:{uri:t,x:e,y:r,width:i,height:o}});this.eventEmitter.removeAllListeners(f)}}catch(t){u.e(t)}finally{u.f()}}},{key:"createAndEmitEvent",value:function(t,e,r,n,i,o){var a={type:t,srcArguments:{uri:e,x:r,y:n,width:i,height:o}},u=(0,R.getEventName)(a);this.eventEmitter.emit(u,a),this.eventEmitter.emit(a.type,a)}},{key:"checkParamsValidity",value:function(t,e,r,n,i){(0,j.default)({uri:t}).required().uri(),(0,j.default)({x:e}).required().number(),(0,j.default)({y:r}).required().number(),(0,j.default)({width:n}).required().number(),(0,j.default)({height:i}).required().number()}}])&&u(e.prototype,r),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}();x.MESSAGE_PREFIX="video",e.default=x,y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(c="undefined"!=typeof Promise&&Promise)?c:Object)],x.prototype,"play",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number,Object]),g("design:returntype","function"==typeof(h="undefined"!=typeof Promise&&Promise)?h:Object)],x.prototype,"prepare",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(l="undefined"!=typeof Promise&&Promise)?l:Object)],x.prototype,"stop",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(d="undefined"!=typeof Promise&&Promise)?d:Object)],x.prototype,"pause",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(p="undefined"!=typeof Promise&&Promise)?p:Object)],x.prototype,"resume",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(m="undefined"!=typeof Promise&&Promise)?m:Object)],x.prototype,"onceEnded",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(v="undefined"!=typeof Promise&&Promise)?v:Object)],x.prototype,"onceStop",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onPlay",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onPrepare",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onStop",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onPause",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onResume",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onEnded",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onError",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[]),g("design:returntype",void 0)],x.prototype,"removeEventListeners",null)},function(t,e,r){(function(n){var i;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(562)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,r(22))},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,o,a=null;function u(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(u.enabled){var o=u,a=Number(new Date),s=a-(r||a);o.diff=s,o.prev=r,o.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var f=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";f++;var i=e.formatters[r];if("function"==typeof i){var a=n[f];t=i.call(o,a),n.splice(f,1),f--}return t})),e.formatArgs.call(o,n);var c=o.log||e.log;c.apply(o,n)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=i,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,o=e.enabled(t)),o)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(u),u}function i(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(n(e.names.map(o)),n(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(563),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},function(t,e){var r=1e3,n=6e4,i=60*n,o=24*i;function a(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,e){e=e||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return a(t,e,o,"day");if(e>=i)return a(t,e,i,"hour");if(e>=n)return a(t,e,n,"minute");if(e>=r)return a(t,e,r,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=i)return Math.round(t/i)+"h";if(e>=n)return Math.round(t/n)+"m";if(e>=r)return Math.round(t/r)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{pathToDocs:e.PATH_TO_DOCS,kind:"appletError",type:t.type?t.type:"AppletVideoError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);c.PATH_TO_DOCS="/sdk/content/js-video",e.default=c},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}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})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=r(6),c=s(r(238)),h=s(r(147)),l=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.error=void 0},(e=[{key:"validate",value:function(t,e,r){if("object"!==o(t))throw new Error("invalid object interface, needs to be object");var n=!0;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=t[i];if("object"===o(a)){var u=this.validateTypingObject(a,i,e);!0!==u&&(n=!0===n?u:n+"\n"+u)}else{var s=this.validateType(a,i,e);!0!==s&&(n=!0===n?s:n+"\n"+s)}}return void 0===r&&void 0!==this.error&&!0!==n&&this.throwError(this.error,n),!0===n||"".concat(void 0!==r?"".concat(r,":\n"):""," {\n").concat(n,"\n}")}},{key:"validateType",value:function(t,e,r){var n=!t.startsWith("?");return t=n?t:t.substring(1),!n&&!Object.prototype.hasOwnProperty.call(r,e)||(n&&!Object.prototype.hasOwnProperty.call(r,e)?"".concat(e,": is required"):o(r[e])===t||"".concat(e,": needs to be type ").concat(t,". Got ").concat(o(r[e])))}},{key:"validateTypingObject",value:function(t,e,r){var n=void 0!==t.error?t.error:void 0;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"error"!==i&&(f.validatableType.includes(i)||f.validatableType.includes(i.substr(1)))){var a=t[i],u=!i.startsWith("?");if(i=u?i:i.substring(1),!Object.prototype.hasOwnProperty.call(r,e)){if(u){var s="".concat(e,": is required");return void 0===this.error&&void 0!==n&&(this.error=n),s}return!0}var c=r[e];if(o(c)!==("array"===i?"object":i)){var h="".concat(e,": needs to be type ").concat(i,". Got ").concat(o(c));return void 0===this.error&&void 0!==n&&(this.error=n),h}if(("string"===i||"number"===i)&&Array.isArray(a)&&!a.includes(c)){var l="".concat(e,": has to be one of ").concat(JSON.stringify(a));return void 0===this.error&&void 0!==n&&(this.error=n),l}if("array"===i){var d=this.validateArray(a,e,c);if(!0!==d)return void 0===this.error&&void 0!==n&&(this.error=n),d}if("object"===i)return this.validate(a,c,e)}return!0}},{key:"validateArray",value:function(t,e,r){var i;i="string"==typeof t?[t]:Array.isArray(t)?t:Object.keys(t).filter((function(t){return"error"!==t}));var a,u=n(r);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=f.Validate.validateType(i,s);if(!0!==c)return"has to be array of types: ".concat(JSON.stringify(i),". ").concat(JSON.stringify(s)," is ").concat(c," instead");if("object"===o(s)&&void 0!==t.object){var h=this.validate(t.object,s,e);if(!0!==h)return h}}}catch(t){u.e(t)}finally{u.f()}return!0}},{key:"throwError",value:function(t,e){throw new c.default({kind:"appletResourcesError",message:"".concat(h.default[t.code],"\n\nValidation info:\n").concat(e,"\n"),code:t.code})}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";function n(t,e,r,n,i){return"".concat(t,"$").concat(e,"_").concat(r,"_").concat(n,"_").concat(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.VIDEO_EVENT_TYPES=void 0,e.getEventName=function(t){var e=n(t.srcArguments.uri,t.srcArguments.x,t.srcArguments.y,t.srcArguments.width,t.srcArguments.height);return"".concat(t.type,"_").concat(e)},e.stringifySrcArguments=n,e.VIDEO_EVENT_TYPES=["prepare","play","stop","pause","resume","ended","error"]},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function u(t){return(u="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})(t)}var s,f,c,h,l,d,p,m,v=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},y=this&&this.__metadata||function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},b=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var w=r(14),M=r(234),_=r(235),S=b(r(568)),O=b(r(44)),E=b(r(6)),k="@signageos/front-applet:FrontApplet:Stream",P=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new w.EventEmitter}return e=t,(r=[{key:"prepare",value:function(t,e,r,i,o,a){return g(this,void 0,void 0,n().m((function u(){var s,f;return n().w((function(n){for(;;)switch(n.n){case 0:if(f=void 0,(null==(s="string"==typeof a?{protocol:a}:a)?void 0:s.protocol)&&(f=s.protocol),!f||"string"==typeof f){n.n=1;break}throw new S.default({kind:"appletStreamError",message:"Invalid format of protocol, must be string.",code:O.default.STREAM_INVALID_PROTOCOL_TYPE});case 1:return this.checkParamsValidity(t,e,r,i,o),this.createAndEmitEvent("prepare",{type:"prepare",srcArguments:{uri:t,x:e,y:r,width:i,height:o,protocol:f}}),n.a(2,this.postMessage({type:this.getMessage("prepare"),uri:t,x:e,y:r,width:i,height:o,protocol:f,options:s}))}}),u,this)})))}},{key:"play",value:function(t,e,r,i,o,a){return g(this,void 0,void 0,n().m((function u(){var s,f,c;return n().w((function(n){for(;;)switch(n.n){case 0:if(f=void 0,(null==(s="string"==typeof a?{protocol:a}:a)?void 0:s.protocol)&&(f=s.protocol),this.checkParamsValidity(t,e,r,i,o),c=(0,_.sanitizeCoordinations)({x:e,y:r,width:i,height:o}),e=c.x,r=c.y,i=c.width,o=c.height,!f||"string"==typeof f){n.n=1;break}throw new S.default({kind:"appletStreamError",message:"Invalid format of protocol, must be string.",code:O.default.STREAM_INVALID_PROTOCOL_TYPE});case 1:return this.createAndEmitEvent("play",{type:"play",srcArguments:{uri:t,x:e,y:r,width:i,height:o,protocol:f}}),n.a(2,this.postMessage({type:this.getMessage("play"),uri:t,x:e,y:r,width:i,height:o,protocol:f,options:s}))}}),u,this)})))}},{key:"stop",value:function(t,e,r,i,o){return g(this,void 0,void 0,n().m((function a(){var u;return n().w((function(n){for(;;)switch(n.n){case 0:return this.checkParamsValidity(t,e,r,i,o),u=(0,_.sanitizeCoordinations)({x:e,y:r,width:i,height:o}),e=u.x,r=u.y,i=u.width,o=u.height,this.createAndEmitEvent("stop",{type:"stop",srcArguments:{uri:t,x:e,y:r,width:i,height:o}}),n.a(2,this.postMessage({type:this.getMessage("stop"),uri:t,x:e,y:r,width:i,height:o}))}}),a,this)})))}},{key:"pause",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,_.sanitizeCoordinations)({x:e,y:r,width:n,height:i});return e=o.x,r=o.y,n=o.width,i=o.height,this.createAndEmitEvent("pause",{type:"pause",srcArguments:{uri:t,x:e,y:r,width:n,height:i}}),this.postMessage({type:this.getMessage("pause"),uri:t,x:e,y:r,width:n,height:i})}},{key:"resume",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,_.sanitizeCoordinations)({x:e,y:r,width:n,height:i});return e=o.x,r=o.y,n=o.width,i=o.height,this.createAndEmitEvent("resume",{type:"resume",srcArguments:{uri:t,x:e,y:r,width:n,height:i}}),this.postMessage({type:this.getMessage("resume"),uri:t,x:e,y:r,width:n,height:i})}},{key:"getTracks",value:function(t){return g(this,void 0,void 0,n().m((function e(){var r,i;return n().w((function(e){for(;;)switch(e.n){case 0:return(0,E.default)({videoId:t}).required().object(),e.n=1,this.postMessage({type:this.getMessage("get_tracks"),videoId:t});case 1:return r=e.v,i=r.tracks,e.a(2,i)}}),e,this)})))}},{key:"selectTrack",value:function(t,e,r,i){return g(this,void 0,void 0,n().m((function o(){return n().w((function(n){for(;;)switch(n.n){case 0:return(0,E.default)({videoId:t}).required().object(),(0,E.default)({trackType:e}).required().string(),(0,E.default)({groupId:r}).required().string(),(0,E.default)({trackIndex:i}).required().number(),n.a(2,this.postMessage({type:this.getMessage("select_track"),videoId:t,trackType:e,groupId:r,trackIndex:i}))}}),o,this)})))}},{key:"resetTrack",value:function(t,e,r){return g(this,void 0,void 0,n().m((function i(){return n().w((function(n){for(;;)switch(n.n){case 0:return(0,E.default)({videoId:t}).required().object(),(0,E.default)({trackType:e}).required().string(),r&&(0,E.default)({groupId:r}).string(),n.a(2,this.postMessage({type:this.getMessage("reset_track"),videoId:t,trackType:e,groupId:r}))}}),i,this)})))}},{key:"onTracksChanged",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("tracks_changed",t)}},{key:"onError",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("error",t)}},{key:"onConnected",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("connected",t)}},{key:"onDisconnected",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("disconnected",t)}},{key:"onPrepare",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("prepare",t)}},{key:"onPlay",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("play",t)}},{key:"onStop",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("stop",t)}},{key:"onPause",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("pause",t)}},{key:"onResume",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("resume",t)}},{key:"handleMessageData",value:function(t){var e,r,n,i,o,a;switch(t.type){case this.getMessage("error"):this.createAndEmitEvent("error",{type:"error",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(r=null===(e=t.options)||void 0===e?void 0:e.protocol)&&void 0!==r?r:t.protocol},errorMessage:t.errorMessage});break;case this.getMessage("connected"):this.createAndEmitEvent("connected",{type:"connected",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(i=null===(n=t.options)||void 0===n?void 0:n.protocol)&&void 0!==i?i:t.protocol}});break;case this.getMessage("disconnected"):this.createAndEmitEvent("disconnected",{type:"disconnected",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(a=null===(o=t.options)||void 0===o?void 0:o.protocol)&&void 0!==a?a:t.protocol}});break;case this.getMessage("tracks_changed"):this.createAndEmitEvent("tracks_changed",{type:"tracks_changed",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height},tracks:t.tracks})}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"createAndEmitEvent",value:function(t,e){this.eventEmitter.emit(t,e)}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkParamsValidity",value:function(t,e,r,n,i){(0,E.default)({uri:t}).required().uri(),(0,E.default)({x:e}).required().number(),(0,E.default)({y:r}).required().number(),(0,E.default)({width:n}).required().number(),(0,E.default)({height:i}).required().number()}}])&&o(e.prototype,r),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}();P.MESSAGE_PREFIX="stream",e.default=P,v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number,Object]),y("design:returntype","function"==typeof(s="undefined"!=typeof Promise&&Promise)?s:Object)],P.prototype,"prepare",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number,Object]),y("design:returntype","function"==typeof(f="undefined"!=typeof Promise&&Promise)?f:Object)],P.prototype,"play",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number]),y("design:returntype","function"==typeof(c="undefined"!=typeof Promise&&Promise)?c:Object)],P.prototype,"stop",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number]),y("design:returntype","function"==typeof(h="undefined"!=typeof Promise&&Promise)?h:Object)],P.prototype,"pause",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number]),y("design:returntype","function"==typeof(l="undefined"!=typeof Promise&&Promise)?l:Object)],P.prototype,"resume",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype","function"==typeof(d="undefined"!=typeof Promise&&Promise)?d:Object)],P.prototype,"getTracks",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Object,Object,String,Number]),y("design:returntype","function"==typeof(p="undefined"!=typeof Promise&&Promise)?p:Object)],P.prototype,"selectTrack",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Object,Object,String]),y("design:returntype","function"==typeof(m="undefined"!=typeof Promise&&Promise)?m:Object)],P.prototype,"resetTrack",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onTracksChanged",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onError",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onConnected",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onDisconnected",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onPrepare",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onPlay",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onStop",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onPause",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onResume",null)},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"AppletStreamError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(570),d=h(r(6)),p=h(r(571)),m=h(r(574)),v=r(575),y=r(576),g=h(r(580)),b=h(r(239)),w=h(r(581)),M=function(){function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.window=r,this.postMessage=n,this.FlagControllers=[m.default],this.LoadFileControllers=[b.default,g.default],this.cache=new p.default(this.getMessagePrefix(),this.postMessage),this.types=w.default,this.loadFile=this.LoadFileControllers.reduce((function(t,e){var r=new e(i.window);return t[r.name]=r,t}),{}),this.flagControllers=this.FlagControllers.reduce((function(t,e){var r=new e(i.loadFile);return t[r.name]=r,t}),{}),this.flags=Object.keys(this.flagControllers).reduce((function(t,e){var r=i.flagControllers[e];return t[r.name]=r.create.bind(r),t}),{append:null})}return e=t,(r=[{key:"addFiles",value:function(t){var e=this;(0,d.default)({addFiles:t}).required().array("object");var r=t.map((function(t){return e.addFile(t)}));return Promise.all(r)}},{key:"addFilesSync",value:function(t){return c(this,void 0,void 0,i().m((function e(){var r,n,o,u;return i().w((function(e){for(;;)switch(e.p=e.n){case 0:(0,d.default)({addFiles:t}).required().array("object"),r=a(t),e.p=1,r.s();case 2:if((n=r.n()).done){e.n=4;break}return o=n.value,e.n=3,this.addFile(o);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,u=e.v,r.e(u);case 6:return e.p=6,r.f(),e.f(6);case 7:return e.a(2)}}),e,this,[[1,5,6,7]])})))}},{key:"addFile",value:function(t){return c(this,void 0,void 0,i().m((function e(){var r,n,o,u,s,f;return i().w((function(e){for(;;)switch(e.p=e.n){case 0:return(0,d.default)({addFile:t}).required().object(y.VISaveFile),e.n=1,this.cache.loadOrSaveFile(t.uid,t.uri,t.headers);case 1:r=e.v,n=t.flags||[],o=a(n),e.p=2,o.s();case 3:if((u=o.n()).done){e.n=5;break}return s=u.value,e.n=4,this.handleFileFlag(s,r,t.type);case 4:e.n=3;break;case 5:e.n=7;break;case 6:e.p=6,f=e.v,o.e(f);case 7:return e.p=7,o.f(),e.f(7);case 8:return e.a(2)}}),e,this,[[2,6,7,8]])})))}},{key:"addFont",value:function(t){return c(this,void 0,void 0,i().m((function e(){var r,n,o,a=this;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,d.default)({addFont:t}).required().object(v.VIAddFont),r=(0,l.fontFaceGenerator)(this.window,t),n=Object.keys(t.formats).map((function(e){return c(a,void 0,void 0,i().m((function n(){var o;return i().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,this.cache.loadOrSaveFile((0,l.generateFontUid)(t.uid,e),t.formats[e]);case 1:o=n.v,r.setFormat(e,o.filePath);case 2:return n.a(2)}}),n,this)})))})),e.n=1,Promise.all(n);case 1:o=r.generateStyleElement(),t.append.appendChild(o);case 2:return e.a(2)}}),e,this)})))}},{key:"handleFileFlag",value:function(t,e,r){return c(this,void 0,void 0,i().m((function n(){var o,a;return i().w((function(n){for(;;)switch(n.n){case 0:if(void 0!==(o=this.flagControllers[t.type])){n.n=1;break}throw new Error("Not implemented apply flag "+t.type);case 1:return a=e.filePath,n.n=2,o.applyFlag(t,r,a);case 2:return n.a(2)}}),n,this)})))}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();M.MESSAGE_PREFIX="offline",e.default=M},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFaceGenerator=e.generateFontUid=void 0;e.generateFontUid=function(t,e){return t+"."+e};e.fontFaceGenerator=function(t,e){var r="font-family: '".concat(e.fontFamily,"';"),n=e.fontStretch?"font-stretch: ".concat(e.fontStretch,";"):"",i=e.fontStyle?"font-style: ".concat(e.fontStyle,";"):"",o=e.fontWeight?"font-weight: ".concat(e.fontWeight,";"):"",a=e.unicodeRange?"unicode-range: ".concat(e.unicodeRange,";"):"",u=[],s="";return{setFormat:function(t,e){switch(t){case"woff":u.push("url('".concat(e,"') format('woff')"));break;case"woff2":u.push("url('".concat(e,"') format('woff2')"));break;case"ttf":u.push("url('".concat(e,"') format('truetype')"));break;case"svg":u.push("url('".concat(e,"#svgFontName') format('svg')"));break;case"eot":s="src: url('".concat(e,"');"),u.push("url('".concat(e,"?#iefix') format('embedded-opentype')"));break;default:console.warn("Not supported font format: ".concat(t))}},generateStyleElement:function(){var e="src: "+u.join(", "),f="@font-face {".concat(r).concat(n).concat(i).concat(o).concat(a).concat(s).concat(e," }"),c=t.document.createElement("style");return c.innerHTML=f,c}}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(572)),h=f(r(44)),l=f(r(573)),d=f(r(6)),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.savedFiles={},this.savedContents={}}return e=t,(r=[{key:"listFiles",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("list_files")});case 1:return e=t.v,t.a(2,e.fileUids)}}),t,this)})))}},{key:"loadFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,d.default)({uid:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("load_file"),uid:t});case 1:return r=e.v,this.savedFiles[t]=r.loadedFile,e.a(2,r.loadedFile)}}),e,this)})))}},{key:"saveFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){var o;return i().w((function(n){for(;;)switch(n.n){case 0:if(this.checkUidValidity(t),!r||this.isHeaders(r)){n.n=1;break}throw new l.default({kind:"appletOfflineCacheError",message:"Invalid headers ".concat(r),code:h.default.OFFLINE_CACHE_HEADERS_NOT_VALID});case 1:return n.n=2,this.postMessage({type:this.getMessage("save_file"),uid:t,uri:e,headers:r});case 2:o=n.v,this.savedFiles[t]=o.savedFile;case 3:return n.a(2)}}),n,this)})))}},{key:"loadOrSaveFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.p=n.n){case 0:return(0,d.default)({uid:t}).required().string(),(0,d.default)({uri:e}).required().uri(),n.p=1,n.a(2,this.getCachedFile(t));case 2:return n.p=2,n.v,n.p=3,n.n=4,this.loadFile(t);case 4:return n.a(2,n.v);case 5:return n.p=5,n.v,n.n=6,this.saveFile(t,e,r);case 6:return n.a(2,this.getCachedFile(t))}}),n,this,[[3,5],[1,2]])})))}},{key:"deleteFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkUidValidity(t),e.n=1,this.postMessage({type:this.getMessage("delete_file"),uid:t});case 1:delete this.savedFiles[t];case 2:return e.a(2)}}),e,this)})))}},{key:"listContents",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("list_contents")});case 1:return e=t.v,t.a(2,e.contentUids)}}),t,this)})))}},{key:"loadContent",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r;return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("load_content"),uid:t});case 1:return r=e.v,this.savedContents[t]=r.loadedContent,e.a(2,r.loadedContent)}}),e,this)})))}},{key:"saveContent",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n;return i().w((function(r){for(;;)switch(r.n){case 0:return this.checkUidValidity(t),(0,d.default)({content:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("save_content"),uid:t,content:""+e});case 1:n=r.v,this.savedContents[t]=n.savedContent;case 2:return r.a(2)}}),r,this)})))}},{key:"deleteContent",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkUidValidity(t),e.n=1,this.postMessage({type:this.getMessage("delete_content"),uid:t});case 1:delete this.savedContents[t];case 2:return e.a(2)}}),e,this)})))}},{key:"validateChecksumFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){var o;return i().w((function(n){for(;;)switch(n.n){case 0:return this.checkUidValidity(t),(0,d.default)({hash:e}).required().string(),(0,d.default)({hashType:r}).required().string(),n.n=1,this.postMessage({type:this.getMessage("validate_checksum"),uid:t,hash:e,hashType:r});case 1:return o=n.v,n.a(2,o.validatedChecksum)}}),n,this)})))}},{key:"getChecksumFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n;return i().w((function(r){for(;;)switch(r.n){case 0:return this.checkUidValidity(t),(0,d.default)({hashType:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("get_checksum"),uid:t,hashType:e});case 1:return n=r.v,r.a(2,n.checksum)}}),r,this)})))}},{key:"decompressFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return this.checkUidValidity(t),(0,d.default)({destinationUid:e}).required().string(),n.n=1,this.postMessage({type:this.getMessage("decompress_file"),uid:t,destinationUid:e,method:r});case 1:return n.a(2)}}),n,this)})))}},{key:"getCachedFile",value:function(t){if(void 0===this.savedFiles[t])throw new c.default({kind:"fileNotFoundError",message:"File was not found "+t,code:h.default.FILE_NOT_FOUND_IN_CACHE});return this.savedFiles[t]}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkUidValidity",value:function(t){return(0,d.default)({uid:t}).required().string().matchRegExp(/^[^\\:*"<>|]+$/g,h.default.OFFLINE_CACHE_UID_NOT_VALID),!0}},{key:"isHeaders",value:function(t){return"object"===n(t)&&(Object.getOwnPropertyNames(t).forEach((function(e){if("string"!=typeof e||"string"!=typeof t[e])return!1})),!0)}}])&&a(e.prototype,r),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,o}();p.MESSAGE_PREFIX="cache",e.default=p},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"FileNotFoundError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"AppletOfflineCacheError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);e.default=c},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}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})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(124),c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loadFile=e,this.name="append",this.elementCache={}},(e=[{key:"create",value:function(t){var e=(0,f.generateUniqueHash)();return this.elementCache[e]=t,{type:"append",element:{uid:e}}}},{key:"applyFlag",value:function(t,e,r){return s(this,void 0,void 0,n().m((function i(){var a,u;return n().w((function(n){for(;;)switch(n.n){case 0:if("object"===o(t.element)){n.n=1;break}throw new Error('File flag of type "append" needs to be object');case 1:if(void 0!==(a=this.elementCache[t.element.uid])){n.n=2;break}throw new Error('File flag element for "append" not found');case 2:if(void 0!==(u=this.loadFile[e])){n.n=3;break}throw new Error('File of type "'+e+'" cannot be appent');case 3:return n.n=4,u.load(r,a);case 4:return n.a(2)}}),i,this)})))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIAddFont=e.VIFontFaceProperties=e.VIFontFormats=void 0,e.VIFontFormats={woff2:"string",eot:"?string",woff:"?string",ttf:"?string",svg:"?string"},e.VIFontFaceProperties={fontFamily:"string",fontStretch:"?string",fontStyle:"?string",fontWeight:"?string",unicodeRange:"?string"},e.VIAddFont=Object.assign(e.VIFontFaceProperties,{uid:"string",append:"object",formats:e.VIFontFormats})},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VISaveFile=void 0;var i=r(577),o=r(578),a=n(r(44)),u=n(r(147));e.VISaveFile={uid:{string:null,error:{code:a.default.FILE_DOES_NOT_HAVE_UID,message:u.default[a.default.FILE_DOES_NOT_HAVE_UID]}},uri:"string",type:{string:i.VIFileType,error:{code:a.default.FILE_FLAGS_ARE_NOT_IN_ARRAY,message:u.default[a.default.FILE_FLAGS_ARE_NOT_IN_ARRAY]}},headers:"?object",flags:{"?array":{object:o.VIFlag,error:{code:a.default.FILE_FLAG_IS_NOT_OBJECT,message:u.default[a.default.FILE_FLAG_IS_NOT_OBJECT]}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIFileType=void 0,e.VIFileType=["javascript","css","video"]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIFlag=void 0;var n=r(579);e.VIFlag={type:{string:["append"]},element:{object:n.VIElement}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIElement=void 0,e.VIElement={uid:"string"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.name="css"},(e=[{key:"load",value:function(t,e){var r=this;return new Promise((function(n,i){var o=r.window.document.createElement("link");o.setAttribute("type","text/css"),o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),o.onerror=function(){i(new Error('File "'+t+'" cannot be loaded'))},o.onload=function(){console.info("File "+t.substring(0,100)+" was loaded"),n()},e.appendChild(o)}))}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={javascript:"javascript",css:"css",video:"video"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=f(r(583)),l=f(r(44)),d=f(r(146)),p=f(r(6)),m=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter,this.eventEmitter.setMaxListeners(40)}return e=t,(r=[{key:"dispatch",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkTypeValidity(t.type),e.n=1,this.postMessage({type:this.getMessage("dispatch"),command:t});case 1:return e.a(2)}}),e,this)})))}},{key:"onCommand",value:function(t){(0,p.default)({listener:t}).required().function(),this.eventEmitter.addListener("command",t)}},{key:"handleMessageData",value:function(t){if(t.type===this.getMessage("dispatch_to_applet")){var e={type:"command",command:t.command};this.eventEmitter.emit("command",e)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkTypeValidity",value:function(t){(0,p.default)({type:t}).setError(new h.default({kind:"appletCommandError",message:"Type contains invalid characters.",code:l.default.COMMAND_TYPE_NOT_VALID,suggestion:d.default.COMMAND_TYPE_NOT_VALID})).required().string().matchRegExp(/^[a-zA-Z0-9._-]+$/g),(0,p.default)({type:t}).setError(new h.default({kind:"appletCommandError",message:"Type is longer then 100 characters.",code:l.default.COMMAND_TYPE_IS_TOO_LONG})).lengthMax(100)}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();m.MESSAGE_PREFIX="command",e.default=m},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{type:t.type?t.type:"AppletCommandError",pathToDocs:e.PATH_TO_DOCS,kind:"appletError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);c.PATH_TO_DOCS="/sdk/content/js-command",e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=f(r(585)),l=f(r(586)),d=f(r(587)),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter,this.led=new h.default(this.getMessagePrefix(),this.postMessage),this.barcodeScanner=new d.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"openSerialPort",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("serial_port.open"),options:t});case 1:return r=e.v,n=r.refid,e.a(2,new l.default(n,this.eventEmitter,this.getMessagePrefix(),this.postMessage))}}),e,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("serial_port.data"):this.eventEmitter.emit("serial_port.data."+t.refid,t.data);break;default:this.barcodeScanner.handleMessageData(t)}}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();p.MESSAGE_PREFIX="hardware",e.default=p},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(44)),h=f(r(6)),l=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"setColor",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkColorValidity(t),e.n=1,this.postMessage({type:this.getMessage("set_color"),color:t?t.toUpperCase():null});case 1:return e.a(2)}}),e,this)})))}},{key:"checkColorValidity",value:function(t){(0,h.default)({color:t}).canBeNull().string(null,c.default.HARDWARE_LED_COLOR_IS_NOT_STRING),(0,h.default)({color:t}).canBeNull().matchRegExp(/^#[0-9A-Fa-f]{6,6}$/,c.default.HARDWARE_LED_COLOR_IS_NOT_VALID)}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();l.MESSAGE_PREFIX="led",e.default=l},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.refid=e,this.eventEmitter=r,this.messagePrefix=n,this.postMessage=i},(e=[{key:"onData",value:function(t){this.eventEmitter.addListener("serial_port.data."+this.refid,t)}},{key:"write",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("serial_port.write"),refid:this.refid,data:t});case 1:return e.a(2)}}),e,this)})))}},{key:"close",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("serial_port.close"),refid:this.refid});case 1:this.eventEmitter.removeAllListeners("serial_port.data."+this.refid);case 2:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_SCANNER_ID=void 0;var c=r(14);e.DEFAULT_SCANNER_ID=0;var h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return r=t,(n=[{key:"getVersion",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_version")});case 1:return e=t.v,r=e.version,t.a(2,r)}}),t,this)})))}},{key:"start",value:function(t){return s(this,void 0,void 0,i().m((function r(){var n,o,a,u,c,h,l,d=this;return i().w((function(r){for(;;)switch(r.n){case 0:return n={scannerId:e.DEFAULT_SCANNER_ID,timeout:1e4,cancelPrevious:!1},o=Object.assign(Object.assign({},n),t),a=o.scannerId,(u=f(o,["scannerId"])).cancelPrevious&&(this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".data")),this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".error"))),r.n=1,this.postMessage({type:this.getMessage("start"),scannerId:a,options:u});case 1:return c=function(t){d.eventEmitter.addListener("scanner_id_".concat(a,".data"),t)},h=function(t){d.eventEmitter.addListener("scanner_id_".concat(a,".error"),t)},l=function(){return s(d,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("stop"),scannerId:a});case 1:this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".data")),this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".error"));case 2:return t.a(2)}}),t,this)})))},r.a(2,{stop:l,onData:c,onError:h})}}),r,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("data"):this.eventEmitter.emit("scanner_id_".concat(t.scannerId,".data"),t.data);break;case this.getMessage("error"):this.eventEmitter.emit("scanner_id_".concat(t.scannerId,".error"),t.data)}}},{key:"getMessage",value:function(e){return[this.messagePrefix,t.MESSAGE_PREFIX,e].join(".")}}])&&a(r.prototype,n),o&&a(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();h.MESSAGE_PREFIX="barcode_scanner",e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=f(r(6)),l=r(589),d=r(590),p=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.exchange=e,this.events=new c.EventEmitter},(e=[{key:"open",value:function(t){return s(this,arguments,void 0,(function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().m((function n(){var o,a;return i().w((function(n){for(;;)switch(n.n){case 0:return(0,h.default)({uri:t}).required().uri(),(0,h.default)({options:r}).required().object(d.VIOpenLinkOptions),a=null===(o=r.headlessMode)||void 0===o||o,n.n=1,e.exchange.postMessage(Object.assign(Object.assign({uri:t},r),{headlessMode:a,type:"open"}));case 1:return n.a(2)}}),n)}))()}))}},{key:"close",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.exchange.postMessage({type:"close"});case 1:return t.a(2)}}),t,this)})))}},{key:"onClose",value:function(t){var e=this;return(0,h.default)({listener:t}).required().function(),this.events.addListener(l.EventType.CLOSE,t),function(){e.events.removeListener(l.EventType.CLOSE,t)}}},{key:"handleMessageData",value:function(t){switch(t.type){case this.exchange.messageNameToType("closed"):var e={type:l.EventType.CLOSE,reason:t.reason};this.events.emit(l.EventType.CLOSE,e)}}},{key:"openLink",value:function(t){return s(this,arguments,void 0,(function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return console.warn("sos.browser.openLink() is deprecated and will be removed in the future versions. Use sos.browser.open() instead."),(0,h.default)({uri:t}).required().uri(),(0,h.default)({options:r}).required().object(),n.n=1,e.exchange.postMessage(Object.assign(Object.assign({uri:t},r),{headlessMode:!1,type:"open_link"}));case 1:return n.a(2)}}),n)}))()}))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=p},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.CloseReason=e.VIEventType=e.EventType=void 0,function(t){t.CLOSE="close"}(n||(e.EventType=n={})),e.VIEventType=["close"],function(t){t.API="API",t.USER="USER",t.TIMEOUT="TIMEOUT"}(i||(e.CloseReason=i={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIOpenLinkOptions=e.VITheme=void 0,e.VITheme={base:{"?string":["light","dark"]},shape:{"?object":{cornerSize:"?number"}},colors:{"?object":{primary:"?string",background:"?string",control:"?string"}},widgets:{"?object":{editAddress:{"?object":{colors:{"?object":{background:"?string",text:"?string"}}}},buttonClose:{"?object":{colors:{"?object":{background:"?string",text:"?string",icon:"?string"}},icon:{"?string":["none","exit_to_app","close","cancel"]},text:"?string"}},progress:{"?object":{color:"?string"}}}}},e.VIOpenLinkOptions={aclDomains:{"?array":"string"},aclMode:{"?string":["blacklist","whitelist"]},readOnlyAddressBar:"?boolean",idleTimeout:"?number",coordinates:{"?object":{x:"number",y:"number",width:"number",height:"number"}},theme:{"?object":e.VITheme},headlessMode:"?boolean",clearData:"?boolean",canUserClose:"?boolean",method:{"?string":["native","iframe"]}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.base=n,this.transformers=i,this.frontAppletWindows=[]},(e=[{key:"registerFrontAppletLoaderWindow",value:function(t){t.postMessage({type:this.getMessage("api_js_uri"),uri:this.base.apiJsUri},"*")}},{key:"registerBundledFrontAppletWindow",value:function(t){this.frontAppletWindows.push(t),t.postMessage({type:this.getMessage("config.update"),config:this.base.config},"*"),t.postMessage({type:this.getMessage("auth_hash.update"),authHash:this.base.authHash},"*"),t.postMessage({type:this.getMessage("front_display_version.update"),version:this.base.display.version},"*")}},{key:"forwardToFrontAppletWindows",value:function(t){var e,r=this,n=i(this.frontAppletWindows);try{var o=function(){var n=e.value,i=r.transformers.reduce((function(t,e){return t?e(t,n):t}),t);if(void 0===i)return 1;n.postMessage(i,"*")};for(n.s();!(e=n.n()).done;)o()}catch(t){n.e(t)}finally{n.f()}}},{key:"forwardFromFrontAppletWindows",value:function(t,e){-1!==this.frontAppletWindows.indexOf(t)&&this.window.parent.postMessage(e,"*")}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.postMessageToParent=n;var o=function(t){return i.handleTouch(t)};this.window.addEventListener("touchstart",o,!0),this.window.addEventListener("touchend",o,!0),this.window.addEventListener("touchcancel",o,!0),this.window.addEventListener("touchmove",o,!0)}return e=t,(r=[{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("propagate"):var e=this.window.document.elementFromPoint(t.x,t.y);e&&"click"in e&&e.click()}}},{key:"transformIframeData",value:function(t,e){if(t.type!==this.getMessage("propagate"))return t;var r=Array.from(this.window.document.getElementsByTagName("iframe")).find((function(t){return t.contentWindow===e}));return void 0===r||t.x<r.offsetLeft||t.x>r.offsetLeft+r.offsetWidth||t.y<r.offsetTop||t.y>r.offsetTop+r.offsetHeight?void 0:Object.assign(Object.assign({},t),{x:t.x-r.offsetLeft,y:t.y-r.offsetTop})}},{key:"handleTouch",value:function(t){this.postMessageToParent({type:this.getMessage("event"),eventType:t.type})}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();a.MESSAGE_PREFIX="touch",e.default=a},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(14),s=a(r(6)),f=function(){function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.eventEmitter=new u.EventEmitter,this.hasWindowEventListener=!1,this.alive=!0,this.dispatchEventToParent=function(t){try{n.window.parent.document.dispatchEvent(new KeyboardEvent("keyup",t))}catch(e){if(!(e instanceof ReferenceError))throw e;n.window.parent.document.dispatchEvent(t)}},!this.isTopLevelFrame()&&this.canAccessParentOrigin()&&(this.hasWindowEventListener=!0,this.window.addEventListener("keyup",this.dispatchEventToParent))}return e=t,(r=[{key:"destroy",value:function(){this.alive&&(this.alive=!1,this.removeEventListeners(),this.hasWindowEventListener&&this.window.removeEventListener("keyup",this.dispatchEventToParent))}},{key:"onKeyUp",value:function(t){this.checkAlive(),(0,s.default)({listener:t}).required().function(),this.eventEmitter.addListener("keyup",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("keyup"):var e={type:"keyup",keyCode:t.keyCode,keyName:t.keyName};this.emitKeyUpEvent(e)}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"removeEventListener",value:function(t,e){this.eventEmitter.removeListener(t,e)}},{key:"emitKeyUpEvent",value:function(t){this.checkAlive(),this.eventEmitter.emit("keyup",t)}},{key:"isTopLevelFrame",value:function(){return this.window===this.window.parent}},{key:"canAccessParentOrigin",value:function(){var t,e;try{var r=!!(null===(e=null===(t=this.window)||void 0===t?void 0:t.parent)||void 0===e?void 0:e.document);return r||console.warn("Parent window or document is not defined"),r}catch(t){if(t instanceof DOMException)return console.warn("Parent document is not accessible"),!1;throw t}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkAlive",value:function(){if(!this.alive)throw new Error("destroyed")}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="input",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var h=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var d=r(14),p=l(r(6)),m=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=s(this,e)).window=t,i.messagePrefix=r,i.postMessage=n,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(n=[{key:"isRemoteDebugEnabled",value:function(){return h(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_remote_enabled")});case 1:return e=t.v,r=e.isEnabled,t.a(2,r)}}),t,this)})))}},{key:"onRemoteDebugChanged",value:function(t){(0,p.default)({listener:t}).required().function(),this.addListener(e.DEBUG_CHANGED,(function(e){return t({enabled:e.enabled})}))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("configure"):if(this.emit(e.DEBUG_CHANGED,{enabled:t.enabled}),t.enabled){if(this.window.WeinreServerURL=t.url,this.window.WeinreServerId=t.id,!this.window.__weinreLoaded){var r=this.window.document.createElement("script");r.src=t.url+"/target/target-script-min.js",this.window.document.body.appendChild(r),this.window.__weinreLoaded=!0}}else this.window.WeinreServerURL=void 0,this.window.WeinreServerId=void 0}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+e.MESSAGE_PREFIX+"."+t}}])&&a(r.prototype,n),o&&a(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(d.EventEmitter);m.MESSAGE_PREFIX="debug",m.DEBUG_CHANGED="debug.changed",e.default=m},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"getLocation",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_location")});case 1:return e=t.v,r=e.location,t.a(2,r)}}),t,this)})))}},{key:"getOrganizationTags",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_organization_tags")});case 1:return e=t.v,r=e.tags,t.a(2,r)}}),t,this)})))}},{key:"getDeviceName",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r,n;return i().w((function(t){for(;;)switch(t.n){case 0:if("string"!=typeof(e=this.geDeviceNameFromTittle())){t.n=1;break}return t.a(2,e);case 1:return t.n=2,this.postMessage({type:this.getMessage("get_device_name")});case 2:return r=t.v,n=r.name,t.a(2,n)}}),t,this)})))}},{key:"getMessage",value:function(e){return[this.messagePrefix,t.MESSAGE_PREFIX,e].join(".")}},{key:"geDeviceNameFromTittle",value:function(){try{return window.parent.document.head.getElementsByTagName("title")[0].parentElement.getElementsByTagName("title")[0].innerHTML||null}catch(t){return null}}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="device_info",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.version=void 0}return e=t,(r=[{key:"supports",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({capability:t}).string(),e.n=1,this.postMessage({type:this.getMessage("supports"),capability:t});case 1:return r=e.v,n=r.supports,e.a(2,n)}}),e,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();h.MESSAGE_PREFIX="display",e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(598)),s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.triggers=new u.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="timing",e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"pause",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("pause")});case 1:return t.a(2)}}),t,this)})))}},{key:"resume",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("resume")});case 1:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="triggers",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SyncEngine=void 0;var c,h,l=r(14),d=r(600),p=f(r(6));!function(t){t.SyncServer="sync-server",t.P2PLocal="p2p-local",t.Udp="udp"}(c||(e.SyncEngine=c={})),function(t){t.Status="status",t.BroadcastedValue="broadcasted_value",t.Closed="closed"}(h||(h={}));var m=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new l.EventEmitter}return e=t,(r=[{key:"connect",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return r={engine:c.SyncServer},(n="string"==typeof t?{engine:c.SyncServer,uri:t}:void 0===t?r:t).engine===c.SyncServer&&(0,p.default)({uri:n.uri}).uri(),e.n=1,this.postMessage({type:this.getMessage("connect"),engine:n.engine,serverUri:n.uri});case 1:return e.a(2)}}),e,this)})))}},{key:"close",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("close")});case 1:return t.a(2)}}),t,this)})))}},{key:"init",value:function(){return s(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME,n=arguments.length>1?arguments[1]:void 0;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.joinGroup({groupName:r,deviceIdentification:n});case 1:return t.a(2)}}),t)}))()}))}},{key:"joinGroup",value:function(e){return s(this,void 0,void 0,i().m((function r(){var n,o,a;return i().w((function(r){for(;;)switch(r.n){case 0:return n=e.groupName,o=void 0===n?t.DEFAULT_GROUP_NAME:n,a=e.deviceIdentification,(0,p.default)({groupName:o}).required().string(),(0,p.default)({deviceIdentification:a}).string(),r.n=1,this.postMessage({type:this.getMessage("init"),groupName:o,deviceIdentification:a});case 1:return r.a(2)}}),r,this)})))}},{key:"leaveGroup",value:function(){return s(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return(0,p.default)({groupName:r}).required().string(),t.n=1,e.postMessage({type:e.getMessage("leave_group"),groupName:r});case 1:return t.a(2)}}),t)}))()}))}},{key:"wait",value:function(e){return s(this,arguments,void 0,(function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_GROUP_NAME,o=arguments.length>2?arguments[2]:void 0;return i().m((function t(){var a;return i().w((function(t){for(;;)switch(t.n){case 0:return(0,p.default)({groupName:n}).required().string(),(0,p.default)({timeout:o}).number(),t.n=1,r.postMessage({type:r.getMessage("wait"),groupName:n,data:e,timeout:o});case 1:return a=t.v,t.a(2,a.responseData)}}),t)}))()}))}},{key:"cancelWait",value:function(){return s(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return(0,p.default)({groupName:r}).required().string(),t.n=1,e.postMessage({type:e.getMessage("cancel_wait"),groupName:r});case 1:return t.a(2)}}),t)}))()}))}},{key:"setValue",value:function(e,r){return s(this,arguments,void 0,(function(e,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_GROUP_NAME;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,n.broadcastValue({key:e,value:r,groupName:o});case 1:return t.a(2)}}),t)}))()}))}},{key:"broadcastValue",value:function(e){return s(this,arguments,void 0,(function(e){var r=this,n=e.groupName,o=e.key,a=e.value;return i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return n=null!=n?n:t.DEFAULT_GROUP_NAME,(0,p.default)({key:o}).required().string(),(0,p.default)({groupName:n}).required().string(),e.n=1,r.postMessage({type:r.getMessage("request_set_value"),groupName:n,key:o,value:a});case 1:return e.a(2)}}),e)}))()}))}},{key:"isMaster",value:function(e){return s(this,void 0,void 0,i().m((function r(){var n,o;return i().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,this.postMessage({type:this.getMessage("is_master"),groupName:null!=e?e:t.DEFAULT_GROUP_NAME});case 1:return n=r.v,o=n.isMaster,r.a(2,o)}}),r,this)})))}},{key:"onValue",value:function(e){(0,p.default)({listener:e}).required().function(),this.eventEmitter.addListener(h.BroadcastedValue,(function(r){e(r.key,r.value,r.groupName===t.DEFAULT_GROUP_NAME?void 0:r.groupName)}))}},{key:"onStatus",value:function(e){(0,p.default)({listener:e}).required().function(),this.eventEmitter.addListener(h.Status,(function(r){e({connectedPeers:r.connectedPeers,groupName:r.groupName===t.DEFAULT_GROUP_NAME?void 0:r.groupName,isMaster:r.isMaster})}))}},{key:"onClosed",value:function(t){(0,p.default)({listener:t}).required().function(),this.eventEmitter.addListener(h.Closed,t)}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"handleMessageData",value:function(t){var e;switch(t.type){case this.getMessage(d.SyncMessageType.BroadcastedValue):var r=t,n={groupName:r.groupName,key:r.key,value:r.value};this.eventEmitter.emit(h.BroadcastedValue,n);break;case this.getMessage(d.SyncMessageType.Status):var i=t,o={connectedPeers:i.connectedPeers,groupName:i.groupName,isMaster:null!==(e=i.isMaster)&&void 0!==e&&e};this.eventEmitter.emit(h.Status,o);break;case this.getMessage(d.SyncMessageType.Closed):var a=t,u=a.error?new Error(a.error):void 0;this.eventEmitter.emit(h.Closed,u)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();m.MESSAGE_PREFIX="sync",m.DEFAULT_GROUP_NAME="____default____",e.default=m},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SyncMessageType=void 0,function(t){t.BroadcastedValue="set_value",t.Status="device_status",t.Closed="closed"}(n||(e.SyncMessageType=n={}))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=r(602),l=f(r(6)),d=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"listStorageUnits",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("list_storage_units")});case 1:return e=t.v,r=e.storageUnits,t.a(2,r)}}),t,this)})))}},{key:"listInternalStorageUnits",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.listStorageUnits();case 1:return e=t.v,t.a(2,e.filter((function(t){return!t.removable})))}}),t,this)})))}},{key:"onStorageUnitsChanged",value:function(t){(0,l.default)({listener:t}).required().function(),this.eventEmitter.addListener("storage_units_changed",t)}},{key:"removeStorageUnitsChangedListener",value:function(t){(0,l.default)({listener:t}).required().function(),this.eventEmitter.removeListener("storage_units_changed",t)}},{key:"removeAllListeners",value:function(){this.eventEmitter.removeAllListeners("storage_units_changed")}},{key:"listFiles",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({directoryPath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("list_files"),directoryPath:t});case 1:return r=e.v,n=r.files,e.a(2,n)}}),e,this)})))}},{key:"exists",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("exists"),filePath:t});case 1:return r=e.v,n=r.exists,e.a(2,n)}}),e,this)})))}},{key:"getFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("get_file"),filePath:t});case 1:if(r=e.v,n=r.file){e.n=2;break}return e.a(2,null);case 2:return e.a(2,Object.assign(Object.assign({},n),t))}}),e,this)})))}},{key:"writeFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),r.n=1,this.postMessage({type:this.getMessage("write_file"),filePath:t,contents:e});case 1:return r.a(2)}}),r,this)})))}},{key:"appendFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),r.n=1,this.postMessage({type:this.getMessage("append_file"),filePath:t,contents:e});case 1:return r.a(2)}}),r,this)})))}},{key:"readFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("read_file"),filePath:t});case 1:return r=e.v,n=r.contents,e.a(2,n)}}),e,this)})))}},{key:"copyFile",value:function(t,e){return s(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({sourceFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(h.VIFilePath),(0,l.default)({options:n}).required().object(h.VICopyFileOptions),i.n=1,r.postMessage({type:r.getMessage("copy_file"),sourceFilePath:t,destinationFilePath:e,options:n});case 1:return i.a(2)}}),o)}))()}))}},{key:"moveFile",value:function(t,e){return s(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({sourceFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(h.VIFilePath),(0,l.default)({options:n}).required().object(h.VIMoveFileOptions),i.n=1,r.postMessage({type:r.getMessage("move_file"),sourceFilePath:t,destinationFilePath:e,options:n});case 1:return i.a(2)}}),o)}))()}))}},{key:"deleteFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),(0,l.default)({recursive:e}).required().boolean(),r.n=1,this.postMessage({type:this.getMessage("delete_file"),filePath:t,recursive:e});case 1:return r.a(2)}}),r,this)})))}},{key:"downloadFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),(0,l.default)({sourceUri:e}).required().uri(),(0,l.default)({headers:r}).object(),n.n=1,this.postMessage({type:this.getMessage("download_file"),filePath:t,sourceUri:e,headers:r});case 1:return n.a(2)}}),n,this)})))}},{key:"extractFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return(0,l.default)({archiveFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationDirectoryPath:e}).object(h.VIFilePath),(0,l.default)({method:r}).required().string(),n.n=1,this.postMessage({type:this.getMessage("extract_file"),archiveFilePath:t,destinationDirectoryPath:e,method:r});case 1:return n.a(2)}}),n,this)})))}},{key:"createArchive",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({archiveFilePath:t}).required().object(h.VIFilePath),(0,l.default)({archiveEntries:e}).required().array("object"),r.n=1,this.postMessage({type:this.getMessage("create_archive_file"),archiveFilePath:t,archiveEntries:e});case 1:return r.a(2)}}),r,this)})))}},{key:"getFileChecksum",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o;return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),(0,l.default)({hashType:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("get_file_checksum"),filePath:t,hashType:e});case 1:return n=r.v,o=n.checksum,r.a(2,o)}}),r,this)})))}},{key:"createDirectory",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({directoryPath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("create_directory"),directoryPath:t});case 1:return e.a(2)}}),e,this)})))}},{key:"isDirectory",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("is_directory"),filePath:t});case 1:return r=e.v,n=r.isDirectory,e.a(2,n)}}),e,this)})))}},{key:"link",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({sourceFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(h.VIFilePath),r.n=1,this.postMessage({type:this.getMessage("link"),sourceFilePath:t,destinationFilePath:e});case 1:return r.a(2)}}),r,this)})))}},{key:"wipeout",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("wipeout")});case 1:return t.a(2)}}),t,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("storage_units_changed"):this.eventEmitter.emit("storage_units_changed")}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();d.MESSAGE_PREFIX="file_system",e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIMoveFileOptions=e.VICopyFileOptions=e.VIFilePath=e.VIStorageUnit=void 0,e.VIStorageUnit={type:"string",capacity:"number",freeSpace:"number",usableSpace:"number",removable:"boolean"},e.VIFilePath={storageUnit:{object:e.VIStorageUnit},filePath:"string"},e.VICopyFileOptions={overwrite:"?boolean"},e.VIMoveFileOptions={overwrite:"?boolean"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=f(r(604)),l=f(r(614)),d=f(r(615)),p=f(r(617)),m=f(r(618)),v=f(r(619)),y=f(r(621)),g=f(r(622)),b=f(r(623)),w=f(r(625)),M=f(r(628)),_=f(r(629)),S=f(r(630)),O=f(r(633)),E=f(r(636)),k=f(r(638)),P=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.app=new h.default(this.getMessagePrefix(),this.postMessage),this.os=new y.default(this.getMessagePrefix(),this.postMessage),this.audio=new l.default(this.getMessagePrefix(),this.postMessage),this.debug=new p.default(this.getMessagePrefix(),this.postMessage),this.firmware=new m.default(this.getMessagePrefix(),this.postMessage),this.package=new g.default(this.getMessagePrefix(),this.postMessage),this.power=new w.default(this.getMessagePrefix(),this.postMessage),this.remoteControl=new _.default(this.getMessagePrefix(),this.postMessage),this.screen=new S.default(this.getMessagePrefix(),this.postMessage),this.time=new E.default(this.getMessagePrefix(),this.postMessage),this.network=new v.default(this.getMessagePrefix(),this.postMessage),this.wifi=new k.default(this.getMessagePrefix(),this.postMessage),this.security=new O.default(this.getMessagePrefix(),this.postMessage),this.proxy=new M.default(this.getMessagePrefix(),this.postMessage),this.autoRecovery=new d.default(this.getMessagePrefix(),this.postMessage),this.peerRecovery=new b.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"supports",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({capability:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("supports"),capability:t});case 1:return r=e.v,n=r.supports,e.a(2,n)}}),e,this)})))}},{key:"getModel",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_model")});case 1:return e=t.v,r=e.model,t.a(2,r)}}),t,this)})))}},{key:"getSerialNumber",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_serial_number")});case 1:return e=t.v,r=e.serialNumber,t.a(2,r)}}),t,this)})))}},{key:"getNetworkInfo",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.network.getActiveInfo();case 1:return t.a(2,t.v)}}),t,this)})))}},{key:"getBatteryStatus",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_battery_status")});case 1:return e=t.v,r=e.batteryStatus,t.a(2,r)}}),t,this)})))}},{key:"getTemperature",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_current_temperature")});case 1:return e=t.v,r=e.currentTemperature,t.a(2,r)}}),t,this)})))}},{key:"getBrand",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_brand")});case 1:return e=t.v,r=e.brand,t.a(2,r)}}),t,this)})))}},{key:"resetSettings",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("reset_settings")});case 1:return t.a(2)}}),t,this)})))}},{key:"factoryReset",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("factory_reset")});case 1:return t.a(2)}}),t,this)})))}},{key:"getExtendedManagementUrl",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_extendedmanagement_url")});case 1:return e=t.v,r=e.url,t.a(2,r)}}),t,this)})))}},{key:"setExtendedManagementUrl",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({url:t}).string().canBeNull(),e.n=1,this.postMessage({type:this.getMessage("set_extendedmanagement_url"),url:t});case 1:return e.a(2)}}),e,this)})))}},{key:"setHardwareAcceleration",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({enabled:t}).required().boolean(),e.n=1,this.postMessage({type:this.getMessage("set_hardware_acceleration"),enabled:t});case 1:return e.a(2)}}),e,this)})))}},{key:"isHardwareAccelerationEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_hardware_acceleration_enabled")});case 1:return e=t.v,r=e.enabled,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();P.MESSAGE_PREFIX="management",e.default=P},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(240),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getType",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_application_type")});case 1:return e=t.v,r=e.applicationType,t.a(2,r)}}),t,this)})))}},{key:"getVersion",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_application_version")});case 1:return e=t.v,r=e.applicationVersion,t.a(2,r)}}),t,this)})))}},{key:"upgrade",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o,a,u;return i().w((function(r){for(;;)switch(r.n){case 0:return n=(0,f.parseUpgradeArguments)(t,e),o=n.baseUrl,a=n.version,u=n.directUri,r.n=1,this.postMessage({type:this.getMessage("app_upgrade"),baseUrl:o,version:a,directUri:u});case 1:return r.a(2)}}),r,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";var n=r(606);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(s),c=["%","/","?",";","#"].concat(f),h=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(607);function g(t,e,r){if(t&&"object"==typeof t&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",s=t.split(a);s[0]=s[0].replace(/\\/g,"/");var g=t=s.join(a);if(g=g.trim(),!r&&1===t.split("#").length){var b=u.exec(g);if(b)return this.path=g,this.href=g,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=o.exec(g);if(w){var M=(w=w[0]).toLowerCase();this.protocol=M,g=g.substr(w.length)}if(r||w||g.match(/^\/\/[^@/]+@[^@/]+/)){var _="//"===g.substr(0,2);!_||w&&m[w]||(g=g.substr(2),this.slashes=!0)}if(!m[w]&&(_||w&&!v[w])){for(var S,O,E=-1,k=0;k<h.length;k++){-1!==(P=g.indexOf(h[k]))&&(-1===E||P<E)&&(E=P)}-1!==(O=-1===E?g.lastIndexOf("@"):g.lastIndexOf("@",E))&&(S=g.slice(0,O),g=g.slice(O+1),this.auth=decodeURIComponent(S)),E=-1;for(k=0;k<c.length;k++){var P;-1!==(P=g.indexOf(c[k]))&&(-1===E||P<E)&&(E=P)}-1===E&&(E=g.length),this.host=g.slice(0,E),g=g.slice(E),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var R=this.hostname.split(/\./),A=(k=0,R.length);k<A;k++){var x=R[k];if(x&&!x.match(l)){for(var T="",I=0,F=x.length;I<F;I++)x.charCodeAt(I)>127?T+="x":T+=x[I];if(!T.match(l)){var C=R.slice(0,k),N=R.slice(k+1),q=x.match(d);q&&(C.push(q[1]),N.unshift(q[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!p[M])for(k=0,A=f.length;k<A;k++){var B=f[k];if(-1!==g.indexOf(B)){var G=encodeURIComponent(B);G===B&&(G=escape(B)),g=g.split(B).join(G)}}var U=g.indexOf("#");-1!==U&&(this.hash=g.substr(U),g=g.slice(0,U));var z=g.indexOf("?");if(-1!==z?(this.search=g.substr(z),this.query=g.substr(z+1),e&&(this.query=y.parse(this.query)),g=g.slice(0,z)):e&&(this.search="",this.query={}),g&&(this.pathname=g),v[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var V=this.search||"";this.path=D+V}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(g(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if("string"==typeof t){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var f=u[s];"protocol"!==f&&(r[f]=t[f])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!v[t.protocol]){for(var c=Object.keys(t),h=0;h<c.length;h++){var l=c[h];r[l]=t[l]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||m[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var p=r.pathname||"",y=r.search||"";r.path=p+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=b||g||r.host&&t.pathname,M=w,_=r.pathname&&r.pathname.split("/")||[],S=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),w=w&&(""===d[0]||""===_[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,_=d;else if(d.length)_||(_=[]),_.pop(),_=_.concat(d),r.search=t.search,r.query=t.query;else if(null!=t.search){if(S)r.host=_.shift(),r.hostname=r.host,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname);return r.search=t.search,r.query=t.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=_.slice(-1)[0],E=(r.host||t.host||_.length>1)&&("."===O||".."===O)||""===O,k=0,P=_.length;P>=0;P--)"."===(O=_[P])?_.splice(P,1):".."===O?(_.splice(P,1),k++):k&&(_.splice(P,1),k--);if(!w&&!M)for(;k--;k)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var j,R=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(r.hostname=R?"":_.length?_.shift():"",r.host=r.hostname,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname));return(w=w||r.host&&_.length)&&!R&&_.unshift(""),_.length>0?r.pathname=_.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=g,e.resolve=function(t,e){return g(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},e.format=function(t){return"string"==typeof t&&(t=g(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i},function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var u,s=2147483647,f=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function m(t){throw new RangeError(l[t])}function v(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+v((t=t.replace(h,".")).split("."),e).join(".")}function g(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function b(t){return v(t,(function(t){var e="";return t>65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function M(t,e,r){var n=0;for(t=r?d(t/700):t>>1,t+=d(t/e);t>455;n+=36)t=d(t/35);return d(n+36*t/(t+38))}function _(t){var e,r,n,i,o,a,u,f,c,h,l,p=[],v=t.length,y=0,g=128,w=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),p.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=y,a=1,u=36;i>=v&&m("invalid-input"),((f=(l=t.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||f>d((s-y)/a))&&m("overflow"),y+=f*a,!(f<(c=u<=w?1:u>=w+26?26:u-w));u+=36)a>d(s/(h=36-c))&&m("overflow"),a*=h;w=M(y-o,e=p.length+1,0==o),d(y/e)>s-g&&m("overflow"),g+=d(y/e),y%=e,p.splice(y++,0,g)}return b(p)}function S(t){var e,r,n,i,o,a,u,f,c,h,l,v,y,b,_,S=[];for(v=(t=g(t)).length,e=128,r=0,o=72,a=0;a<v;++a)(l=t[a])<128&&S.push(p(l));for(n=i=S.length,i&&S.push("-");n<v;){for(u=s,a=0;a<v;++a)(l=t[a])>=e&&l<u&&(u=l);for(u-e>d((s-r)/(y=n+1))&&m("overflow"),r+=(u-e)*y,e=u,a=0;a<v;++a)if((l=t[a])<e&&++r>s&&m("overflow"),l==e){for(f=r,c=36;!(f<(h=c<=o?1:c>=o+26?26:c-o));c+=36)_=f-h,b=36-h,S.push(p(w(h+_%b,0))),f=d(_/b);S.push(p(w(f,0))),o=M(r,y,n==i),r=0,++n}++r,++e}return S.join("")}u={version:"1.4.1",ucs2:{decode:g,encode:b},decode:_,encode:S,toASCII:function(t){return y(t,(function(t){return c.test(t)?"xn--"+S(t):t}))},toUnicode:function(t){return y(t,(function(t){return f.test(t)?_(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return u}.call(e,r,e,t))||(t.exports=i)}()}).call(this,r(38)(t),r(15))},function(t,e,r){"use strict";var n=r(608),i=r(613),o=r(148);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){"use strict";var n=r(609),i=r(242),o=r(148),a=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,f=Array.prototype.push,c=function(t,e){f.apply(t,s(e)?e:[e])},h=Date.prototype.toISOString,l=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:o.formatters[l],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},m=function t(e,r,o,a,u,f,h,l,m,v,y,g,b,w,M,_,S,O){for(var E,k=e,P=O,j=0,R=!1;void 0!==(P=P.get(p))&&!R;){var A=P.get(e);if(j+=1,void 0!==A){if(A===j)throw new RangeError("Cyclic object value");R=!0}void 0===P.get(p)&&(j=0)}if("function"==typeof v?k=v(r,k):k instanceof Date?k=b(k):"comma"===o&&s(k)&&(k=i.maybeMap(k,(function(t){return t instanceof Date?b(t):t}))),null===k){if(f)return m&&!_?m(r,d.encoder,S,"key",w):r;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||i.isBuffer(k))return m?[M(_?r:m(r,d.encoder,S,"key",w))+"="+M(m(k,d.encoder,S,"value",w))]:[M(r)+"="+M(String(k))];var x,T=[];if(void 0===k)return T;if("comma"===o&&s(k))_&&m&&(k=i.maybeMap(k,m)),x=[{value:k.length>0?k.join(",")||null:void 0}];else if(s(v))x=v;else{var I=Object.keys(k);x=y?I.sort(y):I}var F=l?String(r).replace(/\./g,"%2E"):String(r),C=a&&s(k)&&1===k.length?F+"[]":F;if(u&&s(k)&&0===k.length)return C+"[]";for(var N=0;N<x.length;++N){var q=x[N],D="object"==typeof q&&q&&void 0!==q.value?q.value:k[q];if(!h||null!==D){var L=g&&l?String(q).replace(/\./g,"%2E"):String(q),B=s(k)?"function"==typeof o?o(C,L):C:C+(g?"."+L:"["+L+"]");O.set(e,j);var G=n();G.set(p,O),c(T,t(D,B,o,a,u,f,h,l,"comma"===o&&_&&s(k)?null:m,v,y,g,b,w,M,_,S,G))}}return T};t.exports=function(t,e){var r,i=t,f=function(t){if(!t)return d;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,i=o.formatters[r],f=d.filter;if(("function"==typeof t.filter||s(t.filter))&&(f=t.filter),n=t.arrayFormat in u?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===t.allowDots?!0===t.encodeDotInKeys||d.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:f,format:r,formatter:i,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof f.filter?i=(0,f.filter)("",i):s(f.filter)&&(r=f.filter);var h=[];if("object"!=typeof i||null===i)return"";var l=u[f.arrayFormat],p="comma"===l&&f.commaRoundTrip;r||(r=Object.keys(i)),f.sort&&r.sort(f.sort);for(var v=n(),y=0;y<r.length;++y){var g=r[y],b=i[g];f.skipNulls&&null===b||c(h,m(b,g,l,p,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,v))}var w=h.join(f.delimiter),M=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?M+="utf8=%26%2310003%3B&":M+="utf8=%E2%9C%93&"),w.length>0?M+w:""}},function(t,e,r){"use strict";var n=r(37),i=r(98),o=r(611),a=r(241),u=r(612)||a||o;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+i(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=u()),t.set(e,r)}};return e}},function(t,e){},function(t,e,r){"use strict";var n=r(98),i=r(37),o=function(t,e,r){for(var n,i=t;null!=(n=i.next);i=n)if(n.key===e)return i.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new i("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return o(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=o(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!o(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=o(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},function(t,e,r){"use strict";var n=r(92),i=r(91),o=r(98),a=r(241),u=r(37),s=n("%WeakMap%",!0),f=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),l=i("WeakMap.prototype.delete",!0);t.exports=s?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new u("Side channel does not contain "+o(t))},delete:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&t?f(t,r):e&&e.get(r)},has:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&t?h(t,r):!!e&&e.has(r)},set:function(r,n){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),c(t,r,n)):a&&(e||(e=a()),e.set(r,n))}};return r}:a},function(t,e,r){"use strict";var n=r(242),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},f=function(t,e,r,o){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/g,f=r.depth>0&&/(\[[^[\]]*])/.exec(a),c=f?a.slice(0,f.index):a,h=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;h.push(c)}for(var l=0;r.depth>0&&null!==(f=u.exec(a))&&l<r.depth;){if(l+=1,!r.plainObjects&&i.call(Object.prototype,f[1].slice(1,-1))&&!r.allowPrototypes)return;h.push(f[1])}if(f){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");h.push("["+a.slice(f.index)+"]")}return function(t,e,r,i){var o=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var u=i?e:s(e,r,o),f=t.length-1;f>=0;--f){var c,h=t[f];if("[]"===h&&r.parseArrays)c=r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u);else{c=r.plainObjects?{__proto__:null}:{};var l="["===h.charAt(0)&&"]"===h.charAt(h.length-1)?h.slice(1,-1):h,d=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10);r.parseArrays||""!==d?!isNaN(p)&&h!==d&&String(p)===d&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(c=[])[p]=u:"__proto__"!==d&&(c[d]=u):c={0:u}}u=c}return u}(h,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var c="string"==typeof t?function(t,e){var r={__proto__:null},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=e.parameterLimit===1/0?void 0:e.parameterLimit,h=f.split(e.delimiter,e.throwOnLimitExceeded?c+1:c);if(e.throwOnLimitExceeded&&h.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var l,d=-1,p=e.charset;if(e.charsetSentinel)for(l=0;l<h.length;++l)0===h[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[l]?p="utf-8":"utf8=%26%2310003%3B"===h[l]&&(p="iso-8859-1"),d=l,l=h.length);for(l=0;l<h.length;++l)if(l!==d){var m,v,y=h[l],g=y.indexOf("]="),b=-1===g?y.indexOf("="):g+1;-1===b?(m=e.decoder(y,a.decoder,p,"key"),v=e.strictNullHandling?null:""):(m=e.decoder(y.slice(0,b),a.decoder,p,"key"),v=n.maybeMap(s(y.slice(b+1),e,o(r[m])?r[m].length:0),(function(t){return e.decoder(t,a.decoder,p,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===p&&(v=u(String(v))),y.indexOf("[]=")>-1&&(v=o(v)?[v]:v);var w=i.call(r,m);w&&"combine"===e.duplicates?r[m]=n.combine(r[m],v):w&&"last"!==e.duplicates||(r[m]=v)}return r}(t,r):t,h=r.plainObjects?{__proto__:null}:{},l=Object.keys(c),d=0;d<l.length;++d){var p=l[d],m=f(p,c[p],r,"string"==typeof t);h=n.merge(h,m,r)}return!0===r.allowSparse?h:n.compact(h)}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getVolume",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_volume")});case 1:return e=t.v,r=e.volume,t.a(2,r)}}),t,this)})))}},{key:"setVolume",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({volume:t}).required().number().min(0).max(100),e.n=1,this.postMessage({type:this.getMessage("set_volume"),volume:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(243),c=r(616),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_auto_recovery")});case 1:if((e=t.v).enabled){t.n=2;break}return t.a(2,(0,f.pick)(e,["enabled","autoEnableTimeoutMs"]));case 2:return t.a(2,(0,f.pick)(e,["enabled","healthcheckIntervalMs"]))}}),t,this)})))}},{key:"set",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.validateAutoRecoveryConfiguration)(t),e.n=1,this.postMessage(Object.assign({type:this.getMessage("set_auto_recovery")},t));case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateAutoRecoveryConfiguration=void 0;var i=n(r(6));e.validateAutoRecoveryConfiguration=function(t){var e=(0,i.default)({configuration:t}).setError(new Error("Invalid auto recovery configuration")).required();t.enabled?e.object({enabled:"boolean",healthcheckIntervalMs:"number"}):e.object({enabled:"boolean",autoEnableTimeoutMs:"?number"})}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"enable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setDebug(!0);case 1:return t.a(2)}}),t,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setDebug(!1);case 1:return t.a(2)}}),t,this)})))}},{key:"isEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_enabled")});case 1:return e=t.v,r=e.isEnabled,t.a(2,r)}}),t,this)})))}},{key:"setDebug",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({enabled:t}).required().boolean(),e.n=1,this.postMessage({type:this.getMessage("set_debug"),enabled:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(240),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"upgrade",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o,a,u;return i().w((function(r){for(;;)switch(r.n){case 0:return n=(0,f.parseUpgradeArguments)(t,e),o=n.baseUrl,a=n.version,u=n.directUri,r.n=1,this.postMessage({type:this.getMessage("firmware_upgrade"),baseUrl:o,version:a,directUri:u});case 1:return r.a(2)}}),r,this)})))}},{key:"getVersion",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_firmware_version")});case 1:return e=t.v,r=e.firmwareVersion,t.a(2,r)}}),t,this)})))}},{key:"getType",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_firmware_type")});case 1:return e=t.v,r=e.firmwareType,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(620),h=f(r(6)),l=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getActiveInfo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_network_info")});case 1:return e=t.v,r=e.networkInfo,t.a(2,r)}}),t,this)})))}},{key:"listInterfaces",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_network_interfaces")});case 1:return e=t.v,r=e.interfaces,t.a(2,r)}}),t,this)})))}},{key:"setManual",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,n,o;return i().w((function(t){for(;;)switch(t.n){case 0:if("string"!=typeof e[0]){t.n=2;break}return r=e[0],n=e[1],(0,h.default)({interfaceName:r}).required().string(),(0,h.default)({options:n}).required().object(c.VINetworkOptions),t.n=1,this.postMessage({type:this.getMessage("set_network_manual_v2"),interfaceName:r,options:n});case 1:t.n=3;break;case 2:return o=e[0],(0,h.default)({options:o}).required().object(c.VINetworkOptionsLegacy),t.n=3,this.postMessage({type:this.getMessage("set_network_manual"),options:o});case 3:return t.a(2)}}),t,this)})))}},{key:"setDHCP",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,n;return i().w((function(t){for(;;)switch(t.n){case 0:if("ethernet"!==e[0]&&"wifi"!==e[0]){t.n=2;break}return r=e[0],(0,h.default)({networkInterface:r}).required().string(c.VNetworkInterface),t.n=1,this.postMessage({type:this.getMessage("set_network_dhcp"),networkInterface:r});case 1:t.n=3;break;case 2:return n=e[0],(0,h.default)({interfaceName:n}).required().string(),t.n=3,this.postMessage({type:this.getMessage("set_network_dhcp_v2"),interfaceName:n});case 3:return t.a(2)}}),t,this)})))}},{key:"disableInterface",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,h.default)({interfaceName:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("disable_network_interface"),interfaceName:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VINetworkOptions=e.VINetworkOptionsLegacy=e.VNetworkInterface=void 0,e.VNetworkInterface=["wifi","ethernet"],e.VINetworkOptionsLegacy={interface:{string:e.VNetworkInterface},localAddress:"string",gateway:"string",netmask:"string",dns:{array:"string"}},e.VINetworkOptions={localAddress:"string",gateway:"string",netmask:"string",dns:{array:"string"}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getInfo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_os_info")});case 1:return e=t.v,r=e.osInfo,t.a(2,r)}}),t,this)})))}},{key:"getCpuUsage",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_cpu_usage")});case 1:return e=t.v,r=e.cpuUsage,t.a(2,r)}}),t,this)})))}},{key:"getMemoryUsage",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_memory_usage")});case 1:return e=t.v,r=e.memoryUsage,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"install",value:function(t,e,r,n){return s(this,void 0,void 0,i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,c.default)({baseUrl:t}).required().uri(),(0,c.default)({packageName:e}).required().string(),(0,c.default)({version:r}).required().string(),(0,c.default)({build:n}).canBeNull().required().string(),i.n=1,this.postMessage({type:this.getMessage("install_package"),baseUrl:t,packageName:e,version:r,build:n});case 1:return i.a(2)}}),o,this)})))}},{key:"stop",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({packageName:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("stop_package"),packageName:t});case 1:return r=e.v,n=r.stopped,e.a(2,n)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(243),c=r(624),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_peer_recovery")});case 1:if((e=t.v).enabled){t.n=2;break}return t.a(2,(0,f.pick)(e,["enabled","autoEnableTimeoutMs"]));case 2:return t.a(2,(0,f.pick)(e,["enabled","urlLauncherAddress"]))}}),t,this)})))}},{key:"set",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.validatePeerRecoveryConfiguration)(t),e.n=1,this.postMessage(Object.assign({type:this.getMessage("set_peer_recovery")},t));case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePeerRecoveryConfiguration=void 0;var i=n(r(6));e.validatePeerRecoveryConfiguration=function(t){var e=(0,i.default)({configuration:t}).setError(new Error("Invalid peer recovery configuration")).required();t.enabled?e.object({enabled:"boolean",urlLauncherAddress:"string"}):e.object({enabled:"boolean",autoEnableTimeoutMs:"?number"})}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var a=n&&n.prototype instanceof f?n:f,c=Object.create(a.prototype);return u(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,o),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(u(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,u(d,"constructor",h),u(h,"constructor",c),c.displayName="GeneratorFunction",u(h,i,"GeneratorFunction"),u(d),u(d,i,"Generator"),u(d,n,(function(){return this})),u(d,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:o,m:p}})()}function u(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(u=function(t,e,r,n){function o(e,r){u(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(o("next",0),o("throw",1),o("return",2))})(t,e,r,n)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(626),d=h(r(6)),p=r(244),m=r(627),v=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"systemReboot",value:function(){return c(this,void 0,void 0,a().m((function t(){return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("reboot_system")});case 1:return t.a(2)}}),t,this)})))}},{key:"appRestart",value:function(){return c(this,void 0,void 0,a().m((function t(){return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("restart_app")});case 1:return t.a(2)}}),t,this)})))}},{key:"getTimers",value:function(){return c(this,void 0,void 0,a().m((function t(){var e,r;return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_timers")});case 1:return e=t.v,r=e.timers,t.a(2,r)}}),t,this)})))}},{key:"setTimer",value:function(t,e,r,n,o){return c(this,void 0,void 0,a().m((function u(){var s,f,c,h;return a().w((function(a){for(;;)switch(a.p=a.n){case 0:if(void 0!==l.TimerType[t]){a.n=1;break}throw new Error("Invalid timer type");case 1:(0,d.default)({timeOn:e}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({timeOff:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({weekdays:n}).required().array("string"),(0,d.default)({volume:o}).required().number().min(0).max(100),s=i(n),a.p=2,s.s();case 3:if((f=s.n()).done){a.n=5;break}if(c=f.value,void 0!==l.TimerWeekday[c]){a.n=4;break}throw new Error("Invalid timer weekday");case 4:a.n=3;break;case 5:a.n=7;break;case 6:a.p=6,h=a.v,s.e(h);case 7:return a.p=7,s.f(),a.f(7);case 8:return a.n=9,this.postMessage({type:this.getMessage("set_timer"),timerType:t,timeOn:e,timeOff:r,weekdays:n,volume:o});case 9:return a.a(2)}}),u,this,[[2,6,7,8]])})))}},{key:"unsetTimer",value:function(t){return c(this,void 0,void 0,a().m((function e(){return a().w((function(e){for(;;)switch(e.n){case 0:return void 0===l.TimerType[t]&&console.warn("Invalid timer type"),e.n=1,this.setTimer(t,null,null,[],0);case 1:return e.a(2)}}),e,this)})))}},{key:"getProprietaryTimers",value:function(){return c(this,void 0,void 0,a().m((function t(){var e,r;return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_proprietary_timers")});case 1:return e=t.v,r=e.timers,t.a(2,r)}}),t,this)})))}},{key:"setProprietaryTimer",value:function(t,e,r,n){return c(this,arguments,void 0,(function(t,e,r,n){var o=this,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return a().m((function s(){var f,c,h,p;return a().w((function(a){for(;;)switch(a.p=a.n){case 0:(0,d.default)({type:t}).required().string().matchRegExp(/^TIMER_\d+$/),(0,d.default)({timeOn:e}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({timeOff:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({weekdays:n}).required().array("string"),(0,d.default)({keepAppletRunning:u}).required().boolean(),f=i(n),a.p=1,f.s();case 2:if((c=f.n()).done){a.n=4;break}if(h=c.value,void 0!==l.TimerWeekday[h]){a.n=3;break}throw new Error("Invalid timer weekday");case 3:a.n=2;break;case 4:a.n=6;break;case 5:a.p=5,p=a.v,f.e(p);case 6:return a.p=6,f.f(),a.f(6);case 7:return a.n=8,o.postMessage({type:o.getMessage("set_proprietary_timer"),timerType:t,timeOn:e,timeOff:r,weekdays:n,keepAppletRunning:u});case 8:return a.a(2)}}),s,null,[[1,5,6,7]])}))()}))}},{key:"unsetProprietaryTimer",value:function(t){return c(this,void 0,void 0,a().m((function e(){return a().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.postMessage({type:this.getMessage("delete_proprietary_timer"),timerType:t});case 1:e.n=3;break;case 2:return e.p=2,e.v,e.n=3,this.setProprietaryTimer(t,null,null,[]);case 3:return e.a(2)}}),e,this,[[0,2]])})))}},{key:"clearScheduledReboots",value:function(){return c(this,void 0,void 0,a().m((function t(){return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("clear_scheduled_reboots")});case 1:return t.a(2)}}),t,this)})))}},{key:"getScheduledReboots",value:function(){return c(this,void 0,void 0,a().m((function t(){var e,r,n,o,u;return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_scheduled_reboots")});case 1:e=t.v,r=e.actions,n=i(r);try{for(n.s();!(o=n.n()).done;)(u=o.value).rule.weekdays=u.rule.weekdays.map((function(t){return(0,m.convertNumberToWeekday)(t)}))}catch(t){n.e(t)}finally{n.f()}return t.a(2,r)}}),t,this)})))}},{key:"removeScheduledReboot",value:function(t){return c(this,void 0,void 0,a().m((function e(){return a().w((function(e){for(;;)switch(e.n){case 0:return(0,d.default)({id:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("remove_scheduled_reboot"),id:t});case 1:return e.a(2)}}),e,this)})))}},{key:"setScheduledReboot",value:function(t,e){return c(this,void 0,void 0,a().m((function r(){var n,o,u,s,f,c;return a().w((function(r){for(;;)switch(r.p=r.n){case 0:(0,d.default)({weekdays:t}).required().array("string"),n=i(t),r.p=1,n.s();case 2:if((o=n.n()).done){r.n=4;break}if(u=o.value,void 0!==p.WeekdayNamed[u]){r.n=3;break}throw new Error("Invalid weekday");case 3:r.n=2;break;case 4:r.n=6;break;case 5:r.p=5,c=r.v,n.e(c);case 6:return r.p=6,n.f(),r.f(6);case 7:return s=t.map(m.convertWeekdayToNumber),(0,d.default)({time:e}).required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),f={weekdays:s,time:e},r.n=8,this.postMessage({type:this.getMessage("set_scheduled_reboot"),rule:f});case 8:return r.a(2)}}),r,this,[[1,5,6,7]])})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=v},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.TimerWeekday=e.TimerType=void 0,function(t){t[t.TIMER_1=0]="TIMER_1",t[t.TIMER_2=1]="TIMER_2",t[t.TIMER_3=2]="TIMER_3",t[t.TIMER_4=3]="TIMER_4",t[t.TIMER_5=4]="TIMER_5",t[t.TIMER_6=5]="TIMER_6",t[t.TIMER_7=6]="TIMER_7"}(n||(e.TimerType=n={})),function(t){t[t.sun=0]="sun",t[t.mon=1]="mon",t[t.tue=2]="tue",t[t.wed=3]="wed",t[t.thu=4]="thu",t[t.fri=5]="fri",t[t.sat=6]="sat"}(i||(e.TimerWeekday=i={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertWeekdayToNumber=function(t){return n.WeekdayNumbered[t]},e.convertNumberToWeekday=function(t){return n.WeekdayNumbered[t]};var n=r(244)},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"isEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("proxy_is_enabled")});case 1:return e=t.v,r=e.isEnabled,t.a(2,r)}}),t,this)})))}},{key:"setManual",value:function(t,e,r,n){return s(this,void 0,void 0,i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return i.n=1,this.postMessage({type:this.getMessage("proxy_set_manual"),uri:t,port:e,username:r,password:n});case 1:return i.a(2)}}),o,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("proxy_disable")});case 1:return t.a(2)}}),t,this)})))}},{key:"getConnectedTo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("proxy_get_connected_to")});case 1:return e=t.v,r=e.connectedTo,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"enable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setEnabled(!0);case 1:return t.a(2)}}),t,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setEnabled(!1);case 1:return t.a(2)}}),t,this)})))}},{key:"isEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_is_remote_control_enabled")});case 1:return e=t.v,r=e.isRemoteControlEnabled,t.a(2,r)}}),t,this)})))}},{key:"lock",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.disable();case 1:return t.a(2)}}),t,this)})))}},{key:"unlock",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.enable();case 1:return t.a(2)}}),t,this)})))}},{key:"isLocked",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.isEnabled();case 1:return t.a(2,!t.v)}}),t,this)})))}},{key:"setEnabled",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("set_remote_control_enabled"),enabled:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(631),h=r(632),l=f(r(6)),d=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"resize",value:function(t,e,r,n,o){return s(this,void 0,void 0,i().m((function a(){return i().w((function(i){for(;;)switch(i.n){case 0:if((0,l.default)({baseUrl:t}).required().uri(),(0,l.default)({currentVersion:n}).required().string(),void 0!==c.Orientation[e]){i.n=1;break}throw new Error("Invalid orientation");case 1:if(void 0!==c.Resolution[r]){i.n=2;break}throw new Error("Invalid resolution");case 2:if(!o||void 0!==h.Orientation[o]){i.n=3;break}throw new Error("Invalid video orientation");case 3:return i.n=4,this.postMessage({type:this.getMessage("resize_screen"),baseUrl:t,orientation:e,resolution:r,currentVersion:n,videoOrientation:o});case 4:return i.a(2)}}),a,this)})))}},{key:"getOrientation",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_screen_orientation")});case 1:return e=t.v,r=e.screenOrientation,t.a(2,r)}}),t,this)})))}},{key:"setBrightness",value:function(t,e,r,n){return s(this,void 0,void 0,i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({brightness1:e}).required().number().min(0).max(100),(0,l.default)({brightness2:n}).required().number().min(0).max(100),(0,l.default)({timeFrom1:t}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}/).timerTime(),(0,l.default)({timeFrom2:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}/).timerTime(),i.n=1,this.postMessage({type:this.getMessage("set_screen_brightness"),timeFrom1:t,brightness1:e,timeFrom2:r,brightness2:n});case 1:return i.a(2)}}),o,this)})))}},{key:"getBrightness",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_screen_brightness")});case 1:return e=t.v,r=e.screenBrightness,t.a(2,r)}}),t,this)})))}},{key:"takeAndUploadScreenshot",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,o,a,u,s,f,c,h;return i().w((function(t){for(;;)switch(t.n){case 0:if("string"!=typeof e[0]||void 0!==e[1]){t.n=4;break}return r=e[0],(0,l.default)({uploadBaseUrl:r}).required().uri(),t.n=1,this.postMessage({type:this.getMessage("upload_screenshot"),uploadBaseUrl:r});case 1:if("string"!=typeof(o=t.v)){t.n=2;break}return t.a(2,o);case 2:if("object"!==n(o)||!("screenshotUrl"in o)){t.n=3;break}return a=o.screenshotUrl,t.a(2,a);case 3:t.n=6;break;case 4:return u=e[0],s=e[1],(0,l.default)({uploadBaseUrl:u}).required().uri(),(0,l.default)({computeHash:s}).boolean(),t.n=5,this.postMessage({type:this.getMessage("upload_screenshot"),uploadBaseUrl:u,computeHash:s});case 5:return f=t.v,c=f.screenshotUrl,h=f.aHash,t.a(2,{screenshotUrl:c,aHash:h});case 6:return t.a(2)}}),t,this)})))}},{key:"powerOn",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("power_on_display")});case 1:return t.a(2)}}),t,this)})))}},{key:"powerOff",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("power_off_display")});case 1:return t.a(2)}}),t,this)})))}},{key:"isPoweredOn",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_is_display_power_on")});case 1:return e=t.v,r=e.isDisplayPowerOn,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=d},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=e.Resolution=void 0,function(t){t[t.FULL_HD=0]="FULL_HD",t[t.HD_READY=1]="HD_READY"}(n||(e.Resolution=n={})),function(t){t[t.LANDSCAPE=0]="LANDSCAPE",t[t.PORTRAIT=1]="PORTRAIT",t[t.LANDSCAPE_FLIPPED=2]="LANDSCAPE_FLIPPED",t[t.PORTRAIT_FLIPPED=3]="PORTRAIT_FLIPPED",t[t.AUTO=4]="AUTO"}(i||(e.Orientation=i={}))},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=void 0,function(t){t[t.LANDSCAPE=0]="LANDSCAPE",t[t.LANDSCAPE_FLIPPED=1]="LANDSCAPE_FLIPPED"}(n||(e.Orientation=n={}))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(634),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getPinCode",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_pin_code")});case 1:return e=t.v,r=e.pinCode,t.a(2,r)}}),t,this)})))}},{key:"setPinCode",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,f.validatePinCode)(t),e.n=1,this.postMessage({type:this.getMessage("set_pin_code"),pinCode:t});case 1:return e.a(2)}}),e,this)})))}},{key:"generateRandomPinCode",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setPinCode((0,f.generateRandomPin)());case 1:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomPin=function(){return Math.floor(1e4*Math.random()).toString().padStart(4,"0")},e.validatePinCode=function(t){if(!t.match(/^\d{4}$/))throw new i.default({kind:"appletSecurityError",message:"Invalid PIN code: ".concat(t),code:o.default.SECURITY_PIN_CODE_INVALID,suggestion:a.default.SECURITY_PIN_CODE_FORMAT})};var i=n(r(635)),o=n(r(44)),a=n(r(146))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{pathToDocs:e.PATH_TO_DOCS,kind:"appletError",type:t.type?t.type:"AppletSecurityError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);c.PATH_TO_DOCS="/sdk/management/js-management-security",e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=r(637),l=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_current_time_with_timezone")});case 1:return e=t.v,r=e.currentTimeWithTimezone,t.a(2,r)}}),t,this)})))}},{key:"set",value:function(t,e){return this.setManual(t,e)}},{key:"setManual",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,n;return i().w((function(t){for(;;)switch(t.n){case 0:return r=e[0],n=e[1],r instanceof Date?(0,c.default)({currentDate:r}).required().date():(0,c.default)({currentDate:r}).required().object(h.VDateTime),(0,c.default)({timezone:n}).required().string(),t.n=1,this.postMessage({type:this.getMessage("set_current_time_with_timezone"),currentDate:r,timezone:n});case 1:return t.a(2)}}),t,this)})))}},{key:"setNTP",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,c.default)({ntpServer:t}).required().string(),(0,c.default)({timezone:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("set_ntp_time_with_timezone"),ntpServer:t,timezone:e});case 1:return r.a(2)}}),r,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VDateTime=void 0,e.VDateTime={year:"number",month:"number",day:"number",hour:"number",minute:"number",second:"number"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=r(639),l=f(r(6)),d=r(640),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"isClientEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_enabled")});case 1:return e=t.v,r=e.isWifiEnabled,t.a(2,r)}}),t,this)})))}},{key:"enableClient",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("enable")});case 1:return t.a(2)}}),t,this)})))}},{key:"isAPEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_ap_enabled")});case 1:return e=t.v,r=e.isWifiAPEnabled,t.a(2,r)}}),t,this)})))}},{key:"enableAP",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({ssid:t}).required().string(),(0,l.default)({password:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("enable_ap"),ssid:t,password:e});case 1:return r.a(2)}}),r,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("disable")});case 1:return t.a(2)}}),t,this)})))}},{key:"getConnectedTo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_connected_to")});case 1:return e=t.v,t.a(2,e||null)}}),t,this)})))}},{key:"connect",value:function(t,e){return s(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({ssid:t}).required().string(),void 0!==e&&(0,l.default)({password:e}).string(),(0,l.default)({options:n}).object(d.VIWifiConnectOptions),i.n=1,r.postMessage({type:r.getMessage("connect"),ssid:t,password:e,options:n});case 1:return i.a(2)}}),o)}))()}))}},{key:"disconnect",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("disconnect")});case 1:return t.a(2)}}),t,this)})))}},{key:"getCountry",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_country")});case 1:return e=t.v,r=e.countryCode,t.a(2,r||null)}}),t,this)})))}},{key:"setCountry",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({countryCode:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("set_country"),countryCode:t});case 1:return e.a(2)}}),e,this)})))}},{key:"scanDevices",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("scan")});case 1:return e=t.v,r=e.devices,t.a(2,r)}}),t,this)})))}},{key:"on",value:function(t,e){this.eventEmitter.on(t,e)}},{key:"once",value:function(t,e){this.eventEmitter.once(t,e)}},{key:"removeListener",value:function(t,e){this.eventEmitter.removeListener(t,e)}},{key:"removeAllListeners",value:function(t){t?this.eventEmitter.removeAllListeners(t):this.eventEmitter.removeAllListeners()}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("event_"+h.WifiEvent.CLIENT_ENABLED):case this.getMessage("event_"+h.WifiEvent.CLIENT_CONNECTED):case this.getMessage("event_"+h.WifiEvent.CLIENT_CONNECT_REJECTED):case this.getMessage("event_"+h.WifiEvent.CLIENT_DISCONNECTED):case this.getMessage("event_"+h.WifiEvent.AP_ENABLED):case this.getMessage("event_"+h.WifiEvent.DISABLED):var e=this.getMessage("event_"),r=t.type.substring(e.length);this.eventEmitter.emit(r)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();p.MESSAGE_PREFIX="wifi",e.default=p},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WifiEvent=void 0,function(t){t.CLIENT_ENABLED="client_enabled",t.CLIENT_CONNECTED="client_connected",t.CLIENT_CONNECT_REJECTED="client_connect_rejected",t.CLIENT_DISCONNECTED="client_disconnected",t.AP_ENABLED="ap_enabled",t.DISABLED="disabled"}(n||(e.WifiEvent=n={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIWifiConnectOptions=void 0,e.VIWifiConnectOptions={hidden:"?boolean",securityType:"?string"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"getList",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_list")});case 1:return e=t.v,r=e.monitors,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="monitors",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(643)),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.proximity=new u.default(this.getMessagePrefix())}return e=t,(r=[{key:"handleMessageData",value:function(t){this.proximity.handleMessageData(t)}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="sensors",e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(14),s=a(r(6)),f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.lastDetected=!1,this.eventEmitter=new u.EventEmitter}return e=t,(r=[{key:"onStateChange",value:function(t){var e=this;return(0,s.default)({callback:t}).required().function(),this.lastDetected&&t(this.lastDetected),this.eventEmitter.addListener("change",t),function(){e.eventEmitter.removeListener("change",t)}}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("change"):t.detected!==this.lastDetected&&(this.lastDetected=t.detected,this.eventEmitter.emit("change",t.detected))}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="proximity",e.default=f},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createExchange=function t(e,r){var i=this,a=function(t){return[e,t].join(".")};return{messageNameToType:a,postMessage:function(t){return o(i,void 0,void 0,n().m((function e(){var i;return n().w((function(e){for(;;)switch(e.n){case 0:return i=a(t.type),t=Object.assign(Object.assign({},t),{type:i}),e.a(2,r(t))}}),e)})))},createNamespaced:function(e){return t(a(e),r)}}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"showOSD",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("show_osd")});case 1:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="osd",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=f(r(647)),l=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.commandApi=e},(e=[{key:"recordItemPlayed",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n,o,a,u,s,f;return i().w((function(e){for(;;)switch(e.n){case 0:return r=t.name,n=t.customId,o=t.type,a=t.tags,u=t.fileName,s=t.playbackSuccess,f=t.errorMessage,(0,c.default)({name:r}).required().string(),(0,c.default)({customId:n}).string(),(0,c.default)({type:o}).string(["video","image","html","custom"]),(0,c.default)({tags:a}).array("string"),(0,c.default)({fileName:u}).string(),(0,c.default)({playbackSuccess:s}).boolean(),(0,c.default)({errorMessage:f}).string(),e.n=1,this.commandApi.dispatch({type:h.default.ItemPlayed,itemName:r,customId:n,itemType:o,itemTags:a,fileName:u,playbackSuccess:s,errorMessage:f});case 1:return e.a(2)}}),e,this)})))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ItemPlayed="PoP.ItemPlayed"}(n||(n={})),e.default=n},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(649)),s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.mdc=new u.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="native_commands",e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"sendOne",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){var o,a;return i().w((function(n){for(;;)switch(n.n){case 0:return(0,c.default)({ipAddress:t}).required().string(),(0,c.default)({command:e}).required().number(),void 0!==r&&(0,c.default)({data:r}).required().array("number"),void 0===r&&(r=[]),n.n=1,this.postMessage({type:this.getMessage("send_one"),ipAddress:t,command:e,data:r});case 1:return o=n.v,a=o.commandResponse,n.a(2,a)}}),n,this)})))}},{key:"sendOneRaw",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o;return i().w((function(r){for(;;)switch(r.n){case 0:return(0,c.default)({ipAddress:t}).required().string(),(0,c.default)({data:e}).required().array("number"),r.n=1,this.postMessage({type:this.getMessage("send_one_raw"),ipAddress:t,data:e});case 1:return n=r.v,o=n.commandResponse,r.a(2,o)}}),r,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();h.MESSAGE_PREFIX="mdc",e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a,u=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),f=this&&this.__importStar||(a=function(t){return(a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=a(t),n=0;n<r.length;n++)"default"!==r[n]&&u(e,t,r[n]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0});var c=r(245),h=f(r(651)),l=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.connectedBaseUrl=null,this.errorsMap={},this.polyfillErrorWithStack(),this.polyfillErrorEvent(),this.interceptConsoleLogging(),this.bindErrorHandling()}return e=t,(r=[{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("update"):this.updateConnectedBaseUrl(t.connectedBaseUrl)}}},{key:"updateConnectedBaseUrl",value:function(t){this.connectedBaseUrl=t}},{key:"interceptConsoleLogging",value:function(){var t=this;(0,c.enhanceStandardConsoleLogging)((function(e){if(t.connectedBaseUrl){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=n.map((function(t){return h.inspect(t,!0,5,!1)}));fetch("".concat(t.connectedBaseUrl,"/log"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:e,args:o})})}}))}},{key:"bindErrorHandling",value:function(){var t=this;this.window.addEventListener("error",(function(e){t.connectedBaseUrl&&fetch("".concat(t.connectedBaseUrl,"/error"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error:h.inspect(e.error,!0,5,!1)})})}))}},{key:"polyfillErrorWithStack",value:function(){if(void 0===new Error("test").stack){var t=Error,e=this.pushError.bind(this),r=function(n){if(!(this instanceof r))return new r(n);var i;this.name="Error";try{throw new t}catch(t){i=t.stack}this.constructor=r,this.message=n,this.stack=i,e(this)};r.prototype=t.prototype,this.window.Error=r}}},{key:"polyfillErrorEvent",value:function(){var t=this;this.window.addEventListener("error",(function(e){if(void 0===e.error){var r=Object.keys(t.errorsMap).find((function(t){return-1!==e.message.indexOf(t)}));if(r){var n=t.errorsMap[r];delete t.errorsMap[r],e.error=n,console.warn("Error was polyfilled with not exact algorithm and may not be accurate",n)}}}))}},{key:"pushError",value:function(t){this.errorsMap[t.message]=t;var e=Object.keys(this.errorsMap);if(e.length>50){var r=e[0];delete this.errorsMap[r]}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();l.MESSAGE_PREFIX="connect",e.default=l},function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])m(s)||!w(s)?a+=" "+s:a+=" "+u(s);return a},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var o,a={};function u(t,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&e._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),c(n,t,n.depth)}function s(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function f(t,e){return t}function c(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return y(i)||(i=c(t,i,n)),i}var o=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),_(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(S(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return h(r)}var f,w="",O=!1,E=["{","}"];(d(r)&&(O=!0,E=["[","]"]),S(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(w=" "+RegExp.prototype.toString.call(r)),M(r)&&(w=" "+Date.prototype.toUTCString.call(r)),_(r)&&(w=" "+h(r)),0!==a.length||O&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),f=O?function(t,e,r,n,i){for(var o=[],a=0,u=e.length;a<u;++a)j(e,String(a))?o.push(l(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(l(t,e,r,n,i,!0))})),o}(t,r,n,u,a):a.map((function(e){return l(t,r,n,u,e,O)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(f,w,E)):E[0]+w+E[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),u||(t.seen.indexOf(s.value)<0?(u=m(r)?c(t,s.value,null):c(t,s.value,r-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function g(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===O(t)}function w(t){return"object"==typeof t&&null!==t}function M(t){return w(t)&&"[object Date]"===O(t)}function _(t){return w(t)&&("[object Error]"===O(t)||t instanceof Error)}function S(t){return"function"==typeof t}function O(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(g(o)&&(o=t.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=t.pid;a[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else a[r]=function(){};return a[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=b,e.isObject=w,e.isDate=M,e.isError=_,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(652);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=r(653),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(R&&t[R]){var e;if("function"!=typeof(e=t[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),R&&Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=R,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(A,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this,r(22))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}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})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(655),c=r(656),h=r(658),l=r(660),d=r(662),p=r(664),m=r(666),v=r(668),y=r(670),g=r(672),b=r(673),w=r(675),M=r(677),_=r(679),S=r(681),O=r(683),E=r(685),k=r(687),P=r(689),j=r(691),R=r(693),A=r(695),x=r(697),T=r(245),I=r(699),F=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.frontApplet=e,this.interceptConsoleLogging(),this.handleTimingLoaded(),(0,k.handleMonitoringRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,h.handleHtmlSnapshotTakingRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,l.handleOfflineCacheRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,d.handleVideoRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,c.handleFileSystemRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,p.handleOSDRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,m.handleManagementApplicationRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,v.handleManagementPowerRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,y.handleDisplayRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,b.handleManagementRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,w.handleManagementScreenRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,M.handleManagementSecurityRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,_.handleManagementAudioRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,S.handleManagementRemoteControlRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,O.handleManagementDebugRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,E.handleManagementOsRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,P.handleManagementTimeCommands)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,j.handleManagementNativeCommandsMdcRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,R.handleManagementNetworkRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,A.handleManagementPeerRecoveryRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,x.handleManagementAutoRecoveryRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,I.handleDeviceInfoRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet)},(e=[{key:"onCommand",value:function(t){var e=this;this.frontApplet.command.onCommand((function(r){"object"===o(e.frontApplet.config)&&e.frontApplet.config.sosMonitoring&&t(r)}))}},{key:"dispatch",value:function(t){return s(this,void 0,void 0,n().m((function e(){return n().w((function(e){for(;;)switch(e.n){case 0:if("object"!==o(this.frontApplet.config)||!this.frontApplet.config.sosMonitoring){e.n=1;break}return e.n=1,this.frontApplet.command.dispatch(t);case 1:return e.a(2)}}),e,this)})))}},{key:"handleTimingLoaded",value:function(){return s(this,void 0,void 0,n().m((function t(){return n().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.frontApplet.onReady();case 1:return t.n=2,this.dispatch({type:f.TimingLoaded});case 2:return t.a(2)}}),t,this)})))}},{key:"interceptConsoleLogging",value:function(){var t=this;(0,T.enhanceStandardConsoleLogging)((function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.dispatch({type:g.ConsoleLogged,level:e,messages:n})}))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=F},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimingLoaded=void 0,e.TimingLoaded="sos.Monitoring.Timing.TimingLoaded"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleFileSystemRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v,y,g,b,w,M,_,S,O,E,k,P,j,R,A;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.FileSystemListOfStorageUnitsRequest?1:o===a.FileSystemListOfInternalStorageUnitsRequest?4:o===a.FileSystemListFilesRequest?7:o===a.FileSystemGetFileRequest?10:o===a.FileSystemExistsRequest?13:o===a.FileSystemDownloadFileRequest?16:o===a.FileSystemDeleteFileRequest?19:o===a.FileSystemMoveFileRequest?22:o===a.FileSystemGetFileChecksumRequest?25:o===a.FileSystemExtractFileRequest?28:o===a.FileSystemCreateDirectoryRequest?31:o===a.FileSystemCreateArchiveFileRequest?34:o===a.FileSystemIsDirectoryRequest?37:o===a.FileSystemCopyFileRequest?40:o===a.FileSystemWriteFileRequest?43:o===a.FileSystemAppendFileRequest?46:o===a.FileSystemReadFileRequest?49:o===a.FileSystemWipeoutRequest?52:o===a.FileSystemLinkRequest?55:58;break;case 1:return u=e,s=a.FileSystemListOfStorageUnitsResult,n.n=2,r.fileSystem.listStorageUnits();case 2:return f=n.v,n.n=3,u({type:s,storageUnits:f});case 3:return n.a(3,58);case 4:return c=e,h=a.FileSystemListOfInternalStorageUnitsResult,n.n=5,r.fileSystem.listInternalStorageUnits();case 5:return l=n.v,n.n=6,c({type:h,storageUnits:l});case 6:return n.a(3,58);case 7:return d=e,p=a.FileSystemListFilesResult,n.n=8,r.fileSystem.listFiles(t.command.filePath);case 8:return m=n.v,n.n=9,d({type:p,pathList:m});case 9:return n.a(3,58);case 10:return v=e,y=a.FileSystemGetFileResult,n.n=11,r.fileSystem.getFile(t.command.filePath);case 11:return g=n.v,n.n=12,v({type:y,file:g});case 12:return n.a(3,58);case 13:return b=e,w=a.FileSystemExistsResult,n.n=14,r.fileSystem.exists(t.command.filePath);case 14:return M=n.v,n.n=15,b({type:w,result:M});case 15:return n.a(3,58);case 16:return n.n=17,r.fileSystem.downloadFile(t.command.filePath,t.command.sourceUri,t.command.headers);case 17:return n.n=18,e({type:a.FileSystemDownloadFileResult,result:{}});case 18:return n.a(3,58);case 19:return n.n=20,r.fileSystem.deleteFile(t.command.filePath,t.command.recursive);case 20:return n.n=21,e({type:a.FileSystemDeleteFileResult,result:{}});case 21:return n.a(3,58);case 22:return n.n=23,r.fileSystem.moveFile(t.command.sourceFilePath,t.command.destinationFilePath,t.command.options);case 23:return n.n=24,e({type:a.FileSystemMoveFileResult,result:{}});case 24:return n.a(3,58);case 25:return _=e,S=a.FileSystemGetFileChecksumResult,n.n=26,r.fileSystem.getFileChecksum(t.command.filePath,t.command.hashType);case 26:return O=n.v,n.n=27,_({type:S,result:O});case 27:return n.a(3,58);case 28:return n.n=29,r.fileSystem.extractFile(t.command.archiveFilePath,t.command.destinationDirectionPath,t.command.method);case 29:return n.n=30,e({type:a.FileSystemExtractFileResult,result:{}});case 30:return n.a(3,58);case 31:return n.n=32,r.fileSystem.createDirectory(t.command.directoryPath);case 32:return n.n=33,e({type:a.FileSystemCreateDirectoryResult,result:{}});case 33:return n.a(3,58);case 34:return n.n=35,r.fileSystem.createArchive(t.command.archiveFilePath,t.command.archiveEntries);case 35:return n.n=36,e({type:a.FileSystemCreateArchiveFileResult,result:{}});case 36:return n.a(3,58);case 37:return E=e,k=a.FileSystemIsDirectoryResult,n.n=38,r.fileSystem.isDirectory(t.command.filePath);case 38:return P=n.v,n.n=39,E({type:k,result:P});case 39:return n.a(3,58);case 40:return n.n=41,r.fileSystem.copyFile(t.command.sourceFilePath,t.command.destinationFilePath,t.command.options);case 41:return n.n=42,e({type:a.FileSystemCopyFileResult,result:{}});case 42:return n.a(3,58);case 43:return n.n=44,r.fileSystem.writeFile(t.command.filePath,t.command.content);case 44:return n.n=45,e({type:a.FileSystemWriteFileResult,result:{}});case 45:return n.a(3,58);case 46:return n.n=47,r.fileSystem.appendFile(t.command.filePath,t.command.content);case 47:return n.n=48,e({type:a.FileSystemAppendFileResult,result:{}});case 48:return n.a(3,58);case 49:return j=e,R=a.FileSystemReadFileResult,n.n=50,r.fileSystem.readFile(t.command.filePath);case 50:return A=n.v,n.n=51,j({type:R,data:A});case 51:return n.a(3,58);case 52:return n.n=53,r.fileSystem.wipeout();case 53:return n.n=54,e({type:a.FileSystemWipeoutResult,result:{}});case 54:return n.a(3,58);case 55:return n.n=56,r.fileSystem.link(t.command.sourceFilePath,t.command.destinationFilePath);case 56:return n.n=57,e({type:a.FileSystemLinkResult,result:{}});case 57:return n.a(3,58);case 58:return n.a(2)}}),i)})))}))};var a=r(657)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileSystemLinkResult=e.FileSystemLinkRequest=e.FileSystemWipeoutResult=e.FileSystemWipeoutRequest=e.FileSystemAppendFileResult=e.FileSystemAppendFileRequest=e.FileSystemGetFileResult=e.FileSystemGetFileRequest=e.FileSystemExtractFileResult=e.FileSystemCreateArchiveFileResult=e.FileSystemCreateArchiveFileRequest=e.FileSystemExtractFileRequest=e.FileSystemGetFileChecksumResult=e.FileSystemGetFileChecksumRequest=e.FileSystemCopyFileResult=e.FileSystemCopyFileRequest=e.FileSystemMoveFileResult=e.FileSystemMoveFileRequest=e.FileSystemReadFileResult=e.FileSystemReadFileRequest=e.FileSystemWriteFileResult=e.FileSystemWriteFileRequest=e.FileSystemDownloadFileResult=e.FileSystemDownloadFileRequest=e.FileSystemCreateDirectoryResult=e.FileSystemCreateDirectoryRequest=e.FileSystemDeleteFileResult=e.FileSystemDeleteFileRequest=e.FileSystemExistsResult=e.FileSystemExistsRequest=e.FileSystemIsDirectoryResult=e.FileSystemIsDirectoryRequest=e.FileSystemListFilesResult=e.FileSystemListFilesRequest=e.FileSystemListOfInternalStorageUnitsResult=e.FileSystemListOfInternalStorageUnitsRequest=e.FileSystemListOfStorageUnitsResult=e.FileSystemListOfStorageUnitsRequest=void 0,e.FileSystemListOfStorageUnitsRequest="sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsRequest",e.FileSystemListOfStorageUnitsResult="sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsResult",e.FileSystemListOfInternalStorageUnitsRequest="sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsRequest",e.FileSystemListOfInternalStorageUnitsResult="sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsResult",e.FileSystemListFilesRequest="sos.Monitoring.FileSystem.FileSystemListFilesRequest",e.FileSystemListFilesResult="sos.Monitoring.FileSystem.FileSystemListFilesResult",e.FileSystemIsDirectoryRequest="sos.Monitoring.FileSystem.FileSystemIsDirectoryRequest",e.FileSystemIsDirectoryResult="sos.Monitoring.FileSystem.FileSystemIsDirectoryResult",e.FileSystemExistsRequest="sos.Monitoring.FileSystem.FileSystemExistsRequest",e.FileSystemExistsResult="sos.Monitoring.FileSystem.FileSystemExistsResult",e.FileSystemDeleteFileRequest="sos.Monitoring.FileSystem.FileSystemDeleteFileRequest",e.FileSystemDeleteFileResult="sos.Monitoring.FileSystem.FileSystemDeleteFileResult",e.FileSystemCreateDirectoryRequest="sos.Monitoring.FileSystem.FileSystemCreateDirectoryRequest",e.FileSystemCreateDirectoryResult="sos.Monitoring.FileSystem.FileSystemCreateDirectoryResult",e.FileSystemDownloadFileRequest="sos.Monitoring.FileSystem.FileSystemDownloadFileRequest",e.FileSystemDownloadFileResult="sos.Monitoring.FileSystem.FileSystemDownloadFileResult",e.FileSystemWriteFileRequest="sos.Monitoring.FileSystem.FileSystemWriteFileRequest",e.FileSystemWriteFileResult="sos.Monitoring.FileSystem.FileSystemWriteFileResult",e.FileSystemReadFileRequest="sos.Monitoring.FileSystem.FileSystemReadFileRequest",e.FileSystemReadFileResult="sos.Monitoring.FileSystem.FileSystemReadFileResult",e.FileSystemMoveFileRequest="sos.Monitoring.FileSystem.FileSystemMoveFileRequest",e.FileSystemMoveFileResult="sos.Monitoring.FileSystem.FileSystemMoveFileResult",e.FileSystemCopyFileRequest="sos.Monitoring.FileSystem.FileSystemCopyFileRequest",e.FileSystemCopyFileResult="sos.Monitoring.FileSystem.FileSystemCopyFileResult",e.FileSystemGetFileChecksumRequest="sos.Monitoring.FileSystem.FileSystemGetFileChecksumRequest",e.FileSystemGetFileChecksumResult="sos.Monitoring.FileSystem.FileSystemGetFileChecksumResult",e.FileSystemExtractFileRequest="sos.Monitoring.FileSystem.FileSystemExtractFileRequest",e.FileSystemCreateArchiveFileRequest="sos.Monitoring.FileSystem.FileSystemCreateArchiveFileRequest",e.FileSystemCreateArchiveFileResult="sos.Monitoring.FileSystem.FileSystemCreateArchiveFileResult",e.FileSystemExtractFileResult="sos.Monitoring.FileSystem.FileSystemExtractFileResult",e.FileSystemGetFileRequest="sos.Monitoring.FileSystem.FileSystemGetFileRequest",e.FileSystemGetFileResult="sos.Monitoring.FileSystem.FileSystemGetFileResult",e.FileSystemAppendFileRequest="sos.Monitoring.FileSystem.FileSystemAppendFileRequest",e.FileSystemAppendFileResult="sos.Monitoring.FileSystem.FileSystemAppendFileResult",e.FileSystemWipeoutRequest="sos.Monitoring.FileSystem.FileSystemWipeoutRequest",e.FileSystemWipeoutResult="sos.Monitoring.FileSystem.FileSystemWipeoutResult",e.FileSystemLinkRequest="sos.Monitoring.FileSystem.FileSystemLinkRequest",e.FileSystemLinkResult="sos.Monitoring.FileSystem.FileSystemLinkResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleHtmlSnapshotTakingRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.TakeHtmlSnapshot?1:3;break;case 1:return n.n=2,e({type:a.HtmlSnapshotTaken,html:r.window.document.documentElement.outerHTML});case 2:return n.a(3,3);case 3:return n.a(2)}}),i)})))}))};var a=r(659)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlSnapshotTaken=e.TakeHtmlSnapshot=void 0,e.TakeHtmlSnapshot="sos.Html.TakeHtmlSnapshot",e.HtmlSnapshotTaken="sos.Monitoring.Html.HtmlSnapshotTaken"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleOfflineCacheRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v,y,g,b,w,M,_,S,O,E,k,P;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.OfflineCacheListFiles?1:o===a.OfflineCacheLoadFile?4:o===a.OfflineCacheGetChecksumRequest?7:o===a.OfflineCacheValidateChecksumRequest?10:o===a.OfflineCacheLoadOrSaveFileRequest?13:o===a.OfflineCacheDeleteFileRequest?16:o===a.OfflineCacheListContentRequest?19:o===a.OfflineCacheLoadContentRequest?22:o===a.OfflineCacheSaveContentRequest?25:o===a.OfflineCacheDeleteContentRequest?28:31;break;case 1:return u=e,s=a.OfflineCacheFilesListed,n.n=2,r.offline.cache.listFiles();case 2:return f=n.v,n.n=3,u({type:s,fileUids:f});case 3:return n.a(3,31);case 4:return c=e,h=a.OfflineCacheFileLoaded,n.n=5,r.offline.cache.loadFile(t.command.uid);case 5:return l=n.v,n.n=6,c({type:h,file:l});case 6:return n.a(3,31);case 7:return d=e,p=a.OfflineCacheGetChecksumResult,n.n=8,r.offline.cache.getChecksumFile(t.command.uid,t.command.hashType);case 8:return m=n.v,n.n=9,d({type:p,result:m});case 9:return n.a(3,31);case 10:return v=e,y=a.OfflineCacheValidateChecksumResult,n.n=11,r.offline.cache.validateChecksumFile(t.command.uid,t.command.hash,t.command.hashType);case 11:return g=n.v,n.n=12,v({type:y,result:g});case 12:return n.a(3,31);case 13:return b=e,w=a.OfflineCacheLoadOrSaveFileResult,n.n=14,r.offline.cache.loadOrSaveFile(t.command.uid,t.command.uri,t.command.headers);case 14:return M=n.v,n.n=15,b({type:w,file:M});case 15:return n.a(3,31);case 16:return n.n=17,r.offline.cache.deleteFile(t.command.uid);case 17:return n.n=18,e({type:a.OfflineCacheDeleteFileResult,result:{}});case 18:return n.a(3,31);case 19:return _=e,S=a.OfflineCacheListContentResult,n.n=20,r.offline.cache.listContents();case 20:return O=n.v,n.n=21,_({type:S,result:O});case 21:return n.a(3,31);case 22:return E=e,k=a.OfflineCacheLoadContentResult,n.n=23,r.offline.cache.loadContent(t.command.uid);case 23:return P=n.v,n.n=24,E({type:k,result:P});case 24:return n.a(3,31);case 25:return n.n=26,r.offline.cache.saveContent(t.command.uid,t.command.content);case 26:return n.n=27,e({type:a.OfflineCacheSaveContentResult,result:{}});case 27:return n.a(3,31);case 28:return n.n=29,r.offline.cache.deleteContent(t.command.uid);case 29:return n.n=30,e({type:a.OfflineCacheDeleteContentResult,result:{}});case 30:return n.a(3,31);case 31:return n.a(2)}}),i)})))}))};var a=r(661)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OfflineCacheDeleteContentResult=e.OfflineCacheDeleteContentRequest=e.OfflineCacheSaveContentResult=e.OfflineCacheSaveContentRequest=e.OfflineCacheLoadContentResult=e.OfflineCacheLoadContentRequest=e.OfflineCacheListContentResult=e.OfflineCacheListContentRequest=e.OfflineCacheDeleteFileResult=e.OfflineCacheDeleteFileRequest=e.OfflineCacheLoadOrSaveFileResult=e.OfflineCacheLoadOrSaveFileRequest=e.OfflineCacheValidateChecksumResult=e.OfflineCacheValidateChecksumRequest=e.OfflineCacheGetChecksumResult=e.OfflineCacheGetChecksumRequest=e.OfflineCacheFileLoaded=e.OfflineCacheLoadFile=e.OfflineCacheFilesListed=e.OfflineCacheListFiles=void 0,e.OfflineCacheListFiles="sos.Monitoring.Offline.Cache.OfflineCacheListFiles",e.OfflineCacheFilesListed="sos.Monitoring.Offline.Cache.OfflineCacheFilesListed",e.OfflineCacheLoadFile="sos.Monitoring.Offline.Cache.OfflineCacheLoadFile",e.OfflineCacheFileLoaded="sos.Monitoring.Offline.Cache.OfflineCacheFileLoaded",e.OfflineCacheGetChecksumRequest="sos.Monitoring.Offline.Cache.OfflineCacheGetChecksumRequest",e.OfflineCacheGetChecksumResult="sos.Monitoring.Offline.Cache.OfflineCacheGetChecksumResult",e.OfflineCacheValidateChecksumRequest="sos.Monitoring.Offline.Cache.OfflineCacheValidateChecksumRequest",e.OfflineCacheValidateChecksumResult="sos.Monitoring.Offline.Cache.OfflineCacheValidateChecksumResult",e.OfflineCacheLoadOrSaveFileRequest="sos.Monitoring.Offline.Cache.OfflineCacheLoadOrSaveFileRequest",e.OfflineCacheLoadOrSaveFileResult="sos.Monitoring.Offline.Cache.OfflineCacheLoadOrSaveFileResult",e.OfflineCacheDeleteFileRequest="sos.Monitoring.Offline.Cache.OfflineCacheDeleteFileRequest",e.OfflineCacheDeleteFileResult="sos.Monitoring.Offline.Cache.OfflineCacheDeleteFileResult",e.OfflineCacheListContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheListContentRequest",e.OfflineCacheListContentResult="sos.Monitoring.Offline.Cache.OfflineCacheListContentResult",e.OfflineCacheLoadContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheLoadContentRequest",e.OfflineCacheLoadContentResult="sos.Monitoring.Offline.Cache.OfflineCacheLoadContentResult",e.OfflineCacheSaveContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheSaveContentRequest",e.OfflineCacheSaveContentResult="sos.Monitoring.Offline.Cache.OfflineCacheSaveContentResult",e.OfflineCacheDeleteContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheDeleteContentRequest",e.OfflineCacheDeleteContentResult="sos.Monitoring.Offline.Cache.OfflineCacheDeleteContentResult"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.handleVideoRequests=function(t,e,r){r.video.onPlay((function(t){e(Object.assign({type:n.VideoStateChanged,state:"play"},t.srcArguments))})),r.video.onPrepare((function(t){e(Object.assign({type:n.VideoStateChanged,state:"prepare"},t.srcArguments))})),r.video.onStop((function(t){e(Object.assign({type:n.VideoStateChanged,state:"stop"},t.srcArguments))})),r.video.onPause((function(t){e(Object.assign({type:n.VideoStateChanged,state:"pause"},t.srcArguments))})),r.video.onResume((function(t){e(Object.assign({type:n.VideoStateChanged,state:"resume"},t.srcArguments))})),r.video.onEnded((function(t){e(Object.assign({type:n.VideoStateChanged,state:"ended"},t.srcArguments))})),r.video.onError((function(t){e(Object.assign({type:n.VideoStateChanged,state:"error"},t.srcArguments))}))};var n=r(663)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VideoStateChanged=void 0,e.VideoStateChanged="sos.Monitoring.Video.VideoStateChanged"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleOSDRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ShowOSDRequest?1:4;break;case 1:return n.n=2,r.osd.showOSD();case 2:return n.n=3,e({type:a.ShowOSDResult,result:{}});case 3:return n.a(3,4);case 4:return n.a(2)}}),i)})))}))};var a=r(665)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowOSDResult=e.ShowOSDRequest=void 0,e.ShowOSDRequest="sos.Monitoring.OSD.ShowOSDRequest",e.ShowOSDResult="sos.Monitoring.OSD.ShowOSDResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementApplicationRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ApplicationGetTypeRequest?1:o===a.ApplicationGetVersionRequest?4:o===a.ApplicationUpgradeRequest?7:10;break;case 1:return u=e,s=a.ApplicationGetTypeResult,n.n=2,r.management.app.getType();case 2:return f=n.v,n.n=3,u({type:s,applicationType:f});case 3:return n.a(3,10);case 4:return c=e,h=a.ApplicationGetVersionResult,n.n=5,r.management.app.getVersion();case 5:return l=n.v,n.n=6,c({type:h,version:l});case 6:return n.a(3,10);case 7:return n.n=8,e({type:a.ApplicationUpgradeResult,result:{}});case 8:return n.n=9,r.management.app.upgrade(t.command.version,t.command.baseUrl);case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(667)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplicationUpgradeResult=e.ApplicationUpgradeRequest=e.ApplicationGetVersionResult=e.ApplicationGetVersionRequest=e.ApplicationGetTypeResult=e.ApplicationGetTypeRequest=void 0,e.ApplicationGetTypeRequest="sos.Monitoring.App.ApplicationGetTypeRequest",e.ApplicationGetTypeResult="sos.Monitoring.App.ApplicationGetTypeResult",e.ApplicationGetVersionRequest="sos.Monitoring.App.ApplicationGetVersionRequest",e.ApplicationGetVersionResult="sos.Monitoring.App.ApplicationGetVersionResult",e.ApplicationUpgradeRequest="sos.Monitoring.App.ApplicationUpgradeRequest",e.ApplicationUpgradeResult="sos.Monitoring.App.ApplicationUpgradeResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementPowerRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.PowerSystemRebootRequest?1:o===a.PowerAppRestartRequest?4:o===a.ManagementPowerGetTimersRequest?7:o===a.ManagementPowerSetTimerRequest?10:o===a.ManagementPowerUnsetTimerRequest?13:o===a.ManagementPowerGetProprietaryTimersRequest?16:o===a.ManagementPowerSetProprietaryTimerRequest?19:o===a.ManagementPowerUnsetProprietaryTimerRequest?22:o===a.ManagementPowerClearScheduledRebootsRequest?25:o===a.ManagementPowerGetScheduledRebootsRequest?28:o===a.ManagementPowerRemoveScheduledRebootRequest?31:o===a.ManagementPowerSetScheduledRebootRequest?34:37;break;case 1:return n.n=2,e({type:a.PowerSystemRebootResult,result:{}});case 2:return n.n=3,r.management.power.systemReboot();case 3:return n.a(3,37);case 4:return n.n=5,e({type:a.PowerAppRestartResult,result:{}});case 5:return n.n=6,r.management.power.appRestart();case 6:return n.a(3,37);case 7:return u=e,s=a.ManagementPowerGetTimersResult,n.n=8,r.management.power.getTimers();case 8:return f=n.v,n.n=9,u({type:s,timers:f});case 9:return n.a(3,37);case 10:return n.n=11,r.management.power.setTimer(t.command.timerType,t.command.timeOn,t.command.timeOff,t.command.weekdays,t.command.volume);case 11:return n.n=12,e({type:a.ManagementPowerSetTimerResult,result:{}});case 12:return n.a(3,37);case 13:return n.n=14,r.management.power.unsetTimer(t.command.timerType);case 14:return n.n=15,e({type:a.ManagementPowerUnsetTimerResult,result:{}});case 15:return n.a(3,37);case 16:return c=e,h=a.ManagementPowerGetProprietaryTimersResult,n.n=17,r.management.power.getProprietaryTimers();case 17:return l=n.v,n.n=18,c({type:h,result:l});case 18:return n.a(3,37);case 19:return n.n=20,r.management.power.setProprietaryTimer(t.command.timerType,t.command.timeOn,t.command.timeOff,t.command.weekdays,t.command.keepAppletRunning);case 20:return n.n=21,e({type:a.ManagementPowerSetProprietaryTimerResult,result:{}});case 21:return n.a(3,37);case 22:return n.n=23,r.management.power.unsetProprietaryTimer(t.command.timerType);case 23:return n.n=24,e({type:a.ManagementPowerUnsetProprietaryTimerResult,result:{}});case 24:return n.a(3,37);case 25:return n.n=26,r.management.power.clearScheduledReboots();case 26:return n.n=27,e({type:a.ManagementPowerClearScheduledRebootsResult,result:{}});case 27:return n.a(3,37);case 28:return d=e,p=a.ManagementPowerGetScheduledRebootsResult,n.n=29,r.management.power.getScheduledReboots();case 29:return m=n.v,n.n=30,d({type:p,result:m});case 30:return n.a(3,37);case 31:return n.n=32,r.management.power.removeScheduledReboot(t.command.id);case 32:return n.n=33,e({type:a.ManagementPowerRemoveScheduledRebootResult,result:{}});case 33:return n.a(3,37);case 34:return n.n=35,r.management.power.setScheduledReboot(t.command.weekdays,t.command.time);case 35:return n.n=36,e({type:a.ManagementPowerSetScheduledRebootResult,result:{}});case 36:return n.a(3,37);case 37:return n.a(2)}}),i)})))}))};var a=r(669)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementPowerSetScheduledRebootResult=e.ManagementPowerSetScheduledRebootRequest=e.ManagementPowerRemoveScheduledRebootResult=e.ManagementPowerRemoveScheduledRebootRequest=e.ManagementPowerGetScheduledRebootsResult=e.ManagementPowerGetScheduledRebootsRequest=e.ManagementPowerClearScheduledRebootsResult=e.ManagementPowerClearScheduledRebootsRequest=e.ManagementPowerUnsetProprietaryTimerResult=e.ManagementPowerUnsetProprietaryTimerRequest=e.ManagementPowerSetProprietaryTimerResult=e.ManagementPowerSetProprietaryTimerRequest=e.ManagementPowerGetProprietaryTimersResult=e.ManagementPowerGetProprietaryTimersRequest=e.ManagementPowerUnsetTimerResult=e.ManagementPowerUnsetTimerRequest=e.ManagementPowerSetTimerResult=e.ManagementPowerSetTimerRequest=e.ManagementPowerGetTimersResult=e.ManagementPowerGetTimersRequest=e.PowerAppRestartResult=e.PowerAppRestartRequest=e.PowerSystemRebootResult=e.PowerSystemRebootRequest=void 0,e.PowerSystemRebootRequest="sos.Monitoring.Management.Power.PowerSystemRebootRequest",e.PowerSystemRebootResult="sos.Monitoring.Management.Power.PowerSystemRebootResult",e.PowerAppRestartRequest="sos.Monitoring.Management.Power.PowerAppRestartRequest",e.PowerAppRestartResult="sos.Monitoring.Management.Power.PowerAppRestartResult",e.ManagementPowerGetTimersRequest="sos.Monitoring.Management.Power.ManagementPowerGetTimersRequest",e.ManagementPowerGetTimersResult="sos.Monitoring.Management.Power.ManagementPowerGetTimersResult",e.ManagementPowerSetTimerRequest="sos.Monitoring.Management.Power.ManagementPowerSetTimerRequest",e.ManagementPowerSetTimerResult="sos.Monitoring.Management.Power.ManagementPowerSetTimerResult",e.ManagementPowerUnsetTimerRequest="sos.Monitoring.Management.Power.ManagementPowerUnsetTimerRequest",e.ManagementPowerUnsetTimerResult="sos.Monitoring.Management.Power.ManagementPowerUnsetTimerResult",e.ManagementPowerGetProprietaryTimersRequest="sos.Monitoring.Management.Power.ManagementPowerGetProprietaryTimersRequest",e.ManagementPowerGetProprietaryTimersResult="sos.Monitoring.Management.Power.ManagementPowerGetProprietaryTimersResult",e.ManagementPowerSetProprietaryTimerRequest="sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerRequest",e.ManagementPowerSetProprietaryTimerResult="sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerResult",e.ManagementPowerUnsetProprietaryTimerRequest="sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerRequest",e.ManagementPowerUnsetProprietaryTimerResult="sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerResult",e.ManagementPowerClearScheduledRebootsRequest="sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsRequest",e.ManagementPowerClearScheduledRebootsResult="sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsResult",e.ManagementPowerGetScheduledRebootsRequest="sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsRequest",e.ManagementPowerGetScheduledRebootsResult="sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsResult",e.ManagementPowerRemoveScheduledRebootRequest="sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest",e.ManagementPowerRemoveScheduledRebootResult="sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootResult",e.ManagementPowerSetScheduledRebootRequest="sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootRequest",e.ManagementPowerSetScheduledRebootResult="sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleDisplayRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.DisplaySupportsRequest?1:4;break;case 1:return u=e,s=a.DisplaySupportsResult,n.n=2,r.display.supports(t.command.capability);case 2:return f=n.v,n.n=3,u({type:s,supports:f});case 3:return n.a(3,4);case 4:return n.a(2)}}),i)})))}))};var a=r(671)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisplaySupportsResult=e.DisplaySupportsRequest=void 0,e.DisplaySupportsRequest="sos.Monitoring.Display.DisplaySupportsRequest",e.DisplaySupportsResult="sos.Monitoring.Display.DisplaySupportsResult"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogged=void 0,e.ConsoleLogged="sos.Monitoring.Console.ConsoleLogged"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v,y,g,b,w,M,_,S,O,E,k,P;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementSupportsRequest?1:o===a.ManagementGetModelRequest?4:o===a.ManagementGetSerialNumberRequest?7:o===a.ManagementGetTemperatureRequest?10:o===a.ManagementGetBrandRequest?13:o===a.ManagementGetBatteryStatusRequest?16:o===a.ManagementResetSettingsRequest?19:o===a.ManagementFactoryResetRequest?22:o===a.ManagementGetExtendedManagementUrlRequest?25:o===a.ManagementSetExtendedManagementUrlRequest?28:31;break;case 1:return u=e,s=a.ManagementSupportsResult,n.n=2,r.management.supports(t.command.capability);case 2:return f=n.v,n.n=3,u({type:s,supports:f});case 3:return n.a(3,31);case 4:return c=e,h=a.ManagementGetModelResult,n.n=5,r.management.getModel();case 5:return l=n.v,n.n=6,c({type:h,model:l});case 6:return n.a(3,31);case 7:return d=e,p=a.ManagementGetSerialNumberResult,n.n=8,r.management.getSerialNumber();case 8:return m=n.v,n.n=9,d({type:p,serialNumber:m});case 9:return n.a(3,31);case 10:return v=e,y=a.ManagementGetTemperatureResult,n.n=11,r.management.getTemperature();case 11:return g=n.v,n.n=12,v({type:y,temperature:g});case 12:return n.a(3,31);case 13:return b=e,w=a.ManagementGetBrandResult,n.n=14,r.management.getBrand();case 14:return M=n.v,n.n=15,b({type:w,brand:M});case 15:return n.a(3,31);case 16:return _=e,S=a.ManagementGetBatteryStatusResult,n.n=17,r.management.getBatteryStatus();case 17:return O=n.v,n.n=18,_({type:S,status:O});case 18:return n.a(3,31);case 19:return n.n=20,r.management.resetSettings();case 20:return n.n=21,e({type:a.ManagementResetSettingsResult,result:{}});case 21:return n.a(3,31);case 22:return n.n=23,r.management.factoryReset();case 23:return n.n=24,e({type:a.ManagementFactoryResetResult,result:{}});case 24:return n.a(3,31);case 25:return E=e,k=a.ManagementGetExtendedManagementUrlResult,n.n=26,r.management.getExtendedManagementUrl();case 26:return P=n.v,n.n=27,E({type:k,result:P});case 27:return n.a(3,31);case 28:return n.n=29,r.management.setExtendedManagementUrl(t.command.url);case 29:return n.n=30,e({type:a.ManagementSetExtendedManagementUrlResult,result:{}});case 30:return n.a(3,31);case 31:return n.a(2)}}),i)})))}))};var a=r(674)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementSetExtendedManagementUrlResult=e.ManagementSetExtendedManagementUrlRequest=e.ManagementGetExtendedManagementUrlResult=e.ManagementGetExtendedManagementUrlRequest=e.ManagementFactoryResetResult=e.ManagementFactoryResetRequest=e.ManagementResetSettingsResult=e.ManagementResetSettingsRequest=e.ManagementGetBatteryStatusResult=e.ManagementGetBatteryStatusRequest=e.ManagementGetBrandResult=e.ManagementGetBrandRequest=e.ManagementGetTemperatureResult=e.ManagementGetTemperatureRequest=e.ManagementGetSerialNumberResult=e.ManagementGetSerialNumberRequest=e.ManagementGetModelResult=e.ManagementGetModelRequest=e.ManagementSupportsResult=e.ManagementSupportsRequest=void 0,e.ManagementSupportsRequest="sos.Monitoring.App.ManagementSupportsRequest",e.ManagementSupportsResult="sos.Monitoring.App.ManagementSupportsResult",e.ManagementGetModelRequest="sos.Monitoring.App.ManagementGetModelRequest",e.ManagementGetModelResult="sos.Monitoring.App.ManagementGetModelResult",e.ManagementGetSerialNumberRequest="sos.Monitoring.App.ManagementGetSerialNumberRequest",e.ManagementGetSerialNumberResult="sos.Monitoring.App.ManagementGetSerialNumberResult",e.ManagementGetTemperatureRequest="sos.Monitoring.App.ManagementGetTemperatureRequest",e.ManagementGetTemperatureResult="sos.Monitoring.App.ManagementGetTemperatureResult",e.ManagementGetBrandRequest="sos.Monitoring.App.ManagementGetBrandRequest",e.ManagementGetBrandResult="sos.Monitoring.App.ManagementGetBrandResult",e.ManagementGetBatteryStatusRequest="sos.Monitoring.App.ManagementGetBatteryStatusRequest",e.ManagementGetBatteryStatusResult="sos.Monitoring.App.ManagementGetBatteryStatusResult",e.ManagementResetSettingsRequest="sos.Monitoring.App.ManagementResetSettingsRequest",e.ManagementResetSettingsResult="sos.Monitoring.App.ManagementRessetSettingsResult",e.ManagementFactoryResetRequest="sos.Monitoring.App.ManagementFactoryResetRequest",e.ManagementFactoryResetResult="sos.Monitoring.App.ManagementFactoryResetResult",e.ManagementGetExtendedManagementUrlRequest="sos.Monitoring.App.ManagementGetExtendedManagementUrlRequest",e.ManagementGetExtendedManagementUrlResult="sos.Monitoring.App.ManagementGetExtendedManagementUrlResult",e.ManagementSetExtendedManagementUrlRequest="sos.Monitoring.App.ManagementSetExtendedManagementUrlRequest",e.ManagementSetExtendedManagementUrlResult="sos.Monitoring.App.ManagementSetExtendedManagementUrlResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementScreenRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v;return n().w((function(n){for(;;)switch(n.n){case 0:u=t.command.type,n.n=u===a.ManagementScreenResizeRequest?1:u===a.ManagementScreenGetOrientationRequest?4:u===a.ManagementScreenSetBrightnessRequest?7:u===a.ManagementScreenGetBrightnessRequest?10:u===a.ManagementScreenTakeScreenshotRequest?13:u===a.ManagementScreenPowerOnRequest?16:u===a.ManagementScreenPowerOffRequest?19:u===a.ManagementScreenIsPoweredOnRequest?22:25;break;case 1:return n.n=2,r.management.screen.resize(t.command.baseUrl,t.command.orientation,t.command.resolution,t.command.currentVersion,t.command.videoOrientation);case 2:return n.n=3,e({type:a.ManagementScreenResizeResult,result:{}});case 3:return n.a(3,25);case 4:return s=e,f=a.ManagementScreenGetOrientationResult,n.n=5,r.management.screen.getOrientation();case 5:return c=n.v,n.n=6,s({type:f,result:c});case 6:return n.a(3,25);case 7:return n.n=8,r.management.screen.setBrightness(t.command.timeFrom1,t.command.brightness1,t.command.timeFrom2,t.command.brightness2);case 8:return n.n=9,e({type:a.ManagementScreenSetBrightnessResult,result:{}});case 9:return n.a(3,25);case 10:return h=e,l=a.ManagementScreenGetBrightnessResult,n.n=11,r.management.screen.getBrightness();case 11:return d=n.v,n.n=12,h({type:l,result:d});case 12:return n.a(3,25);case 13:return n.n=14,r.management.screen.takeAndUploadScreenshot(t.command.uploadBaseUrl,t.command.computeHash);case 14:return o=n.v,n.n=15,e({type:a.ManagementScreenTakeScreenshotResult,screenshotUrl:o.screenshotUrl,aHash:o.aHash});case 15:return n.a(3,25);case 16:return n.n=17,r.management.screen.powerOn();case 17:return n.n=18,e({type:a.ManagementScreenPowerOnResult,result:{}});case 18:return n.a(3,25);case 19:return n.n=20,r.management.screen.powerOff();case 20:return n.n=21,e({type:a.ManagementScreenPowerOffResult,result:{}});case 21:return n.a(3,25);case 22:return p=e,m=a.ManagementScreenIsPoweredOnResult,n.n=23,r.management.screen.isPoweredOn();case 23:return v=n.v,n.n=24,p({type:m,result:v});case 24:return n.a(3,25);case 25:return n.a(2)}}),i)})))}))};var a=r(676)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementScreenIsPoweredOnResult=e.ManagementScreenIsPoweredOnRequest=e.ManagementScreenPowerOffResult=e.ManagementScreenPowerOffRequest=e.ManagementScreenPowerOnResult=e.ManagementScreenPowerOnRequest=e.ManagementScreenTakeScreenshotResult=e.ManagementScreenTakeScreenshotRequest=e.ManagementScreenGetBrightnessResult=e.ManagementScreenGetBrightnessRequest=e.ManagementScreenSetBrightnessResult=e.ManagementScreenSetBrightnessRequest=e.ManagementScreenGetOrientationResult=e.ManagementScreenGetOrientationRequest=e.ManagementScreenResizeResult=e.ManagementScreenResizeRequest=void 0,e.ManagementScreenResizeRequest="sos.Monitoring.Management.ManagementScreenResizeRequest",e.ManagementScreenResizeResult="sos.Monitoring.Management.ManagementScreenResizeResult",e.ManagementScreenGetOrientationRequest="sos.Monitoring.Management.ManagementScreenGetOrientationRequest",e.ManagementScreenGetOrientationResult="sos.Monitoring.Management.ManagementScreenGetOrientationResult",e.ManagementScreenSetBrightnessRequest="sos.Monitoring.Management.ManagementScreenSetBrightnessRequest",e.ManagementScreenSetBrightnessResult="sos.Monitoring.Management.ManagementScreenSetBrightnessResult",e.ManagementScreenGetBrightnessRequest="sos.Monitoring.Management.ManagementScreenGetBrightnessRequest",e.ManagementScreenGetBrightnessResult="sos.Monitoring.Management.ManagementScreenGetBrightnessResult",e.ManagementScreenTakeScreenshotRequest="sos.Monitoring.Management.ManagementScreenTakeScreenshotRequest",e.ManagementScreenTakeScreenshotResult="sos.Monitoring.Management.ManagementScreenTakeScreenshotResult",e.ManagementScreenPowerOnRequest="sos.Monitoring.Management.ManagementScreenPowerOnRequest",e.ManagementScreenPowerOnResult="sos.Monitoring.Management.ManagementScreenPowerOnResult",e.ManagementScreenPowerOffRequest="sos.Monitoring.Management.ManagementScreenPowerOffRequest",e.ManagementScreenPowerOffResult="sos.Monitoring.Management.ManagementScreenPowerOffResult",e.ManagementScreenIsPoweredOnRequest="sos.Monitoring.Management.ManagementScreenIsPoweredOnRequest",e.ManagementScreenIsPoweredOnResult="sos.Monitoring.Management.ManagementScreenIsPoweredOnResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementSecurityRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementSecurityGetPinCodeRequest?1:o===a.ManagementSecuritySetPinCodeRequest?4:o===a.ManagementSecurityGenerateRandomPinCodeRequest?7:10;break;case 1:return u=e,s=a.ManagementSecurityGetPinCodeResult,n.n=2,r.management.security.getPinCode();case 2:return f=n.v,n.n=3,u({type:s,pinCode:f});case 3:return n.a(3,10);case 4:return n.n=5,r.management.security.setPinCode(t.command.pinCode);case 5:return n.n=6,e({type:a.ManagementSecuritySetPinCodeResult,result:{}});case 6:return n.a(3,10);case 7:return n.n=8,r.management.security.generateRandomPinCode();case 8:return n.n=9,e({type:a.ManagementSecurityGenerateRandomPinCodeResult,result:{}});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(678)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementSecurityGenerateRandomPinCodeResult=e.ManagementSecurityGenerateRandomPinCodeRequest=e.ManagementSecuritySetPinCodeResult=e.ManagementSecuritySetPinCodeRequest=e.ManagementSecurityGetPinCodeResult=e.ManagementSecurityGetPinCodeRequest=void 0,e.ManagementSecurityGetPinCodeRequest="sos.Monitoring.Management.ManagementSecurityGetPinCodeRequest",e.ManagementSecurityGetPinCodeResult="sos.Monitoring.Management.ManagementSecurityGetPinCodeResult",e.ManagementSecuritySetPinCodeRequest="sos.Monitoring.Management.ManagementSecuritySetPinCodeRequest",e.ManagementSecuritySetPinCodeResult="sos.Monitoring.Management.ManagementSecuritySetPinCodeResult",e.ManagementSecurityGenerateRandomPinCodeRequest="sos.Monitoring.Management.ManagementSecurityGenerateRandomPinCodeRequest",e.ManagementSecurityGenerateRandomPinCodeResult="sos.Monitoring.Management.ManagementSecurityGenerateRandomPinCodeResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementAudioRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementAudioGetVolumeRequest?1:o===a.ManagementAudioSetVolumeRequest?4:7;break;case 1:return u=e,s=a.ManagementAudioGetVolumeResult,n.n=2,r.management.audio.getVolume();case 2:return f=n.v,n.n=3,u({type:s,volume:f});case 3:return n.a(3,7);case 4:return n.n=5,r.management.audio.setVolume(t.command.volume);case 5:return n.n=6,e({type:a.ManagementAudioSetVolumeResult,result:{}});case 6:return n.a(3,7);case 7:return n.a(2)}}),i)})))}))};var a=r(680)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementAudioSetVolumeResult=e.ManagementAudioSetVolumeRequest=e.ManagementAudioGetVolumeResult=e.ManagementAudioGetVolumeRequest=void 0,e.ManagementAudioGetVolumeRequest="sos.Monitoring.Management.Audio.ManagementAudioGetVolumeRequest",e.ManagementAudioGetVolumeResult="sos.Monitoring.Management.Audio.ManagementAudioGetVolumeResult",e.ManagementAudioSetVolumeRequest="sos.Monitoring.Management.Audio.ManagementAudioSetVolumeRequest",e.ManagementAudioSetVolumeResult="sos.Monitoring.Management.Audio.ManagementAudioSetVolumeResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementRemoteControlRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementRemoteControlEnableRequest?1:o===a.ManagementRemoteControlDisableRequest?4:o===a.ManagementRemoteControlIsEnabledRequest?7:o===a.ManagementRemoteControlLockRequest?10:o===a.ManagementRemoteControlUnlockRequest?13:o===a.ManagementRemoteControlIsLockedRequest?16:19;break;case 1:return n.n=2,r.management.remoteControl.enable();case 2:return n.n=3,e({type:a.ManagementRemoteControlEnableResult,result:{}});case 3:return n.a(3,19);case 4:return n.n=5,r.management.remoteControl.disable();case 5:return n.n=6,e({type:a.ManagementRemoteControlDisableResult,result:{}});case 6:return n.a(3,19);case 7:return u=e,s=a.ManagementRemoteControlIsEnabledResult,n.n=8,r.management.remoteControl.isEnabled();case 8:return f=n.v,n.n=9,u({type:s,result:f});case 9:return n.a(3,19);case 10:return n.n=11,r.management.remoteControl.lock();case 11:return n.n=12,e({type:a.ManagementRemoteControlLockResult,result:{}});case 12:return n.a(3,19);case 13:return n.n=14,r.management.remoteControl.unlock();case 14:return n.n=15,e({type:a.ManagementRemoteControlUnlockResult,result:{}});case 15:return n.a(3,19);case 16:return c=e,h=a.ManagementRemoteControlIsLockedResult,n.n=17,r.management.remoteControl.isLocked();case 17:return l=n.v,n.n=18,c({type:h,result:l});case 18:return n.a(3,19);case 19:return n.a(2)}}),i)})))}))};var a=r(682)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementRemoteControlIsLockedResult=e.ManagementRemoteControlIsLockedRequest=e.ManagementRemoteControlUnlockResult=e.ManagementRemoteControlUnlockRequest=e.ManagementRemoteControlLockResult=e.ManagementRemoteControlLockRequest=e.ManagementRemoteControlIsEnabledResult=e.ManagementRemoteControlIsEnabledRequest=e.ManagementRemoteControlDisableResult=e.ManagementRemoteControlDisableRequest=e.ManagementRemoteControlEnableResult=e.ManagementRemoteControlEnableRequest=void 0,e.ManagementRemoteControlEnableRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlEnableRequest",e.ManagementRemoteControlEnableResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlEnableResult",e.ManagementRemoteControlDisableRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlDisableRequest",e.ManagementRemoteControlDisableResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlDisableResult",e.ManagementRemoteControlIsEnabledRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsEnabledRequest",e.ManagementRemoteControlIsEnabledResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsEnabledResult",e.ManagementRemoteControlLockRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlLockRequest",e.ManagementRemoteControlLockResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlLockResult",e.ManagementRemoteControlUnlockRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlUnlockRequest",e.ManagementRemoteControlUnlockResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlUnlockResult",e.ManagementRemoteControlIsLockedRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsLockedRequest",e.ManagementRemoteControlIsLockedResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsLockedResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementDebugRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementDebugEnableRequest?1:o===a.ManagementDebugDisableRequest?4:o===a.ManagementDebugIsEnabledRequest?7:10;break;case 1:return n.n=2,r.management.debug.enable();case 2:return n.n=3,e({type:a.ManagementDebugEnableResult,result:{}});case 3:return n.a(3,10);case 4:return n.n=5,r.management.debug.disable();case 5:return n.n=6,e({type:a.ManagementDebugDisableResult,result:{}});case 6:return n.a(3,10);case 7:return u=e,s=a.ManagementDebugIsEnabledResult,n.n=8,r.management.debug.isEnabled();case 8:return f=n.v,n.n=9,u({type:s,result:f});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(684)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementDebugIsEnabledResult=e.ManagementDebugIsEnabledRequest=e.ManagementDebugDisableResult=e.ManagementDebugDisableRequest=e.ManagementDebugEnableResult=e.ManagementDebugEnableRequest=void 0,e.ManagementDebugEnableRequest="sos.Monitoring.Management.Debug.ManagementDebugEnableRequest",e.ManagementDebugEnableResult="sos.Monitoring.Management.Debug.ManagementDebugEnableResult",e.ManagementDebugDisableRequest="sos.Monitoring.Management.Debug.ManagementDebugDisableRequest",e.ManagementDebugDisableResult="sos.Monitoring.Management.Debug.ManagementDebugDisableResult",e.ManagementDebugIsEnabledRequest="sos.Monitoring.Management.Debug.ManagementDebugIsEnabledRequest",e.ManagementDebugIsEnabledResult="sos.Monitoring.Management.Debug.ManagementDebugIsEnabledResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementOsRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementOsGetInfoRequest?1:o===a.ManagementOsGetCpuUsageRequest?4:o===a.ManagementOsGetMemoryUsageRequest?7:10;break;case 1:return u=e,s=a.ManagementOsGetInfoResult,n.n=2,r.management.os.getInfo();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,10);case 4:return c=e,h=a.ManagementOsGetCpuUsageResult,n.n=5,r.management.os.getCpuUsage();case 5:return l=n.v,n.n=6,c({type:h,result:l});case 6:return n.a(3,10);case 7:return d=e,p=a.ManagementOsGetMemoryUsageResult,n.n=8,r.management.os.getMemoryUsage();case 8:return m=n.v,n.n=9,d({type:p,result:m});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(686)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementOsGetMemoryUsageResult=e.ManagementOsGetMemoryUsageRequest=e.ManagementOsGetCpuUsageResult=e.ManagementOsGetCpuUsageRequest=e.ManagementOsGetInfoResult=e.ManagementOsGetInfoRequest=void 0,e.ManagementOsGetInfoRequest="sos.Monitoring.Management.Os.ManagementOsGetInfoRequest",e.ManagementOsGetInfoResult="sos.Monitoring.Management.Os.ManagementOsGetInfoResult",e.ManagementOsGetCpuUsageRequest="sos.Monitoring.Management.Os.ManagementOsGetCpuUsageRequest",e.ManagementOsGetCpuUsageResult="sos.Monitoring.Management.Os.ManagementOsGetCpuUsageResult",e.ManagementOsGetMemoryUsageRequest="sos.Monitoring.Management.Os.ManagementOsGetMemoryUsageRequest",e.ManagementOsGetMemoryUsageResult="sos.Monitoring.Management.Os.ManagementOsGetMemoryUsageResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleMonitoringRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.EnableMonitoring?1:o===a.DisableMonitoring?2:o===a.AppletRefreshRequest?3:o===a.AppletRestoreRequest?6:8;break;case 1:return r.config.sosMonitoring=!0,n.a(3,8);case 2:return r.config.sosMonitoring=!1,n.a(3,8);case 3:return n.n=4,r.refresh();case 4:return n.n=5,e({type:a.AppletRefreshResult,result:{}});case 5:return n.a(3,8);case 6:return n.n=7,e({type:a.AppletRestoreResult,result:{}});case 7:return r.restore(),n.a(3,8);case 8:return n.a(2)}}),i)})))}))};var a=r(688)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AppletRestoreResult=e.AppletRestoreRequest=e.AppletRefreshResult=e.AppletRefreshRequest=e.DisableMonitoring=e.EnableMonitoring=void 0,e.EnableMonitoring="sos.Monitoring.EnableMonitoring",e.DisableMonitoring="sos.Monitoring.DisableMonitoring",e.AppletRefreshRequest="sos.Monitoring.AppletRefreshRequest",e.AppletRefreshResult="sos.Monitoring.AppletRefreshResult",e.AppletRestoreRequest="sos.Monitoring.AppletRestoreRequest",e.AppletRestoreResult="sos.Monitoring.AppletRestoreResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementTimeCommands=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementTimeGetTimeRequest?1:o===a.ManagementTimeSetManualRequest?4:o===a.ManagementTimeSetNTPRequest?7:10;break;case 1:return u=e,s=a.ManagementTimeGetTimeResult,n.n=2,r.management.time.get();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,10);case 4:return n.n=5,e({type:a.ManagementTimeSetManualResult,result:{}});case 5:return n.n=6,r.management.time.setManual(t.command.dateTime,t.command.timezone);case 6:return n.a(3,10);case 7:return n.n=8,e({type:a.ManagementTimeSetNTPResult,result:{}});case 8:return n.n=9,r.management.time.setNTP(t.command.ntpServer,t.command.timezone);case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(690)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementTimeSetNTPResult=e.ManagementTimeSetNTPRequest=e.ManagementTimeSetManualResult=e.ManagementTimeSetManualRequest=e.ManagementTimeGetTimeResult=e.ManagementTimeGetTimeRequest=void 0,e.ManagementTimeGetTimeRequest="sos.Monitoring.Management.ManagementTimeGetTimeRequest",e.ManagementTimeGetTimeResult="sos.Monitoring.Management.ManagementTimeGetTimeResult",e.ManagementTimeSetManualRequest="sos.Monitoring.Management.ManagementTimeSetManualRequest",e.ManagementTimeSetManualResult="sos.Monitoring.Management.ManagementTimeSetManualResult",e.ManagementTimeSetNTPRequest="sos.Monitoring.Management.ManagementTimeSetNTPRequest",e.ManagementTimeSetNTPResult="sos.Monitoring.Management.ManagementTimeSetNTPResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementNativeCommandsMdcRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementNativeCommandsMdcSendOneRequest?1:4;break;case 1:return u=e,s=a.ManagementNativeCommandsMdcSendOneResult,n.n=2,r.native.mdc.sendOne(t.command.ipAddress,t.command.codes,t.command.data);case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,4);case 4:return n.a(2)}}),i)})))}))};var a=r(692)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementNativeCommandsMdcSendOneResult=e.ManagementNativeCommandsMdcSendOneRequest=void 0,e.ManagementNativeCommandsMdcSendOneRequest="sos.Monitoring.ManagementNativeCommandsMdcSendOneRequest",e.ManagementNativeCommandsMdcSendOneResult="sos.Monitoring.ManagementNativeCommandsMdcSendOneResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementNetworkRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementNetworkListInterfacesRequest?1:o===a.ManagementNetworkSetManualRequest?4:o===a.ManagementNetworkSetDHCPServerRequest?7:o===a.ManagementNetworkDisableInterfaceRequest?10:13;break;case 1:return u=e,s=a.ManagementNetworkListInterfacesResult,n.n=2,r.management.network.listInterfaces();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,13);case 4:return n.n=5,r.management.network.setManual(t.command.interfaceName,t.command.options);case 5:return n.n=6,e({type:a.ManagementNetworkSetManualResult,result:{}});case 6:return n.a(3,13);case 7:return n.n=8,r.management.network.setDHCP(t.command.interfaceName);case 8:return n.n=9,e({type:a.ManagementNetworkSetDHCPServerResult,result:{}});case 9:return n.a(3,13);case 10:return n.n=11,r.management.network.disableInterface(t.command.interfaceName);case 11:return n.n=12,e({type:a.ManagementNetworkDisableInterfaceResult,result:{}});case 12:return n.a(3,13);case 13:return n.a(2)}}),i)})))}))};var a=r(694)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementNetworkDisableInterfaceResult=e.ManagementNetworkDisableInterfaceRequest=e.ManagementNetworkSetDHCPServerResult=e.ManagementNetworkSetDHCPServerRequest=e.ManagementNetworkSetManualResult=e.ManagementNetworkSetManualRequest=e.ManagementNetworkListInterfacesResult=e.ManagementNetworkListInterfacesRequest=void 0,e.ManagementNetworkListInterfacesRequest="sos.Monitoring.Management.Network.ListInterfacesRequest",e.ManagementNetworkListInterfacesResult="sos.Monitoring.Management.Network.ListInterfacesResult",e.ManagementNetworkSetManualRequest="sos.Monitoring.Management.Network.SetManualRequest",e.ManagementNetworkSetManualResult="sos.Monitoring.Management.Network.SetManualResult",e.ManagementNetworkSetDHCPServerRequest="sos.Monitoring.Management.Network.SetDHCPServerRequest",e.ManagementNetworkSetDHCPServerResult="sos.Monitoring.Management.Network.SetDHCPServerResult",e.ManagementNetworkDisableInterfaceRequest="sos.Monitoring.Management.Network.DisableInterfaceRequest",e.ManagementNetworkDisableInterfaceResult="sos.Monitoring.Management.Network.DisableInterfaceResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementPeerRecoveryRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementPeerRecoveryGetRequest?1:o===a.ManagementPeerRecoverySetRequest?4:7;break;case 1:return u=e,s=a.ManagementPeerRecoveryGetResult,n.n=2,r.management.peerRecovery.get();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,7);case 4:return n.n=5,r.management.peerRecovery.set(t.command.configuration);case 5:return n.n=6,e({type:a.ManagementPeerRecoverySetResult,result:{}});case 6:return n.a(3,7);case 7:return n.a(2)}}),i)})))}))};var a=r(696)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementPeerRecoveryGetResult=e.ManagementPeerRecoveryGetRequest=e.ManagementPeerRecoverySetResult=e.ManagementPeerRecoverySetRequest=void 0,e.ManagementPeerRecoverySetRequest="sos.Monitoring.Management.ManagementPeerRecoverySetRequest",e.ManagementPeerRecoverySetResult="sos.Monitoring.Management.ManagementPeerRecoverySetResult",e.ManagementPeerRecoveryGetRequest="sos.Monitoring.Management.ManagementPeerRecoveryGetRequest",e.ManagementPeerRecoveryGetResult="sos.Monitoring.Management.ManagementPeerRecoveryGetResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementAutoRecoveryRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementAutoRecoveryGetRequest?1:o===a.ManagementAutoRecoverySetRequest?4:7;break;case 1:return u=e,s=a.ManagementAutoRecoveryGetResult,n.n=2,r.management.autoRecovery.get();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,7);case 4:return n.n=5,r.management.autoRecovery.set(t.command.configuration);case 5:return n.n=6,e({type:a.ManagementAutoRecoverySetResult,result:{}});case 6:return n.a(3,7);case 7:return n.a(2)}}),i)})))}))};var a=r(698)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementAutoRecoverySetResult=e.ManagementAutoRecoverySetRequest=e.ManagementAutoRecoveryGetResult=e.ManagementAutoRecoveryGetRequest=void 0,e.ManagementAutoRecoveryGetRequest="sos.Monitoring.Management.ManagementAutoRecoveryGetRequest",e.ManagementAutoRecoveryGetResult="sos.Monitoring.Management.ManagementAutoRecoveryGetResult",e.ManagementAutoRecoverySetRequest="sos.Monitoring.Management.ManagementAutoRecoverySetRequest",e.ManagementAutoRecoverySetResult="sos.Monitoring.Management.ManagementAutoRecoverySetResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleDeviceInfoRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.DeviceInfoGetLocationRequest?1:o===a.DeviceInfoGetOrganizationTagsRequest?4:o===a.DeviceInfoGetDeviceNameRequest?7:10;break;case 1:return u=e,s=a.DeviceInfoGetLocationResult,n.n=2,r.deviceInfo.getLocation();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,10);case 4:return c=e,h=a.DeviceInfoGetOrganizationTagsResult,n.n=5,r.deviceInfo.getOrganizationTags();case 5:return l=n.v,n.n=6,c({type:h,result:l});case 6:return n.a(3,10);case 7:return d=e,p=a.DeviceInfoGetDeviceNameResult,n.n=8,r.deviceInfo.getDeviceName();case 8:return m=n.v,n.n=9,d({type:p,result:m});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(700)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceInfoGetDeviceNameResult=e.DeviceInfoGetDeviceNameRequest=e.DeviceInfoGetOrganizationTagsResult=e.DeviceInfoGetOrganizationTagsRequest=e.DeviceInfoGetLocationResult=e.DeviceInfoGetLocationRequest=void 0,e.DeviceInfoGetLocationRequest="sos.Monitoring.DeviceInfo.GetLocationRequest",e.DeviceInfoGetLocationResult="sos.Monitoring.DeviceInfo.GetLocationResult",e.DeviceInfoGetOrganizationTagsRequest="sos.Monitoring.DeviceInfo.GetOrganizationTagsRequest",e.DeviceInfoGetOrganizationTagsResult="sos.Monitoring.DeviceInfo.GetOrganizationTagsResult",e.DeviceInfoGetDeviceNameRequest="sos.Monitoring.DeviceInfo.GetNameRequest",e.DeviceInfoGetDeviceNameResult="sos.Monitoring.DeviceInfo.GetNameResult"},function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),a=0;a<r.length;a++)"default"!==r[a]&&i(e,t,r[a]);return o(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.fpath=void 0;var u=a(r(702));e.fpath={basename:function(t,e){return u.basename(t.filePath,e)},dirname:function(t){var e=u.dirname(t.filePath);return"."===e&&(e=""),{filePath:e,storageUnit:t.storageUnit}},extname:function(t){return u.extname(t.filePath)},isAbsolute:function(t){return!0},join:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{filePath:u.join.apply(u,[t.filePath].concat(r)),storageUnit:t.storageUnit}},safeJoin:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{filePath:t.filePath+u.resolve.apply(u,["/"].concat(r)),storageUnit:t.storageUnit}},normalize:function(t){return{filePath:u.normalize(t.filePath),storageUnit:t.storageUnit}},resolve:function(t){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(r=e.fpath).join.apply(r,[t].concat(i))},sep:u.sep,concat:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return{filePath:(e=t.filePath).concat.apply(e,n),storageUnit:t.storageUnit}},stringify:function(t){return u.join("[".concat(t.storageUnit.type,"]"),t.filePath)},path:u}},function(t,e,r){"use strict";(function(e){function r(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var r,n="",i=0,o=-1,a=0,u=0;u<=t.length;++u){if(u<t.length)r=t.charCodeAt(u);else{if(47===r)break;r=47}if(47===r){if(o===u-1||1===a);else if(o!==u-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",i=0):i=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),o=u,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=u,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,u):n=t.slice(o+1,u),i=u-o-1;o=u,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var u;a>=0?u=arguments[a]:(void 0===t&&(t=e.cwd()),u=t),r(u),0!==u.length&&(i=u+"/"+i,o=47===u.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];r(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return"";if((t=i.resolve(t))===(e=i.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,u=1;u<e.length&&47===e.charCodeAt(u);++u);for(var s=e.length-u,f=a<s?a:s,c=-1,h=0;h<=f;++h){if(h===f){if(s>f){if(47===e.charCodeAt(u+h))return e.slice(u+h+1);if(0===h)return e.slice(u+h)}else a>f&&(47===t.charCodeAt(n+h)?c=h:0===h&&(c=0));break}var l=t.charCodeAt(n+h);if(l!==e.charCodeAt(u+h))break;47===l&&(c=h)}var d="";for(h=n+c+1;h<=o;++h)h!==o&&47!==t.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+e.slice(u+c):(u+=c,47===e.charCodeAt(u)&&++u,e.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');r(t);var n,i=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var u=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var f=t.charCodeAt(n);if(47===f){if(!a){i=n+1;break}}else-1===s&&(a=!1,s=n+1),u>=0&&(f===e.charCodeAt(u)?-1==--u&&(o=n):(u=-1,o=s))}return i===o?o=s:-1===o&&(o=t.length),t.slice(i,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(i,o)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,o=!0,a=0,u=t.length-1;u>=0;--u){var s=t.charCodeAt(u);if(47!==s)-1===i&&(o=!1,i=u+1),46===s?-1===e?e=u:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=u+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){r(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),o=47===i;o?(e.root="/",n=1):n=0;for(var a=-1,u=0,s=-1,f=!0,c=t.length-1,h=0;c>=n;--c)if(47!==(i=t.charCodeAt(c)))-1===s&&(f=!1,s=c+1),46===i?-1===a?a=c:1!==h&&(h=1):-1!==a&&(h=-1);else if(!f){u=c+1;break}return-1===a||-1===s||0===h||1===h&&a===s-1&&a===u+1?-1!==s&&(e.base=e.name=0===u&&o?t.slice(1,s):t.slice(u,s)):(0===u&&o?(e.name=t.slice(1,a),e.base=t.slice(1,s)):(e.name=t.slice(u,a),e.base=t.slice(u,s)),e.ext=t.slice(a,s)),u>0?e.dir=t.slice(0,u-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this,r(22))}])}));
|
|
34
|
+
var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.6.1","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(t,e){},function(t,e,r){"use strict";var n=r(24),i=r(39),o=r(1),a=r(96),u=n.assert;function s(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(s,a),t.exports=s,s.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],u(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},s.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},s.prototype._getEndoBasis=function(t){for(var e,r,n,o,a,u,s,f,c,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),y=new i(1),g=0;0!==l.cmpn(0);){var b=d.div(l);f=d.sub(b.mul(l)),c=v.sub(b.mul(p));var w=y.sub(b.mul(m));if(!n&&f.cmp(h)<0)e=s.neg(),r=p,n=f.neg(),o=c;else if(n&&2==++g)break;s=f,d=l,l=f,v=p,p=c,y=m,m=w}a=f.neg(),u=c;var M=n.sqr().add(o.sqr());return a.sqr().add(u.sqr()).cmp(M)>=0&&(a=e,u=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),u=u.neg()),[{a:n,b:o},{a:a,b:u}]},s.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),u=o.mul(n.a),s=i.mul(r.b),f=o.mul(n.b);return{k1:t.sub(a).sub(u),k2:s.add(f).neg()}},s.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},s.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),u=t[o],s=u._getBeta();a.k1.negative&&(a.k1.ineg(),u=u.neg(!0)),a.k2.negative&&(a.k2.ineg(),s=s.neg(!0)),n[2*o]=u,n[2*o+1]=s,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var f=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return f},o(f,a.BasePoint),s.prototype.point=function(t,e,r){return new f(this,t,e,r)},s.prototype.pointFromJSON=function(t,e){return f.fromJSON(this,t,e)},f.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},f.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),s.prototype.jpoint=function(t,e,r){return new c(this,t,e,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),u=n.redSub(i),s=o.redSub(a);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=u.redSqr(),c=f.redMul(u),h=n.redMul(f),l=s.redSqr().redIAdd(c).redISub(h).redISub(h),d=s.redMul(h.redISub(l)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(l,d,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),u=i.redSub(o);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),f=s.redMul(a),c=r.redMul(s),h=u.redSqr().redIAdd(f).redISub(c).redISub(c),l=u.redMul(c.redISub(h)).redISub(i.redMul(f)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,u=this.z,s=u.redSqr().redSqr(),f=a.redAdd(a);for(e=0;e<t;e++){var c=o.redSqr(),h=f.redSqr(),l=h.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(s)),p=o.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),y=d.redMul(v);y=y.redIAdd(y).redISub(l);var g=f.redMul(u);e+1<t&&(s=s.redMul(l)),o=m,u=g,f=y}return this.curve.jpoint(o,f.redMul(i),u)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n),s=u.redSqr().redISub(a).redISub(a),f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),t=s,e=u.redMul(a.redISub(s)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(c).redISub(l);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),v=l.redIAdd(l);v=(v=v.redIAdd(v)).redIAdd(v),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},c.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=u.redSqr().redISub(a).redISub(a);t=s;var f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),e=u.redMul(a.redISub(s)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(c);var v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),s=e.redAdd(e),f=(s=s.redIAdd(s)).redMul(a),c=u.redSqr().redISub(f.redAdd(f)),h=f.redISub(c),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=u.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,d,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),u=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var f=i.redIAdd(a).redSqr().redISub(o).redISub(u).redISub(s),c=e.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var h=this.x.redMul(u).redISub(c);h=(h=h.redIAdd(h)).redIAdd(h);var l=this.y.redMul(f.redMul(s.redISub(f)).redISub(a.redMul(u)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(u);return this.curve.jpoint(h,l,d)},c.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(39),i=r(1),o=r(96),a=r(24);function u(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(u,o),t.exports=u,u.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(s,o.BasePoint),u.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},u.prototype.point=function(t,e){return new s(this,t,e)},u.prototype.pointFromJSON=function(t){return s.fromJSON(this,t)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(t,e){return new s(t,e[0],e[1]||t.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),u=e.z.redMul(o.redAdd(a).redSqr()),s=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(u,s)},s.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(24),i=r(39),o=r(1),a=r(96),u=n.assert;function s(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function f(t,e,r,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(s,a),t.exports=s,s.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},s.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},s.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},s.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=u.fromRed().isOdd();return(e&&!s||!e&&s)&&(u=u.redNeg()),this.point(t,u)},s.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return u.fromRed().isOdd()!==e&&(u=u.redNeg()),this.point(u,t)},s.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(f,a.BasePoint),s.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},s.prototype.point=function(t,e,r,n){return new f(this,t,e,r,n)},f.fromJSON=function(t,e){return new f(t,e[0],e[1],e[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),u=n.redSub(e),s=i.redMul(a),f=o.redMul(u),c=i.redMul(u),h=a.redMul(o);return this.curve.point(s,f,h,c)},f.prototype._projDbl=function(){var t,e,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),u=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(u)).redAdd(s);this.zOne?(t=a.redSub(u).redSub(s).redMul(f.redSub(this.curve.two)),e=f.redMul(n.redSub(s)),r=f.redSqr().redSub(f).redSub(f)):(i=this.z.redSqr(),o=f.redSub(i).redISub(i),t=a.redSub(u).redISub(s).redMul(o),e=f.redMul(n.redSub(s)),r=f.redMul(o))}else n=u.redAdd(s),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(u.redISub(s)),r=n.redMul(o);return this.curve.point(t,e,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),u=i.redAdd(n),s=r.redAdd(e),f=o.redMul(a),c=u.redMul(s),h=o.redMul(s),l=a.redMul(u);return this.curve.point(f,c,l,h)},f.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),u=this.curve.d.redMul(o).redMul(a),s=i.redSub(u),f=i.redAdd(u),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(s).redMul(c);return this.curve.twisted?(e=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=s.redMul(f)):(e=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(s).redMul(f)),this.curve.point(h,e,r)},f.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},f.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},f.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(t,e,r){"use strict";e.sha1=r(523),e.sha224=r(524),e.sha256=r(223),e.sha384=r(525),e.sha512=r(224)},function(t,e,r){"use strict";var n=r(33),i=r(76),o=r(222),a=n.rotl32,u=n.sum32,s=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,c),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],l=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=s(a(i,5),f(p,o,c,l),d,r[n],h[p]);d=l,l=c,c=a(o,30),o=i,i=m}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],c),this.h[3]=u(this.h[3],l),this.h[4]=u(this.h[4],d)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(33),i=r(223);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(33),i=r(224);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(33),i=r(76),o=n.rotl32,a=n.sum32,u=n.sum32_3,s=n.sum32_4,f=i.BlockHash;function c(){if(!(this instanceof c))return new c;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,f),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],f=this.h[3],c=this.h[4],g=r,b=n,w=i,M=f,_=c,S=0;S<80;S++){var O=a(o(s(r,h(S,n,i,f),t[p[S]+e],l(S)),v[S]),c);r=c,c=f,f=o(i,10),i=n,n=O,O=a(o(s(g,h(79-S,b,w,M),t[m[S]+e],d(S)),y[S]),_),g=_,_=M,M=o(w,10),w=b,b=O}O=u(this.h[1],i,M),this.h[1]=u(this.h[2],f,_),this.h[2]=u(this.h[3],c,g),this.h[3]=u(this.h[4],r,b),this.h[4]=u(this.h[0],n,w),this.h[0]=O},c.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";var n=r(33),i=r(23);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";var n=r(39),i=r(530),o=r(24),a=r(143),u=r(137),s=o.assert,f=r(531),c=r(532);function h(t){if(!(this instanceof h))return new h(t);"string"==typeof t&&(s(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=h,h.prototype.keyPair=function(t){return new f(this,t)},h.prototype.keyFromPrivate=function(t,e){return f.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return f.fromPublic(this,t,e)},h.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||u(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncateToN=function(t,e,r){var i;if(n.isBN(t)||"number"==typeof t)i=(t=new n(t,16)).byteLength();else if("object"==typeof t)i=t.length,t=new n(t,16);else{var o=t.toString();i=o.length+1>>>1,t=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return a>0&&(t=t.ushrn(a)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},h.prototype.sign=function(t,e,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof t&&"number"!=typeof t&&!n.isBN(t)){s("object"==typeof t&&t&&"number"==typeof t.length,"Expected message to be an array-like, a hex string, or a BN instance"),s(t.length>>>0===t.length);for(var a=0;a<t.length;a++)s((255&t[a])===t[a])}e=this.keyFromPrivate(e,r),t=this._truncateToN(t,!1,o.msgBitLength),s(!t.isNeg(),"Can not sign a negative message");var u=this.n.byteLength(),f=e.getPrivate().toArray("be",u),h=t.toArray("be",u);s(new n(h).eq(t),"Can not sign message");for(var l=new i({hash:this.hash,entropy:f,nonce:h,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),p=0;;p++){var m=o.k?o.k(p):new n(l.generate(this.n.byteLength()));if(!((m=this._truncateToN(m,!0)).cmpn(1)<=0||m.cmp(d)>=0)){var v=this.g.mul(m);if(!v.isInfinity()){var y=v.getX(),g=y.umod(this.n);if(0!==g.cmpn(0)){var b=m.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(b=b.umod(this.n)).cmpn(0)){var w=(v.getY().isOdd()?1:0)|(0!==y.cmp(g)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),w^=1),new c({r:g,s:b,recoveryParam:w})}}}}}},h.prototype.verify=function(t,e,r,n,i){i||(i={}),t=this._truncateToN(t,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(e=new c(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,s=a.invm(this.n),f=s.mul(t).umod(this.n),h=s.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(f,r.getPublic(),h)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(f,r.getPublic(),h)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(t,e,r,i){s((3&r)===r,"The recovery param is more than two bits"),e=new c(e,i);var o=this.n,a=new n(t),u=e.r,f=e.s,h=1&r,l=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");u=l?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),m=f.mul(d).umod(o);return this.g.mulAdd(p,u,m)},h.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new c(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(144),i=r(220),o=r(23);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(r),this._reseed++,i.encode(a,e)}},function(t,e,r){"use strict";var n=r(39),i=r(24).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e,r){return this.ec.verify(t,e,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var n=r(39),i=r(24),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function u(){this.place=0}function s(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===t[e.place])return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function f(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function c(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new u;if(48!==t[r.place++])return!1;var o=s(t,r);if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=s(t,r);if(!1===a)return!1;if(0!=(128&t[r.place]))return!1;var f=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var c=s(t,r);if(!1===c)return!1;if(t.length!==c+r.place)return!1;if(0!=(128&t[r.place]))return!1;var h=t.slice(r.place,c+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(f),this.s=new n(h),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=f(e),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,e.length),(n=n.concat(e)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,t)}},function(t,e,r){"use strict";var n=r(144),i=r(143),o=r(24),a=o.assert,u=o.parseBytes,s=r(534),f=r(535);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=c,c.prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},c.prototype.verify=function(t,e,r){if(t=u(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return s.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return s.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return o.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var n=r(24),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function u(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}u.fromPublic=function(t,e){return e instanceof u?e:new u(t,{pub:e})},u.fromSecret=function(t,e){return e instanceof u?e:new u(t,{secret:e})},u.prototype.secret=function(){return this._secret},a(u,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(u,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(u,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(u,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(u,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(u,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),u.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},u.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},u.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},u.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=u},function(t,e,r){"use strict";var n=r(39),i=r(24),o=i.assert,a=i.cachedProperty,u=i.parseBytes;function s(t,e){this.eddsa=t,"object"!=typeof e&&(e=u(e)),Array.isArray(e)&&(o(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(s,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(s,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(s,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(s,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=s},function(t,e,r){"use strict";var n=r(77);e.certificate=r(548);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=u;var s=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=s;var f=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=f;var c=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=c,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var h=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=l,e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(538).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var u=t.charCodeAt(a)-48;i*=n,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,s=0,c=r;c<u;c+=n)s=f(t,c,c+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var h=1;for(s=f(t,c,t.length,e),c=0;c<a;c++)h*=e;this.imuln(h),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var f=1;f<n;f++){for(var c=s>>>26,h=67108863&s,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,s=0|c}return 0!==s?r.words[f]=0|s:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===e,f=new t(o),c=this.clone();if(s){for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[u]=a;for(;u<o;u++)f[u]=0}else{for(u=0;u<o-i;u++)f[u]=0;for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[o-u-1]=a}return f},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,f=0,c=0|a[0],h=8191&c,l=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,g=v>>>13,b=0|a[3],w=8191&b,M=b>>>13,_=0|a[4],S=8191&_,O=_>>>13,E=0|a[5],k=8191&E,P=E>>>13,j=0|a[6],R=8191&j,A=j>>>13,x=0|a[7],T=8191&x,I=x>>>13,F=0|a[8],C=8191&F,N=F>>>13,q=0|a[9],D=8191&q,L=q>>>13,B=0|u[0],G=8191&B,U=B>>>13,z=0|u[1],V=8191&z,W=z>>>13,H=0|u[2],Z=8191&H,K=H>>>13,Y=0|u[3],X=8191&Y,$=Y>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ft=ut>>>13,ct=0|u[8],ht=8191&ct,lt=ct>>>13,dt=0|u[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(f+(n=Math.imul(h,G))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,G)|0))<<13)|0;f=((o=Math.imul(l,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,G),i=(i=Math.imul(p,U))+Math.imul(m,G)|0,o=Math.imul(m,U);var yt=(f+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;f=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,G),i=(i=Math.imul(y,U))+Math.imul(g,G)|0,o=Math.imul(g,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var gt=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(l,Z)|0))<<13)|0;f=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(w,G),i=(i=Math.imul(w,U))+Math.imul(M,G)|0,o=Math.imul(M,U),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,K)|0;var bt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(S,G),i=(i=Math.imul(S,U))+Math.imul(O,G)|0,o=Math.imul(O,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,G),i=(i=Math.imul(k,U))+Math.imul(P,G)|0,o=Math.imul(P,U),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var Mt=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,U))+Math.imul(A,G)|0,o=Math.imul(A,U),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(T,G),i=(i=Math.imul(T,U))+Math.imul(I,G)|0,o=Math.imul(I,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var St=(f+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,st)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,U))+Math.imul(N,G)|0,o=Math.imul(N,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ft)|0;var Ot=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,U))+Math.imul(L,G)|0,o=Math.imul(L,U),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,st)|0,o=o+Math.imul(g,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Et=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(M,st)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(g,ht)|0,o=o+Math.imul(g,lt)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Z),i=(i=Math.imul(D,K))+Math.imul(L,Z)|0,o=Math.imul(L,K),n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(O,st)|0,o=o+Math.imul(O,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,lt)|0;var Pt=(f+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(g,pt)|0))<<13)|0;f=((o=o+Math.imul(g,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(P,st)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(A,st)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,lt)|0;var Rt=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(O,pt)|0))<<13)|0;f=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(L,rt)|0,o=Math.imul(L,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ft)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var At=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(P,pt)|0))<<13)|0;f=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(L,ot)|0,o=Math.imul(L,at),n=n+Math.imul(C,st)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var xt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(A,pt)|0))<<13)|0;f=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,st),i=(i=Math.imul(D,ft))+Math.imul(L,st)|0,o=Math.imul(L,ft),n=n+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,lt)|0;var Tt=(f+(n=n+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var It=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ft=(f+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return f=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,s[0]=vt,s[1]=yt,s[2]=gt,s[3]=bt,s[4]=wt,s[5]=Mt,s[6]=_t,s[7]=St,s[8]=Ot,s[9]=Et,s[10]=kt,s[11]=Pt,s[12]=jt,s[13]=Rt,s[14]=At,s[15]=xt,s[16]=Tt,s[17]=It,s[18]=Ft,0!==f&&(s[19]=f,r.length++),r};function m(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var u=67108863&n,s=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=s;f++){var c=o-f,h=(0|t.words[c])*(0|e.words[f]),l=67108863&h;u=67108863&(l=l+u|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),f=Math.sin(2*Math.PI/u),c=0;c<i;c+=u)for(var h=s,l=f,d=0;d<a;d++){var p=r[c+d],m=n[c+d],v=r[c+d+a],y=n[c+d+a],g=h*v-l*y;y=h*y+l*v,v=g,r[c+d]=p+v,n[c+d]=m+y,r[c+d+a]=p-v,n[c+d+a]=m-y,d!==u&&(g=s*h-f*l,l=s*l+f*h,h=g)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),f=new Array(n),c=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,u,s,n,i),this.transform(f,o,c,h,n,i);for(var d=0;d<n;d++){var p=u[d]*c[d]-s[d]*h[d];s[d]=u[d]*h[d]+s[d]*c[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<r;this.words[e]=s|a,a=u>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=r;if(i-=a,i=Math.max(0,i),s){for(var f=0;f<a;f++)s.words[f]=this.words[f];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,f=0;f<this.length;f++)this.words[f]=this.words[f+a];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this.strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,s=n.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,u&&(u.words[s]=1));for(var h=s-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);u&&(u.words[h]=l)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),a.isub(s)):(r.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:r.iushln(f)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(u)):(r.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(u);){for(var m=d,v=0;0!==m.cmp(u);v++)m=m.redSqr();n(v<p);var y=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(y),h=y.redSqr(),d=d.redMul(h),p=v}return l},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var f=e.words[n],c=s-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++u||0===n&&0===c)&&(i=this.mul(i,r[a]),u=0,a=0)):u=0}s=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,S),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(38)(t))},function(t,e){},function(t,e,r){var n=r(77),i=r(1);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=r(540).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),(function(e){r[e]=t[e]})),forEach(globals,(function(e){t[e]&&(r[e]=t[e])}));var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),(function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])})),forEach(globals,(function(e){e in t||defineProp(t,e,r[e])})),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),r},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),e}},function(t,e,r){var n=r(1);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){var n=r(78).Reporter,i=r(78).EncoderBuffer,o=r(78).DecoderBuffer,a=r(23),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function f(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=f;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},f.prototype._wrap=function(){var t=this._baseState;s.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},f.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){f.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),u.forEach((function(t){f.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),f.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},f.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},f.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},f.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},f.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},f.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},f.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,u=null;if(null!==r.key&&(u=t.enterKey(r.key)),r.optional){var s=null;if(null!==r.explicit?s=r.explicit:null!==r.implicit?s=r.implicit:null!==r.tag&&(s=r.tag),null!==s||r.any){if(a=this._peekTag(t,s,r.any),t.isError(a))return a}else{var f=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(f)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var c=this._decodeTag(t,r.explicit);if(t.isError(c))return c;t=c}var h=t.offset;if(null===r.use&&null===r.choice){if(r.any)f=t.save();var l=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(l))return l;r.any?i=t.raw(f):t=l}if(e&&e.track&&null!==r.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(d,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==u&&t.exitKey(u):t.leaveKey(u,r.key,i),i},f.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},f.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=t.save(),u=r.choice[o];try{var s=u._decode(t,e);if(t.isError(s))return!1;n={type:o,value:s},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},f.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},f.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},f.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,u=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),u=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),s))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),u=!0);if(!i.any&&null===i.choice){var f=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===f?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(f,u,c,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},f.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},f.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},f.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},f.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,r){var n=r(226);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},function(t,e,r){var n=e;n.der=r(227),n.pem=r(545)},function(t,e,r){var n=r(1),i=r(9).Buffer,o=r(227);function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,u=-1,s=-1,f=0;f<r.length;f++){var c=r[f].match(a);if(null!==c&&c[2]===n){if(-1!==u){if("END"!==c[1])break;s=f;break}if("BEGIN"!==c[1])break;u=f}}if(-1===u||-1===s)throw new Error("PEM section not found for: "+n);var h=r.slice(u+1,s).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new i(h,"base64");return o.prototype.decode.call(this,l,e)}},function(t,e,r){var n=e;n.der=r(228),n.pem=r(547)},function(t,e,r){var n=r(1),i=r(228);function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},function(t,e,r){"use strict";var n=r(77),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),u=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),s=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),f=n.define("RDNSequence",(function(){this.seqof(s)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),h=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),l=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(h),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(u),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(95),u=r(135),s=r(229).Buffer;t.exports=function(t,e){var r,f=t.toString(),c=f.match(n);if(c){var h="aes"+c[1],l=s.from(c[2],"hex"),d=s.from(c[3].replace(/[\r\n]/g,""),"base64"),p=a(e,l.slice(0,8),parseInt(c[1],10)).key,m=[],v=u.createDecipheriv(h,p,l);m.push(v.update(d)),m.push(v.final()),r=s.concat(m)}else{var y=f.match(o);r=s.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(i)[1],data:r}}},function(t,e,r){"use strict";var n=r(138).Buffer,i=r(141),o=r(142).ec,a=r(97),u=r(230);function s(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,r,f,c){var h=a(r);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(t,e,r){var n=u[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,o=r.data.q,u=r.data.g,f=r.data.pub_key,c=a.signature.decode(t,"der"),h=c.s,l=c.r;s(h,o),s(l,o);var d=i.mont(n),p=h.invm(o);return 0===u.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(f.toRed(d).redPow(l.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(l)}(t,e,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");e=n.concat([c,e]);for(var l=h.modulus.byteLength(),d=[1],p=0;e.length+d.length+2<l;)d.push(255),p+=1;d.push(0);for(var m=-1;++m<e.length;)d.push(e[m]);d=n.from(d);var v=i.mont(h.modulus);t=(t=new i(t).toRed(v)).redPow(new i(h.publicExponent)),t=n.from(t.fromRed().toArray());var y=p<8?1:0;for(l=Math.min(t.length,d.length),t.length!==d.length&&(y=1),m=-1;++m<l;)y|=t[m]^d[m];return 0===y}},function(t,e,r){(function(e){var n=r(142),i=r(553);t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length<n){var o=new e(n-i.length);o.fill(0),i=e.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),u(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,t)},a.prototype.getPrivateKey=function(t){return u(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new i(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(9).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(554).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var u=t.charCodeAt(a)-48;i*=n,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,s=0,c=r;c<u;c+=n)s=f(t,c,c+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var h=1;for(s=f(t,c,t.length,e),c=0;c<a;c++)h*=e;this.imuln(h),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var f=1;f<n;f++){for(var c=s>>>26,h=67108863&s,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,s=0|c}return 0!==s?r.words[f]=0|s:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===e,f=new t(o),c=this.clone();if(s){for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[u]=a;for(;u<o;u++)f[u]=0}else{for(u=0;u<o-i;u++)f[u]=0;for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),f[o-u-1]=a}return f},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,f=0,c=0|a[0],h=8191&c,l=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,g=v>>>13,b=0|a[3],w=8191&b,M=b>>>13,_=0|a[4],S=8191&_,O=_>>>13,E=0|a[5],k=8191&E,P=E>>>13,j=0|a[6],R=8191&j,A=j>>>13,x=0|a[7],T=8191&x,I=x>>>13,F=0|a[8],C=8191&F,N=F>>>13,q=0|a[9],D=8191&q,L=q>>>13,B=0|u[0],G=8191&B,U=B>>>13,z=0|u[1],V=8191&z,W=z>>>13,H=0|u[2],Z=8191&H,K=H>>>13,Y=0|u[3],X=8191&Y,$=Y>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ft=ut>>>13,ct=0|u[8],ht=8191&ct,lt=ct>>>13,dt=0|u[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(f+(n=Math.imul(h,G))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,G)|0))<<13)|0;f=((o=Math.imul(l,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,G),i=(i=Math.imul(p,U))+Math.imul(m,G)|0,o=Math.imul(m,U);var yt=(f+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;f=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,G),i=(i=Math.imul(y,U))+Math.imul(g,G)|0,o=Math.imul(g,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var gt=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(l,Z)|0))<<13)|0;f=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(w,G),i=(i=Math.imul(w,U))+Math.imul(M,G)|0,o=Math.imul(M,U),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,K)|0;var bt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(S,G),i=(i=Math.imul(S,U))+Math.imul(O,G)|0,o=Math.imul(O,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,G),i=(i=Math.imul(k,U))+Math.imul(P,G)|0,o=Math.imul(P,U),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var Mt=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,U))+Math.imul(A,G)|0,o=Math.imul(A,U),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(T,G),i=(i=Math.imul(T,U))+Math.imul(I,G)|0,o=Math.imul(I,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var St=(f+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,st)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,U))+Math.imul(N,G)|0,o=Math.imul(N,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ft)|0;var Ot=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,U))+Math.imul(L,G)|0,o=Math.imul(L,U),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,st)|0,o=o+Math.imul(g,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Et=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(M,st)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(g,ht)|0,o=o+Math.imul(g,lt)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Z),i=(i=Math.imul(D,K))+Math.imul(L,Z)|0,o=Math.imul(L,K),n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(O,st)|0,o=o+Math.imul(O,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,lt)|0;var Pt=(f+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(g,pt)|0))<<13)|0;f=((o=o+Math.imul(g,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(P,st)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(A,st)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,lt)|0;var Rt=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(O,pt)|0))<<13)|0;f=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(L,rt)|0,o=Math.imul(L,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ft)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var At=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(P,pt)|0))<<13)|0;f=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(L,ot)|0,o=Math.imul(L,at),n=n+Math.imul(C,st)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var xt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(A,pt)|0))<<13)|0;f=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,st),i=(i=Math.imul(D,ft))+Math.imul(L,st)|0,o=Math.imul(L,ft),n=n+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,lt)|0;var Tt=(f+(n=n+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var It=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ft=(f+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return f=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,s[0]=vt,s[1]=yt,s[2]=gt,s[3]=bt,s[4]=wt,s[5]=Mt,s[6]=_t,s[7]=St,s[8]=Ot,s[9]=Et,s[10]=kt,s[11]=Pt,s[12]=jt,s[13]=Rt,s[14]=At,s[15]=xt,s[16]=Tt,s[17]=It,s[18]=Ft,0!==f&&(s[19]=f,r.length++),r};function m(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var u=67108863&n,s=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=s;f++){var c=o-f,h=(0|t.words[c])*(0|e.words[f]),l=67108863&h;u=67108863&(l=l+u|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),f=Math.sin(2*Math.PI/u),c=0;c<i;c+=u)for(var h=s,l=f,d=0;d<a;d++){var p=r[c+d],m=n[c+d],v=r[c+d+a],y=n[c+d+a],g=h*v-l*y;y=h*y+l*v,v=g,r[c+d]=p+v,n[c+d]=m+y,r[c+d+a]=p-v,n[c+d+a]=m-y,d!==u&&(g=s*h-f*l,l=s*l+f*h,h=g)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),f=new Array(n),c=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,u,s,n,i),this.transform(f,o,c,h,n,i);for(var d=0;d<n;d++){var p=u[d]*c[d]-s[d]*h[d];s[d]=u[d]*h[d]+s[d]*c[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<r;this.words[e]=s|a,a=u>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=r;if(i-=a,i=Math.max(0,i),s){for(var f=0;f<a;f++)s.words[f]=this.words[f];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,f=0;f<this.length;f++)this.words[f]=this.words[f+a];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this.strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,s=n.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,u&&(u.words[s]=1));for(var h=s-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);u&&(u.words[h]=l)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),a.isub(s)):(r.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:r.iushln(f)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(u)):(r.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(u);){for(var m=d,v=0;0!==m.cmp(u);v++)m=m.redSqr();n(v<p);var y=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(y),h=y.redSqr(),d=d.redMul(h),p=v}return l},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var f=e.words[n],c=s-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++u||0===n&&0===c)&&(i=this.mul(i,r[a]),u=0,a=0)):u=0}s=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,S),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(38)(t))},function(t,e){},function(t,e,r){e.publicEncrypt=r(556),e.privateDecrypt=r(558),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},function(t,e,r){var n=r(97),i=r(64),o=r(71),a=r(231),u=r(232),s=r(145),f=r(233),c=r(140),h=r(7).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var d,p=n(t);if(4===l)d=function(t,e){var r=t.modulus.byteLength(),n=e.length,f=o("sha1").update(h.alloc(0)).digest(),c=f.length,l=2*c;if(n>r-l-2)throw new Error("message too long");var d=h.alloc(r-n-l-2),p=r-c-1,m=i(c),v=u(h.concat([f,d,h.alloc(1,1),e],p),a(m,p)),y=u(m,a(v,c));return new s(h.concat([h.alloc(1),y,v],r))}(p,e);else if(1===l)d=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(t){var e,r=h.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(r[n++]=e);return r}(a-o-3);return new s(h.concat([h.from([0,r?1:2]),n,h.alloc(1),e],a))}(p,e,r);else{if(3!==l)throw new Error("unknown padding");if((d=new s(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?c(d,p):f(d,p)}},function(t,e){},function(t,e,r){var n=r(97),i=r(231),o=r(232),a=r(145),u=r(140),s=r(71),f=r(233),c=r(7).Buffer;t.exports=function(t,e,r){var h;h=t.padding?t.padding:r?1:4;var l,d=n(t),p=d.modulus.byteLength();if(e.length>p||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");l=r?f(new a(e),d):u(e,d);var m=c.alloc(p-l.length);if(l=c.concat([m,l],p),4===h)return function(t,e){var r=t.modulus.byteLength(),n=s("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var u=e.slice(1,a+1),f=e.slice(a+1),h=o(u,i(f,a)),l=o(f,i(h,r-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(n,l.slice(0,a)))throw new Error("decryption error");var d=a;for(;0===l[d];)d++;if(1!==l[d++])throw new Error("decryption error");return l.slice(d)}(d,l);if(1===h)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===h)return l;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(7),a=r(64),u=o.Buffer,s=o.kMaxLength,f=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>s||t>e)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>s)throw new RangeError("buffer too small")}function d(t,e,r,i){if(n.browser){var o=t.buffer,u=new Uint8Array(o,e,r);return f.getRandomValues(u),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}f&&f.getRandomValues||!n.browser?(e.randomFill=function(e,r,n,i){if(!(u.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,e.length),l(n,r,e.length),d(e,r,n,i)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(u.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,e.length),void 0===n&&(n=e.length-r);return l(n,r,e.length),d(e,r,n)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,r(15),r(22))},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function u(r,n,i,o){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return a(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,o),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(a(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,a(d,"constructor",h),a(h,"constructor",c),c.displayName="GeneratorFunction",a(h,i,"GeneratorFunction"),a(d),a(d,i,"Generator"),a(d,n,(function(){return this})),a(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:u,m:p}})()}function a(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(a=function(t,e,r,n){function o(e,r){a(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(o("next",0),o("throw",1),o("return",2))})(t,e,r,n)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}function f(t){return(f="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})(t)}var c,h,l,d,p,m,v,y=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},g=this&&this.__metadata||function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},b=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},w=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var M=r(14),_=r(234),S=r(235),O=w(r(564)),E=w(r(44)),k=w(r(146)),P=w(r(236)),j=w(r(6)),R=r(566),A="@signageos/front-applet:FrontApplet:Video",x=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.onceDeferredIndex={},this.eventEmitter=new M.EventEmitter}return e=t,(r=[{key:"play",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u,s,f,c;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,this.removeAllVideoListeners(t,e,r,n,i),s=this.createOncePromise("ended",t,e,r,n,i),f=this.createOncePromise("stop",t,e,r,n,i),o.n=1,this.postMessage({type:this.getMessage("play"),uri:t,x:e,y:r,width:n,height:i});case 1:c=(0,R.stringifySrcArguments)(t,e,r,n,i),this.onceDeferredIndex[c]={ended:s,stop:f},this.createAndEmitEvent("play",t,e,r,n,i);case 2:return o.a(2)}}),a,this)})))}},{key:"prepare",value:function(t,e,r,n,i){return b(this,arguments,void 0,(function(t,e,r,n,i){var a=this,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return o().m((function s(){var f;return o().w((function(o){for(;;)switch(o.n){case 0:return a.checkParamsValidity(t,e,r,n,i),f=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=f.x,r=f.y,n=f.width,i=f.height,o.n=1,a.postMessage({type:a.getMessage("prepare"),uri:t,x:e,y:r,width:n,height:i,options:u});case 1:a.createAndEmitEvent("prepare",t,e,r,n,i);case 2:return o.a(2)}}),s)}))()}))}},{key:"stop",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u,s,f,c,h;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),c=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=c.x,r=c.y,n=c.width,i=c.height,o.n=1,this.postMessage({type:this.getMessage("stop"),uri:t,x:e,y:r,width:n,height:i});case 1:this.createAndEmitEvent("stop",t,e,r,n,i),h=(0,R.stringifySrcArguments)(t,e,r,n,i),null===(f=null===(u=this.onceDeferredIndex[h])||void 0===u?void 0:(s=u.ended).reject)||void 0===f||f.call(s,new O.default({kind:"appletVideoError",message:"This video was stopped already. The arguments: ".concat(h),code:E.default.VIDEO_WAS_STOPPED_ALREADY,suggestion:k.default.VIDEO_WAS_STOPPED_ALREADY})),delete this.onceDeferredIndex[h];case 2:return o.a(2)}}),a,this)})))}},{key:"pause",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,o.n=1,this.postMessage({type:this.getMessage("pause"),uri:t,x:e,y:r,width:n,height:i});case 1:this.createAndEmitEvent("pause",t,e,r,n,i);case 2:return o.a(2)}}),a,this)})))}},{key:"resume",value:function(t,e,r,n,i){return b(this,void 0,void 0,o().m((function a(){var u;return o().w((function(o){for(;;)switch(o.n){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,o.n=1,this.postMessage({type:this.getMessage("resume"),uri:t,x:e,y:r,width:n,height:i});case 1:this.createAndEmitEvent("resume",t,e,r,n,i);case 2:return o.a(2)}}),a,this)})))}},{key:"onceEnded",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i});e=o.x,r=o.y,n=o.width,i=o.height;var a=(0,R.stringifySrcArguments)(t,e,r,n,i),u=this.onceDeferredIndex[a];if(void 0===u)throw new O.default({kind:"appletVideoError",message:"This video was not played yet. The arguments: ".concat(a),code:E.default.VIDEO_WAS_NOT_PLAYED_YET,suggestion:k.default.VIDEO_WAS_NOT_PLAYED});return u.ended.oncePromise}},{key:"onceStop",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,S.sanitizeCoordinations)({x:e,y:r,width:n,height:i});e=o.x,r=o.y,n=o.width,i=o.height;var a=(0,R.stringifySrcArguments)(t,e,r,n,i),u=this.onceDeferredIndex[a];if(void 0===u)throw new O.default({kind:"appletVideoError",message:"This video was not played yet. The arguments: ".concat(a),code:E.default.VIDEO_WAS_NOT_PLAYED_YET,suggestion:k.default.VIDEO_WAS_NOT_PLAYED});return u.stop.oncePromise}},{key:"onPlay",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("play",t)}},{key:"onPrepare",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("prepare",t)}},{key:"onStop",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("stop",t)}},{key:"onPause",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("pause",t)}},{key:"onResume",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("resume",t)}},{key:"onEnded",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("ended",t)}},{key:"onError",value:function(t){(0,j.default)({listener:t}).required().function(),this.eventEmitter.addListener("error",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("ended"):case this.getMessage("error"):var e=t.type.substring(this.getMessage("").length);this.createAndEmitEvent(e,t.uri,t.x,t.y,t.width,t.height)}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"createOncePromise",value:function(t,e,r,n,i,o){var a=this,u={};return u.oncePromise=new Promise((function(s,f){u.reject=f;var c={uri:e,x:r,y:n,width:i,height:o},h=(0,R.getEventName)({type:t,srcArguments:c}),l=(0,R.getEventName)({type:"error",srcArguments:c}),d=function(u){JSON.stringify(u.srcArguments)===JSON.stringify({uri:e,x:r,y:n,width:i,height:o})&&(a.eventEmitter.removeListener(h,d),a.eventEmitter.removeListener(l,d),u.type===t?s():"error"===u.type&&f(new P.default({kind:"sosError",message:JSON.stringify(u.srcArguments),code:E.default.UNEXPECTED_EXCEPTION})))};a.eventEmitter.addListener(h,d),a.eventEmitter.addListener(l,d)})),u}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"removeAllVideoListeners",value:function(t,e,r,i,o){var a,u=n(R.VIDEO_EVENT_TYPES);try{for(u.s();!(a=u.n()).done;){var s=a.value,f=(0,R.getEventName)({type:s,srcArguments:{uri:t,x:e,y:r,width:i,height:o}});this.eventEmitter.removeAllListeners(f)}}catch(t){u.e(t)}finally{u.f()}}},{key:"createAndEmitEvent",value:function(t,e,r,n,i,o){var a={type:t,srcArguments:{uri:e,x:r,y:n,width:i,height:o}},u=(0,R.getEventName)(a);this.eventEmitter.emit(u,a),this.eventEmitter.emit(a.type,a)}},{key:"checkParamsValidity",value:function(t,e,r,n,i){(0,j.default)({uri:t}).required().uri(),(0,j.default)({x:e}).required().number(),(0,j.default)({y:r}).required().number(),(0,j.default)({width:n}).required().number(),(0,j.default)({height:i}).required().number()}}])&&u(e.prototype,r),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}();x.MESSAGE_PREFIX="video",e.default=x,y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(c="undefined"!=typeof Promise&&Promise)?c:Object)],x.prototype,"play",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number,Object]),g("design:returntype","function"==typeof(h="undefined"!=typeof Promise&&Promise)?h:Object)],x.prototype,"prepare",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(l="undefined"!=typeof Promise&&Promise)?l:Object)],x.prototype,"stop",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(d="undefined"!=typeof Promise&&Promise)?d:Object)],x.prototype,"pause",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(p="undefined"!=typeof Promise&&Promise)?p:Object)],x.prototype,"resume",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(m="undefined"!=typeof Promise&&Promise)?m:Object)],x.prototype,"onceEnded",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[String,Number,Number,Number,Number]),g("design:returntype","function"==typeof(v="undefined"!=typeof Promise&&Promise)?v:Object)],x.prototype,"onceStop",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onPlay",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onPrepare",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onStop",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onPause",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onResume",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onEnded",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[Function]),g("design:returntype",void 0)],x.prototype,"onError",null),y([(0,_.debug)(A),g("design:type",Function),g("design:paramtypes",[]),g("design:returntype",void 0)],x.prototype,"removeEventListeners",null)},function(t,e,r){(function(n){var i;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(562)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,r(22))},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,o,a=null;function u(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(u.enabled){var o=u,a=Number(new Date),s=a-(r||a);o.diff=s,o.prev=r,o.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var f=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";f++;var i=e.formatters[r];if("function"==typeof i){var a=n[f];t=i.call(o,a),n.splice(f,1),f--}return t})),e.formatArgs.call(o,n);var c=o.log||e.log;c.apply(o,n)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=i,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,o=e.enabled(t)),o)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(u),u}function i(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(n(e.names.map(o)),n(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(563),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},function(t,e){var r=1e3,n=6e4,i=60*n,o=24*i;function a(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,e){e=e||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return a(t,e,o,"day");if(e>=i)return a(t,e,i,"hour");if(e>=n)return a(t,e,n,"minute");if(e>=r)return a(t,e,r,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=i)return Math.round(t/i)+"h";if(e>=n)return Math.round(t/n)+"m";if(e>=r)return Math.round(t/r)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{pathToDocs:e.PATH_TO_DOCS,kind:"appletError",type:t.type?t.type:"AppletVideoError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);c.PATH_TO_DOCS="/sdk/content/js-video",e.default=c},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}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})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=r(6),c=s(r(238)),h=s(r(147)),l=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.error=void 0},(e=[{key:"validate",value:function(t,e,r){if("object"!==o(t))throw new Error("invalid object interface, needs to be object");var n=!0;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=t[i];if("object"===o(a)){var u=this.validateTypingObject(a,i,e);!0!==u&&(n=!0===n?u:n+"\n"+u)}else{var s=this.validateType(a,i,e);!0!==s&&(n=!0===n?s:n+"\n"+s)}}return void 0===r&&void 0!==this.error&&!0!==n&&this.throwError(this.error,n),!0===n||"".concat(void 0!==r?"".concat(r,":\n"):""," {\n").concat(n,"\n}")}},{key:"validateType",value:function(t,e,r){var n=!t.startsWith("?");return t=n?t:t.substring(1),!n&&!Object.prototype.hasOwnProperty.call(r,e)||(n&&!Object.prototype.hasOwnProperty.call(r,e)?"".concat(e,": is required"):o(r[e])===t||"".concat(e,": needs to be type ").concat(t,". Got ").concat(o(r[e])))}},{key:"validateTypingObject",value:function(t,e,r){var n=void 0!==t.error?t.error:void 0;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"error"!==i&&(f.validatableType.includes(i)||f.validatableType.includes(i.substr(1)))){var a=t[i],u=!i.startsWith("?");if(i=u?i:i.substring(1),!Object.prototype.hasOwnProperty.call(r,e)){if(u){var s="".concat(e,": is required");return void 0===this.error&&void 0!==n&&(this.error=n),s}return!0}var c=r[e];if(o(c)!==("array"===i?"object":i)){var h="".concat(e,": needs to be type ").concat(i,". Got ").concat(o(c));return void 0===this.error&&void 0!==n&&(this.error=n),h}if(("string"===i||"number"===i)&&Array.isArray(a)&&!a.includes(c)){var l="".concat(e,": has to be one of ").concat(JSON.stringify(a));return void 0===this.error&&void 0!==n&&(this.error=n),l}if("array"===i){var d=this.validateArray(a,e,c);if(!0!==d)return void 0===this.error&&void 0!==n&&(this.error=n),d}if("object"===i)return this.validate(a,c,e)}return!0}},{key:"validateArray",value:function(t,e,r){var i;i="string"==typeof t?[t]:Array.isArray(t)?t:Object.keys(t).filter((function(t){return"error"!==t}));var a,u=n(r);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=f.Validate.validateType(i,s);if(!0!==c)return"has to be array of types: ".concat(JSON.stringify(i),". ").concat(JSON.stringify(s)," is ").concat(c," instead");if("object"===o(s)&&void 0!==t.object){var h=this.validate(t.object,s,e);if(!0!==h)return h}}}catch(t){u.e(t)}finally{u.f()}return!0}},{key:"throwError",value:function(t,e){throw new c.default({kind:"appletResourcesError",message:"".concat(h.default[t.code],"\n\nValidation info:\n").concat(e,"\n"),code:t.code})}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";function n(t,e,r,n,i){return"".concat(t,"$").concat(e,"_").concat(r,"_").concat(n,"_").concat(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.VIDEO_EVENT_TYPES=void 0,e.getEventName=function(t){var e=n(t.srcArguments.uri,t.srcArguments.x,t.srcArguments.y,t.srcArguments.width,t.srcArguments.height);return"".concat(t.type,"_").concat(e)},e.stringifySrcArguments=n,e.VIDEO_EVENT_TYPES=["prepare","play","stop","pause","resume","ended","error"]},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function u(t){return(u="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})(t)}var s,f,c,h,l,d,p,m,v=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},y=this&&this.__metadata||function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},b=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var w=r(14),M=r(234),_=r(235),S=b(r(568)),O=b(r(44)),E=b(r(6)),k="@signageos/front-applet:FrontApplet:Stream",P=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new w.EventEmitter}return e=t,(r=[{key:"prepare",value:function(t,e,r,i,o,a){return g(this,void 0,void 0,n().m((function u(){var s,f;return n().w((function(n){for(;;)switch(n.n){case 0:if(f=void 0,(null==(s="string"==typeof a?{protocol:a}:a)?void 0:s.protocol)&&(f=s.protocol),!f||"string"==typeof f){n.n=1;break}throw new S.default({kind:"appletStreamError",message:"Invalid format of protocol, must be string.",code:O.default.STREAM_INVALID_PROTOCOL_TYPE});case 1:return this.checkParamsValidity(t,e,r,i,o),this.createAndEmitEvent("prepare",{type:"prepare",srcArguments:{uri:t,x:e,y:r,width:i,height:o,protocol:f}}),n.a(2,this.postMessage({type:this.getMessage("prepare"),uri:t,x:e,y:r,width:i,height:o,protocol:f,options:s}))}}),u,this)})))}},{key:"play",value:function(t,e,r,i,o,a){return g(this,void 0,void 0,n().m((function u(){var s,f,c;return n().w((function(n){for(;;)switch(n.n){case 0:if(f=void 0,(null==(s="string"==typeof a?{protocol:a}:a)?void 0:s.protocol)&&(f=s.protocol),this.checkParamsValidity(t,e,r,i,o),c=(0,_.sanitizeCoordinations)({x:e,y:r,width:i,height:o}),e=c.x,r=c.y,i=c.width,o=c.height,!f||"string"==typeof f){n.n=1;break}throw new S.default({kind:"appletStreamError",message:"Invalid format of protocol, must be string.",code:O.default.STREAM_INVALID_PROTOCOL_TYPE});case 1:return this.createAndEmitEvent("play",{type:"play",srcArguments:{uri:t,x:e,y:r,width:i,height:o,protocol:f}}),n.a(2,this.postMessage({type:this.getMessage("play"),uri:t,x:e,y:r,width:i,height:o,protocol:f,options:s}))}}),u,this)})))}},{key:"stop",value:function(t,e,r,i,o){return g(this,void 0,void 0,n().m((function a(){var u;return n().w((function(n){for(;;)switch(n.n){case 0:return this.checkParamsValidity(t,e,r,i,o),u=(0,_.sanitizeCoordinations)({x:e,y:r,width:i,height:o}),e=u.x,r=u.y,i=u.width,o=u.height,this.createAndEmitEvent("stop",{type:"stop",srcArguments:{uri:t,x:e,y:r,width:i,height:o}}),n.a(2,this.postMessage({type:this.getMessage("stop"),uri:t,x:e,y:r,width:i,height:o}))}}),a,this)})))}},{key:"pause",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,_.sanitizeCoordinations)({x:e,y:r,width:n,height:i});return e=o.x,r=o.y,n=o.width,i=o.height,this.createAndEmitEvent("pause",{type:"pause",srcArguments:{uri:t,x:e,y:r,width:n,height:i}}),this.postMessage({type:this.getMessage("pause"),uri:t,x:e,y:r,width:n,height:i})}},{key:"resume",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,_.sanitizeCoordinations)({x:e,y:r,width:n,height:i});return e=o.x,r=o.y,n=o.width,i=o.height,this.createAndEmitEvent("resume",{type:"resume",srcArguments:{uri:t,x:e,y:r,width:n,height:i}}),this.postMessage({type:this.getMessage("resume"),uri:t,x:e,y:r,width:n,height:i})}},{key:"getTracks",value:function(t){return g(this,void 0,void 0,n().m((function e(){var r,i;return n().w((function(e){for(;;)switch(e.n){case 0:return(0,E.default)({videoId:t}).required().object(),e.n=1,this.postMessage({type:this.getMessage("get_tracks"),videoId:t});case 1:return r=e.v,i=r.tracks,e.a(2,i)}}),e,this)})))}},{key:"selectTrack",value:function(t,e,r,i){return g(this,void 0,void 0,n().m((function o(){return n().w((function(n){for(;;)switch(n.n){case 0:return(0,E.default)({videoId:t}).required().object(),(0,E.default)({trackType:e}).required().string(),(0,E.default)({groupId:r}).required().string(),(0,E.default)({trackIndex:i}).required().number(),n.a(2,this.postMessage({type:this.getMessage("select_track"),videoId:t,trackType:e,groupId:r,trackIndex:i}))}}),o,this)})))}},{key:"resetTrack",value:function(t,e,r){return g(this,void 0,void 0,n().m((function i(){return n().w((function(n){for(;;)switch(n.n){case 0:return(0,E.default)({videoId:t}).required().object(),(0,E.default)({trackType:e}).required().string(),r&&(0,E.default)({groupId:r}).string(),n.a(2,this.postMessage({type:this.getMessage("reset_track"),videoId:t,trackType:e,groupId:r}))}}),i,this)})))}},{key:"onTracksChanged",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("tracks_changed",t)}},{key:"onError",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("error",t)}},{key:"onConnected",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("connected",t)}},{key:"onDisconnected",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("disconnected",t)}},{key:"onPrepare",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("prepare",t)}},{key:"onPlay",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("play",t)}},{key:"onStop",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("stop",t)}},{key:"onPause",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("pause",t)}},{key:"onResume",value:function(t){(0,E.default)({listener:t}).required().function(),this.eventEmitter.on("resume",t)}},{key:"handleMessageData",value:function(t){var e,r,n,i,o,a;switch(t.type){case this.getMessage("error"):this.createAndEmitEvent("error",{type:"error",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(r=null===(e=t.options)||void 0===e?void 0:e.protocol)&&void 0!==r?r:t.protocol},errorMessage:t.errorMessage});break;case this.getMessage("connected"):this.createAndEmitEvent("connected",{type:"connected",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(i=null===(n=t.options)||void 0===n?void 0:n.protocol)&&void 0!==i?i:t.protocol}});break;case this.getMessage("disconnected"):this.createAndEmitEvent("disconnected",{type:"disconnected",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(a=null===(o=t.options)||void 0===o?void 0:o.protocol)&&void 0!==a?a:t.protocol}});break;case this.getMessage("tracks_changed"):this.createAndEmitEvent("tracks_changed",{type:"tracks_changed",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height},tracks:t.tracks})}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"createAndEmitEvent",value:function(t,e){this.eventEmitter.emit(t,e)}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkParamsValidity",value:function(t,e,r,n,i){(0,E.default)({uri:t}).required().uri(),(0,E.default)({x:e}).required().number(),(0,E.default)({y:r}).required().number(),(0,E.default)({width:n}).required().number(),(0,E.default)({height:i}).required().number()}}])&&o(e.prototype,r),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}();P.MESSAGE_PREFIX="stream",e.default=P,v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number,Object]),y("design:returntype","function"==typeof(s="undefined"!=typeof Promise&&Promise)?s:Object)],P.prototype,"prepare",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number,Object]),y("design:returntype","function"==typeof(f="undefined"!=typeof Promise&&Promise)?f:Object)],P.prototype,"play",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number]),y("design:returntype","function"==typeof(c="undefined"!=typeof Promise&&Promise)?c:Object)],P.prototype,"stop",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number]),y("design:returntype","function"==typeof(h="undefined"!=typeof Promise&&Promise)?h:Object)],P.prototype,"pause",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[String,Number,Number,Number,Number]),y("design:returntype","function"==typeof(l="undefined"!=typeof Promise&&Promise)?l:Object)],P.prototype,"resume",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype","function"==typeof(d="undefined"!=typeof Promise&&Promise)?d:Object)],P.prototype,"getTracks",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Object,Object,String,Number]),y("design:returntype","function"==typeof(p="undefined"!=typeof Promise&&Promise)?p:Object)],P.prototype,"selectTrack",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Object,Object,String]),y("design:returntype","function"==typeof(m="undefined"!=typeof Promise&&Promise)?m:Object)],P.prototype,"resetTrack",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onTracksChanged",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onError",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onConnected",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onDisconnected",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onPrepare",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onPlay",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onStop",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onPause",null),v([(0,M.debug)(k),y("design:type",Function),y("design:paramtypes",[Function]),y("design:returntype",void 0)],P.prototype,"onResume",null)},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"AppletStreamError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(570),d=h(r(6)),p=h(r(571)),m=h(r(574)),v=r(575),y=r(576),g=h(r(580)),b=h(r(239)),w=h(r(581)),M=function(){function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.window=r,this.postMessage=n,this.FlagControllers=[m.default],this.LoadFileControllers=[b.default,g.default],this.cache=new p.default(this.getMessagePrefix(),this.postMessage),this.types=w.default,this.loadFile=this.LoadFileControllers.reduce((function(t,e){var r=new e(i.window);return t[r.name]=r,t}),{}),this.flagControllers=this.FlagControllers.reduce((function(t,e){var r=new e(i.loadFile);return t[r.name]=r,t}),{}),this.flags=Object.keys(this.flagControllers).reduce((function(t,e){var r=i.flagControllers[e];return t[r.name]=r.create.bind(r),t}),{append:null})}return e=t,(r=[{key:"addFiles",value:function(t){var e=this;(0,d.default)({addFiles:t}).required().array("object");var r=t.map((function(t){return e.addFile(t)}));return Promise.all(r)}},{key:"addFilesSync",value:function(t){return c(this,void 0,void 0,i().m((function e(){var r,n,o,u;return i().w((function(e){for(;;)switch(e.p=e.n){case 0:(0,d.default)({addFiles:t}).required().array("object"),r=a(t),e.p=1,r.s();case 2:if((n=r.n()).done){e.n=4;break}return o=n.value,e.n=3,this.addFile(o);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,u=e.v,r.e(u);case 6:return e.p=6,r.f(),e.f(6);case 7:return e.a(2)}}),e,this,[[1,5,6,7]])})))}},{key:"addFile",value:function(t){return c(this,void 0,void 0,i().m((function e(){var r,n,o,u,s,f;return i().w((function(e){for(;;)switch(e.p=e.n){case 0:return(0,d.default)({addFile:t}).required().object(y.VISaveFile),e.n=1,this.cache.loadOrSaveFile(t.uid,t.uri,t.headers);case 1:r=e.v,n=t.flags||[],o=a(n),e.p=2,o.s();case 3:if((u=o.n()).done){e.n=5;break}return s=u.value,e.n=4,this.handleFileFlag(s,r,t.type);case 4:e.n=3;break;case 5:e.n=7;break;case 6:e.p=6,f=e.v,o.e(f);case 7:return e.p=7,o.f(),e.f(7);case 8:return e.a(2)}}),e,this,[[2,6,7,8]])})))}},{key:"addFont",value:function(t){return c(this,void 0,void 0,i().m((function e(){var r,n,o,a=this;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,d.default)({addFont:t}).required().object(v.VIAddFont),r=(0,l.fontFaceGenerator)(this.window,t),n=Object.keys(t.formats).map((function(e){return c(a,void 0,void 0,i().m((function n(){var o;return i().w((function(n){for(;;)switch(n.n){case 0:return n.n=1,this.cache.loadOrSaveFile((0,l.generateFontUid)(t.uid,e),t.formats[e]);case 1:o=n.v,r.setFormat(e,o.filePath);case 2:return n.a(2)}}),n,this)})))})),e.n=1,Promise.all(n);case 1:o=r.generateStyleElement(),t.append.appendChild(o);case 2:return e.a(2)}}),e,this)})))}},{key:"handleFileFlag",value:function(t,e,r){return c(this,void 0,void 0,i().m((function n(){var o,a;return i().w((function(n){for(;;)switch(n.n){case 0:if(void 0!==(o=this.flagControllers[t.type])){n.n=1;break}throw new Error("Not implemented apply flag "+t.type);case 1:return a=e.filePath,n.n=2,o.applyFlag(t,r,a);case 2:return n.a(2)}}),n,this)})))}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();M.MESSAGE_PREFIX="offline",e.default=M},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFaceGenerator=e.generateFontUid=void 0;e.generateFontUid=function(t,e){return t+"."+e};e.fontFaceGenerator=function(t,e){var r="font-family: '".concat(e.fontFamily,"';"),n=e.fontStretch?"font-stretch: ".concat(e.fontStretch,";"):"",i=e.fontStyle?"font-style: ".concat(e.fontStyle,";"):"",o=e.fontWeight?"font-weight: ".concat(e.fontWeight,";"):"",a=e.unicodeRange?"unicode-range: ".concat(e.unicodeRange,";"):"",u=[],s="";return{setFormat:function(t,e){switch(t){case"woff":u.push("url('".concat(e,"') format('woff')"));break;case"woff2":u.push("url('".concat(e,"') format('woff2')"));break;case"ttf":u.push("url('".concat(e,"') format('truetype')"));break;case"svg":u.push("url('".concat(e,"#svgFontName') format('svg')"));break;case"eot":s="src: url('".concat(e,"');"),u.push("url('".concat(e,"?#iefix') format('embedded-opentype')"));break;default:console.warn("Not supported font format: ".concat(t))}},generateStyleElement:function(){var e="src: "+u.join(", "),f="@font-face {".concat(r).concat(n).concat(i).concat(o).concat(a).concat(s).concat(e," }"),c=t.document.createElement("style");return c.innerHTML=f,c}}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(572)),h=f(r(44)),l=f(r(573)),d=f(r(6)),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.savedFiles={},this.savedContents={}}return e=t,(r=[{key:"listFiles",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("list_files")});case 1:return e=t.v,t.a(2,e.fileUids)}}),t,this)})))}},{key:"loadFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,d.default)({uid:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("load_file"),uid:t});case 1:return r=e.v,this.savedFiles[t]=r.loadedFile,e.a(2,r.loadedFile)}}),e,this)})))}},{key:"saveFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){var o;return i().w((function(n){for(;;)switch(n.n){case 0:if(this.checkUidValidity(t),!r||this.isHeaders(r)){n.n=1;break}throw new l.default({kind:"appletOfflineCacheError",message:"Invalid headers ".concat(r),code:h.default.OFFLINE_CACHE_HEADERS_NOT_VALID});case 1:return n.n=2,this.postMessage({type:this.getMessage("save_file"),uid:t,uri:e,headers:r});case 2:o=n.v,this.savedFiles[t]=o.savedFile;case 3:return n.a(2)}}),n,this)})))}},{key:"loadOrSaveFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.p=n.n){case 0:return(0,d.default)({uid:t}).required().string(),(0,d.default)({uri:e}).required().uri(),n.p=1,n.a(2,this.getCachedFile(t));case 2:return n.p=2,n.v,n.p=3,n.n=4,this.loadFile(t);case 4:return n.a(2,n.v);case 5:return n.p=5,n.v,n.n=6,this.saveFile(t,e,r);case 6:return n.a(2,this.getCachedFile(t))}}),n,this,[[3,5],[1,2]])})))}},{key:"deleteFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkUidValidity(t),e.n=1,this.postMessage({type:this.getMessage("delete_file"),uid:t});case 1:delete this.savedFiles[t];case 2:return e.a(2)}}),e,this)})))}},{key:"listContents",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("list_contents")});case 1:return e=t.v,t.a(2,e.contentUids)}}),t,this)})))}},{key:"loadContent",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r;return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("load_content"),uid:t});case 1:return r=e.v,this.savedContents[t]=r.loadedContent,e.a(2,r.loadedContent)}}),e,this)})))}},{key:"saveContent",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n;return i().w((function(r){for(;;)switch(r.n){case 0:return this.checkUidValidity(t),(0,d.default)({content:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("save_content"),uid:t,content:""+e});case 1:n=r.v,this.savedContents[t]=n.savedContent;case 2:return r.a(2)}}),r,this)})))}},{key:"deleteContent",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkUidValidity(t),e.n=1,this.postMessage({type:this.getMessage("delete_content"),uid:t});case 1:delete this.savedContents[t];case 2:return e.a(2)}}),e,this)})))}},{key:"validateChecksumFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){var o;return i().w((function(n){for(;;)switch(n.n){case 0:return this.checkUidValidity(t),(0,d.default)({hash:e}).required().string(),(0,d.default)({hashType:r}).required().string(),n.n=1,this.postMessage({type:this.getMessage("validate_checksum"),uid:t,hash:e,hashType:r});case 1:return o=n.v,n.a(2,o.validatedChecksum)}}),n,this)})))}},{key:"getChecksumFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n;return i().w((function(r){for(;;)switch(r.n){case 0:return this.checkUidValidity(t),(0,d.default)({hashType:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("get_checksum"),uid:t,hashType:e});case 1:return n=r.v,r.a(2,n.checksum)}}),r,this)})))}},{key:"decompressFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return this.checkUidValidity(t),(0,d.default)({destinationUid:e}).required().string(),n.n=1,this.postMessage({type:this.getMessage("decompress_file"),uid:t,destinationUid:e,method:r});case 1:return n.a(2)}}),n,this)})))}},{key:"getCachedFile",value:function(t){if(void 0===this.savedFiles[t])throw new c.default({kind:"fileNotFoundError",message:"File was not found "+t,code:h.default.FILE_NOT_FOUND_IN_CACHE});return this.savedFiles[t]}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkUidValidity",value:function(t){return(0,d.default)({uid:t}).required().string().matchRegExp(/^[^\\:*"<>|]+$/g,h.default.OFFLINE_CACHE_UID_NOT_VALID),!0}},{key:"isHeaders",value:function(t){return"object"===n(t)&&(Object.getOwnPropertyNames(t).forEach((function(e){if("string"!=typeof e||"string"!=typeof t[e])return!1})),!0)}}])&&a(e.prototype,r),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,o}();p.MESSAGE_PREFIX="cache",e.default=p},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"FileNotFoundError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"AppletOfflineCacheError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);e.default=c},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}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})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(124),c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loadFile=e,this.name="append",this.elementCache={}},(e=[{key:"create",value:function(t){var e=(0,f.generateUniqueHash)();return this.elementCache[e]=t,{type:"append",element:{uid:e}}}},{key:"applyFlag",value:function(t,e,r){return s(this,void 0,void 0,n().m((function i(){var a,u;return n().w((function(n){for(;;)switch(n.n){case 0:if("object"===o(t.element)){n.n=1;break}throw new Error('File flag of type "append" needs to be object');case 1:if(void 0!==(a=this.elementCache[t.element.uid])){n.n=2;break}throw new Error('File flag element for "append" not found');case 2:if(void 0!==(u=this.loadFile[e])){n.n=3;break}throw new Error('File of type "'+e+'" cannot be appent');case 3:return n.n=4,u.load(r,a);case 4:return n.a(2)}}),i,this)})))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIAddFont=e.VIFontFaceProperties=e.VIFontFormats=void 0,e.VIFontFormats={woff2:"string",eot:"?string",woff:"?string",ttf:"?string",svg:"?string"},e.VIFontFaceProperties={fontFamily:"string",fontStretch:"?string",fontStyle:"?string",fontWeight:"?string",unicodeRange:"?string"},e.VIAddFont=Object.assign(e.VIFontFaceProperties,{uid:"string",append:"object",formats:e.VIFontFormats})},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VISaveFile=void 0;var i=r(577),o=r(578),a=n(r(44)),u=n(r(147));e.VISaveFile={uid:{string:null,error:{code:a.default.FILE_DOES_NOT_HAVE_UID,message:u.default[a.default.FILE_DOES_NOT_HAVE_UID]}},uri:"string",type:{string:i.VIFileType,error:{code:a.default.FILE_FLAGS_ARE_NOT_IN_ARRAY,message:u.default[a.default.FILE_FLAGS_ARE_NOT_IN_ARRAY]}},headers:"?object",flags:{"?array":{object:o.VIFlag,error:{code:a.default.FILE_FLAG_IS_NOT_OBJECT,message:u.default[a.default.FILE_FLAG_IS_NOT_OBJECT]}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIFileType=void 0,e.VIFileType=["javascript","css","video"]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIFlag=void 0;var n=r(579);e.VIFlag={type:{string:["append"]},element:{object:n.VIElement}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIElement=void 0,e.VIElement={uid:"string"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.name="css"},(e=[{key:"load",value:function(t,e){var r=this;return new Promise((function(n,i){var o=r.window.document.createElement("link");o.setAttribute("type","text/css"),o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),o.onerror=function(){i(new Error('File "'+t+'" cannot be loaded'))},o.onload=function(){console.info("File "+t.substring(0,100)+" was loaded"),n()},e.appendChild(o)}))}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={javascript:"javascript",css:"css",video:"video"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=f(r(583)),l=f(r(44)),d=f(r(146)),p=f(r(6)),m=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter,this.eventEmitter.setMaxListeners(40)}return e=t,(r=[{key:"dispatch",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkTypeValidity(t.type),e.n=1,this.postMessage({type:this.getMessage("dispatch"),command:t});case 1:return e.a(2)}}),e,this)})))}},{key:"onCommand",value:function(t){(0,p.default)({listener:t}).required().function(),this.eventEmitter.addListener("command",t)}},{key:"handleMessageData",value:function(t){if(t.type===this.getMessage("dispatch_to_applet")){var e={type:"command",command:t.command};this.eventEmitter.emit("command",e)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkTypeValidity",value:function(t){(0,p.default)({type:t}).setError(new h.default({kind:"appletCommandError",message:"Type contains invalid characters.",code:l.default.COMMAND_TYPE_NOT_VALID,suggestion:d.default.COMMAND_TYPE_NOT_VALID})).required().string().matchRegExp(/^[a-zA-Z0-9._-]+$/g),(0,p.default)({type:t}).setError(new h.default({kind:"appletCommandError",message:"Type is longer then 100 characters.",code:l.default.COMMAND_TYPE_IS_TOO_LONG})).lengthMax(100)}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();m.MESSAGE_PREFIX="command",e.default=m},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{type:t.type?t.type:"AppletCommandError",pathToDocs:e.PATH_TO_DOCS,kind:"appletError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);c.PATH_TO_DOCS="/sdk/content/js-command",e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=f(r(585)),l=f(r(586)),d=f(r(587)),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter,this.led=new h.default(this.getMessagePrefix(),this.postMessage),this.barcodeScanner=new d.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"openSerialPort",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("serial_port.open"),options:t});case 1:return r=e.v,n=r.refid,e.a(2,new l.default(n,this.eventEmitter,this.getMessagePrefix(),this.postMessage))}}),e,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("serial_port.data"):this.eventEmitter.emit("serial_port.data."+t.refid,t.data);break;default:this.barcodeScanner.handleMessageData(t)}}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();p.MESSAGE_PREFIX="hardware",e.default=p},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(44)),h=f(r(6)),l=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"setColor",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return this.checkColorValidity(t),e.n=1,this.postMessage({type:this.getMessage("set_color"),color:t?t.toUpperCase():null});case 1:return e.a(2)}}),e,this)})))}},{key:"checkColorValidity",value:function(t){(0,h.default)({color:t}).canBeNull().string(null,c.default.HARDWARE_LED_COLOR_IS_NOT_STRING),(0,h.default)({color:t}).canBeNull().matchRegExp(/^#[0-9A-Fa-f]{6,6}$/,c.default.HARDWARE_LED_COLOR_IS_NOT_VALID)}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();l.MESSAGE_PREFIX="led",e.default=l},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.refid=e,this.eventEmitter=r,this.messagePrefix=n,this.postMessage=i},(e=[{key:"onData",value:function(t){this.eventEmitter.addListener("serial_port.data."+this.refid,t)}},{key:"write",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("serial_port.write"),refid:this.refid,data:t});case 1:return e.a(2)}}),e,this)})))}},{key:"close",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("serial_port.close"),refid:this.refid});case 1:this.eventEmitter.removeAllListeners("serial_port.data."+this.refid);case 2:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_SCANNER_ID=void 0;var c=r(14);e.DEFAULT_SCANNER_ID=0;var h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return r=t,(n=[{key:"getVersion",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_version")});case 1:return e=t.v,r=e.version,t.a(2,r)}}),t,this)})))}},{key:"start",value:function(t){return s(this,void 0,void 0,i().m((function r(){var n,o,a,u,c,h,l,d=this;return i().w((function(r){for(;;)switch(r.n){case 0:return n={scannerId:e.DEFAULT_SCANNER_ID,timeout:1e4,cancelPrevious:!1},o=Object.assign(Object.assign({},n),t),a=o.scannerId,(u=f(o,["scannerId"])).cancelPrevious&&(this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".data")),this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".error"))),r.n=1,this.postMessage({type:this.getMessage("start"),scannerId:a,options:u});case 1:return c=function(t){d.eventEmitter.addListener("scanner_id_".concat(a,".data"),t)},h=function(t){d.eventEmitter.addListener("scanner_id_".concat(a,".error"),t)},l=function(){return s(d,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("stop"),scannerId:a});case 1:this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".data")),this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".error"));case 2:return t.a(2)}}),t,this)})))},r.a(2,{stop:l,onData:c,onError:h})}}),r,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("data"):this.eventEmitter.emit("scanner_id_".concat(t.scannerId,".data"),t.data);break;case this.getMessage("error"):this.eventEmitter.emit("scanner_id_".concat(t.scannerId,".error"),t.data)}}},{key:"getMessage",value:function(e){return[this.messagePrefix,t.MESSAGE_PREFIX,e].join(".")}}])&&a(r.prototype,n),o&&a(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();h.MESSAGE_PREFIX="barcode_scanner",e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=f(r(6)),l=r(589),d=r(590),p=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.exchange=e,this.events=new c.EventEmitter},(e=[{key:"open",value:function(t){return s(this,arguments,void 0,(function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().m((function n(){var o,a;return i().w((function(n){for(;;)switch(n.n){case 0:return(0,h.default)({uri:t}).required().uri(),(0,h.default)({options:r}).required().object(d.VIOpenLinkOptions),a=null===(o=r.headlessMode)||void 0===o||o,n.n=1,e.exchange.postMessage(Object.assign(Object.assign({uri:t},r),{headlessMode:a,type:"open"}));case 1:return n.a(2)}}),n)}))()}))}},{key:"close",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.exchange.postMessage({type:"close"});case 1:return t.a(2)}}),t,this)})))}},{key:"onClose",value:function(t){var e=this;return(0,h.default)({listener:t}).required().function(),this.events.addListener(l.EventType.CLOSE,t),function(){e.events.removeListener(l.EventType.CLOSE,t)}}},{key:"handleMessageData",value:function(t){switch(t.type){case this.exchange.messageNameToType("closed"):var e={type:l.EventType.CLOSE,reason:t.reason};this.events.emit(l.EventType.CLOSE,e)}}},{key:"openLink",value:function(t){return s(this,arguments,void 0,(function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return console.warn("sos.browser.openLink() is deprecated and will be removed in the future versions. Use sos.browser.open() instead."),(0,h.default)({uri:t}).required().uri(),(0,h.default)({options:r}).required().object(),n.n=1,e.exchange.postMessage(Object.assign(Object.assign({uri:t},r),{headlessMode:!1,type:"open_link"}));case 1:return n.a(2)}}),n)}))()}))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=p},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.CloseReason=e.VIEventType=e.EventType=void 0,function(t){t.CLOSE="close"}(n||(e.EventType=n={})),e.VIEventType=["close"],function(t){t.API="API",t.USER="USER",t.TIMEOUT="TIMEOUT"}(i||(e.CloseReason=i={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIOpenLinkOptions=e.VITheme=void 0,e.VITheme={base:{"?string":["light","dark"]},shape:{"?object":{cornerSize:"?number"}},colors:{"?object":{primary:"?string",background:"?string",control:"?string"}},widgets:{"?object":{editAddress:{"?object":{colors:{"?object":{background:"?string",text:"?string"}}}},buttonClose:{"?object":{colors:{"?object":{background:"?string",text:"?string",icon:"?string"}},icon:{"?string":["none","exit_to_app","close","cancel"]},text:"?string"}},progress:{"?object":{color:"?string"}}}}},e.VIOpenLinkOptions={aclDomains:{"?array":"string"},aclMode:{"?string":["blacklist","whitelist"]},readOnlyAddressBar:"?boolean",idleTimeout:"?number",coordinates:{"?object":{x:"number",y:"number",width:"number",height:"number"}},theme:{"?object":e.VITheme},headlessMode:"?boolean",clearData:"?boolean",canUserClose:"?boolean",method:{"?string":["native","iframe"]}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.base=n,this.transformers=i,this.frontAppletWindows=[]},(e=[{key:"registerFrontAppletLoaderWindow",value:function(t){t.postMessage({type:this.getMessage("api_js_uri"),uri:this.base.apiJsUri},"*")}},{key:"registerBundledFrontAppletWindow",value:function(t){this.frontAppletWindows.push(t),t.postMessage({type:this.getMessage("config.update"),config:this.base.config},"*"),t.postMessage({type:this.getMessage("auth_hash.update"),authHash:this.base.authHash},"*"),t.postMessage({type:this.getMessage("front_display_version.update"),version:this.base.display.version},"*")}},{key:"forwardToFrontAppletWindows",value:function(t){var e,r=this,n=i(this.frontAppletWindows);try{var o=function(){var n=e.value,i=r.transformers.reduce((function(t,e){return t?e(t,n):t}),t);if(void 0===i)return 1;n.postMessage(i,"*")};for(n.s();!(e=n.n()).done;)o()}catch(t){n.e(t)}finally{n.f()}}},{key:"forwardFromFrontAppletWindows",value:function(t,e){-1!==this.frontAppletWindows.indexOf(t)&&this.window.parent.postMessage(e,"*")}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.postMessageToParent=n;var o=function(t){return i.handleTouch(t)};this.window.addEventListener("touchstart",o,!0),this.window.addEventListener("touchend",o,!0),this.window.addEventListener("touchcancel",o,!0),this.window.addEventListener("touchmove",o,!0)}return e=t,(r=[{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("propagate"):var e=this.window.document.elementFromPoint(t.x,t.y);e&&"click"in e&&e.click()}}},{key:"transformIframeData",value:function(t,e){if(t.type!==this.getMessage("propagate"))return t;var r=Array.from(this.window.document.getElementsByTagName("iframe")).find((function(t){return t.contentWindow===e}));return void 0===r||t.x<r.offsetLeft||t.x>r.offsetLeft+r.offsetWidth||t.y<r.offsetTop||t.y>r.offsetTop+r.offsetHeight?void 0:Object.assign(Object.assign({},t),{x:t.x-r.offsetLeft,y:t.y-r.offsetTop})}},{key:"handleTouch",value:function(t){this.postMessageToParent({type:this.getMessage("event"),eventType:t.type})}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();a.MESSAGE_PREFIX="touch",e.default=a},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(14),s=a(r(6)),f=function(){function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.eventEmitter=new u.EventEmitter,this.hasWindowEventListener=!1,this.alive=!0,this.dispatchEventToParent=function(t){try{n.window.parent.document.dispatchEvent(new KeyboardEvent("keyup",t))}catch(e){if(!(e instanceof ReferenceError))throw e;n.window.parent.document.dispatchEvent(t)}},!this.isTopLevelFrame()&&this.canAccessParentOrigin()&&(this.hasWindowEventListener=!0,this.window.addEventListener("keyup",this.dispatchEventToParent))}return e=t,(r=[{key:"destroy",value:function(){this.alive&&(this.alive=!1,this.removeEventListeners(),this.hasWindowEventListener&&this.window.removeEventListener("keyup",this.dispatchEventToParent))}},{key:"onKeyUp",value:function(t){this.checkAlive(),(0,s.default)({listener:t}).required().function(),this.eventEmitter.addListener("keyup",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("keyup"):var e={type:"keyup",keyCode:t.keyCode,keyName:t.keyName};this.emitKeyUpEvent(e)}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"removeEventListener",value:function(t,e){this.eventEmitter.removeListener(t,e)}},{key:"emitKeyUpEvent",value:function(t){this.checkAlive(),this.eventEmitter.emit("keyup",t)}},{key:"isTopLevelFrame",value:function(){return this.window===this.window.parent}},{key:"canAccessParentOrigin",value:function(){var t,e;try{var r=!!(null===(e=null===(t=this.window)||void 0===t?void 0:t.parent)||void 0===e?void 0:e.document);return r||console.warn("Parent window or document is not defined"),r}catch(t){if(t instanceof DOMException)return console.warn("Parent document is not accessible"),!1;throw t}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkAlive",value:function(){if(!this.alive)throw new Error("destroyed")}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="input",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var h=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var d=r(14),p=l(r(6)),m=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=s(this,e)).window=t,i.messagePrefix=r,i.postMessage=n,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(n=[{key:"isRemoteDebugEnabled",value:function(){return h(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_remote_enabled")});case 1:return e=t.v,r=e.isEnabled,t.a(2,r)}}),t,this)})))}},{key:"onRemoteDebugChanged",value:function(t){(0,p.default)({listener:t}).required().function(),this.addListener(e.DEBUG_CHANGED,(function(e){return t({enabled:e.enabled})}))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("configure"):if(this.emit(e.DEBUG_CHANGED,{enabled:t.enabled}),t.enabled){if(this.window.WeinreServerURL=t.url,this.window.WeinreServerId=t.id,!this.window.__weinreLoaded){var r=this.window.document.createElement("script");r.src=t.url+"/target/target-script-min.js",this.window.document.body.appendChild(r),this.window.__weinreLoaded=!0}}else this.window.WeinreServerURL=void 0,this.window.WeinreServerId=void 0}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+e.MESSAGE_PREFIX+"."+t}}])&&a(r.prototype,n),o&&a(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(d.EventEmitter);m.MESSAGE_PREFIX="debug",m.DEBUG_CHANGED="debug.changed",e.default=m},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"getLocation",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_location")});case 1:return e=t.v,r=e.location,t.a(2,r)}}),t,this)})))}},{key:"getOrganizationTags",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_organization_tags")});case 1:return e=t.v,r=e.tags,t.a(2,r)}}),t,this)})))}},{key:"getDeviceName",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r,n;return i().w((function(t){for(;;)switch(t.n){case 0:if("string"!=typeof(e=this.geDeviceNameFromTittle())){t.n=1;break}return t.a(2,e);case 1:return t.n=2,this.postMessage({type:this.getMessage("get_device_name")});case 2:return r=t.v,n=r.name,t.a(2,n)}}),t,this)})))}},{key:"getMessage",value:function(e){return[this.messagePrefix,t.MESSAGE_PREFIX,e].join(".")}},{key:"geDeviceNameFromTittle",value:function(){try{return window.parent.document.head.getElementsByTagName("title")[0].parentElement.getElementsByTagName("title")[0].innerHTML||null}catch(t){return null}}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="device_info",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.version=void 0}return e=t,(r=[{key:"supports",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({capability:t}).string(),e.n=1,this.postMessage({type:this.getMessage("supports"),capability:t});case 1:return r=e.v,n=r.supports,e.a(2,n)}}),e,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();h.MESSAGE_PREFIX="display",e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(598)),s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.triggers=new u.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="timing",e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"pause",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("pause")});case 1:return t.a(2)}}),t,this)})))}},{key:"resume",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("resume")});case 1:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="triggers",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SyncEngine=void 0;var c,h,l=r(14),d=r(600),p=f(r(6));!function(t){t.SyncServer="sync-server",t.P2PLocal="p2p-local",t.Udp="udp"}(c||(e.SyncEngine=c={})),function(t){t.Status="status",t.BroadcastedValue="broadcasted_value",t.Closed="closed"}(h||(h={}));var m=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new l.EventEmitter}return e=t,(r=[{key:"connect",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return r={engine:c.SyncServer},(n="string"==typeof t?{engine:c.SyncServer,uri:t}:void 0===t?r:t).engine===c.SyncServer&&(0,p.default)({uri:n.uri}).uri(),e.n=1,this.postMessage({type:this.getMessage("connect"),engine:n.engine,serverUri:n.uri});case 1:return e.a(2)}}),e,this)})))}},{key:"close",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("close")});case 1:return t.a(2)}}),t,this)})))}},{key:"init",value:function(){return s(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME,n=arguments.length>1?arguments[1]:void 0;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.joinGroup({groupName:r,deviceIdentification:n});case 1:return t.a(2)}}),t)}))()}))}},{key:"joinGroup",value:function(e){return s(this,void 0,void 0,i().m((function r(){var n,o,a;return i().w((function(r){for(;;)switch(r.n){case 0:return n=e.groupName,o=void 0===n?t.DEFAULT_GROUP_NAME:n,a=e.deviceIdentification,(0,p.default)({groupName:o}).required().string(),(0,p.default)({deviceIdentification:a}).string(),r.n=1,this.postMessage({type:this.getMessage("init"),groupName:o,deviceIdentification:a});case 1:return r.a(2)}}),r,this)})))}},{key:"leaveGroup",value:function(){return s(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return(0,p.default)({groupName:r}).required().string(),t.n=1,e.postMessage({type:e.getMessage("leave_group"),groupName:r});case 1:return t.a(2)}}),t)}))()}))}},{key:"wait",value:function(e){return s(this,arguments,void 0,(function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_GROUP_NAME,o=arguments.length>2?arguments[2]:void 0;return i().m((function t(){var a;return i().w((function(t){for(;;)switch(t.n){case 0:return(0,p.default)({groupName:n}).required().string(),(0,p.default)({timeout:o}).number(),t.n=1,r.postMessage({type:r.getMessage("wait"),groupName:n,data:e,timeout:o});case 1:return a=t.v,t.a(2,a.responseData)}}),t)}))()}))}},{key:"cancelWait",value:function(){return s(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return(0,p.default)({groupName:r}).required().string(),t.n=1,e.postMessage({type:e.getMessage("cancel_wait"),groupName:r});case 1:return t.a(2)}}),t)}))()}))}},{key:"setValue",value:function(e,r){return s(this,arguments,void 0,(function(e,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_GROUP_NAME;return i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,n.broadcastValue({key:e,value:r,groupName:o});case 1:return t.a(2)}}),t)}))()}))}},{key:"broadcastValue",value:function(e){return s(this,arguments,void 0,(function(e){var r=this,n=e.groupName,o=e.key,a=e.value;return i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return n=null!=n?n:t.DEFAULT_GROUP_NAME,(0,p.default)({key:o}).required().string(),(0,p.default)({groupName:n}).required().string(),e.n=1,r.postMessage({type:r.getMessage("request_set_value"),groupName:n,key:o,value:a});case 1:return e.a(2)}}),e)}))()}))}},{key:"isMaster",value:function(e){return s(this,void 0,void 0,i().m((function r(){var n,o;return i().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,this.postMessage({type:this.getMessage("is_master"),groupName:null!=e?e:t.DEFAULT_GROUP_NAME});case 1:return n=r.v,o=n.isMaster,r.a(2,o)}}),r,this)})))}},{key:"onValue",value:function(e){(0,p.default)({listener:e}).required().function(),this.eventEmitter.addListener(h.BroadcastedValue,(function(r){e(r.key,r.value,r.groupName===t.DEFAULT_GROUP_NAME?void 0:r.groupName)}))}},{key:"onStatus",value:function(e){(0,p.default)({listener:e}).required().function(),this.eventEmitter.addListener(h.Status,(function(r){e({connectedPeers:r.connectedPeers,groupName:r.groupName===t.DEFAULT_GROUP_NAME?void 0:r.groupName,isMaster:r.isMaster})}))}},{key:"onClosed",value:function(t){(0,p.default)({listener:t}).required().function(),this.eventEmitter.addListener(h.Closed,t)}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"handleMessageData",value:function(t){var e;switch(t.type){case this.getMessage(d.SyncMessageType.BroadcastedValue):var r=t,n={groupName:r.groupName,key:r.key,value:r.value};this.eventEmitter.emit(h.BroadcastedValue,n);break;case this.getMessage(d.SyncMessageType.Status):var i=t,o={connectedPeers:i.connectedPeers,groupName:i.groupName,isMaster:null!==(e=i.isMaster)&&void 0!==e&&e};this.eventEmitter.emit(h.Status,o);break;case this.getMessage(d.SyncMessageType.Closed):var a=t,u=a.error?new Error(a.error):void 0;this.eventEmitter.emit(h.Closed,u)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();m.MESSAGE_PREFIX="sync",m.DEFAULT_GROUP_NAME="____default____",e.default=m},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SyncMessageType=void 0,function(t){t.BroadcastedValue="set_value",t.Status="device_status",t.Closed="closed"}(n||(e.SyncMessageType=n={}))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=r(602),l=f(r(6)),d=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"listStorageUnits",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("list_storage_units")});case 1:return e=t.v,r=e.storageUnits,t.a(2,r)}}),t,this)})))}},{key:"listInternalStorageUnits",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.listStorageUnits();case 1:return e=t.v,t.a(2,e.filter((function(t){return!t.removable})))}}),t,this)})))}},{key:"onStorageUnitsChanged",value:function(t){(0,l.default)({listener:t}).required().function(),this.eventEmitter.addListener("storage_units_changed",t)}},{key:"removeStorageUnitsChangedListener",value:function(t){(0,l.default)({listener:t}).required().function(),this.eventEmitter.removeListener("storage_units_changed",t)}},{key:"removeAllListeners",value:function(){this.eventEmitter.removeAllListeners("storage_units_changed")}},{key:"listFiles",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({directoryPath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("list_files"),directoryPath:t});case 1:return r=e.v,n=r.files,e.a(2,n)}}),e,this)})))}},{key:"exists",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("exists"),filePath:t});case 1:return r=e.v,n=r.exists,e.a(2,n)}}),e,this)})))}},{key:"getFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("get_file"),filePath:t});case 1:if(r=e.v,n=r.file){e.n=2;break}return e.a(2,null);case 2:return e.a(2,Object.assign(Object.assign({},n),t))}}),e,this)})))}},{key:"writeFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),r.n=1,this.postMessage({type:this.getMessage("write_file"),filePath:t,contents:e});case 1:return r.a(2)}}),r,this)})))}},{key:"appendFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),r.n=1,this.postMessage({type:this.getMessage("append_file"),filePath:t,contents:e});case 1:return r.a(2)}}),r,this)})))}},{key:"readFile",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("read_file"),filePath:t});case 1:return r=e.v,n=r.contents,e.a(2,n)}}),e,this)})))}},{key:"copyFile",value:function(t,e){return s(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({sourceFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(h.VIFilePath),(0,l.default)({options:n}).required().object(h.VICopyFileOptions),i.n=1,r.postMessage({type:r.getMessage("copy_file"),sourceFilePath:t,destinationFilePath:e,options:n});case 1:return i.a(2)}}),o)}))()}))}},{key:"moveFile",value:function(t,e){return s(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({sourceFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(h.VIFilePath),(0,l.default)({options:n}).required().object(h.VIMoveFileOptions),i.n=1,r.postMessage({type:r.getMessage("move_file"),sourceFilePath:t,destinationFilePath:e,options:n});case 1:return i.a(2)}}),o)}))()}))}},{key:"deleteFile",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),(0,l.default)({recursive:e}).required().boolean(),r.n=1,this.postMessage({type:this.getMessage("delete_file"),filePath:t,recursive:e});case 1:return r.a(2)}}),r,this)})))}},{key:"downloadFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),(0,l.default)({sourceUri:e}).required().uri(),(0,l.default)({headers:r}).object(),n.n=1,this.postMessage({type:this.getMessage("download_file"),filePath:t,sourceUri:e,headers:r});case 1:return n.a(2)}}),n,this)})))}},{key:"extractFile",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){return i().w((function(n){for(;;)switch(n.n){case 0:return(0,l.default)({archiveFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationDirectoryPath:e}).object(h.VIFilePath),(0,l.default)({method:r}).required().string(),n.n=1,this.postMessage({type:this.getMessage("extract_file"),archiveFilePath:t,destinationDirectoryPath:e,method:r});case 1:return n.a(2)}}),n,this)})))}},{key:"createArchive",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({archiveFilePath:t}).required().object(h.VIFilePath),(0,l.default)({archiveEntries:e}).required().array("object"),r.n=1,this.postMessage({type:this.getMessage("create_archive_file"),archiveFilePath:t,archiveEntries:e});case 1:return r.a(2)}}),r,this)})))}},{key:"getFileChecksum",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o;return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),(0,l.default)({hashType:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("get_file_checksum"),filePath:t,hashType:e});case 1:return n=r.v,o=n.checksum,r.a(2,o)}}),r,this)})))}},{key:"createDirectory",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({directoryPath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("create_directory"),directoryPath:t});case 1:return e.a(2)}}),e,this)})))}},{key:"isDirectory",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({filePath:t}).required().object(h.VIFilePath),e.n=1,this.postMessage({type:this.getMessage("is_directory"),filePath:t});case 1:return r=e.v,n=r.isDirectory,e.a(2,n)}}),e,this)})))}},{key:"link",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({sourceFilePath:t}).required().object(h.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(h.VIFilePath),r.n=1,this.postMessage({type:this.getMessage("link"),sourceFilePath:t,destinationFilePath:e});case 1:return r.a(2)}}),r,this)})))}},{key:"wipeout",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("wipeout")});case 1:return t.a(2)}}),t,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("storage_units_changed"):this.eventEmitter.emit("storage_units_changed")}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();d.MESSAGE_PREFIX="file_system",e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIMoveFileOptions=e.VICopyFileOptions=e.VIFilePath=e.VIStorageUnit=void 0,e.VIStorageUnit={type:"string",capacity:"number",freeSpace:"number",usableSpace:"number",removable:"boolean"},e.VIFilePath={storageUnit:{object:e.VIStorageUnit},filePath:"string"},e.VICopyFileOptions={overwrite:"?boolean"},e.VIMoveFileOptions={overwrite:"?boolean"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=f(r(604)),l=f(r(614)),d=f(r(615)),p=f(r(617)),m=f(r(618)),v=f(r(619)),y=f(r(622)),g=f(r(623)),b=f(r(624)),w=f(r(626)),M=f(r(629)),_=f(r(630)),S=f(r(631)),O=f(r(634)),E=f(r(637)),k=f(r(639)),P=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.app=new h.default(this.getMessagePrefix(),this.postMessage),this.os=new y.default(this.getMessagePrefix(),this.postMessage),this.audio=new l.default(this.getMessagePrefix(),this.postMessage),this.debug=new p.default(this.getMessagePrefix(),this.postMessage),this.firmware=new m.default(this.getMessagePrefix(),this.postMessage),this.package=new g.default(this.getMessagePrefix(),this.postMessage),this.power=new w.default(this.getMessagePrefix(),this.postMessage),this.remoteControl=new _.default(this.getMessagePrefix(),this.postMessage),this.screen=new S.default(this.getMessagePrefix(),this.postMessage),this.time=new E.default(this.getMessagePrefix(),this.postMessage),this.network=new v.default(this.getMessagePrefix(),this.postMessage),this.wifi=new k.default(this.getMessagePrefix(),this.postMessage),this.security=new O.default(this.getMessagePrefix(),this.postMessage),this.proxy=new M.default(this.getMessagePrefix(),this.postMessage),this.autoRecovery=new d.default(this.getMessagePrefix(),this.postMessage),this.peerRecovery=new b.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"supports",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({capability:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("supports"),capability:t});case 1:return r=e.v,n=r.supports,e.a(2,n)}}),e,this)})))}},{key:"getModel",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_model")});case 1:return e=t.v,r=e.model,t.a(2,r)}}),t,this)})))}},{key:"getSerialNumber",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_serial_number")});case 1:return e=t.v,r=e.serialNumber,t.a(2,r)}}),t,this)})))}},{key:"getNetworkInfo",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.network.getActiveInfo();case 1:return t.a(2,t.v)}}),t,this)})))}},{key:"getBatteryStatus",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_battery_status")});case 1:return e=t.v,r=e.batteryStatus,t.a(2,r)}}),t,this)})))}},{key:"getTemperature",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_current_temperature")});case 1:return e=t.v,r=e.currentTemperature,t.a(2,r)}}),t,this)})))}},{key:"getBrand",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_brand")});case 1:return e=t.v,r=e.brand,t.a(2,r)}}),t,this)})))}},{key:"resetSettings",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("reset_settings")});case 1:return t.a(2)}}),t,this)})))}},{key:"factoryReset",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("factory_reset")});case 1:return t.a(2)}}),t,this)})))}},{key:"getExtendedManagementUrl",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_extendedmanagement_url")});case 1:return e=t.v,r=e.url,t.a(2,r)}}),t,this)})))}},{key:"setExtendedManagementUrl",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({url:t}).string().canBeNull(),e.n=1,this.postMessage({type:this.getMessage("set_extendedmanagement_url"),url:t});case 1:return e.a(2)}}),e,this)})))}},{key:"setHardwareAcceleration",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({enabled:t}).required().boolean(),e.n=1,this.postMessage({type:this.getMessage("set_hardware_acceleration"),enabled:t});case 1:return e.a(2)}}),e,this)})))}},{key:"isHardwareAccelerationEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_hardware_acceleration_enabled")});case 1:return e=t.v,r=e.enabled,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();P.MESSAGE_PREFIX="management",e.default=P},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(240),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getType",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_application_type")});case 1:return e=t.v,r=e.applicationType,t.a(2,r)}}),t,this)})))}},{key:"getVersion",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_application_version")});case 1:return e=t.v,r=e.applicationVersion,t.a(2,r)}}),t,this)})))}},{key:"upgrade",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o,a,u;return i().w((function(r){for(;;)switch(r.n){case 0:return n=(0,f.parseUpgradeArguments)(t,e),o=n.baseUrl,a=n.version,u=n.directUri,r.n=1,this.postMessage({type:this.getMessage("app_upgrade"),baseUrl:o,version:a,directUri:u});case 1:return r.a(2)}}),r,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";var n=r(606);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(s),c=["%","/","?",";","#"].concat(f),h=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(607);function g(t,e,r){if(t&&"object"==typeof t&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",s=t.split(a);s[0]=s[0].replace(/\\/g,"/");var g=t=s.join(a);if(g=g.trim(),!r&&1===t.split("#").length){var b=u.exec(g);if(b)return this.path=g,this.href=g,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=o.exec(g);if(w){var M=(w=w[0]).toLowerCase();this.protocol=M,g=g.substr(w.length)}if(r||w||g.match(/^\/\/[^@/]+@[^@/]+/)){var _="//"===g.substr(0,2);!_||w&&m[w]||(g=g.substr(2),this.slashes=!0)}if(!m[w]&&(_||w&&!v[w])){for(var S,O,E=-1,k=0;k<h.length;k++){-1!==(P=g.indexOf(h[k]))&&(-1===E||P<E)&&(E=P)}-1!==(O=-1===E?g.lastIndexOf("@"):g.lastIndexOf("@",E))&&(S=g.slice(0,O),g=g.slice(O+1),this.auth=decodeURIComponent(S)),E=-1;for(k=0;k<c.length;k++){var P;-1!==(P=g.indexOf(c[k]))&&(-1===E||P<E)&&(E=P)}-1===E&&(E=g.length),this.host=g.slice(0,E),g=g.slice(E),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var R=this.hostname.split(/\./),A=(k=0,R.length);k<A;k++){var x=R[k];if(x&&!x.match(l)){for(var T="",I=0,F=x.length;I<F;I++)x.charCodeAt(I)>127?T+="x":T+=x[I];if(!T.match(l)){var C=R.slice(0,k),N=R.slice(k+1),q=x.match(d);q&&(C.push(q[1]),N.unshift(q[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!p[M])for(k=0,A=f.length;k<A;k++){var B=f[k];if(-1!==g.indexOf(B)){var G=encodeURIComponent(B);G===B&&(G=escape(B)),g=g.split(B).join(G)}}var U=g.indexOf("#");-1!==U&&(this.hash=g.substr(U),g=g.slice(0,U));var z=g.indexOf("?");if(-1!==z?(this.search=g.substr(z),this.query=g.substr(z+1),e&&(this.query=y.parse(this.query)),g=g.slice(0,z)):e&&(this.search="",this.query={}),g&&(this.pathname=g),v[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var V=this.search||"";this.path=D+V}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(g(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if("string"==typeof t){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var f=u[s];"protocol"!==f&&(r[f]=t[f])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!v[t.protocol]){for(var c=Object.keys(t),h=0;h<c.length;h++){var l=c[h];r[l]=t[l]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||m[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var p=r.pathname||"",y=r.search||"";r.path=p+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=b||g||r.host&&t.pathname,M=w,_=r.pathname&&r.pathname.split("/")||[],S=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),w=w&&(""===d[0]||""===_[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,_=d;else if(d.length)_||(_=[]),_.pop(),_=_.concat(d),r.search=t.search,r.query=t.query;else if(null!=t.search){if(S)r.host=_.shift(),r.hostname=r.host,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname);return r.search=t.search,r.query=t.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=_.slice(-1)[0],E=(r.host||t.host||_.length>1)&&("."===O||".."===O)||""===O,k=0,P=_.length;P>=0;P--)"."===(O=_[P])?_.splice(P,1):".."===O?(_.splice(P,1),k++):k&&(_.splice(P,1),k--);if(!w&&!M)for(;k--;k)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var j,R=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(r.hostname=R?"":_.length?_.shift():"",r.host=r.hostname,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname));return(w=w||r.host&&_.length)&&!R&&_.unshift(""),_.length>0?r.pathname=_.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=g,e.resolve=function(t,e){return g(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},e.format=function(t){return"string"==typeof t&&(t=g(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i},function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var u,s=2147483647,f=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function m(t){throw new RangeError(l[t])}function v(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+v((t=t.replace(h,".")).split("."),e).join(".")}function g(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function b(t){return v(t,(function(t){var e="";return t>65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function M(t,e,r){var n=0;for(t=r?d(t/700):t>>1,t+=d(t/e);t>455;n+=36)t=d(t/35);return d(n+36*t/(t+38))}function _(t){var e,r,n,i,o,a,u,f,c,h,l,p=[],v=t.length,y=0,g=128,w=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),p.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=y,a=1,u=36;i>=v&&m("invalid-input"),((f=(l=t.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||f>d((s-y)/a))&&m("overflow"),y+=f*a,!(f<(c=u<=w?1:u>=w+26?26:u-w));u+=36)a>d(s/(h=36-c))&&m("overflow"),a*=h;w=M(y-o,e=p.length+1,0==o),d(y/e)>s-g&&m("overflow"),g+=d(y/e),y%=e,p.splice(y++,0,g)}return b(p)}function S(t){var e,r,n,i,o,a,u,f,c,h,l,v,y,b,_,S=[];for(v=(t=g(t)).length,e=128,r=0,o=72,a=0;a<v;++a)(l=t[a])<128&&S.push(p(l));for(n=i=S.length,i&&S.push("-");n<v;){for(u=s,a=0;a<v;++a)(l=t[a])>=e&&l<u&&(u=l);for(u-e>d((s-r)/(y=n+1))&&m("overflow"),r+=(u-e)*y,e=u,a=0;a<v;++a)if((l=t[a])<e&&++r>s&&m("overflow"),l==e){for(f=r,c=36;!(f<(h=c<=o?1:c>=o+26?26:c-o));c+=36)_=f-h,b=36-h,S.push(p(w(h+_%b,0))),f=d(_/b);S.push(p(w(f,0))),o=M(r,y,n==i),r=0,++n}++r,++e}return S.join("")}u={version:"1.4.1",ucs2:{decode:g,encode:b},decode:_,encode:S,toASCII:function(t){return y(t,(function(t){return c.test(t)?"xn--"+S(t):t}))},toUnicode:function(t){return y(t,(function(t){return f.test(t)?_(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return u}.call(e,r,e,t))||(t.exports=i)}()}).call(this,r(38)(t),r(15))},function(t,e,r){"use strict";var n=r(608),i=r(613),o=r(148);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){"use strict";var n=r(609),i=r(242),o=r(148),a=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,f=Array.prototype.push,c=function(t,e){f.apply(t,s(e)?e:[e])},h=Date.prototype.toISOString,l=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:o.formatters[l],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},m=function t(e,r,o,a,u,f,h,l,m,v,y,g,b,w,M,_,S,O){for(var E,k=e,P=O,j=0,R=!1;void 0!==(P=P.get(p))&&!R;){var A=P.get(e);if(j+=1,void 0!==A){if(A===j)throw new RangeError("Cyclic object value");R=!0}void 0===P.get(p)&&(j=0)}if("function"==typeof v?k=v(r,k):k instanceof Date?k=b(k):"comma"===o&&s(k)&&(k=i.maybeMap(k,(function(t){return t instanceof Date?b(t):t}))),null===k){if(f)return m&&!_?m(r,d.encoder,S,"key",w):r;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||i.isBuffer(k))return m?[M(_?r:m(r,d.encoder,S,"key",w))+"="+M(m(k,d.encoder,S,"value",w))]:[M(r)+"="+M(String(k))];var x,T=[];if(void 0===k)return T;if("comma"===o&&s(k))_&&m&&(k=i.maybeMap(k,m)),x=[{value:k.length>0?k.join(",")||null:void 0}];else if(s(v))x=v;else{var I=Object.keys(k);x=y?I.sort(y):I}var F=l?String(r).replace(/\./g,"%2E"):String(r),C=a&&s(k)&&1===k.length?F+"[]":F;if(u&&s(k)&&0===k.length)return C+"[]";for(var N=0;N<x.length;++N){var q=x[N],D="object"==typeof q&&q&&void 0!==q.value?q.value:k[q];if(!h||null!==D){var L=g&&l?String(q).replace(/\./g,"%2E"):String(q),B=s(k)?"function"==typeof o?o(C,L):C:C+(g?"."+L:"["+L+"]");O.set(e,j);var G=n();G.set(p,O),c(T,t(D,B,o,a,u,f,h,l,"comma"===o&&_&&s(k)?null:m,v,y,g,b,w,M,_,S,G))}}return T};t.exports=function(t,e){var r,i=t,f=function(t){if(!t)return d;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,i=o.formatters[r],f=d.filter;if(("function"==typeof t.filter||s(t.filter))&&(f=t.filter),n=t.arrayFormat in u?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===t.allowDots?!0===t.encodeDotInKeys||d.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:f,format:r,formatter:i,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof f.filter?i=(0,f.filter)("",i):s(f.filter)&&(r=f.filter);var h=[];if("object"!=typeof i||null===i)return"";var l=u[f.arrayFormat],p="comma"===l&&f.commaRoundTrip;r||(r=Object.keys(i)),f.sort&&r.sort(f.sort);for(var v=n(),y=0;y<r.length;++y){var g=r[y],b=i[g];f.skipNulls&&null===b||c(h,m(b,g,l,p,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,v))}var w=h.join(f.delimiter),M=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?M+="utf8=%26%2310003%3B&":M+="utf8=%E2%9C%93&"),w.length>0?M+w:""}},function(t,e,r){"use strict";var n=r(37),i=r(98),o=r(611),a=r(241),u=r(612)||a||o;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+i(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=u()),t.set(e,r)}};return e}},function(t,e){},function(t,e,r){"use strict";var n=r(98),i=r(37),o=function(t,e,r){for(var n,i=t;null!=(n=i.next);i=n)if(n.key===e)return i.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new i("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return o(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=o(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!o(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=o(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},function(t,e,r){"use strict";var n=r(92),i=r(91),o=r(98),a=r(241),u=r(37),s=n("%WeakMap%",!0),f=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),l=i("WeakMap.prototype.delete",!0);t.exports=s?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new u("Side channel does not contain "+o(t))},delete:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&t?f(t,r):e&&e.get(r)},has:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&t?h(t,r):!!e&&e.has(r)},set:function(r,n){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),c(t,r,n)):a&&(e||(e=a()),e.set(r,n))}};return r}:a},function(t,e,r){"use strict";var n=r(242),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},f=function(t,e,r,o){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/g,f=r.depth>0&&/(\[[^[\]]*])/.exec(a),c=f?a.slice(0,f.index):a,h=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;h.push(c)}for(var l=0;r.depth>0&&null!==(f=u.exec(a))&&l<r.depth;){if(l+=1,!r.plainObjects&&i.call(Object.prototype,f[1].slice(1,-1))&&!r.allowPrototypes)return;h.push(f[1])}if(f){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");h.push("["+a.slice(f.index)+"]")}return function(t,e,r,i){var o=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var u=i?e:s(e,r,o),f=t.length-1;f>=0;--f){var c,h=t[f];if("[]"===h&&r.parseArrays)c=r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u);else{c=r.plainObjects?{__proto__:null}:{};var l="["===h.charAt(0)&&"]"===h.charAt(h.length-1)?h.slice(1,-1):h,d=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10);r.parseArrays||""!==d?!isNaN(p)&&h!==d&&String(p)===d&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(c=[])[p]=u:"__proto__"!==d&&(c[d]=u):c={0:u}}u=c}return u}(h,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var c="string"==typeof t?function(t,e){var r={__proto__:null},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=e.parameterLimit===1/0?void 0:e.parameterLimit,h=f.split(e.delimiter,e.throwOnLimitExceeded?c+1:c);if(e.throwOnLimitExceeded&&h.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var l,d=-1,p=e.charset;if(e.charsetSentinel)for(l=0;l<h.length;++l)0===h[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[l]?p="utf-8":"utf8=%26%2310003%3B"===h[l]&&(p="iso-8859-1"),d=l,l=h.length);for(l=0;l<h.length;++l)if(l!==d){var m,v,y=h[l],g=y.indexOf("]="),b=-1===g?y.indexOf("="):g+1;-1===b?(m=e.decoder(y,a.decoder,p,"key"),v=e.strictNullHandling?null:""):(m=e.decoder(y.slice(0,b),a.decoder,p,"key"),v=n.maybeMap(s(y.slice(b+1),e,o(r[m])?r[m].length:0),(function(t){return e.decoder(t,a.decoder,p,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===p&&(v=u(String(v))),y.indexOf("[]=")>-1&&(v=o(v)?[v]:v);var w=i.call(r,m);w&&"combine"===e.duplicates?r[m]=n.combine(r[m],v):w&&"last"!==e.duplicates||(r[m]=v)}return r}(t,r):t,h=r.plainObjects?{__proto__:null}:{},l=Object.keys(c),d=0;d<l.length;++d){var p=l[d],m=f(p,c[p],r,"string"==typeof t);h=n.merge(h,m,r)}return!0===r.allowSparse?h:n.compact(h)}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getVolume",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_volume")});case 1:return e=t.v,r=e.volume,t.a(2,r)}}),t,this)})))}},{key:"setVolume",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({volume:t}).required().number().min(0).max(100),e.n=1,this.postMessage({type:this.getMessage("set_volume"),volume:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(243),c=r(616),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_auto_recovery")});case 1:if((e=t.v).enabled){t.n=2;break}return t.a(2,(0,f.pick)(e,["enabled","autoEnableTimeoutMs"]));case 2:return t.a(2,(0,f.pick)(e,["enabled","healthcheckIntervalMs"]))}}),t,this)})))}},{key:"set",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.validateAutoRecoveryConfiguration)(t),e.n=1,this.postMessage(Object.assign({type:this.getMessage("set_auto_recovery")},t));case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateAutoRecoveryConfiguration=void 0;var i=n(r(6));e.validateAutoRecoveryConfiguration=function(t){var e=(0,i.default)({configuration:t}).setError(new Error("Invalid auto recovery configuration")).required();t.enabled?e.object({enabled:"boolean",healthcheckIntervalMs:"number"}):e.object({enabled:"boolean",autoEnableTimeoutMs:"?number"})}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"enable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setDebug(!0);case 1:return t.a(2)}}),t,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setDebug(!1);case 1:return t.a(2)}}),t,this)})))}},{key:"isEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_enabled")});case 1:return e=t.v,r=e.isEnabled,t.a(2,r)}}),t,this)})))}},{key:"setDebug",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({enabled:t}).required().boolean(),e.n=1,this.postMessage({type:this.getMessage("set_debug"),enabled:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(240),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"upgrade",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o,a,u;return i().w((function(r){for(;;)switch(r.n){case 0:return n=(0,f.parseUpgradeArguments)(t,e),o=n.baseUrl,a=n.version,u=n.directUri,r.n=1,this.postMessage({type:this.getMessage("firmware_upgrade"),baseUrl:o,version:a,directUri:u});case 1:return r.a(2)}}),r,this)})))}},{key:"getVersion",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_firmware_version")});case 1:return e=t.v,r=e.firmwareVersion,t.a(2,r)}}),t,this)})))}},{key:"getType",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_firmware_type")});case 1:return e=t.v,r=e.firmwareType,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(620),h=f(r(6)),l=r(621),d=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getActiveInfo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_network_info")});case 1:return e=t.v,r=e.networkInfo,t.a(2,r)}}),t,this)})))}},{key:"listInterfaces",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_network_interfaces")});case 1:return e=t.v,r=e.interfaces,t.a(2,r)}}),t,this)})))}},{key:"setManual",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,n,o;return i().w((function(t){for(;;)switch(t.n){case 0:if("string"!=typeof e[0]){t.n=2;break}return r=e[0],n=e[1],(0,h.default)({interfaceName:r}).required().string(),(0,h.default)({options:n}).required().object(c.VINetworkOptions),t.n=1,this.postMessage({type:this.getMessage("set_network_manual_v2"),interfaceName:r,options:n});case 1:t.n=3;break;case 2:return o=e[0],(0,h.default)({options:o}).required().object(c.VINetworkOptionsLegacy),t.n=3,this.postMessage({type:this.getMessage("set_network_manual"),options:o});case 3:return t.a(2)}}),t,this)})))}},{key:"setDHCP",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,n;return i().w((function(t){for(;;)switch(t.n){case 0:if("ethernet"!==e[0]&&"wifi"!==e[0]){t.n=2;break}return r=e[0],(0,h.default)({networkInterface:r}).required().string(c.VNetworkInterface),t.n=1,this.postMessage({type:this.getMessage("set_network_dhcp"),networkInterface:r});case 1:t.n=3;break;case 2:return n=e[0],(0,h.default)({interfaceName:n}).required().string(),t.n=3,this.postMessage({type:this.getMessage("set_network_dhcp_v2"),interfaceName:n});case 3:return t.a(2)}}),t,this)})))}},{key:"disableInterface",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,h.default)({interfaceName:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("disable_network_interface"),interfaceName:t});case 1:return e.a(2)}}),e,this)})))}},{key:"importCertificate",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,h.default)({details:t}).required().object(l.VCertificateEapDetails),e.n=1,this.postMessage({type:this.getMessage("import_certificate"),details:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VINetworkOptions=e.VINetworkOptionsLegacy=e.VNetworkInterface=void 0,e.VNetworkInterface=["wifi","ethernet"],e.VINetworkOptionsLegacy={interface:{string:e.VNetworkInterface},localAddress:"string",gateway:"string",netmask:"string",dns:{array:"string"}},e.VINetworkOptions={localAddress:"string",gateway:"string",netmask:"string",dns:{array:"string"}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VCertificateEapDetails=void 0,e.VCertificateEapDetails={type:{string:["EAP-TLS","PEAP","EAP-TTLS"]},caCertificate:"?string",clientCertificate:"?string",clientKey:"?string",clientCertificatePassword:"?string"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getInfo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_os_info")});case 1:return e=t.v,r=e.osInfo,t.a(2,r)}}),t,this)})))}},{key:"getCpuUsage",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_cpu_usage")});case 1:return e=t.v,r=e.cpuUsage,t.a(2,r)}}),t,this)})))}},{key:"getMemoryUsage",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_memory_usage")});case 1:return e=t.v,r=e.memoryUsage,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"install",value:function(t,e,r,n){return s(this,void 0,void 0,i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,c.default)({baseUrl:t}).required().uri(),(0,c.default)({packageName:e}).required().string(),(0,c.default)({version:r}).required().string(),(0,c.default)({build:n}).canBeNull().required().string(),i.n=1,this.postMessage({type:this.getMessage("install_package"),baseUrl:t,packageName:e,version:r,build:n});case 1:return i.a(2)}}),o,this)})))}},{key:"stop",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n;return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.default)({packageName:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("stop_package"),packageName:t});case 1:return r=e.v,n=r.stopped,e.a(2,n)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(243),c=r(625),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_peer_recovery")});case 1:if((e=t.v).enabled){t.n=2;break}return t.a(2,(0,f.pick)(e,["enabled","autoEnableTimeoutMs"]));case 2:return t.a(2,(0,f.pick)(e,["enabled","urlLauncherAddress"]))}}),t,this)})))}},{key:"set",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,c.validatePeerRecoveryConfiguration)(t),e.n=1,this.postMessage(Object.assign({type:this.getMessage("set_peer_recovery")},t));case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePeerRecoveryConfiguration=void 0;var i=n(r(6));e.validatePeerRecoveryConfiguration=function(t){var e=(0,i.default)({configuration:t}).setError(new Error("Invalid peer recovery configuration")).required();t.enabled?e.object({enabled:"boolean",urlLauncherAddress:"string"}):e.object({enabled:"boolean",autoEnableTimeoutMs:"?number"})}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var a=n&&n.prototype instanceof f?n:f,c=Object.create(a.prototype);return u(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,o),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(u(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,u(d,"constructor",h),u(h,"constructor",c),c.displayName="GeneratorFunction",u(h,i,"GeneratorFunction"),u(d),u(d,i,"Generator"),u(d,n,(function(){return this})),u(d,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:o,m:p}})()}function u(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(u=function(t,e,r,n){function o(e,r){u(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(o("next",0),o("throw",1),o("return",2))})(t,e,r,n)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(627),d=h(r(6)),p=r(244),m=r(628),v=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"systemReboot",value:function(){return c(this,void 0,void 0,a().m((function t(){return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("reboot_system")});case 1:return t.a(2)}}),t,this)})))}},{key:"appRestart",value:function(){return c(this,void 0,void 0,a().m((function t(){return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("restart_app")});case 1:return t.a(2)}}),t,this)})))}},{key:"getTimers",value:function(){return c(this,void 0,void 0,a().m((function t(){var e,r;return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_timers")});case 1:return e=t.v,r=e.timers,t.a(2,r)}}),t,this)})))}},{key:"setTimer",value:function(t,e,r,n,o){return c(this,void 0,void 0,a().m((function u(){var s,f,c,h;return a().w((function(a){for(;;)switch(a.p=a.n){case 0:if(void 0!==l.TimerType[t]){a.n=1;break}throw new Error("Invalid timer type");case 1:(0,d.default)({timeOn:e}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({timeOff:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({weekdays:n}).required().array("string"),(0,d.default)({volume:o}).required().number().min(0).max(100),s=i(n),a.p=2,s.s();case 3:if((f=s.n()).done){a.n=5;break}if(c=f.value,void 0!==l.TimerWeekday[c]){a.n=4;break}throw new Error("Invalid timer weekday");case 4:a.n=3;break;case 5:a.n=7;break;case 6:a.p=6,h=a.v,s.e(h);case 7:return a.p=7,s.f(),a.f(7);case 8:return a.n=9,this.postMessage({type:this.getMessage("set_timer"),timerType:t,timeOn:e,timeOff:r,weekdays:n,volume:o});case 9:return a.a(2)}}),u,this,[[2,6,7,8]])})))}},{key:"unsetTimer",value:function(t){return c(this,void 0,void 0,a().m((function e(){return a().w((function(e){for(;;)switch(e.n){case 0:return void 0===l.TimerType[t]&&console.warn("Invalid timer type"),e.n=1,this.setTimer(t,null,null,[],0);case 1:return e.a(2)}}),e,this)})))}},{key:"getProprietaryTimers",value:function(){return c(this,void 0,void 0,a().m((function t(){var e,r;return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_proprietary_timers")});case 1:return e=t.v,r=e.timers,t.a(2,r)}}),t,this)})))}},{key:"setProprietaryTimer",value:function(t,e,r,n){return c(this,arguments,void 0,(function(t,e,r,n){var o=this,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return a().m((function s(){var f,c,h,p;return a().w((function(a){for(;;)switch(a.p=a.n){case 0:(0,d.default)({type:t}).required().string().matchRegExp(/^TIMER_\d+$/),(0,d.default)({timeOn:e}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({timeOff:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,d.default)({weekdays:n}).required().array("string"),(0,d.default)({keepAppletRunning:u}).required().boolean(),f=i(n),a.p=1,f.s();case 2:if((c=f.n()).done){a.n=4;break}if(h=c.value,void 0!==l.TimerWeekday[h]){a.n=3;break}throw new Error("Invalid timer weekday");case 3:a.n=2;break;case 4:a.n=6;break;case 5:a.p=5,p=a.v,f.e(p);case 6:return a.p=6,f.f(),a.f(6);case 7:return a.n=8,o.postMessage({type:o.getMessage("set_proprietary_timer"),timerType:t,timeOn:e,timeOff:r,weekdays:n,keepAppletRunning:u});case 8:return a.a(2)}}),s,null,[[1,5,6,7]])}))()}))}},{key:"unsetProprietaryTimer",value:function(t){return c(this,void 0,void 0,a().m((function e(){return a().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.postMessage({type:this.getMessage("delete_proprietary_timer"),timerType:t});case 1:e.n=3;break;case 2:return e.p=2,e.v,e.n=3,this.setProprietaryTimer(t,null,null,[]);case 3:return e.a(2)}}),e,this,[[0,2]])})))}},{key:"clearScheduledReboots",value:function(){return c(this,void 0,void 0,a().m((function t(){return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("clear_scheduled_reboots")});case 1:return t.a(2)}}),t,this)})))}},{key:"getScheduledReboots",value:function(){return c(this,void 0,void 0,a().m((function t(){var e,r,n,o,u;return a().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_scheduled_reboots")});case 1:e=t.v,r=e.actions,n=i(r);try{for(n.s();!(o=n.n()).done;)(u=o.value).rule.weekdays=u.rule.weekdays.map((function(t){return(0,m.convertNumberToWeekday)(t)}))}catch(t){n.e(t)}finally{n.f()}return t.a(2,r)}}),t,this)})))}},{key:"removeScheduledReboot",value:function(t){return c(this,void 0,void 0,a().m((function e(){return a().w((function(e){for(;;)switch(e.n){case 0:return(0,d.default)({id:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("remove_scheduled_reboot"),id:t});case 1:return e.a(2)}}),e,this)})))}},{key:"setScheduledReboot",value:function(t,e){return c(this,void 0,void 0,a().m((function r(){var n,o,u,s,f,c;return a().w((function(r){for(;;)switch(r.p=r.n){case 0:(0,d.default)({weekdays:t}).required().array("string"),n=i(t),r.p=1,n.s();case 2:if((o=n.n()).done){r.n=4;break}if(u=o.value,void 0!==p.WeekdayNamed[u]){r.n=3;break}throw new Error("Invalid weekday");case 3:r.n=2;break;case 4:r.n=6;break;case 5:r.p=5,c=r.v,n.e(c);case 6:return r.p=6,n.f(),r.f(6);case 7:return s=t.map(m.convertWeekdayToNumber),(0,d.default)({time:e}).required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),f={weekdays:s,time:e},r.n=8,this.postMessage({type:this.getMessage("set_scheduled_reboot"),rule:f});case 8:return r.a(2)}}),r,this,[[1,5,6,7]])})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=v},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.TimerWeekday=e.TimerType=void 0,function(t){t[t.TIMER_1=0]="TIMER_1",t[t.TIMER_2=1]="TIMER_2",t[t.TIMER_3=2]="TIMER_3",t[t.TIMER_4=3]="TIMER_4",t[t.TIMER_5=4]="TIMER_5",t[t.TIMER_6=5]="TIMER_6",t[t.TIMER_7=6]="TIMER_7"}(n||(e.TimerType=n={})),function(t){t[t.sun=0]="sun",t[t.mon=1]="mon",t[t.tue=2]="tue",t[t.wed=3]="wed",t[t.thu=4]="thu",t[t.fri=5]="fri",t[t.sat=6]="sat"}(i||(e.TimerWeekday=i={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertWeekdayToNumber=function(t){return n.WeekdayNumbered[t]},e.convertNumberToWeekday=function(t){return n.WeekdayNumbered[t]};var n=r(244)},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"isEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("proxy_is_enabled")});case 1:return e=t.v,r=e.isEnabled,t.a(2,r)}}),t,this)})))}},{key:"setManual",value:function(t,e,r,n){return s(this,void 0,void 0,i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return i.n=1,this.postMessage({type:this.getMessage("proxy_set_manual"),uri:t,port:e,username:r,password:n});case 1:return i.a(2)}}),o,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("proxy_disable")});case 1:return t.a(2)}}),t,this)})))}},{key:"getConnectedTo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("proxy_get_connected_to")});case 1:return e=t.v,r=e.connectedTo,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"enable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setEnabled(!0);case 1:return t.a(2)}}),t,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setEnabled(!1);case 1:return t.a(2)}}),t,this)})))}},{key:"isEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_is_remote_control_enabled")});case 1:return e=t.v,r=e.isRemoteControlEnabled,t.a(2,r)}}),t,this)})))}},{key:"lock",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.disable();case 1:return t.a(2)}}),t,this)})))}},{key:"unlock",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.enable();case 1:return t.a(2)}}),t,this)})))}},{key:"isLocked",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.isEnabled();case 1:return t.a(2,!t.v)}}),t,this)})))}},{key:"setEnabled",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessage({type:this.getMessage("set_remote_control_enabled"),enabled:t});case 1:return e.a(2)}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(632),h=r(633),l=f(r(6)),d=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"resize",value:function(t,e,r,n,o){return s(this,void 0,void 0,i().m((function a(){return i().w((function(i){for(;;)switch(i.n){case 0:if((0,l.default)({baseUrl:t}).required().uri(),(0,l.default)({currentVersion:n}).required().string(),void 0!==c.Orientation[e]){i.n=1;break}throw new Error("Invalid orientation");case 1:if(void 0!==c.Resolution[r]){i.n=2;break}throw new Error("Invalid resolution");case 2:if(!o||void 0!==h.Orientation[o]){i.n=3;break}throw new Error("Invalid video orientation");case 3:return i.n=4,this.postMessage({type:this.getMessage("resize_screen"),baseUrl:t,orientation:e,resolution:r,currentVersion:n,videoOrientation:o});case 4:return i.a(2)}}),a,this)})))}},{key:"getOrientation",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_screen_orientation")});case 1:return e=t.v,r=e.screenOrientation,t.a(2,r)}}),t,this)})))}},{key:"setBrightness",value:function(t,e,r,n){return s(this,void 0,void 0,i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({brightness1:e}).required().number().min(0).max(100),(0,l.default)({brightness2:n}).required().number().min(0).max(100),(0,l.default)({timeFrom1:t}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}/).timerTime(),(0,l.default)({timeFrom2:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}/).timerTime(),i.n=1,this.postMessage({type:this.getMessage("set_screen_brightness"),timeFrom1:t,brightness1:e,timeFrom2:r,brightness2:n});case 1:return i.a(2)}}),o,this)})))}},{key:"getBrightness",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_screen_brightness")});case 1:return e=t.v,r=e.screenBrightness,t.a(2,r)}}),t,this)})))}},{key:"takeAndUploadScreenshot",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,o,a,u,s,f,c,h;return i().w((function(t){for(;;)switch(t.n){case 0:if("string"!=typeof e[0]||void 0!==e[1]){t.n=4;break}return r=e[0],(0,l.default)({uploadBaseUrl:r}).required().uri(),t.n=1,this.postMessage({type:this.getMessage("upload_screenshot"),uploadBaseUrl:r});case 1:if("string"!=typeof(o=t.v)){t.n=2;break}return t.a(2,o);case 2:if("object"!==n(o)||!("screenshotUrl"in o)){t.n=3;break}return a=o.screenshotUrl,t.a(2,a);case 3:t.n=6;break;case 4:return u=e[0],s=e[1],(0,l.default)({uploadBaseUrl:u}).required().uri(),(0,l.default)({computeHash:s}).boolean(),t.n=5,this.postMessage({type:this.getMessage("upload_screenshot"),uploadBaseUrl:u,computeHash:s});case 5:return f=t.v,c=f.screenshotUrl,h=f.aHash,t.a(2,{screenshotUrl:c,aHash:h});case 6:return t.a(2)}}),t,this)})))}},{key:"powerOn",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("power_on_display")});case 1:return t.a(2)}}),t,this)})))}},{key:"powerOff",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("power_off_display")});case 1:return t.a(2)}}),t,this)})))}},{key:"isPoweredOn",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_is_display_power_on")});case 1:return e=t.v,r=e.isDisplayPowerOn,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=d},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=e.Resolution=void 0,function(t){t[t.FULL_HD=0]="FULL_HD",t[t.HD_READY=1]="HD_READY"}(n||(e.Resolution=n={})),function(t){t[t.LANDSCAPE=0]="LANDSCAPE",t[t.PORTRAIT=1]="PORTRAIT",t[t.LANDSCAPE_FLIPPED=2]="LANDSCAPE_FLIPPED",t[t.PORTRAIT_FLIPPED=3]="PORTRAIT_FLIPPED",t[t.AUTO=4]="AUTO"}(i||(e.Orientation=i={}))},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=void 0,function(t){t[t.LANDSCAPE=0]="LANDSCAPE",t[t.LANDSCAPE_FLIPPED=1]="LANDSCAPE_FLIPPED"}(n||(e.Orientation=n={}))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(635),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getPinCode",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_pin_code")});case 1:return e=t.v,r=e.pinCode,t.a(2,r)}}),t,this)})))}},{key:"setPinCode",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,f.validatePinCode)(t),e.n=1,this.postMessage({type:this.getMessage("set_pin_code"),pinCode:t});case 1:return e.a(2)}}),e,this)})))}},{key:"generateRandomPinCode",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.setPinCode((0,f.generateRandomPin)());case 1:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomPin=function(){return Math.floor(1e4*Math.random()).toString().padStart(4,"0")},e.validatePinCode=function(t){if(!t.match(/^\d{4}$/))throw new i.default({kind:"appletSecurityError",message:"Invalid PIN code: ".concat(t),code:o.default.SECURITY_PIN_CODE_INVALID,suggestion:a.default.SECURITY_PIN_CODE_FORMAT})};var i=n(r(636)),o=n(r(44)),a=n(r(146))},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{pathToDocs:e.PATH_TO_DOCS,kind:"appletError",type:t.type?t.type:"AppletSecurityError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(f(r(57)).default);c.PATH_TO_DOCS="/sdk/management/js-management-security",e.default=c},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=r(638),l=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_current_time_with_timezone")});case 1:return e=t.v,r=e.currentTimeWithTimezone,t.a(2,r)}}),t,this)})))}},{key:"set",value:function(t,e){return this.setManual(t,e)}},{key:"setManual",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return s(this,void 0,void 0,i().m((function t(){var r,n;return i().w((function(t){for(;;)switch(t.n){case 0:return r=e[0],n=e[1],r instanceof Date?(0,c.default)({currentDate:r}).required().date():(0,c.default)({currentDate:r}).required().object(h.VDateTime),(0,c.default)({timezone:n}).required().string(),t.n=1,this.postMessage({type:this.getMessage("set_current_time_with_timezone"),currentDate:r,timezone:n});case 1:return t.a(2)}}),t,this)})))}},{key:"setNTP",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,c.default)({ntpServer:t}).required().string(),(0,c.default)({timezone:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("set_ntp_time_with_timezone"),ntpServer:t,timezone:e});case 1:return r.a(2)}}),r,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VDateTime=void 0,e.VDateTime={year:"number",month:"number",day:"number",hour:"number",minute:"number",second:"number"}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),h=r(640),l=f(r(6)),d=r(641),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"isClientEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_enabled")});case 1:return e=t.v,r=e.isWifiEnabled,t.a(2,r)}}),t,this)})))}},{key:"enableClient",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("enable")});case 1:return t.a(2)}}),t,this)})))}},{key:"isAPEnabled",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("is_ap_enabled")});case 1:return e=t.v,r=e.isWifiAPEnabled,t.a(2,r)}}),t,this)})))}},{key:"enableAP",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){return i().w((function(r){for(;;)switch(r.n){case 0:return(0,l.default)({ssid:t}).required().string(),(0,l.default)({password:e}).required().string(),r.n=1,this.postMessage({type:this.getMessage("enable_ap"),ssid:t,password:e});case 1:return r.a(2)}}),r,this)})))}},{key:"disable",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("disable")});case 1:return t.a(2)}}),t,this)})))}},{key:"getConnectedTo",value:function(){return s(this,void 0,void 0,i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_connected_to")});case 1:return e=t.v,t.a(2,e||null)}}),t,this)})))}},{key:"connect",value:function(t,e){return s(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().m((function o(){return i().w((function(i){for(;;)switch(i.n){case 0:return(0,l.default)({ssid:t}).required().string(),void 0!==e&&(0,l.default)({password:e}).string(),(0,l.default)({options:n}).object(d.VIWifiConnectOptions),i.n=1,r.postMessage({type:r.getMessage("connect"),ssid:t,password:e,options:n});case 1:return i.a(2)}}),o)}))()}))}},{key:"disconnect",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("disconnect")});case 1:return t.a(2)}}),t,this)})))}},{key:"getCountry",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_country")});case 1:return e=t.v,r=e.countryCode,t.a(2,r||null)}}),t,this)})))}},{key:"setCountry",value:function(t){return s(this,void 0,void 0,i().m((function e(){return i().w((function(e){for(;;)switch(e.n){case 0:return(0,l.default)({countryCode:t}).required().string(),e.n=1,this.postMessage({type:this.getMessage("set_country"),countryCode:t});case 1:return e.a(2)}}),e,this)})))}},{key:"scanDevices",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("scan")});case 1:return e=t.v,r=e.devices,t.a(2,r)}}),t,this)})))}},{key:"on",value:function(t,e){this.eventEmitter.on(t,e)}},{key:"once",value:function(t,e){this.eventEmitter.once(t,e)}},{key:"removeListener",value:function(t,e){this.eventEmitter.removeListener(t,e)}},{key:"removeAllListeners",value:function(t){t?this.eventEmitter.removeAllListeners(t):this.eventEmitter.removeAllListeners()}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("event_"+h.WifiEvent.CLIENT_ENABLED):case this.getMessage("event_"+h.WifiEvent.CLIENT_CONNECTED):case this.getMessage("event_"+h.WifiEvent.CLIENT_CONNECT_REJECTED):case this.getMessage("event_"+h.WifiEvent.CLIENT_DISCONNECTED):case this.getMessage("event_"+h.WifiEvent.AP_ENABLED):case this.getMessage("event_"+h.WifiEvent.DISABLED):var e=this.getMessage("event_"),r=t.type.substring(e.length);this.eventEmitter.emit(r)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();p.MESSAGE_PREFIX="wifi",e.default=p},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WifiEvent=void 0,function(t){t.CLIENT_ENABLED="client_enabled",t.CLIENT_CONNECTED="client_connected",t.CLIENT_CONNECT_REJECTED="client_connect_rejected",t.CLIENT_DISCONNECTED="client_disconnected",t.AP_ENABLED="ap_enabled",t.DISABLED="disabled"}(n||(e.WifiEvent=n={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIWifiConnectOptions=void 0,e.VIWifiConnectOptions={hidden:"?boolean",securityType:"?string",eap:{method:"string",identity:"string",anonymousIdentity:"?string",passphrase:"string",phase2Auth:"?string",useCACert:"?boolean"}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"getList",value:function(){return s(this,void 0,void 0,i().m((function t(){var e,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("get_list")});case 1:return e=t.v,r=e.monitors,t.a(2,r)}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="monitors",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(644)),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.proximity=new u.default(this.getMessagePrefix())}return e=t,(r=[{key:"handleMessageData",value:function(t){this.proximity.handleMessageData(t)}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="sensors",e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(14),s=a(r(6)),f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.lastDetected=!1,this.eventEmitter=new u.EventEmitter}return e=t,(r=[{key:"onStateChange",value:function(t){var e=this;return(0,s.default)({callback:t}).required().function(),this.lastDetected&&t(this.lastDetected),this.eventEmitter.addListener("change",t),function(){e.eventEmitter.removeListener("change",t)}}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("change"):t.detected!==this.lastDetected&&(this.lastDetected=t.detected,this.eventEmitter.emit("change",t.detected))}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="proximity",e.default=f},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createExchange=function t(e,r){var i=this,a=function(t){return[e,t].join(".")};return{messageNameToType:a,postMessage:function(t){return o(i,void 0,void 0,n().m((function e(){var i;return n().w((function(e){for(;;)switch(e.n){case 0:return i=a(t.type),t=Object.assign(Object.assign({},t),{type:i}),e.a(2,r(t))}}),e)})))},createNamespaced:function(e){return t(a(e),r)}}}},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"showOSD",value:function(){return s(this,void 0,void 0,i().m((function t(){return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.postMessage({type:this.getMessage("show_osd")});case 1:return t.a(2)}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="osd",e.default=f},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=f(r(648)),l=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.commandApi=e},(e=[{key:"recordItemPlayed",value:function(t){return s(this,void 0,void 0,i().m((function e(){var r,n,o,a,u,s,f;return i().w((function(e){for(;;)switch(e.n){case 0:return r=t.name,n=t.customId,o=t.type,a=t.tags,u=t.fileName,s=t.playbackSuccess,f=t.errorMessage,(0,c.default)({name:r}).required().string(),(0,c.default)({customId:n}).string(),(0,c.default)({type:o}).string(["video","image","html","custom"]),(0,c.default)({tags:a}).array("string"),(0,c.default)({fileName:u}).string(),(0,c.default)({playbackSuccess:s}).boolean(),(0,c.default)({errorMessage:f}).string(),e.n=1,this.commandApi.dispatch({type:h.default.ItemPlayed,itemName:r,customId:n,itemType:o,itemTags:a,fileName:u,playbackSuccess:s,errorMessage:f});case 1:return e.a(2)}}),e,this)})))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ItemPlayed="PoP.ItemPlayed"}(n||(n={})),e.default=n},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(650)),s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.mdc=new u.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="native_commands",e.default=s},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,i,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return o(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,i,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(o(e={},n,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,o(d,"constructor",h),o(h,"constructor",c),c.displayName="GeneratorFunction",o(h,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,n,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:p}})()}function o(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,e,r,n){function a(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=f(r(6)),h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"sendOne",value:function(t,e,r){return s(this,void 0,void 0,i().m((function n(){var o,a;return i().w((function(n){for(;;)switch(n.n){case 0:return(0,c.default)({ipAddress:t}).required().string(),(0,c.default)({command:e}).required().number(),void 0!==r&&(0,c.default)({data:r}).required().array("number"),void 0===r&&(r=[]),n.n=1,this.postMessage({type:this.getMessage("send_one"),ipAddress:t,command:e,data:r});case 1:return o=n.v,a=o.commandResponse,n.a(2,a)}}),n,this)})))}},{key:"sendOneRaw",value:function(t,e){return s(this,void 0,void 0,i().m((function r(){var n,o;return i().w((function(r){for(;;)switch(r.n){case 0:return(0,c.default)({ipAddress:t}).required().string(),(0,c.default)({data:e}).required().array("number"),r.n=1,this.postMessage({type:this.getMessage("send_one_raw"),ipAddress:t,data:e});case 1:return n=r.v,o=n.commandResponse,r.a(2,o)}}),r,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();h.MESSAGE_PREFIX="mdc",e.default=h},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a,u=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),f=this&&this.__importStar||(a=function(t){return(a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=a(t),n=0;n<r.length;n++)"default"!==r[n]&&u(e,t,r[n]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0});var c=r(245),h=f(r(652)),l=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.connectedBaseUrl=null,this.errorsMap={},this.polyfillErrorWithStack(),this.polyfillErrorEvent(),this.interceptConsoleLogging(),this.bindErrorHandling()}return e=t,(r=[{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("update"):this.updateConnectedBaseUrl(t.connectedBaseUrl)}}},{key:"updateConnectedBaseUrl",value:function(t){this.connectedBaseUrl=t}},{key:"interceptConsoleLogging",value:function(){var t=this;(0,c.enhanceStandardConsoleLogging)((function(e){if(t.connectedBaseUrl){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=n.map((function(t){return h.inspect(t,!0,5,!1)}));fetch("".concat(t.connectedBaseUrl,"/log"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:e,args:o})})}}))}},{key:"bindErrorHandling",value:function(){var t=this;this.window.addEventListener("error",(function(e){t.connectedBaseUrl&&fetch("".concat(t.connectedBaseUrl,"/error"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error:h.inspect(e.error,!0,5,!1)})})}))}},{key:"polyfillErrorWithStack",value:function(){if(void 0===new Error("test").stack){var t=Error,e=this.pushError.bind(this),r=function(n){if(!(this instanceof r))return new r(n);var i;this.name="Error";try{throw new t}catch(t){i=t.stack}this.constructor=r,this.message=n,this.stack=i,e(this)};r.prototype=t.prototype,this.window.Error=r}}},{key:"polyfillErrorEvent",value:function(){var t=this;this.window.addEventListener("error",(function(e){if(void 0===e.error){var r=Object.keys(t.errorsMap).find((function(t){return-1!==e.message.indexOf(t)}));if(r){var n=t.errorsMap[r];delete t.errorsMap[r],e.error=n,console.warn("Error was polyfilled with not exact algorithm and may not be accurate",n)}}}))}},{key:"pushError",value:function(t){this.errorsMap[t.message]=t;var e=Object.keys(this.errorsMap);if(e.length>50){var r=e[0];delete this.errorsMap[r]}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();l.MESSAGE_PREFIX="connect",e.default=l},function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])m(s)||!w(s)?a+=" "+s:a+=" "+u(s);return a},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var o,a={};function u(t,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&e._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),c(n,t,n.depth)}function s(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function f(t,e){return t}function c(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return y(i)||(i=c(t,i,n)),i}var o=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),_(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(S(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return h(r)}var f,w="",O=!1,E=["{","}"];(d(r)&&(O=!0,E=["[","]"]),S(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(w=" "+RegExp.prototype.toString.call(r)),M(r)&&(w=" "+Date.prototype.toUTCString.call(r)),_(r)&&(w=" "+h(r)),0!==a.length||O&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),f=O?function(t,e,r,n,i){for(var o=[],a=0,u=e.length;a<u;++a)j(e,String(a))?o.push(l(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(l(t,e,r,n,i,!0))})),o}(t,r,n,u,a):a.map((function(e){return l(t,r,n,u,e,O)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(f,w,E)):E[0]+w+E[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),u||(t.seen.indexOf(s.value)<0?(u=m(r)?c(t,s.value,null):c(t,s.value,r-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function g(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===O(t)}function w(t){return"object"==typeof t&&null!==t}function M(t){return w(t)&&"[object Date]"===O(t)}function _(t){return w(t)&&("[object Error]"===O(t)||t instanceof Error)}function S(t){return"function"==typeof t}function O(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(g(o)&&(o=t.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=t.pid;a[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else a[r]=function(){};return a[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=b,e.isObject=w,e.isDate=M,e.isError=_,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(653);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=r(654),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(R&&t[R]){var e;if("function"!=typeof(e=t[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),R&&Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=R,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(A,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this,r(22))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}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})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var f=r(656),c=r(657),h=r(659),l=r(661),d=r(663),p=r(665),m=r(667),v=r(669),y=r(671),g=r(673),b=r(674),w=r(676),M=r(678),_=r(680),S=r(682),O=r(684),E=r(686),k=r(688),P=r(690),j=r(692),R=r(694),A=r(696),x=r(698),T=r(245),I=r(700),F=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.frontApplet=e,this.interceptConsoleLogging(),this.handleTimingLoaded(),(0,k.handleMonitoringRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,h.handleHtmlSnapshotTakingRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,l.handleOfflineCacheRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,d.handleVideoRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,c.handleFileSystemRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,p.handleOSDRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,m.handleManagementApplicationRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,v.handleManagementPowerRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,y.handleDisplayRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,b.handleManagementRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,w.handleManagementScreenRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,M.handleManagementSecurityRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,_.handleManagementAudioRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,S.handleManagementRemoteControlRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,O.handleManagementDebugRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,E.handleManagementOsRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,P.handleManagementTimeCommands)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,j.handleManagementNativeCommandsMdcRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,R.handleManagementNetworkRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,A.handleManagementPeerRecoveryRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,x.handleManagementAutoRecoveryRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,I.handleDeviceInfoRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet)},(e=[{key:"onCommand",value:function(t){var e=this;this.frontApplet.command.onCommand((function(r){"object"===o(e.frontApplet.config)&&e.frontApplet.config.sosMonitoring&&t(r)}))}},{key:"dispatch",value:function(t){return s(this,void 0,void 0,n().m((function e(){return n().w((function(e){for(;;)switch(e.n){case 0:if("object"!==o(this.frontApplet.config)||!this.frontApplet.config.sosMonitoring){e.n=1;break}return e.n=1,this.frontApplet.command.dispatch(t);case 1:return e.a(2)}}),e,this)})))}},{key:"handleTimingLoaded",value:function(){return s(this,void 0,void 0,n().m((function t(){return n().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.frontApplet.onReady();case 1:return t.n=2,this.dispatch({type:f.TimingLoaded});case 2:return t.a(2)}}),t,this)})))}},{key:"interceptConsoleLogging",value:function(){var t=this;(0,T.enhanceStandardConsoleLogging)((function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.dispatch({type:g.ConsoleLogged,level:e,messages:n})}))}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=F},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimingLoaded=void 0,e.TimingLoaded="sos.Monitoring.Timing.TimingLoaded"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleFileSystemRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v,y,g,b,w,M,_,S,O,E,k,P,j,R,A;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.FileSystemListOfStorageUnitsRequest?1:o===a.FileSystemListOfInternalStorageUnitsRequest?4:o===a.FileSystemListFilesRequest?7:o===a.FileSystemGetFileRequest?10:o===a.FileSystemExistsRequest?13:o===a.FileSystemDownloadFileRequest?16:o===a.FileSystemDeleteFileRequest?19:o===a.FileSystemMoveFileRequest?22:o===a.FileSystemGetFileChecksumRequest?25:o===a.FileSystemExtractFileRequest?28:o===a.FileSystemCreateDirectoryRequest?31:o===a.FileSystemCreateArchiveFileRequest?34:o===a.FileSystemIsDirectoryRequest?37:o===a.FileSystemCopyFileRequest?40:o===a.FileSystemWriteFileRequest?43:o===a.FileSystemAppendFileRequest?46:o===a.FileSystemReadFileRequest?49:o===a.FileSystemWipeoutRequest?52:o===a.FileSystemLinkRequest?55:58;break;case 1:return u=e,s=a.FileSystemListOfStorageUnitsResult,n.n=2,r.fileSystem.listStorageUnits();case 2:return f=n.v,n.n=3,u({type:s,storageUnits:f});case 3:return n.a(3,58);case 4:return c=e,h=a.FileSystemListOfInternalStorageUnitsResult,n.n=5,r.fileSystem.listInternalStorageUnits();case 5:return l=n.v,n.n=6,c({type:h,storageUnits:l});case 6:return n.a(3,58);case 7:return d=e,p=a.FileSystemListFilesResult,n.n=8,r.fileSystem.listFiles(t.command.filePath);case 8:return m=n.v,n.n=9,d({type:p,pathList:m});case 9:return n.a(3,58);case 10:return v=e,y=a.FileSystemGetFileResult,n.n=11,r.fileSystem.getFile(t.command.filePath);case 11:return g=n.v,n.n=12,v({type:y,file:g});case 12:return n.a(3,58);case 13:return b=e,w=a.FileSystemExistsResult,n.n=14,r.fileSystem.exists(t.command.filePath);case 14:return M=n.v,n.n=15,b({type:w,result:M});case 15:return n.a(3,58);case 16:return n.n=17,r.fileSystem.downloadFile(t.command.filePath,t.command.sourceUri,t.command.headers);case 17:return n.n=18,e({type:a.FileSystemDownloadFileResult,result:{}});case 18:return n.a(3,58);case 19:return n.n=20,r.fileSystem.deleteFile(t.command.filePath,t.command.recursive);case 20:return n.n=21,e({type:a.FileSystemDeleteFileResult,result:{}});case 21:return n.a(3,58);case 22:return n.n=23,r.fileSystem.moveFile(t.command.sourceFilePath,t.command.destinationFilePath,t.command.options);case 23:return n.n=24,e({type:a.FileSystemMoveFileResult,result:{}});case 24:return n.a(3,58);case 25:return _=e,S=a.FileSystemGetFileChecksumResult,n.n=26,r.fileSystem.getFileChecksum(t.command.filePath,t.command.hashType);case 26:return O=n.v,n.n=27,_({type:S,result:O});case 27:return n.a(3,58);case 28:return n.n=29,r.fileSystem.extractFile(t.command.archiveFilePath,t.command.destinationDirectionPath,t.command.method);case 29:return n.n=30,e({type:a.FileSystemExtractFileResult,result:{}});case 30:return n.a(3,58);case 31:return n.n=32,r.fileSystem.createDirectory(t.command.directoryPath);case 32:return n.n=33,e({type:a.FileSystemCreateDirectoryResult,result:{}});case 33:return n.a(3,58);case 34:return n.n=35,r.fileSystem.createArchive(t.command.archiveFilePath,t.command.archiveEntries);case 35:return n.n=36,e({type:a.FileSystemCreateArchiveFileResult,result:{}});case 36:return n.a(3,58);case 37:return E=e,k=a.FileSystemIsDirectoryResult,n.n=38,r.fileSystem.isDirectory(t.command.filePath);case 38:return P=n.v,n.n=39,E({type:k,result:P});case 39:return n.a(3,58);case 40:return n.n=41,r.fileSystem.copyFile(t.command.sourceFilePath,t.command.destinationFilePath,t.command.options);case 41:return n.n=42,e({type:a.FileSystemCopyFileResult,result:{}});case 42:return n.a(3,58);case 43:return n.n=44,r.fileSystem.writeFile(t.command.filePath,t.command.content);case 44:return n.n=45,e({type:a.FileSystemWriteFileResult,result:{}});case 45:return n.a(3,58);case 46:return n.n=47,r.fileSystem.appendFile(t.command.filePath,t.command.content);case 47:return n.n=48,e({type:a.FileSystemAppendFileResult,result:{}});case 48:return n.a(3,58);case 49:return j=e,R=a.FileSystemReadFileResult,n.n=50,r.fileSystem.readFile(t.command.filePath);case 50:return A=n.v,n.n=51,j({type:R,data:A});case 51:return n.a(3,58);case 52:return n.n=53,r.fileSystem.wipeout();case 53:return n.n=54,e({type:a.FileSystemWipeoutResult,result:{}});case 54:return n.a(3,58);case 55:return n.n=56,r.fileSystem.link(t.command.sourceFilePath,t.command.destinationFilePath);case 56:return n.n=57,e({type:a.FileSystemLinkResult,result:{}});case 57:return n.a(3,58);case 58:return n.a(2)}}),i)})))}))};var a=r(658)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileSystemLinkResult=e.FileSystemLinkRequest=e.FileSystemWipeoutResult=e.FileSystemWipeoutRequest=e.FileSystemAppendFileResult=e.FileSystemAppendFileRequest=e.FileSystemGetFileResult=e.FileSystemGetFileRequest=e.FileSystemExtractFileResult=e.FileSystemCreateArchiveFileResult=e.FileSystemCreateArchiveFileRequest=e.FileSystemExtractFileRequest=e.FileSystemGetFileChecksumResult=e.FileSystemGetFileChecksumRequest=e.FileSystemCopyFileResult=e.FileSystemCopyFileRequest=e.FileSystemMoveFileResult=e.FileSystemMoveFileRequest=e.FileSystemReadFileResult=e.FileSystemReadFileRequest=e.FileSystemWriteFileResult=e.FileSystemWriteFileRequest=e.FileSystemDownloadFileResult=e.FileSystemDownloadFileRequest=e.FileSystemCreateDirectoryResult=e.FileSystemCreateDirectoryRequest=e.FileSystemDeleteFileResult=e.FileSystemDeleteFileRequest=e.FileSystemExistsResult=e.FileSystemExistsRequest=e.FileSystemIsDirectoryResult=e.FileSystemIsDirectoryRequest=e.FileSystemListFilesResult=e.FileSystemListFilesRequest=e.FileSystemListOfInternalStorageUnitsResult=e.FileSystemListOfInternalStorageUnitsRequest=e.FileSystemListOfStorageUnitsResult=e.FileSystemListOfStorageUnitsRequest=void 0,e.FileSystemListOfStorageUnitsRequest="sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsRequest",e.FileSystemListOfStorageUnitsResult="sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsResult",e.FileSystemListOfInternalStorageUnitsRequest="sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsRequest",e.FileSystemListOfInternalStorageUnitsResult="sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsResult",e.FileSystemListFilesRequest="sos.Monitoring.FileSystem.FileSystemListFilesRequest",e.FileSystemListFilesResult="sos.Monitoring.FileSystem.FileSystemListFilesResult",e.FileSystemIsDirectoryRequest="sos.Monitoring.FileSystem.FileSystemIsDirectoryRequest",e.FileSystemIsDirectoryResult="sos.Monitoring.FileSystem.FileSystemIsDirectoryResult",e.FileSystemExistsRequest="sos.Monitoring.FileSystem.FileSystemExistsRequest",e.FileSystemExistsResult="sos.Monitoring.FileSystem.FileSystemExistsResult",e.FileSystemDeleteFileRequest="sos.Monitoring.FileSystem.FileSystemDeleteFileRequest",e.FileSystemDeleteFileResult="sos.Monitoring.FileSystem.FileSystemDeleteFileResult",e.FileSystemCreateDirectoryRequest="sos.Monitoring.FileSystem.FileSystemCreateDirectoryRequest",e.FileSystemCreateDirectoryResult="sos.Monitoring.FileSystem.FileSystemCreateDirectoryResult",e.FileSystemDownloadFileRequest="sos.Monitoring.FileSystem.FileSystemDownloadFileRequest",e.FileSystemDownloadFileResult="sos.Monitoring.FileSystem.FileSystemDownloadFileResult",e.FileSystemWriteFileRequest="sos.Monitoring.FileSystem.FileSystemWriteFileRequest",e.FileSystemWriteFileResult="sos.Monitoring.FileSystem.FileSystemWriteFileResult",e.FileSystemReadFileRequest="sos.Monitoring.FileSystem.FileSystemReadFileRequest",e.FileSystemReadFileResult="sos.Monitoring.FileSystem.FileSystemReadFileResult",e.FileSystemMoveFileRequest="sos.Monitoring.FileSystem.FileSystemMoveFileRequest",e.FileSystemMoveFileResult="sos.Monitoring.FileSystem.FileSystemMoveFileResult",e.FileSystemCopyFileRequest="sos.Monitoring.FileSystem.FileSystemCopyFileRequest",e.FileSystemCopyFileResult="sos.Monitoring.FileSystem.FileSystemCopyFileResult",e.FileSystemGetFileChecksumRequest="sos.Monitoring.FileSystem.FileSystemGetFileChecksumRequest",e.FileSystemGetFileChecksumResult="sos.Monitoring.FileSystem.FileSystemGetFileChecksumResult",e.FileSystemExtractFileRequest="sos.Monitoring.FileSystem.FileSystemExtractFileRequest",e.FileSystemCreateArchiveFileRequest="sos.Monitoring.FileSystem.FileSystemCreateArchiveFileRequest",e.FileSystemCreateArchiveFileResult="sos.Monitoring.FileSystem.FileSystemCreateArchiveFileResult",e.FileSystemExtractFileResult="sos.Monitoring.FileSystem.FileSystemExtractFileResult",e.FileSystemGetFileRequest="sos.Monitoring.FileSystem.FileSystemGetFileRequest",e.FileSystemGetFileResult="sos.Monitoring.FileSystem.FileSystemGetFileResult",e.FileSystemAppendFileRequest="sos.Monitoring.FileSystem.FileSystemAppendFileRequest",e.FileSystemAppendFileResult="sos.Monitoring.FileSystem.FileSystemAppendFileResult",e.FileSystemWipeoutRequest="sos.Monitoring.FileSystem.FileSystemWipeoutRequest",e.FileSystemWipeoutResult="sos.Monitoring.FileSystem.FileSystemWipeoutResult",e.FileSystemLinkRequest="sos.Monitoring.FileSystem.FileSystemLinkRequest",e.FileSystemLinkResult="sos.Monitoring.FileSystem.FileSystemLinkResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleHtmlSnapshotTakingRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.TakeHtmlSnapshot?1:3;break;case 1:return n.n=2,e({type:a.HtmlSnapshotTaken,html:r.window.document.documentElement.outerHTML});case 2:return n.a(3,3);case 3:return n.a(2)}}),i)})))}))};var a=r(660)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlSnapshotTaken=e.TakeHtmlSnapshot=void 0,e.TakeHtmlSnapshot="sos.Html.TakeHtmlSnapshot",e.HtmlSnapshotTaken="sos.Monitoring.Html.HtmlSnapshotTaken"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleOfflineCacheRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v,y,g,b,w,M,_,S,O,E,k,P;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.OfflineCacheListFiles?1:o===a.OfflineCacheLoadFile?4:o===a.OfflineCacheGetChecksumRequest?7:o===a.OfflineCacheValidateChecksumRequest?10:o===a.OfflineCacheLoadOrSaveFileRequest?13:o===a.OfflineCacheDeleteFileRequest?16:o===a.OfflineCacheListContentRequest?19:o===a.OfflineCacheLoadContentRequest?22:o===a.OfflineCacheSaveContentRequest?25:o===a.OfflineCacheDeleteContentRequest?28:31;break;case 1:return u=e,s=a.OfflineCacheFilesListed,n.n=2,r.offline.cache.listFiles();case 2:return f=n.v,n.n=3,u({type:s,fileUids:f});case 3:return n.a(3,31);case 4:return c=e,h=a.OfflineCacheFileLoaded,n.n=5,r.offline.cache.loadFile(t.command.uid);case 5:return l=n.v,n.n=6,c({type:h,file:l});case 6:return n.a(3,31);case 7:return d=e,p=a.OfflineCacheGetChecksumResult,n.n=8,r.offline.cache.getChecksumFile(t.command.uid,t.command.hashType);case 8:return m=n.v,n.n=9,d({type:p,result:m});case 9:return n.a(3,31);case 10:return v=e,y=a.OfflineCacheValidateChecksumResult,n.n=11,r.offline.cache.validateChecksumFile(t.command.uid,t.command.hash,t.command.hashType);case 11:return g=n.v,n.n=12,v({type:y,result:g});case 12:return n.a(3,31);case 13:return b=e,w=a.OfflineCacheLoadOrSaveFileResult,n.n=14,r.offline.cache.loadOrSaveFile(t.command.uid,t.command.uri,t.command.headers);case 14:return M=n.v,n.n=15,b({type:w,file:M});case 15:return n.a(3,31);case 16:return n.n=17,r.offline.cache.deleteFile(t.command.uid);case 17:return n.n=18,e({type:a.OfflineCacheDeleteFileResult,result:{}});case 18:return n.a(3,31);case 19:return _=e,S=a.OfflineCacheListContentResult,n.n=20,r.offline.cache.listContents();case 20:return O=n.v,n.n=21,_({type:S,result:O});case 21:return n.a(3,31);case 22:return E=e,k=a.OfflineCacheLoadContentResult,n.n=23,r.offline.cache.loadContent(t.command.uid);case 23:return P=n.v,n.n=24,E({type:k,result:P});case 24:return n.a(3,31);case 25:return n.n=26,r.offline.cache.saveContent(t.command.uid,t.command.content);case 26:return n.n=27,e({type:a.OfflineCacheSaveContentResult,result:{}});case 27:return n.a(3,31);case 28:return n.n=29,r.offline.cache.deleteContent(t.command.uid);case 29:return n.n=30,e({type:a.OfflineCacheDeleteContentResult,result:{}});case 30:return n.a(3,31);case 31:return n.a(2)}}),i)})))}))};var a=r(662)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OfflineCacheDeleteContentResult=e.OfflineCacheDeleteContentRequest=e.OfflineCacheSaveContentResult=e.OfflineCacheSaveContentRequest=e.OfflineCacheLoadContentResult=e.OfflineCacheLoadContentRequest=e.OfflineCacheListContentResult=e.OfflineCacheListContentRequest=e.OfflineCacheDeleteFileResult=e.OfflineCacheDeleteFileRequest=e.OfflineCacheLoadOrSaveFileResult=e.OfflineCacheLoadOrSaveFileRequest=e.OfflineCacheValidateChecksumResult=e.OfflineCacheValidateChecksumRequest=e.OfflineCacheGetChecksumResult=e.OfflineCacheGetChecksumRequest=e.OfflineCacheFileLoaded=e.OfflineCacheLoadFile=e.OfflineCacheFilesListed=e.OfflineCacheListFiles=void 0,e.OfflineCacheListFiles="sos.Monitoring.Offline.Cache.OfflineCacheListFiles",e.OfflineCacheFilesListed="sos.Monitoring.Offline.Cache.OfflineCacheFilesListed",e.OfflineCacheLoadFile="sos.Monitoring.Offline.Cache.OfflineCacheLoadFile",e.OfflineCacheFileLoaded="sos.Monitoring.Offline.Cache.OfflineCacheFileLoaded",e.OfflineCacheGetChecksumRequest="sos.Monitoring.Offline.Cache.OfflineCacheGetChecksumRequest",e.OfflineCacheGetChecksumResult="sos.Monitoring.Offline.Cache.OfflineCacheGetChecksumResult",e.OfflineCacheValidateChecksumRequest="sos.Monitoring.Offline.Cache.OfflineCacheValidateChecksumRequest",e.OfflineCacheValidateChecksumResult="sos.Monitoring.Offline.Cache.OfflineCacheValidateChecksumResult",e.OfflineCacheLoadOrSaveFileRequest="sos.Monitoring.Offline.Cache.OfflineCacheLoadOrSaveFileRequest",e.OfflineCacheLoadOrSaveFileResult="sos.Monitoring.Offline.Cache.OfflineCacheLoadOrSaveFileResult",e.OfflineCacheDeleteFileRequest="sos.Monitoring.Offline.Cache.OfflineCacheDeleteFileRequest",e.OfflineCacheDeleteFileResult="sos.Monitoring.Offline.Cache.OfflineCacheDeleteFileResult",e.OfflineCacheListContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheListContentRequest",e.OfflineCacheListContentResult="sos.Monitoring.Offline.Cache.OfflineCacheListContentResult",e.OfflineCacheLoadContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheLoadContentRequest",e.OfflineCacheLoadContentResult="sos.Monitoring.Offline.Cache.OfflineCacheLoadContentResult",e.OfflineCacheSaveContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheSaveContentRequest",e.OfflineCacheSaveContentResult="sos.Monitoring.Offline.Cache.OfflineCacheSaveContentResult",e.OfflineCacheDeleteContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheDeleteContentRequest",e.OfflineCacheDeleteContentResult="sos.Monitoring.Offline.Cache.OfflineCacheDeleteContentResult"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.handleVideoRequests=function(t,e,r){r.video.onPlay((function(t){e(Object.assign({type:n.VideoStateChanged,state:"play"},t.srcArguments))})),r.video.onPrepare((function(t){e(Object.assign({type:n.VideoStateChanged,state:"prepare"},t.srcArguments))})),r.video.onStop((function(t){e(Object.assign({type:n.VideoStateChanged,state:"stop"},t.srcArguments))})),r.video.onPause((function(t){e(Object.assign({type:n.VideoStateChanged,state:"pause"},t.srcArguments))})),r.video.onResume((function(t){e(Object.assign({type:n.VideoStateChanged,state:"resume"},t.srcArguments))})),r.video.onEnded((function(t){e(Object.assign({type:n.VideoStateChanged,state:"ended"},t.srcArguments))})),r.video.onError((function(t){e(Object.assign({type:n.VideoStateChanged,state:"error"},t.srcArguments))}))};var n=r(664)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VideoStateChanged=void 0,e.VideoStateChanged="sos.Monitoring.Video.VideoStateChanged"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleOSDRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ShowOSDRequest?1:4;break;case 1:return n.n=2,r.osd.showOSD();case 2:return n.n=3,e({type:a.ShowOSDResult,result:{}});case 3:return n.a(3,4);case 4:return n.a(2)}}),i)})))}))};var a=r(666)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowOSDResult=e.ShowOSDRequest=void 0,e.ShowOSDRequest="sos.Monitoring.OSD.ShowOSDRequest",e.ShowOSDResult="sos.Monitoring.OSD.ShowOSDResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementApplicationRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ApplicationGetTypeRequest?1:o===a.ApplicationGetVersionRequest?4:o===a.ApplicationUpgradeRequest?7:10;break;case 1:return u=e,s=a.ApplicationGetTypeResult,n.n=2,r.management.app.getType();case 2:return f=n.v,n.n=3,u({type:s,applicationType:f});case 3:return n.a(3,10);case 4:return c=e,h=a.ApplicationGetVersionResult,n.n=5,r.management.app.getVersion();case 5:return l=n.v,n.n=6,c({type:h,version:l});case 6:return n.a(3,10);case 7:return n.n=8,e({type:a.ApplicationUpgradeResult,result:{}});case 8:return n.n=9,r.management.app.upgrade(t.command.version,t.command.baseUrl);case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(668)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplicationUpgradeResult=e.ApplicationUpgradeRequest=e.ApplicationGetVersionResult=e.ApplicationGetVersionRequest=e.ApplicationGetTypeResult=e.ApplicationGetTypeRequest=void 0,e.ApplicationGetTypeRequest="sos.Monitoring.App.ApplicationGetTypeRequest",e.ApplicationGetTypeResult="sos.Monitoring.App.ApplicationGetTypeResult",e.ApplicationGetVersionRequest="sos.Monitoring.App.ApplicationGetVersionRequest",e.ApplicationGetVersionResult="sos.Monitoring.App.ApplicationGetVersionResult",e.ApplicationUpgradeRequest="sos.Monitoring.App.ApplicationUpgradeRequest",e.ApplicationUpgradeResult="sos.Monitoring.App.ApplicationUpgradeResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementPowerRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.PowerSystemRebootRequest?1:o===a.PowerAppRestartRequest?4:o===a.ManagementPowerGetTimersRequest?7:o===a.ManagementPowerSetTimerRequest?10:o===a.ManagementPowerUnsetTimerRequest?13:o===a.ManagementPowerGetProprietaryTimersRequest?16:o===a.ManagementPowerSetProprietaryTimerRequest?19:o===a.ManagementPowerUnsetProprietaryTimerRequest?22:o===a.ManagementPowerClearScheduledRebootsRequest?25:o===a.ManagementPowerGetScheduledRebootsRequest?28:o===a.ManagementPowerRemoveScheduledRebootRequest?31:o===a.ManagementPowerSetScheduledRebootRequest?34:37;break;case 1:return n.n=2,e({type:a.PowerSystemRebootResult,result:{}});case 2:return n.n=3,r.management.power.systemReboot();case 3:return n.a(3,37);case 4:return n.n=5,e({type:a.PowerAppRestartResult,result:{}});case 5:return n.n=6,r.management.power.appRestart();case 6:return n.a(3,37);case 7:return u=e,s=a.ManagementPowerGetTimersResult,n.n=8,r.management.power.getTimers();case 8:return f=n.v,n.n=9,u({type:s,timers:f});case 9:return n.a(3,37);case 10:return n.n=11,r.management.power.setTimer(t.command.timerType,t.command.timeOn,t.command.timeOff,t.command.weekdays,t.command.volume);case 11:return n.n=12,e({type:a.ManagementPowerSetTimerResult,result:{}});case 12:return n.a(3,37);case 13:return n.n=14,r.management.power.unsetTimer(t.command.timerType);case 14:return n.n=15,e({type:a.ManagementPowerUnsetTimerResult,result:{}});case 15:return n.a(3,37);case 16:return c=e,h=a.ManagementPowerGetProprietaryTimersResult,n.n=17,r.management.power.getProprietaryTimers();case 17:return l=n.v,n.n=18,c({type:h,result:l});case 18:return n.a(3,37);case 19:return n.n=20,r.management.power.setProprietaryTimer(t.command.timerType,t.command.timeOn,t.command.timeOff,t.command.weekdays,t.command.keepAppletRunning);case 20:return n.n=21,e({type:a.ManagementPowerSetProprietaryTimerResult,result:{}});case 21:return n.a(3,37);case 22:return n.n=23,r.management.power.unsetProprietaryTimer(t.command.timerType);case 23:return n.n=24,e({type:a.ManagementPowerUnsetProprietaryTimerResult,result:{}});case 24:return n.a(3,37);case 25:return n.n=26,r.management.power.clearScheduledReboots();case 26:return n.n=27,e({type:a.ManagementPowerClearScheduledRebootsResult,result:{}});case 27:return n.a(3,37);case 28:return d=e,p=a.ManagementPowerGetScheduledRebootsResult,n.n=29,r.management.power.getScheduledReboots();case 29:return m=n.v,n.n=30,d({type:p,result:m});case 30:return n.a(3,37);case 31:return n.n=32,r.management.power.removeScheduledReboot(t.command.id);case 32:return n.n=33,e({type:a.ManagementPowerRemoveScheduledRebootResult,result:{}});case 33:return n.a(3,37);case 34:return n.n=35,r.management.power.setScheduledReboot(t.command.weekdays,t.command.time);case 35:return n.n=36,e({type:a.ManagementPowerSetScheduledRebootResult,result:{}});case 36:return n.a(3,37);case 37:return n.a(2)}}),i)})))}))};var a=r(670)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementPowerSetScheduledRebootResult=e.ManagementPowerSetScheduledRebootRequest=e.ManagementPowerRemoveScheduledRebootResult=e.ManagementPowerRemoveScheduledRebootRequest=e.ManagementPowerGetScheduledRebootsResult=e.ManagementPowerGetScheduledRebootsRequest=e.ManagementPowerClearScheduledRebootsResult=e.ManagementPowerClearScheduledRebootsRequest=e.ManagementPowerUnsetProprietaryTimerResult=e.ManagementPowerUnsetProprietaryTimerRequest=e.ManagementPowerSetProprietaryTimerResult=e.ManagementPowerSetProprietaryTimerRequest=e.ManagementPowerGetProprietaryTimersResult=e.ManagementPowerGetProprietaryTimersRequest=e.ManagementPowerUnsetTimerResult=e.ManagementPowerUnsetTimerRequest=e.ManagementPowerSetTimerResult=e.ManagementPowerSetTimerRequest=e.ManagementPowerGetTimersResult=e.ManagementPowerGetTimersRequest=e.PowerAppRestartResult=e.PowerAppRestartRequest=e.PowerSystemRebootResult=e.PowerSystemRebootRequest=void 0,e.PowerSystemRebootRequest="sos.Monitoring.Management.Power.PowerSystemRebootRequest",e.PowerSystemRebootResult="sos.Monitoring.Management.Power.PowerSystemRebootResult",e.PowerAppRestartRequest="sos.Monitoring.Management.Power.PowerAppRestartRequest",e.PowerAppRestartResult="sos.Monitoring.Management.Power.PowerAppRestartResult",e.ManagementPowerGetTimersRequest="sos.Monitoring.Management.Power.ManagementPowerGetTimersRequest",e.ManagementPowerGetTimersResult="sos.Monitoring.Management.Power.ManagementPowerGetTimersResult",e.ManagementPowerSetTimerRequest="sos.Monitoring.Management.Power.ManagementPowerSetTimerRequest",e.ManagementPowerSetTimerResult="sos.Monitoring.Management.Power.ManagementPowerSetTimerResult",e.ManagementPowerUnsetTimerRequest="sos.Monitoring.Management.Power.ManagementPowerUnsetTimerRequest",e.ManagementPowerUnsetTimerResult="sos.Monitoring.Management.Power.ManagementPowerUnsetTimerResult",e.ManagementPowerGetProprietaryTimersRequest="sos.Monitoring.Management.Power.ManagementPowerGetProprietaryTimersRequest",e.ManagementPowerGetProprietaryTimersResult="sos.Monitoring.Management.Power.ManagementPowerGetProprietaryTimersResult",e.ManagementPowerSetProprietaryTimerRequest="sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerRequest",e.ManagementPowerSetProprietaryTimerResult="sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerResult",e.ManagementPowerUnsetProprietaryTimerRequest="sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerRequest",e.ManagementPowerUnsetProprietaryTimerResult="sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerResult",e.ManagementPowerClearScheduledRebootsRequest="sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsRequest",e.ManagementPowerClearScheduledRebootsResult="sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsResult",e.ManagementPowerGetScheduledRebootsRequest="sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsRequest",e.ManagementPowerGetScheduledRebootsResult="sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsResult",e.ManagementPowerRemoveScheduledRebootRequest="sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest",e.ManagementPowerRemoveScheduledRebootResult="sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootResult",e.ManagementPowerSetScheduledRebootRequest="sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootRequest",e.ManagementPowerSetScheduledRebootResult="sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleDisplayRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.DisplaySupportsRequest?1:4;break;case 1:return u=e,s=a.DisplaySupportsResult,n.n=2,r.display.supports(t.command.capability);case 2:return f=n.v,n.n=3,u({type:s,supports:f});case 3:return n.a(3,4);case 4:return n.a(2)}}),i)})))}))};var a=r(672)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisplaySupportsResult=e.DisplaySupportsRequest=void 0,e.DisplaySupportsRequest="sos.Monitoring.Display.DisplaySupportsRequest",e.DisplaySupportsResult="sos.Monitoring.Display.DisplaySupportsResult"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogged=void 0,e.ConsoleLogged="sos.Monitoring.Console.ConsoleLogged"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v,y,g,b,w,M,_,S,O,E,k,P;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementSupportsRequest?1:o===a.ManagementGetModelRequest?4:o===a.ManagementGetSerialNumberRequest?7:o===a.ManagementGetTemperatureRequest?10:o===a.ManagementGetBrandRequest?13:o===a.ManagementGetBatteryStatusRequest?16:o===a.ManagementResetSettingsRequest?19:o===a.ManagementFactoryResetRequest?22:o===a.ManagementGetExtendedManagementUrlRequest?25:o===a.ManagementSetExtendedManagementUrlRequest?28:31;break;case 1:return u=e,s=a.ManagementSupportsResult,n.n=2,r.management.supports(t.command.capability);case 2:return f=n.v,n.n=3,u({type:s,supports:f});case 3:return n.a(3,31);case 4:return c=e,h=a.ManagementGetModelResult,n.n=5,r.management.getModel();case 5:return l=n.v,n.n=6,c({type:h,model:l});case 6:return n.a(3,31);case 7:return d=e,p=a.ManagementGetSerialNumberResult,n.n=8,r.management.getSerialNumber();case 8:return m=n.v,n.n=9,d({type:p,serialNumber:m});case 9:return n.a(3,31);case 10:return v=e,y=a.ManagementGetTemperatureResult,n.n=11,r.management.getTemperature();case 11:return g=n.v,n.n=12,v({type:y,temperature:g});case 12:return n.a(3,31);case 13:return b=e,w=a.ManagementGetBrandResult,n.n=14,r.management.getBrand();case 14:return M=n.v,n.n=15,b({type:w,brand:M});case 15:return n.a(3,31);case 16:return _=e,S=a.ManagementGetBatteryStatusResult,n.n=17,r.management.getBatteryStatus();case 17:return O=n.v,n.n=18,_({type:S,status:O});case 18:return n.a(3,31);case 19:return n.n=20,r.management.resetSettings();case 20:return n.n=21,e({type:a.ManagementResetSettingsResult,result:{}});case 21:return n.a(3,31);case 22:return n.n=23,r.management.factoryReset();case 23:return n.n=24,e({type:a.ManagementFactoryResetResult,result:{}});case 24:return n.a(3,31);case 25:return E=e,k=a.ManagementGetExtendedManagementUrlResult,n.n=26,r.management.getExtendedManagementUrl();case 26:return P=n.v,n.n=27,E({type:k,result:P});case 27:return n.a(3,31);case 28:return n.n=29,r.management.setExtendedManagementUrl(t.command.url);case 29:return n.n=30,e({type:a.ManagementSetExtendedManagementUrlResult,result:{}});case 30:return n.a(3,31);case 31:return n.a(2)}}),i)})))}))};var a=r(675)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementSetExtendedManagementUrlResult=e.ManagementSetExtendedManagementUrlRequest=e.ManagementGetExtendedManagementUrlResult=e.ManagementGetExtendedManagementUrlRequest=e.ManagementFactoryResetResult=e.ManagementFactoryResetRequest=e.ManagementResetSettingsResult=e.ManagementResetSettingsRequest=e.ManagementGetBatteryStatusResult=e.ManagementGetBatteryStatusRequest=e.ManagementGetBrandResult=e.ManagementGetBrandRequest=e.ManagementGetTemperatureResult=e.ManagementGetTemperatureRequest=e.ManagementGetSerialNumberResult=e.ManagementGetSerialNumberRequest=e.ManagementGetModelResult=e.ManagementGetModelRequest=e.ManagementSupportsResult=e.ManagementSupportsRequest=void 0,e.ManagementSupportsRequest="sos.Monitoring.App.ManagementSupportsRequest",e.ManagementSupportsResult="sos.Monitoring.App.ManagementSupportsResult",e.ManagementGetModelRequest="sos.Monitoring.App.ManagementGetModelRequest",e.ManagementGetModelResult="sos.Monitoring.App.ManagementGetModelResult",e.ManagementGetSerialNumberRequest="sos.Monitoring.App.ManagementGetSerialNumberRequest",e.ManagementGetSerialNumberResult="sos.Monitoring.App.ManagementGetSerialNumberResult",e.ManagementGetTemperatureRequest="sos.Monitoring.App.ManagementGetTemperatureRequest",e.ManagementGetTemperatureResult="sos.Monitoring.App.ManagementGetTemperatureResult",e.ManagementGetBrandRequest="sos.Monitoring.App.ManagementGetBrandRequest",e.ManagementGetBrandResult="sos.Monitoring.App.ManagementGetBrandResult",e.ManagementGetBatteryStatusRequest="sos.Monitoring.App.ManagementGetBatteryStatusRequest",e.ManagementGetBatteryStatusResult="sos.Monitoring.App.ManagementGetBatteryStatusResult",e.ManagementResetSettingsRequest="sos.Monitoring.App.ManagementResetSettingsRequest",e.ManagementResetSettingsResult="sos.Monitoring.App.ManagementRessetSettingsResult",e.ManagementFactoryResetRequest="sos.Monitoring.App.ManagementFactoryResetRequest",e.ManagementFactoryResetResult="sos.Monitoring.App.ManagementFactoryResetResult",e.ManagementGetExtendedManagementUrlRequest="sos.Monitoring.App.ManagementGetExtendedManagementUrlRequest",e.ManagementGetExtendedManagementUrlResult="sos.Monitoring.App.ManagementGetExtendedManagementUrlResult",e.ManagementSetExtendedManagementUrlRequest="sos.Monitoring.App.ManagementSetExtendedManagementUrlRequest",e.ManagementSetExtendedManagementUrlResult="sos.Monitoring.App.ManagementSetExtendedManagementUrlResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementScreenRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m,v;return n().w((function(n){for(;;)switch(n.n){case 0:u=t.command.type,n.n=u===a.ManagementScreenResizeRequest?1:u===a.ManagementScreenGetOrientationRequest?4:u===a.ManagementScreenSetBrightnessRequest?7:u===a.ManagementScreenGetBrightnessRequest?10:u===a.ManagementScreenTakeScreenshotRequest?13:u===a.ManagementScreenPowerOnRequest?16:u===a.ManagementScreenPowerOffRequest?19:u===a.ManagementScreenIsPoweredOnRequest?22:25;break;case 1:return n.n=2,r.management.screen.resize(t.command.baseUrl,t.command.orientation,t.command.resolution,t.command.currentVersion,t.command.videoOrientation);case 2:return n.n=3,e({type:a.ManagementScreenResizeResult,result:{}});case 3:return n.a(3,25);case 4:return s=e,f=a.ManagementScreenGetOrientationResult,n.n=5,r.management.screen.getOrientation();case 5:return c=n.v,n.n=6,s({type:f,result:c});case 6:return n.a(3,25);case 7:return n.n=8,r.management.screen.setBrightness(t.command.timeFrom1,t.command.brightness1,t.command.timeFrom2,t.command.brightness2);case 8:return n.n=9,e({type:a.ManagementScreenSetBrightnessResult,result:{}});case 9:return n.a(3,25);case 10:return h=e,l=a.ManagementScreenGetBrightnessResult,n.n=11,r.management.screen.getBrightness();case 11:return d=n.v,n.n=12,h({type:l,result:d});case 12:return n.a(3,25);case 13:return n.n=14,r.management.screen.takeAndUploadScreenshot(t.command.uploadBaseUrl,t.command.computeHash);case 14:return o=n.v,n.n=15,e({type:a.ManagementScreenTakeScreenshotResult,screenshotUrl:o.screenshotUrl,aHash:o.aHash});case 15:return n.a(3,25);case 16:return n.n=17,r.management.screen.powerOn();case 17:return n.n=18,e({type:a.ManagementScreenPowerOnResult,result:{}});case 18:return n.a(3,25);case 19:return n.n=20,r.management.screen.powerOff();case 20:return n.n=21,e({type:a.ManagementScreenPowerOffResult,result:{}});case 21:return n.a(3,25);case 22:return p=e,m=a.ManagementScreenIsPoweredOnResult,n.n=23,r.management.screen.isPoweredOn();case 23:return v=n.v,n.n=24,p({type:m,result:v});case 24:return n.a(3,25);case 25:return n.a(2)}}),i)})))}))};var a=r(677)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementScreenIsPoweredOnResult=e.ManagementScreenIsPoweredOnRequest=e.ManagementScreenPowerOffResult=e.ManagementScreenPowerOffRequest=e.ManagementScreenPowerOnResult=e.ManagementScreenPowerOnRequest=e.ManagementScreenTakeScreenshotResult=e.ManagementScreenTakeScreenshotRequest=e.ManagementScreenGetBrightnessResult=e.ManagementScreenGetBrightnessRequest=e.ManagementScreenSetBrightnessResult=e.ManagementScreenSetBrightnessRequest=e.ManagementScreenGetOrientationResult=e.ManagementScreenGetOrientationRequest=e.ManagementScreenResizeResult=e.ManagementScreenResizeRequest=void 0,e.ManagementScreenResizeRequest="sos.Monitoring.Management.ManagementScreenResizeRequest",e.ManagementScreenResizeResult="sos.Monitoring.Management.ManagementScreenResizeResult",e.ManagementScreenGetOrientationRequest="sos.Monitoring.Management.ManagementScreenGetOrientationRequest",e.ManagementScreenGetOrientationResult="sos.Monitoring.Management.ManagementScreenGetOrientationResult",e.ManagementScreenSetBrightnessRequest="sos.Monitoring.Management.ManagementScreenSetBrightnessRequest",e.ManagementScreenSetBrightnessResult="sos.Monitoring.Management.ManagementScreenSetBrightnessResult",e.ManagementScreenGetBrightnessRequest="sos.Monitoring.Management.ManagementScreenGetBrightnessRequest",e.ManagementScreenGetBrightnessResult="sos.Monitoring.Management.ManagementScreenGetBrightnessResult",e.ManagementScreenTakeScreenshotRequest="sos.Monitoring.Management.ManagementScreenTakeScreenshotRequest",e.ManagementScreenTakeScreenshotResult="sos.Monitoring.Management.ManagementScreenTakeScreenshotResult",e.ManagementScreenPowerOnRequest="sos.Monitoring.Management.ManagementScreenPowerOnRequest",e.ManagementScreenPowerOnResult="sos.Monitoring.Management.ManagementScreenPowerOnResult",e.ManagementScreenPowerOffRequest="sos.Monitoring.Management.ManagementScreenPowerOffRequest",e.ManagementScreenPowerOffResult="sos.Monitoring.Management.ManagementScreenPowerOffResult",e.ManagementScreenIsPoweredOnRequest="sos.Monitoring.Management.ManagementScreenIsPoweredOnRequest",e.ManagementScreenIsPoweredOnResult="sos.Monitoring.Management.ManagementScreenIsPoweredOnResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementSecurityRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementSecurityGetPinCodeRequest?1:o===a.ManagementSecuritySetPinCodeRequest?4:o===a.ManagementSecurityGenerateRandomPinCodeRequest?7:10;break;case 1:return u=e,s=a.ManagementSecurityGetPinCodeResult,n.n=2,r.management.security.getPinCode();case 2:return f=n.v,n.n=3,u({type:s,pinCode:f});case 3:return n.a(3,10);case 4:return n.n=5,r.management.security.setPinCode(t.command.pinCode);case 5:return n.n=6,e({type:a.ManagementSecuritySetPinCodeResult,result:{}});case 6:return n.a(3,10);case 7:return n.n=8,r.management.security.generateRandomPinCode();case 8:return n.n=9,e({type:a.ManagementSecurityGenerateRandomPinCodeResult,result:{}});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(679)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementSecurityGenerateRandomPinCodeResult=e.ManagementSecurityGenerateRandomPinCodeRequest=e.ManagementSecuritySetPinCodeResult=e.ManagementSecuritySetPinCodeRequest=e.ManagementSecurityGetPinCodeResult=e.ManagementSecurityGetPinCodeRequest=void 0,e.ManagementSecurityGetPinCodeRequest="sos.Monitoring.Management.ManagementSecurityGetPinCodeRequest",e.ManagementSecurityGetPinCodeResult="sos.Monitoring.Management.ManagementSecurityGetPinCodeResult",e.ManagementSecuritySetPinCodeRequest="sos.Monitoring.Management.ManagementSecuritySetPinCodeRequest",e.ManagementSecuritySetPinCodeResult="sos.Monitoring.Management.ManagementSecuritySetPinCodeResult",e.ManagementSecurityGenerateRandomPinCodeRequest="sos.Monitoring.Management.ManagementSecurityGenerateRandomPinCodeRequest",e.ManagementSecurityGenerateRandomPinCodeResult="sos.Monitoring.Management.ManagementSecurityGenerateRandomPinCodeResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementAudioRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementAudioGetVolumeRequest?1:o===a.ManagementAudioSetVolumeRequest?4:7;break;case 1:return u=e,s=a.ManagementAudioGetVolumeResult,n.n=2,r.management.audio.getVolume();case 2:return f=n.v,n.n=3,u({type:s,volume:f});case 3:return n.a(3,7);case 4:return n.n=5,r.management.audio.setVolume(t.command.volume);case 5:return n.n=6,e({type:a.ManagementAudioSetVolumeResult,result:{}});case 6:return n.a(3,7);case 7:return n.a(2)}}),i)})))}))};var a=r(681)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementAudioSetVolumeResult=e.ManagementAudioSetVolumeRequest=e.ManagementAudioGetVolumeResult=e.ManagementAudioGetVolumeRequest=void 0,e.ManagementAudioGetVolumeRequest="sos.Monitoring.Management.Audio.ManagementAudioGetVolumeRequest",e.ManagementAudioGetVolumeResult="sos.Monitoring.Management.Audio.ManagementAudioGetVolumeResult",e.ManagementAudioSetVolumeRequest="sos.Monitoring.Management.Audio.ManagementAudioSetVolumeRequest",e.ManagementAudioSetVolumeResult="sos.Monitoring.Management.Audio.ManagementAudioSetVolumeResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementRemoteControlRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementRemoteControlEnableRequest?1:o===a.ManagementRemoteControlDisableRequest?4:o===a.ManagementRemoteControlIsEnabledRequest?7:o===a.ManagementRemoteControlLockRequest?10:o===a.ManagementRemoteControlUnlockRequest?13:o===a.ManagementRemoteControlIsLockedRequest?16:19;break;case 1:return n.n=2,r.management.remoteControl.enable();case 2:return n.n=3,e({type:a.ManagementRemoteControlEnableResult,result:{}});case 3:return n.a(3,19);case 4:return n.n=5,r.management.remoteControl.disable();case 5:return n.n=6,e({type:a.ManagementRemoteControlDisableResult,result:{}});case 6:return n.a(3,19);case 7:return u=e,s=a.ManagementRemoteControlIsEnabledResult,n.n=8,r.management.remoteControl.isEnabled();case 8:return f=n.v,n.n=9,u({type:s,result:f});case 9:return n.a(3,19);case 10:return n.n=11,r.management.remoteControl.lock();case 11:return n.n=12,e({type:a.ManagementRemoteControlLockResult,result:{}});case 12:return n.a(3,19);case 13:return n.n=14,r.management.remoteControl.unlock();case 14:return n.n=15,e({type:a.ManagementRemoteControlUnlockResult,result:{}});case 15:return n.a(3,19);case 16:return c=e,h=a.ManagementRemoteControlIsLockedResult,n.n=17,r.management.remoteControl.isLocked();case 17:return l=n.v,n.n=18,c({type:h,result:l});case 18:return n.a(3,19);case 19:return n.a(2)}}),i)})))}))};var a=r(683)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementRemoteControlIsLockedResult=e.ManagementRemoteControlIsLockedRequest=e.ManagementRemoteControlUnlockResult=e.ManagementRemoteControlUnlockRequest=e.ManagementRemoteControlLockResult=e.ManagementRemoteControlLockRequest=e.ManagementRemoteControlIsEnabledResult=e.ManagementRemoteControlIsEnabledRequest=e.ManagementRemoteControlDisableResult=e.ManagementRemoteControlDisableRequest=e.ManagementRemoteControlEnableResult=e.ManagementRemoteControlEnableRequest=void 0,e.ManagementRemoteControlEnableRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlEnableRequest",e.ManagementRemoteControlEnableResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlEnableResult",e.ManagementRemoteControlDisableRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlDisableRequest",e.ManagementRemoteControlDisableResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlDisableResult",e.ManagementRemoteControlIsEnabledRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsEnabledRequest",e.ManagementRemoteControlIsEnabledResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsEnabledResult",e.ManagementRemoteControlLockRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlLockRequest",e.ManagementRemoteControlLockResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlLockResult",e.ManagementRemoteControlUnlockRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlUnlockRequest",e.ManagementRemoteControlUnlockResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlUnlockResult",e.ManagementRemoteControlIsLockedRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsLockedRequest",e.ManagementRemoteControlIsLockedResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsLockedResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementDebugRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementDebugEnableRequest?1:o===a.ManagementDebugDisableRequest?4:o===a.ManagementDebugIsEnabledRequest?7:10;break;case 1:return n.n=2,r.management.debug.enable();case 2:return n.n=3,e({type:a.ManagementDebugEnableResult,result:{}});case 3:return n.a(3,10);case 4:return n.n=5,r.management.debug.disable();case 5:return n.n=6,e({type:a.ManagementDebugDisableResult,result:{}});case 6:return n.a(3,10);case 7:return u=e,s=a.ManagementDebugIsEnabledResult,n.n=8,r.management.debug.isEnabled();case 8:return f=n.v,n.n=9,u({type:s,result:f});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(685)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementDebugIsEnabledResult=e.ManagementDebugIsEnabledRequest=e.ManagementDebugDisableResult=e.ManagementDebugDisableRequest=e.ManagementDebugEnableResult=e.ManagementDebugEnableRequest=void 0,e.ManagementDebugEnableRequest="sos.Monitoring.Management.Debug.ManagementDebugEnableRequest",e.ManagementDebugEnableResult="sos.Monitoring.Management.Debug.ManagementDebugEnableResult",e.ManagementDebugDisableRequest="sos.Monitoring.Management.Debug.ManagementDebugDisableRequest",e.ManagementDebugDisableResult="sos.Monitoring.Management.Debug.ManagementDebugDisableResult",e.ManagementDebugIsEnabledRequest="sos.Monitoring.Management.Debug.ManagementDebugIsEnabledRequest",e.ManagementDebugIsEnabledResult="sos.Monitoring.Management.Debug.ManagementDebugIsEnabledResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementOsRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementOsGetInfoRequest?1:o===a.ManagementOsGetCpuUsageRequest?4:o===a.ManagementOsGetMemoryUsageRequest?7:10;break;case 1:return u=e,s=a.ManagementOsGetInfoResult,n.n=2,r.management.os.getInfo();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,10);case 4:return c=e,h=a.ManagementOsGetCpuUsageResult,n.n=5,r.management.os.getCpuUsage();case 5:return l=n.v,n.n=6,c({type:h,result:l});case 6:return n.a(3,10);case 7:return d=e,p=a.ManagementOsGetMemoryUsageResult,n.n=8,r.management.os.getMemoryUsage();case 8:return m=n.v,n.n=9,d({type:p,result:m});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(687)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementOsGetMemoryUsageResult=e.ManagementOsGetMemoryUsageRequest=e.ManagementOsGetCpuUsageResult=e.ManagementOsGetCpuUsageRequest=e.ManagementOsGetInfoResult=e.ManagementOsGetInfoRequest=void 0,e.ManagementOsGetInfoRequest="sos.Monitoring.Management.Os.ManagementOsGetInfoRequest",e.ManagementOsGetInfoResult="sos.Monitoring.Management.Os.ManagementOsGetInfoResult",e.ManagementOsGetCpuUsageRequest="sos.Monitoring.Management.Os.ManagementOsGetCpuUsageRequest",e.ManagementOsGetCpuUsageResult="sos.Monitoring.Management.Os.ManagementOsGetCpuUsageResult",e.ManagementOsGetMemoryUsageRequest="sos.Monitoring.Management.Os.ManagementOsGetMemoryUsageRequest",e.ManagementOsGetMemoryUsageResult="sos.Monitoring.Management.Os.ManagementOsGetMemoryUsageResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleMonitoringRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.EnableMonitoring?1:o===a.DisableMonitoring?2:o===a.AppletRefreshRequest?3:o===a.AppletRestoreRequest?6:8;break;case 1:return r.config.sosMonitoring=!0,n.a(3,8);case 2:return r.config.sosMonitoring=!1,n.a(3,8);case 3:return n.n=4,r.refresh();case 4:return n.n=5,e({type:a.AppletRefreshResult,result:{}});case 5:return n.a(3,8);case 6:return n.n=7,e({type:a.AppletRestoreResult,result:{}});case 7:return r.restore(),n.a(3,8);case 8:return n.a(2)}}),i)})))}))};var a=r(689)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AppletRestoreResult=e.AppletRestoreRequest=e.AppletRefreshResult=e.AppletRefreshRequest=e.DisableMonitoring=e.EnableMonitoring=void 0,e.EnableMonitoring="sos.Monitoring.EnableMonitoring",e.DisableMonitoring="sos.Monitoring.DisableMonitoring",e.AppletRefreshRequest="sos.Monitoring.AppletRefreshRequest",e.AppletRefreshResult="sos.Monitoring.AppletRefreshResult",e.AppletRestoreRequest="sos.Monitoring.AppletRestoreRequest",e.AppletRestoreResult="sos.Monitoring.AppletRestoreResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementTimeCommands=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementTimeGetTimeRequest?1:o===a.ManagementTimeSetManualRequest?4:o===a.ManagementTimeSetNTPRequest?7:10;break;case 1:return u=e,s=a.ManagementTimeGetTimeResult,n.n=2,r.management.time.get();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,10);case 4:return n.n=5,e({type:a.ManagementTimeSetManualResult,result:{}});case 5:return n.n=6,r.management.time.setManual(t.command.dateTime,t.command.timezone);case 6:return n.a(3,10);case 7:return n.n=8,e({type:a.ManagementTimeSetNTPResult,result:{}});case 8:return n.n=9,r.management.time.setNTP(t.command.ntpServer,t.command.timezone);case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(691)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementTimeSetNTPResult=e.ManagementTimeSetNTPRequest=e.ManagementTimeSetManualResult=e.ManagementTimeSetManualRequest=e.ManagementTimeGetTimeResult=e.ManagementTimeGetTimeRequest=void 0,e.ManagementTimeGetTimeRequest="sos.Monitoring.Management.ManagementTimeGetTimeRequest",e.ManagementTimeGetTimeResult="sos.Monitoring.Management.ManagementTimeGetTimeResult",e.ManagementTimeSetManualRequest="sos.Monitoring.Management.ManagementTimeSetManualRequest",e.ManagementTimeSetManualResult="sos.Monitoring.Management.ManagementTimeSetManualResult",e.ManagementTimeSetNTPRequest="sos.Monitoring.Management.ManagementTimeSetNTPRequest",e.ManagementTimeSetNTPResult="sos.Monitoring.Management.ManagementTimeSetNTPResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementNativeCommandsMdcRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementNativeCommandsMdcSendOneRequest?1:4;break;case 1:return u=e,s=a.ManagementNativeCommandsMdcSendOneResult,n.n=2,r.native.mdc.sendOne(t.command.ipAddress,t.command.codes,t.command.data);case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,4);case 4:return n.a(2)}}),i)})))}))};var a=r(693)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementNativeCommandsMdcSendOneResult=e.ManagementNativeCommandsMdcSendOneRequest=void 0,e.ManagementNativeCommandsMdcSendOneRequest="sos.Monitoring.ManagementNativeCommandsMdcSendOneRequest",e.ManagementNativeCommandsMdcSendOneResult="sos.Monitoring.ManagementNativeCommandsMdcSendOneResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementNetworkRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementNetworkListInterfacesRequest?1:o===a.ManagementNetworkSetManualRequest?4:o===a.ManagementNetworkSetDHCPServerRequest?7:o===a.ManagementNetworkDisableInterfaceRequest?10:13;break;case 1:return u=e,s=a.ManagementNetworkListInterfacesResult,n.n=2,r.management.network.listInterfaces();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,13);case 4:return n.n=5,r.management.network.setManual(t.command.interfaceName,t.command.options);case 5:return n.n=6,e({type:a.ManagementNetworkSetManualResult,result:{}});case 6:return n.a(3,13);case 7:return n.n=8,r.management.network.setDHCP(t.command.interfaceName);case 8:return n.n=9,e({type:a.ManagementNetworkSetDHCPServerResult,result:{}});case 9:return n.a(3,13);case 10:return n.n=11,r.management.network.disableInterface(t.command.interfaceName);case 11:return n.n=12,e({type:a.ManagementNetworkDisableInterfaceResult,result:{}});case 12:return n.a(3,13);case 13:return n.a(2)}}),i)})))}))};var a=r(695)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementNetworkDisableInterfaceResult=e.ManagementNetworkDisableInterfaceRequest=e.ManagementNetworkSetDHCPServerResult=e.ManagementNetworkSetDHCPServerRequest=e.ManagementNetworkSetManualResult=e.ManagementNetworkSetManualRequest=e.ManagementNetworkListInterfacesResult=e.ManagementNetworkListInterfacesRequest=void 0,e.ManagementNetworkListInterfacesRequest="sos.Monitoring.Management.Network.ListInterfacesRequest",e.ManagementNetworkListInterfacesResult="sos.Monitoring.Management.Network.ListInterfacesResult",e.ManagementNetworkSetManualRequest="sos.Monitoring.Management.Network.SetManualRequest",e.ManagementNetworkSetManualResult="sos.Monitoring.Management.Network.SetManualResult",e.ManagementNetworkSetDHCPServerRequest="sos.Monitoring.Management.Network.SetDHCPServerRequest",e.ManagementNetworkSetDHCPServerResult="sos.Monitoring.Management.Network.SetDHCPServerResult",e.ManagementNetworkDisableInterfaceRequest="sos.Monitoring.Management.Network.DisableInterfaceRequest",e.ManagementNetworkDisableInterfaceResult="sos.Monitoring.Management.Network.DisableInterfaceResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementPeerRecoveryRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementPeerRecoveryGetRequest?1:o===a.ManagementPeerRecoverySetRequest?4:7;break;case 1:return u=e,s=a.ManagementPeerRecoveryGetResult,n.n=2,r.management.peerRecovery.get();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,7);case 4:return n.n=5,r.management.peerRecovery.set(t.command.configuration);case 5:return n.n=6,e({type:a.ManagementPeerRecoverySetResult,result:{}});case 6:return n.a(3,7);case 7:return n.a(2)}}),i)})))}))};var a=r(697)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementPeerRecoveryGetResult=e.ManagementPeerRecoveryGetRequest=e.ManagementPeerRecoverySetResult=e.ManagementPeerRecoverySetRequest=void 0,e.ManagementPeerRecoverySetRequest="sos.Monitoring.Management.ManagementPeerRecoverySetRequest",e.ManagementPeerRecoverySetResult="sos.Monitoring.Management.ManagementPeerRecoverySetResult",e.ManagementPeerRecoveryGetRequest="sos.Monitoring.Management.ManagementPeerRecoveryGetRequest",e.ManagementPeerRecoveryGetResult="sos.Monitoring.Management.ManagementPeerRecoveryGetResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementAutoRecoveryRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.ManagementAutoRecoveryGetRequest?1:o===a.ManagementAutoRecoverySetRequest?4:7;break;case 1:return u=e,s=a.ManagementAutoRecoveryGetResult,n.n=2,r.management.autoRecovery.get();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,7);case 4:return n.n=5,r.management.autoRecovery.set(t.command.configuration);case 5:return n.n=6,e({type:a.ManagementAutoRecoverySetResult,result:{}});case 6:return n.a(3,7);case 7:return n.a(2)}}),i)})))}))};var a=r(699)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementAutoRecoverySetResult=e.ManagementAutoRecoverySetRequest=e.ManagementAutoRecoveryGetResult=e.ManagementAutoRecoveryGetRequest=void 0,e.ManagementAutoRecoveryGetRequest="sos.Monitoring.Management.ManagementAutoRecoveryGetRequest",e.ManagementAutoRecoveryGetResult="sos.Monitoring.Management.ManagementAutoRecoveryGetResult",e.ManagementAutoRecoverySetRequest="sos.Monitoring.Management.ManagementAutoRecoverySetRequest",e.ManagementAutoRecoverySetResult="sos.Monitoring.Management.ManagementAutoRecoverySetResult"},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,c=Object.create(u.prototype);return i(c,"_invoke",function(r,n,i){var o,a,u,f=0,c=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,u=t,l.n=r,s}};function d(r,n){for(a=r,u=n,e=0;!h&&f&&!i&&e<c.length;e++){var i,o=c[e],d=l.p,p=o[2];r>3?(i=p===n)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=r<2&&d<o[1])?(a=0,l.v=n,l.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,l.n=p,a=0))}if(i||r>1)return s;throw h=!0,n}return function(i,c,p){if(f>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,p),a=c,u=p;(e=a<2?t:u)||!h;){o||(a?a<3?(a>1&&(l.n=-1),d(a,u)):l.n=u:l.v=u);try{if(f=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(h=l.n<0)?u:r.call(n,l))!==s)break}catch(e){o=t,a=1,u=e}finally{f=1}}return{value:e,done:h}}}(r,o,a),!0),c}var s={};function f(){}function c(){}function h(){}e=Object.getPrototypeOf;var l=[][o]?e(e([][o]())):(i(e={},o,(function(){return this})),e),d=h.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=h,i(d,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,o,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:u,m:p}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(i=function(t,e,r,n){function a(e,r){i(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleDeviceInfoRequests=function(t,e,r){var i=this;t((function(t){return o(i,void 0,void 0,n().m((function i(){var o,u,s,f,c,h,l,d,p,m;return n().w((function(n){for(;;)switch(n.n){case 0:o=t.command.type,n.n=o===a.DeviceInfoGetLocationRequest?1:o===a.DeviceInfoGetOrganizationTagsRequest?4:o===a.DeviceInfoGetDeviceNameRequest?7:10;break;case 1:return u=e,s=a.DeviceInfoGetLocationResult,n.n=2,r.deviceInfo.getLocation();case 2:return f=n.v,n.n=3,u({type:s,result:f});case 3:return n.a(3,10);case 4:return c=e,h=a.DeviceInfoGetOrganizationTagsResult,n.n=5,r.deviceInfo.getOrganizationTags();case 5:return l=n.v,n.n=6,c({type:h,result:l});case 6:return n.a(3,10);case 7:return d=e,p=a.DeviceInfoGetDeviceNameResult,n.n=8,r.deviceInfo.getDeviceName();case 8:return m=n.v,n.n=9,d({type:p,result:m});case 9:return n.a(3,10);case 10:return n.a(2)}}),i)})))}))};var a=r(701)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceInfoGetDeviceNameResult=e.DeviceInfoGetDeviceNameRequest=e.DeviceInfoGetOrganizationTagsResult=e.DeviceInfoGetOrganizationTagsRequest=e.DeviceInfoGetLocationResult=e.DeviceInfoGetLocationRequest=void 0,e.DeviceInfoGetLocationRequest="sos.Monitoring.DeviceInfo.GetLocationRequest",e.DeviceInfoGetLocationResult="sos.Monitoring.DeviceInfo.GetLocationResult",e.DeviceInfoGetOrganizationTagsRequest="sos.Monitoring.DeviceInfo.GetOrganizationTagsRequest",e.DeviceInfoGetOrganizationTagsResult="sos.Monitoring.DeviceInfo.GetOrganizationTagsResult",e.DeviceInfoGetDeviceNameRequest="sos.Monitoring.DeviceInfo.GetNameRequest",e.DeviceInfoGetDeviceNameResult="sos.Monitoring.DeviceInfo.GetNameResult"},function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),a=0;a<r.length;a++)"default"!==r[a]&&i(e,t,r[a]);return o(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.fpath=void 0;var u=a(r(703));e.fpath={basename:function(t,e){return u.basename(t.filePath,e)},dirname:function(t){var e=u.dirname(t.filePath);return"."===e&&(e=""),{filePath:e,storageUnit:t.storageUnit}},extname:function(t){return u.extname(t.filePath)},isAbsolute:function(t){return!0},join:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{filePath:u.join.apply(u,[t.filePath].concat(r)),storageUnit:t.storageUnit}},safeJoin:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{filePath:t.filePath+u.resolve.apply(u,["/"].concat(r)),storageUnit:t.storageUnit}},normalize:function(t){return{filePath:u.normalize(t.filePath),storageUnit:t.storageUnit}},resolve:function(t){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(r=e.fpath).join.apply(r,[t].concat(i))},sep:u.sep,concat:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return{filePath:(e=t.filePath).concat.apply(e,n),storageUnit:t.storageUnit}},stringify:function(t){return u.join("[".concat(t.storageUnit.type,"]"),t.filePath)},path:u}},function(t,e,r){"use strict";(function(e){function r(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var r,n="",i=0,o=-1,a=0,u=0;u<=t.length;++u){if(u<t.length)r=t.charCodeAt(u);else{if(47===r)break;r=47}if(47===r){if(o===u-1||1===a);else if(o!==u-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",i=0):i=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),o=u,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=u,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,u):n=t.slice(o+1,u),i=u-o-1;o=u,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var u;a>=0?u=arguments[a]:(void 0===t&&(t=e.cwd()),u=t),r(u),0!==u.length&&(i=u+"/"+i,o=47===u.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];r(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return"";if((t=i.resolve(t))===(e=i.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,u=1;u<e.length&&47===e.charCodeAt(u);++u);for(var s=e.length-u,f=a<s?a:s,c=-1,h=0;h<=f;++h){if(h===f){if(s>f){if(47===e.charCodeAt(u+h))return e.slice(u+h+1);if(0===h)return e.slice(u+h)}else a>f&&(47===t.charCodeAt(n+h)?c=h:0===h&&(c=0));break}var l=t.charCodeAt(n+h);if(l!==e.charCodeAt(u+h))break;47===l&&(c=h)}var d="";for(h=n+c+1;h<=o;++h)h!==o&&47!==t.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+e.slice(u+c):(u+=c,47===e.charCodeAt(u)&&++u,e.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');r(t);var n,i=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var u=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var f=t.charCodeAt(n);if(47===f){if(!a){i=n+1;break}}else-1===s&&(a=!1,s=n+1),u>=0&&(f===e.charCodeAt(u)?-1==--u&&(o=n):(u=-1,o=s))}return i===o?o=s:-1===o&&(o=t.length),t.slice(i,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(i,o)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,o=!0,a=0,u=t.length-1;u>=0;--u){var s=t.charCodeAt(u);if(47!==s)-1===i&&(o=!1,i=u+1),46===s?-1===e?e=u:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=u+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){r(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),o=47===i;o?(e.root="/",n=1):n=0;for(var a=-1,u=0,s=-1,f=!0,c=t.length-1,h=0;c>=n;--c)if(47!==(i=t.charCodeAt(c)))-1===s&&(f=!1,s=c+1),46===i?-1===a?a=c:1!==h&&(h=1):-1!==a&&(h=-1);else if(!f){u=c+1;break}return-1===a||-1===s||0===h||1===h&&a===s-1&&a===u+1?-1!==s&&(e.base=e.name=0===u&&o?t.slice(1,s):t.slice(u,s)):(0===u&&o?(e.name=t.slice(1,a),e.base=t.slice(1,s)):(e.name=t.slice(u,a),e.base=t.slice(u,s)),e.ext=t.slice(a,s)),u>0?e.dir=t.slice(0,u-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this,r(22))}])}));
|
|
35
35
|
//# sourceMappingURL=bundle.js.map
|